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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 } | 381 } |
382 | 382 |
383 | 383 |
384 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { | 384 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { |
385 f->Print("%s, ", Token::Str(op_kind())); | 385 f->Print("%s, ", Token::Str(op_kind())); |
386 value()->PrintTo(f); | 386 value()->PrintTo(f); |
387 } | 387 } |
388 | 388 |
389 | 389 |
390 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { | 390 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { |
391 ASSERT(from() == kDouble || from() == kSmi); | 391 ASSERT(from() == kDoubleCid || from() == kSmiCid); |
392 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double"); | 392 f->Print("%s ", from() == kDoubleCid ? "double2double" : "smi2double"); |
393 value()->PrintTo(f); | 393 value()->PrintTo(f); |
394 } | 394 } |
395 | 395 |
396 | 396 |
397 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { | 397 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { |
398 f->Print("%2d: [graph]", block_id()); | 398 f->Print("%2d: [graph]", block_id()); |
399 if (start_env_ != NULL) { | 399 if (start_env_ != NULL) { |
400 start_env_->PrintTo(f); | 400 start_env_->PrintTo(f); |
401 } | 401 } |
402 } | 402 } |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 !locations_[i].IsInvalid()) { | 780 !locations_[i].IsInvalid()) { |
781 f->Print(" ["); | 781 f->Print(" ["); |
782 locations_[i].PrintTo(f); | 782 locations_[i].PrintTo(f); |
783 f->Print("]"); | 783 f->Print("]"); |
784 } | 784 } |
785 } | 785 } |
786 f->Print(" }"); | 786 f->Print(" }"); |
787 } | 787 } |
788 | 788 |
789 } // namespace dart | 789 } // namespace dart |
OLD | NEW |