| 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/flow_graph_range_analysis.h" | 7 #include "vm/flow_graph_range_analysis.h" |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 value()->PrintTo(f); | 512 value()->PrintTo(f); |
| 513 } | 513 } |
| 514 | 514 |
| 515 | 515 |
| 516 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { | 516 void StoreInstanceFieldInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 517 if (field().IsNull()) { | 517 if (field().IsNull()) { |
| 518 f->Print("{%" Pd "}, ", offset_in_bytes()); | 518 f->Print("{%" Pd "}, ", offset_in_bytes()); |
| 519 } else { | 519 } else { |
| 520 f->Print("%s {%" Pd "}, ", | 520 f->Print("%s {%" Pd "}, ", |
| 521 String::Handle(field().name()).ToCString(), | 521 String::Handle(field().name()).ToCString(), |
| 522 field().Offset()); | 522 field().InstanceFieldOffset()); |
| 523 } | 523 } |
| 524 instance()->PrintTo(f); | 524 instance()->PrintTo(f); |
| 525 f->Print(", "); | 525 f->Print(", "); |
| 526 value()->PrintTo(f); | 526 value()->PrintTo(f); |
| 527 } | 527 } |
| 528 | 528 |
| 529 | 529 |
| 530 void IfThenElseInstr::PrintOperandsTo(BufferFormatter* f) const { | 530 void IfThenElseInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 531 comparison()->PrintOperandsTo(f); | 531 comparison()->PrintOperandsTo(f); |
| 532 f->Print(" ? %" Pd " : %" Pd, | 532 f->Print(" ? %" Pd " : %" Pd, |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 const char* Environment::ToCString() const { | 1214 const char* Environment::ToCString() const { |
| 1215 char buffer[1024]; | 1215 char buffer[1024]; |
| 1216 BufferFormatter bf(buffer, 1024); | 1216 BufferFormatter bf(buffer, 1024); |
| 1217 PrintTo(&bf); | 1217 PrintTo(&bf); |
| 1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); | 1218 return Thread::Current()->zone()->MakeCopyOfString(buffer); |
| 1219 } | 1219 } |
| 1220 | 1220 |
| 1221 } // namespace dart | 1221 } // namespace dart |
| OLD | NEW |