| 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 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { | 231 void CreateClosureComp::PrintOperandsTo(BufferFormatter* f) const { |
| 232 f->Print("%s", function().ToCString()); | 232 f->Print("%s", function().ToCString()); |
| 233 if (type_arguments() != NULL) { | 233 if (type_arguments() != NULL) { |
| 234 f->Print(", "); | 234 f->Print(", "); |
| 235 type_arguments()->PrintTo(f); | 235 type_arguments()->PrintTo(f); |
| 236 } | 236 } |
| 237 } | 237 } |
| 238 | 238 |
| 239 | 239 |
| 240 void NativeLoadFieldComp::PrintOperandsTo(BufferFormatter* f) const { | 240 void LoadVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { |
| 241 value()->PrintTo(f); | 241 value()->PrintTo(f); |
| 242 f->Print(", %d", offset_in_bytes()); | 242 f->Print(", %d", offset_in_bytes()); |
| 243 } | 243 } |
| 244 | 244 |
| 245 | 245 |
| 246 void NativeStoreFieldComp::PrintOperandsTo(BufferFormatter* f) const { | 246 void StoreVMFieldComp::PrintOperandsTo(BufferFormatter* f) const { |
| 247 dest()->PrintTo(f); | 247 dest()->PrintTo(f); |
| 248 f->Print(", %d, ", offset_in_bytes()); | 248 f->Print(", %d, ", offset_in_bytes()); |
| 249 value()->PrintTo(f); | 249 value()->PrintTo(f); |
| 250 } | 250 } |
| 251 | 251 |
| 252 | 252 |
| 253 void InstantiateTypeArgumentsComp::PrintOperandsTo(BufferFormatter* f) const { | 253 void InstantiateTypeArgumentsComp::PrintOperandsTo(BufferFormatter* f) const { |
| 254 const String& type_args = String::Handle(type_arguments().Name()); | 254 const String& type_args = String::Handle(type_arguments().Name()); |
| 255 f->Print("%s, ", type_args.ToCString()); | 255 f->Print("%s, ", type_args.ToCString()); |
| 256 instantiator()->PrintTo(f); | 256 instantiator()->PrintTo(f); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 f->Print(" %s ", DebugName()); | 333 f->Print(" %s ", DebugName()); |
| 334 f->Print("if "); | 334 f->Print("if "); |
| 335 value()->PrintTo(f); | 335 value()->PrintTo(f); |
| 336 f->Print(" goto (%d, %d)", | 336 f->Print(" goto (%d, %d)", |
| 337 true_successor()->block_id(), | 337 true_successor()->block_id(), |
| 338 false_successor()->block_id()); | 338 false_successor()->block_id()); |
| 339 } | 339 } |
| 340 | 340 |
| 341 | 341 |
| 342 } // namespace dart | 342 } // namespace dart |
| OLD | NEW |