| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 value()->PrintTo(f); | 398 value()->PrintTo(f); |
| 399 } | 399 } |
| 400 } | 400 } |
| 401 | 401 |
| 402 | 402 |
| 403 void AssertAssignableInstr::PrintOperandsTo(BufferFormatter* f) const { | 403 void AssertAssignableInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 404 value()->PrintTo(f); | 404 value()->PrintTo(f); |
| 405 f->Print(", %s, '%s'", | 405 f->Print(", %s, '%s'", |
| 406 dst_type().ToCString(), | 406 dst_type().ToCString(), |
| 407 dst_name().ToCString()); | 407 dst_name().ToCString()); |
| 408 f->Print(" instantiator("); | |
| 409 instantiator()->PrintTo(f); | |
| 410 f->Print(")"); | |
| 411 f->Print(" instantiator_type_arguments("); | 408 f->Print(" instantiator_type_arguments("); |
| 412 instantiator_type_arguments()->PrintTo(f); | 409 instantiator_type_arguments()->PrintTo(f); |
| 413 f->Print(")"); | 410 f->Print(")"); |
| 414 } | 411 } |
| 415 | 412 |
| 416 | 413 |
| 417 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { | 414 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 418 value()->PrintTo(f); | 415 value()->PrintTo(f); |
| 419 } | 416 } |
| 420 | 417 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 f->Print("%s, ", String::Handle(field().name()).ToCString()); | 541 f->Print("%s, ", String::Handle(field().name()).ToCString()); |
| 545 value()->PrintTo(f); | 542 value()->PrintTo(f); |
| 546 } | 543 } |
| 547 | 544 |
| 548 | 545 |
| 549 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { | 546 void InstanceOfInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 550 value()->PrintTo(f); | 547 value()->PrintTo(f); |
| 551 f->Print(" %s %s", | 548 f->Print(" %s %s", |
| 552 negate_result() ? "ISNOT" : "IS", | 549 negate_result() ? "ISNOT" : "IS", |
| 553 String::Handle(type().Name()).ToCString()); | 550 String::Handle(type().Name()).ToCString()); |
| 554 f->Print(" instantiator("); | |
| 555 instantiator()->PrintTo(f); | |
| 556 f->Print(")"); | |
| 557 f->Print(" type-arg("); | 551 f->Print(" type-arg("); |
| 558 instantiator_type_arguments()->PrintTo(f); | 552 instantiator_type_arguments()->PrintTo(f); |
| 559 f->Print(")"); | 553 f->Print(")"); |
| 560 } | 554 } |
| 561 | 555 |
| 562 | 556 |
| 563 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 557 void RelationalOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 564 f->Print("%s, ", Token::Str(kind())); | 558 f->Print("%s, ", Token::Str(kind())); |
| 565 left()->PrintTo(f); | 559 left()->PrintTo(f); |
| 566 f->Print(", "); | 560 f->Print(", "); |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 } | 1211 } |
| 1218 | 1212 |
| 1219 const char* Environment::ToCString() const { | 1213 const char* Environment::ToCString() const { |
| 1220 char buffer[1024]; | 1214 char buffer[1024]; |
| 1221 BufferFormatter bf(buffer, 1024); | 1215 BufferFormatter bf(buffer, 1024); |
| 1222 PrintTo(&bf); | 1216 PrintTo(&bf); |
| 1223 return Thread::Current()->zone()->MakeCopyOfString(buffer); | 1217 return Thread::Current()->zone()->MakeCopyOfString(buffer); |
| 1224 } | 1218 } |
| 1225 | 1219 |
| 1226 } // namespace dart | 1220 } // namespace dart |
| OLD | NEW |