| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } | 259 } |
| 260 | 260 |
| 261 | 261 |
| 262 void FlowGraphPrinter::VisitNativeLoadField(NativeLoadFieldComp* comp) { | 262 void FlowGraphPrinter::VisitNativeLoadField(NativeLoadFieldComp* comp) { |
| 263 OS::Print("NativeLoadField("); | 263 OS::Print("NativeLoadField("); |
| 264 comp->value()->Accept(this); | 264 comp->value()->Accept(this); |
| 265 OS::Print(", %d)", comp->offset_in_bytes()); | 265 OS::Print(", %d)", comp->offset_in_bytes()); |
| 266 } | 266 } |
| 267 | 267 |
| 268 | 268 |
| 269 void FlowGraphPrinter::VisitNativeStoreField(NativeStoreFieldComp* comp) { |
| 270 OS::Print("NativeStoreField("); |
| 271 comp->dest()->Accept(this); |
| 272 OS::Print(", %d, ", comp->offset_in_bytes()); |
| 273 comp->value()->Accept(this); |
| 274 OS::Print(")"); |
| 275 } |
| 276 |
| 277 |
| 269 void FlowGraphPrinter::VisitInstantiateTypeArguments( | 278 void FlowGraphPrinter::VisitInstantiateTypeArguments( |
| 270 InstantiateTypeArgumentsComp* comp) { | 279 InstantiateTypeArgumentsComp* comp) { |
| 271 const String& type_args = String::Handle(comp->type_arguments().Name()); | 280 const String& type_args = String::Handle(comp->type_arguments().Name()); |
| 272 OS::Print("InstantiateTypeArguments(%s, ", type_args.ToCString()); | 281 OS::Print("InstantiateTypeArguments(%s, ", type_args.ToCString()); |
| 273 comp->instantiator()->Accept(this); | 282 comp->instantiator()->Accept(this); |
| 274 OS::Print(")"); | 283 OS::Print(")"); |
| 275 } | 284 } |
| 276 | 285 |
| 277 | 286 |
| 278 void FlowGraphPrinter::VisitExtractConstructorTypeArguments( | 287 void FlowGraphPrinter::VisitExtractConstructorTypeArguments( |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { | 388 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { |
| 380 OS::Print(" if "); | 389 OS::Print(" if "); |
| 381 instr->value()->Accept(this); | 390 instr->value()->Accept(this); |
| 382 OS::Print(" goto(%d, %d)", | 391 OS::Print(" goto(%d, %d)", |
| 383 reverse_index(instr->true_successor()->postorder_number()), | 392 reverse_index(instr->true_successor()->postorder_number()), |
| 384 reverse_index(instr->false_successor()->postorder_number())); | 393 reverse_index(instr->false_successor()->postorder_number())); |
| 385 } | 394 } |
| 386 | 395 |
| 387 | 396 |
| 388 } // namespace dart | 397 } // namespace dart |
| OLD | NEW |