| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 left()->PrintTo(f); | 433 left()->PrintTo(f); |
| 434 f->Print(" %s ", Token::Str(kind_)); | 434 f->Print(" %s ", Token::Str(kind_)); |
| 435 right()->PrintTo(f); | 435 right()->PrintTo(f); |
| 436 f->Print(" ? %"Pd" : %"Pd, | 436 f->Print(" ? %"Pd" : %"Pd, |
| 437 if_true_, | 437 if_true_, |
| 438 if_false_); | 438 if_false_); |
| 439 } | 439 } |
| 440 | 440 |
| 441 | 441 |
| 442 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 442 void LoadStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 443 f->Print("%s", String::Handle(field().name()).ToCString()); | 443 field_value()->PrintTo(f); |
| 444 } | 444 } |
| 445 | 445 |
| 446 | 446 |
| 447 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 447 void StoreStaticFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 448 f->Print("%s, ", String::Handle(field().name()).ToCString()); | 448 f->Print("%s, ", String::Handle(field().name()).ToCString()); |
| 449 value()->PrintTo(f); | 449 value()->PrintTo(f); |
| 450 } | 450 } |
| 451 | 451 |
| 452 | 452 |
| 453 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { | 453 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 f->Print(" ["); | 943 f->Print(" ["); |
| 944 locations_[i].PrintTo(f); | 944 locations_[i].PrintTo(f); |
| 945 f->Print("]"); | 945 f->Print("]"); |
| 946 } | 946 } |
| 947 } | 947 } |
| 948 f->Print(" }"); | 948 f->Print(" }"); |
| 949 if (outer_ != NULL) outer_->PrintTo(f); | 949 if (outer_ != NULL) outer_->PrintTo(f); |
| 950 } | 950 } |
| 951 | 951 |
| 952 } // namespace dart | 952 } // namespace dart |
| OLD | NEW |