| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 value()->PrintTo(f); | 280 value()->PrintTo(f); |
| 281 f->Print(", lvl: %"Pd"", context_level()); | 281 f->Print(", lvl: %"Pd"", context_level()); |
| 282 } | 282 } |
| 283 | 283 |
| 284 | 284 |
| 285 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 285 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 286 f->Print("%s", native_name().ToCString()); | 286 f->Print("%s", native_name().ToCString()); |
| 287 } | 287 } |
| 288 | 288 |
| 289 | 289 |
| 290 void LoadInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | |
| 291 f->Print("%s, ", String::Handle(field().name()).ToCString()); | |
| 292 instance()->PrintTo(f); | |
| 293 } | |
| 294 | |
| 295 | |
| 296 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 290 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 297 f->Print("%s, ", String::Handle(field().name()).ToCString()); | 291 f->Print("%s, ", String::Handle(field().name()).ToCString()); |
| 298 instance()->PrintTo(f); | 292 instance()->PrintTo(f); |
| 299 f->Print(", "); | 293 f->Print(", "); |
| 300 value()->PrintTo(f); | 294 value()->PrintTo(f); |
| 301 } | 295 } |
| 302 | 296 |
| 303 | 297 |
| 304 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 298 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 305 f->Print("%s", String::Handle(field().name()).ToCString()); | 299 f->Print("%s", String::Handle(field().name()).ToCString()); |
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 f->Print(" ["); | 794 f->Print(" ["); |
| 801 locations_[i].PrintTo(f); | 795 locations_[i].PrintTo(f); |
| 802 f->Print("]"); | 796 f->Print("]"); |
| 803 } | 797 } |
| 804 } | 798 } |
| 805 f->Print(" }"); | 799 f->Print(" }"); |
| 806 if (outer_ != NULL) outer_->PrintTo(f); | 800 if (outer_ != NULL) outer_->PrintTo(f); |
| 807 } | 801 } |
| 808 | 802 |
| 809 } // namespace dart | 803 } // namespace dart |
| OLD | NEW |