| OLD | NEW |
| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 left()->PrintTo(f); | 365 left()->PrintTo(f); |
| 366 f->Print(", "); | 366 f->Print(", "); |
| 367 right()->PrintTo(f); | 367 right()->PrintTo(f); |
| 368 } | 368 } |
| 369 | 369 |
| 370 | 370 |
| 371 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const { | 371 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 372 left()->PrintTo(f); | 372 left()->PrintTo(f); |
| 373 f->Print(" %s ", Token::Str(kind())); | 373 f->Print(" %s ", Token::Str(kind())); |
| 374 right()->PrintTo(f); | 374 right()->PrintTo(f); |
| 375 if (HasICData()) { | |
| 376 PrintICData(f, *ic_data()); | |
| 377 } | |
| 378 } | 375 } |
| 379 | 376 |
| 380 | 377 |
| 381 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 378 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 382 f->Print("%s ", String::Handle(function().name()).ToCString()); | 379 f->Print("%s ", String::Handle(function().name()).ToCString()); |
| 383 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 380 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 384 if (i > 0) f->Print(", "); | 381 if (i > 0) f->Print(", "); |
| 385 PushArgumentAt(i)->value()->PrintTo(f); | 382 PushArgumentAt(i)->value()->PrintTo(f); |
| 386 } | 383 } |
| 387 } | 384 } |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 f->Print(" ["); | 978 f->Print(" ["); |
| 982 locations_[i].PrintTo(f); | 979 locations_[i].PrintTo(f); |
| 983 f->Print("]"); | 980 f->Print("]"); |
| 984 } | 981 } |
| 985 } | 982 } |
| 986 f->Print(" }"); | 983 f->Print(" }"); |
| 987 if (outer_ != NULL) outer_->PrintTo(f); | 984 if (outer_ != NULL) outer_->PrintTo(f); |
| 988 } | 985 } |
| 989 | 986 |
| 990 } // namespace dart | 987 } // namespace dart |
| OLD | NEW |