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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 f->Print(", lvl: %"Pd"", context_level()); | 355 f->Print(", lvl: %"Pd"", context_level()); |
356 } | 356 } |
357 | 357 |
358 | 358 |
359 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 359 void NativeCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
360 f->Print("%s", native_name().ToCString()); | 360 f->Print("%s", native_name().ToCString()); |
361 } | 361 } |
362 | 362 |
363 | 363 |
364 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 364 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
365 f->Print("%s, ", String::Handle(field().name()).ToCString()); | 365 f->Print("%s {%"Pd"}, ", |
| 366 String::Handle(field().name()).ToCString(), |
| 367 field().Offset()); |
366 instance()->PrintTo(f); | 368 instance()->PrintTo(f); |
367 f->Print(", "); | 369 f->Print(", "); |
368 value()->PrintTo(f); | 370 value()->PrintTo(f); |
369 } | 371 } |
370 | 372 |
371 | 373 |
372 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 374 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
373 f->Print("%s", String::Handle(field().name()).ToCString()); | 375 f->Print("%s", String::Handle(field().name()).ToCString()); |
374 } | 376 } |
375 | 377 |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 f->Print(" ["); | 667 f->Print(" ["); |
666 locations_[i].PrintTo(f); | 668 locations_[i].PrintTo(f); |
667 f->Print("]"); | 669 f->Print("]"); |
668 } | 670 } |
669 } | 671 } |
670 f->Print(" }"); | 672 f->Print(" }"); |
671 if (outer_ != NULL) outer_->PrintTo(f); | 673 if (outer_ != NULL) outer_->PrintTo(f); |
672 } | 674 } |
673 | 675 |
674 } // namespace dart | 676 } // namespace dart |
OLD | NEW |