| 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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 void CreateClosureInstr::PrintOperandsTo(BufferFormatter* f) const { | 507 void CreateClosureInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 508 f->Print("%s", function().ToCString()); | 508 f->Print("%s", function().ToCString()); |
| 509 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 509 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 510 if (i > 0) f->Print(", "); | 510 if (i > 0) f->Print(", "); |
| 511 PushArgumentAt(i)->value()->PrintTo(f); | 511 PushArgumentAt(i)->value()->PrintTo(f); |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| 515 | 515 |
| 516 void LoadFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 516 void LoadFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 517 value()->PrintTo(f); | 517 instance()->PrintTo(f); |
| 518 f->Print(", %"Pd, offset_in_bytes()); | 518 f->Print(", %"Pd, offset_in_bytes()); |
| 519 | 519 |
| 520 if (field_name_ != NULL) { | 520 if (field_name_ != NULL) { |
| 521 f->Print(" {%s}", field_name_); | 521 f->Print(" {%s}", field_name_); |
| 522 } | 522 } |
| 523 | 523 |
| 524 if (field() != NULL) { | 524 if (field() != NULL) { |
| 525 const char* expected = "?"; | 525 const char* expected = "?"; |
| 526 if (field()->guarded_cid() != kIllegalCid) { | 526 if (field()->guarded_cid() != kIllegalCid) { |
| 527 const Class& cls = Class::Handle( | 527 const Class& cls = Class::Handle( |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 f->Print(" ["); | 871 f->Print(" ["); |
| 872 locations_[i].PrintTo(f); | 872 locations_[i].PrintTo(f); |
| 873 f->Print("]"); | 873 f->Print("]"); |
| 874 } | 874 } |
| 875 } | 875 } |
| 876 f->Print(" }"); | 876 f->Print(" }"); |
| 877 if (outer_ != NULL) outer_->PrintTo(f); | 877 if (outer_ != NULL) outer_->PrintTo(f); |
| 878 } | 878 } |
| 879 | 879 |
| 880 } // namespace dart | 880 } // namespace dart |
| OLD | NEW |