Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 9456033: Added LoadLiteralComp, StrictCompareComp; implement InstanceCallNode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698