| 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 f->Print("%s, ", Token::Str(kind())); | 388 f->Print("%s, ", Token::Str(kind())); |
| 389 left()->PrintTo(f); | 389 left()->PrintTo(f); |
| 390 f->Print(", "); | 390 f->Print(", "); |
| 391 right()->PrintTo(f); | 391 right()->PrintTo(f); |
| 392 if (needs_number_check()) { | 392 if (needs_number_check()) { |
| 393 f->Print(", with number check"); | 393 f->Print(", with number check"); |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 | 396 |
| 397 | 397 |
| 398 void TestCidsInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 399 left()->PrintTo(f); |
| 400 f->Print(" %s [", Token::Str(kind())); |
| 401 for (intptr_t i = 0; i < cid_results().length(); i += 2) { |
| 402 f->Print("0x%" Px ":%s ", |
| 403 cid_results()[i], cid_results()[i + 1] == 0 ? "false" : "true"); |
| 404 } |
| 405 f->Print("] "); |
| 406 } |
| 407 |
| 408 |
| 398 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const { | 409 void EqualityCompareInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 399 left()->PrintTo(f); | 410 left()->PrintTo(f); |
| 400 f->Print(" %s ", Token::Str(kind())); | 411 f->Print(" %s ", Token::Str(kind())); |
| 401 right()->PrintTo(f); | 412 right()->PrintTo(f); |
| 402 } | 413 } |
| 403 | 414 |
| 404 | 415 |
| 405 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { | 416 void StaticCallInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 406 f->Print("%s ", String::Handle(function().name()).ToCString()); | 417 f->Print("%s ", String::Handle(function().name()).ToCString()); |
| 407 for (intptr_t i = 0; i < ArgumentCount(); ++i) { | 418 for (intptr_t i = 0; i < ArgumentCount(); ++i) { |
| (...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 f->Print(" ["); | 1062 f->Print(" ["); |
| 1052 locations_[i].PrintTo(f); | 1063 locations_[i].PrintTo(f); |
| 1053 f->Print("]"); | 1064 f->Print("]"); |
| 1054 } | 1065 } |
| 1055 } | 1066 } |
| 1056 f->Print(" }"); | 1067 f->Print(" }"); |
| 1057 if (outer_ != NULL) outer_->PrintTo(f); | 1068 if (outer_ != NULL) outer_->PrintTo(f); |
| 1058 } | 1069 } |
| 1059 | 1070 |
| 1060 } // namespace dart | 1071 } // namespace dart |
| OLD | NEW |