Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: runtime/vm/il_printer.cc

Issue 10879005: Split BinaryOp into BinarySmiOp and BinaryMintOp. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/il_printer.h" 5 #include "vm/il_printer.h"
6 6
7 #include "vm/intermediate_language.h" 7 #include "vm/intermediate_language.h"
8 #include "vm/os.h" 8 #include "vm/os.h"
9 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 376
377 void CatchEntryComp::PrintOperandsTo(BufferFormatter* f) const { 377 void CatchEntryComp::PrintOperandsTo(BufferFormatter* f) const {
378 f->Print("%s, %s", 378 f->Print("%s, %s",
379 exception_var().name().ToCString(), 379 exception_var().name().ToCString(),
380 stacktrace_var().name().ToCString()); 380 stacktrace_var().name().ToCString());
381 } 381 }
382 382
383 383
384 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { 384 void BinarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const {
385 f->Print("%s, ", Token::Str(op_kind())); 385 f->Print("%s, ", Token::Str(op_kind()));
386 left()->PrintTo(f); 386 left()->PrintTo(f);
387 f->Print(", "); 387 f->Print(", ");
388 right()->PrintTo(f); 388 right()->PrintTo(f);
389 } 389 }
390 390
391 391
392 void DoubleBinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { 392 void BinaryMintOpComp::PrintOperandsTo(BufferFormatter* f) const {
393 f->Print("%s, ", Token::Str(op_kind()));
394 left()->PrintTo(f);
395 f->Print(", ");
396 right()->PrintTo(f);
397 }
398
399
400 void BinaryDoubleOpComp::PrintOperandsTo(BufferFormatter* f) const {
393 f->Print("%s", Token::Str(op_kind())); 401 f->Print("%s", Token::Str(op_kind()));
394 } 402 }
395 403
396 404
397 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { 405 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const {
398 f->Print("%s, ", Token::Str(op_kind())); 406 f->Print("%s, ", Token::Str(op_kind()));
399 value()->PrintTo(f); 407 value()->PrintTo(f);
400 } 408 }
401 409
402 410
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { 820 if ((locations_ != NULL) && !locations_[i].IsInvalid()) {
813 f->Print(" ["); 821 f->Print(" [");
814 locations_[i].PrintTo(f); 822 locations_[i].PrintTo(f);
815 f->Print("]"); 823 f->Print("]");
816 } 824 }
817 } 825 }
818 f->Print(" }"); 826 f->Print(" }");
819 } 827 }
820 828
821 } // namespace dart 829 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698