| 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/object.h" | 7 #include "vm/object.h" |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 #include "vm/scopes.h" | 9 #include "vm/scopes.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 void InstanceCallComp::Print() const { | 21 void InstanceCallComp::Print() const { |
| 22 OS::Print("InstanceCall(%s", name_); | 22 OS::Print("InstanceCall(%s", name_); |
| 23 for (intptr_t i = 0; i < arguments_->length(); ++i) { | 23 for (intptr_t i = 0; i < arguments_->length(); ++i) { |
| 24 OS::Print(", "); | 24 OS::Print(", "); |
| 25 (*arguments_)[i]->Print(); | 25 (*arguments_)[i]->Print(); |
| 26 } | 26 } |
| 27 OS::Print(")"); | 27 OS::Print(")"); |
| 28 } | 28 } |
| 29 | 29 |
| 30 | 30 |
| 31 void StrictCompareComp::Print() const { |
| 32 OS::Print("StrictCompare(%s, ", Token::Str(kind_)); |
| 33 left_->Print(); |
| 34 OS::Print(", "); |
| 35 right_->Print(); |
| 36 OS::Print(")"); |
| 37 } |
| 38 |
| 39 |
| 40 |
| 31 void StaticCallComp::Print() const { | 41 void StaticCallComp::Print() const { |
| 32 OS::Print("StaticCall(%s", String::Handle(function_.name()).ToCString()); | 42 OS::Print("StaticCall(%s", String::Handle(function_.name()).ToCString()); |
| 33 for (intptr_t i = 0; i < arguments_->length(); ++i) { | 43 for (intptr_t i = 0; i < arguments_->length(); ++i) { |
| 34 OS::Print(", "); | 44 OS::Print(", "); |
| 35 (*arguments_)[i]->Print(); | 45 (*arguments_)[i]->Print(); |
| 36 } | 46 } |
| 37 OS::Print(")"); | 47 OS::Print(")"); |
| 38 } | 48 } |
| 39 | 49 |
| 40 | 50 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 159 |
| 150 void TargetEntryInstr::Postorder( | 160 void TargetEntryInstr::Postorder( |
| 151 GrowableArray<BlockEntryInstr*>* block_entries) { | 161 GrowableArray<BlockEntryInstr*>* block_entries) { |
| 152 flip_mark(); | 162 flip_mark(); |
| 153 if (successor_->mark() != mark()) successor_->Postorder(block_entries); | 163 if (successor_->mark() != mark()) successor_->Postorder(block_entries); |
| 154 block_entries->Add(this); | 164 block_entries->Add(this); |
| 155 } | 165 } |
| 156 | 166 |
| 157 | 167 |
| 158 } // namespace dart | 168 } // namespace dart |
| OLD | NEW |