| 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 f->Print("%s", function().ToCString()); | 371 f->Print("%s", function().ToCString()); |
| 372 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 372 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 373 if (i > 0) f->Print(", "); | 373 if (i > 0) f->Print(", "); |
| 374 ArgumentAt(i)->value()->PrintTo(f); | 374 ArgumentAt(i)->value()->PrintTo(f); |
| 375 } | 375 } |
| 376 } | 376 } |
| 377 | 377 |
| 378 | 378 |
| 379 void LoadVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 379 void LoadVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 380 value()->PrintTo(f); | 380 value()->PrintTo(f); |
| 381 f->Print(", %"Pd"", offset_in_bytes()); | 381 f->Print(", %"Pd", immutable=%d", offset_in_bytes(), immutable_); |
| 382 } | 382 } |
| 383 | 383 |
| 384 | 384 |
| 385 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 385 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 386 dest()->PrintTo(f); | 386 dest()->PrintTo(f); |
| 387 f->Print(", %"Pd", ", offset_in_bytes()); | 387 f->Print(", %"Pd", ", offset_in_bytes()); |
| 388 value()->PrintTo(f); | 388 value()->PrintTo(f); |
| 389 } | 389 } |
| 390 | 390 |
| 391 | 391 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 f->Print(" ["); | 801 f->Print(" ["); |
| 802 locations_[i].PrintTo(f); | 802 locations_[i].PrintTo(f); |
| 803 f->Print("]"); | 803 f->Print("]"); |
| 804 } | 804 } |
| 805 } | 805 } |
| 806 f->Print(" }"); | 806 f->Print(" }"); |
| 807 if (outer_ != NULL) outer_->PrintTo(f); | 807 if (outer_ != NULL) outer_->PrintTo(f); |
| 808 } | 808 } |
| 809 | 809 |
| 810 } // namespace dart | 810 } // namespace dart |
| OLD | NEW |