| 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 373 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 374 f->Print("%s ", String::Handle(function().name()).ToCString()); | 374 f->Print("%s ", String::Handle(function().name()).ToCString()); |
| 375 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 375 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 376 if (i > 0) f->Print(", "); | 376 if (i > 0) f->Print(", "); |
| 377 PushArgumentAt(i)->value()->PrintTo(f); | 377 PushArgumentAt(i)->value()->PrintTo(f); |
| 378 } | 378 } |
| 379 } | 379 } |
| 380 | 380 |
| 381 | 381 |
| 382 void LoadLocalInstr::PrintOperandsTo(BufferFormatter* f) const { | 382 void LoadLocalInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 383 f->Print("%s lvl:%"Pd"", local().name().ToCString(), context_level()); | 383 f->Print("%s", local().name().ToCString()); |
| 384 } | 384 } |
| 385 | 385 |
| 386 | 386 |
| 387 void StoreLocalInstr::PrintOperandsTo(BufferFormatter* f) const { | 387 void StoreLocalInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 388 f->Print("%s, ", local().name().ToCString()); | 388 f->Print("%s, ", local().name().ToCString()); |
| 389 value()->PrintTo(f); | 389 value()->PrintTo(f); |
| 390 f->Print(", lvl: %"Pd"", context_level()); | |
| 391 } | 390 } |
| 392 | 391 |
| 393 | 392 |
| 394 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 393 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 395 f->Print("%s", native_name().ToCString()); | 394 f->Print("%s", native_name().ToCString()); |
| 396 } | 395 } |
| 397 | 396 |
| 398 | 397 |
| 399 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 398 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 400 f->Print("%s {%"Pd"}, ", | 399 f->Print("%s {%"Pd"}, ", |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 f->Print(" ["); | 712 f->Print(" ["); |
| 714 locations_[i].PrintTo(f); | 713 locations_[i].PrintTo(f); |
| 715 f->Print("]"); | 714 f->Print("]"); |
| 716 } | 715 } |
| 717 } | 716 } |
| 718 f->Print(" }"); | 717 f->Print(" }"); |
| 719 if (outer_ != NULL) outer_->PrintTo(f); | 718 if (outer_ != NULL) outer_->PrintTo(f); |
| 720 } | 719 } |
| 721 | 720 |
| 722 } // namespace dart | 721 } // namespace dart |
| OLD | NEW |