| 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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 f->Print(", "); | 486 f->Print(", "); |
| 487 PushArgumentAt(i)->value()->PrintTo(f); | 487 PushArgumentAt(i)->value()->PrintTo(f); |
| 488 } | 488 } |
| 489 } | 489 } |
| 490 | 490 |
| 491 | 491 |
| 492 void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const { | 492 void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 493 f->Print("%s", String::Handle(cls_.Name()).ToCString()); | 493 f->Print("%s", String::Handle(cls_.Name()).ToCString()); |
| 494 for (intptr_t i = 0; i < InputCount(); i++) { | 494 for (intptr_t i = 0; i < InputCount(); i++) { |
| 495 f->Print(", "); | 495 f->Print(", "); |
| 496 f->Print("%s: ", String::Handle(fields_[i]->name()).ToCString()); | 496 f->Print("%s: ", fields_[i]->ToCString()); |
| 497 InputAt(i)->PrintTo(f); | 497 InputAt(i)->PrintTo(f); |
| 498 } | 498 } |
| 499 } | 499 } |
| 500 | 500 |
| 501 | 501 |
| 502 void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const { | 502 void CreateArrayInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 503 for (int i = 0; i < ArgumentCount(); ++i) { | 503 for (int i = 0; i < ArgumentCount(); ++i) { |
| 504 if (i != 0) f->Print(", "); | 504 if (i != 0) f->Print(", "); |
| 505 PushArgumentAt(i)->value()->PrintTo(f); | 505 PushArgumentAt(i)->value()->PrintTo(f); |
| 506 } | 506 } |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 f->Print(" ["); | 967 f->Print(" ["); |
| 968 locations_[i].PrintTo(f); | 968 locations_[i].PrintTo(f); |
| 969 f->Print("]"); | 969 f->Print("]"); |
| 970 } | 970 } |
| 971 } | 971 } |
| 972 f->Print(" }"); | 972 f->Print(" }"); |
| 973 if (outer_ != NULL) outer_->PrintTo(f); | 973 if (outer_ != NULL) outer_->PrintTo(f); |
| 974 } | 974 } |
| 975 | 975 |
| 976 } // namespace dart | 976 } // namespace dart |
| OLD | NEW |