| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 f->Print(")"); | 348 f->Print(")"); |
| 349 } | 349 } |
| 350 | 350 |
| 351 | 351 |
| 352 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { | 352 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 353 value()->PrintTo(f); | 353 value()->PrintTo(f); |
| 354 } | 354 } |
| 355 | 355 |
| 356 | 356 |
| 357 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 357 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 358 f->Print("function="); |
| 359 InputAt(0)->PrintTo(f); |
| 358 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 360 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 359 if (i > 0) f->Print(", "); | 361 f->Print(", "); |
| 360 PushArgumentAt(i)->value()->PrintTo(f); | 362 PushArgumentAt(i)->value()->PrintTo(f); |
| 361 } | 363 } |
| 362 } | 364 } |
| 363 | 365 |
| 364 | 366 |
| 365 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 367 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 366 f->Print("%s", function_name().ToCString()); | 368 f->Print("%s", function_name().ToCString()); |
| 367 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 369 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| 368 f->Print(", "); | 370 f->Print(", "); |
| 369 PushArgumentAt(i)->value()->PrintTo(f); | 371 PushArgumentAt(i)->value()->PrintTo(f); |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 } | 1071 } |
| 1070 | 1072 |
| 1071 const char* Environment::ToCString() const { | 1073 const char* Environment::ToCString() const { |
| 1072 char buffer[1024]; | 1074 char buffer[1024]; |
| 1073 BufferFormatter bf(buffer, 1024); | 1075 BufferFormatter bf(buffer, 1024); |
| 1074 PrintTo(&bf); | 1076 PrintTo(&bf); |
| 1075 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); | 1077 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); |
| 1076 } | 1078 } |
| 1077 | 1079 |
| 1078 } // namespace dart | 1080 } // namespace dart |
| OLD | NEW |