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

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

Issue 10440053: Moved InstantiateTypeArgumentsComp and InstanceOfComp. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.h » ('j') | 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/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 9
10 namespace dart { 10 namespace dart {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 f->Print("%s, ", String::Handle(field().name()).ToCString()); 187 f->Print("%s, ", String::Handle(field().name()).ToCString());
188 value()->PrintTo(f); 188 value()->PrintTo(f);
189 } 189 }
190 190
191 191
192 void InstanceOfComp::PrintOperandsTo(BufferFormatter* f) const { 192 void InstanceOfComp::PrintOperandsTo(BufferFormatter* f) const {
193 value()->PrintTo(f); 193 value()->PrintTo(f);
194 f->Print(" %s %s", 194 f->Print(" %s %s",
195 negate_result() ? "ISNOT" : "IS", 195 negate_result() ? "ISNOT" : "IS",
196 String::Handle(type().Name()).ToCString()); 196 String::Handle(type().Name()).ToCString());
197 if (instantiator() != NULL) { 197 f->Print(" (instantiator:");
198 f->Print(" (instantiator:"); 198 instantiator()->PrintTo(f);
199 instantiator()->PrintTo(f); 199 f->Print(")");
200 f->Print(")"); 200 f->Print(" (type-arg:");
201 } 201 instantiator_type_arguments()->PrintTo(f);
202 if (type_arguments() != NULL) { 202 f->Print(")");
203 f->Print(" (type-arg:");
204 type_arguments()->PrintTo(f);
205 }
206 } 203 }
207 204
208 205
209 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const { 206 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const {
210 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); 207 f->Print("%s", Class::Handle(constructor().owner()).ToCString());
211 for (intptr_t i = 0; i < arguments().length(); i++) { 208 for (intptr_t i = 0; i < arguments().length(); i++) {
212 f->Print(", "); 209 f->Print(", ");
213 arguments()[i]->PrintTo(f); 210 arguments()[i]->PrintTo(f);
214 } 211 }
215 } 212 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 f->Print(" %s ", DebugName()); 345 f->Print(" %s ", DebugName());
349 f->Print("if "); 346 f->Print("if ");
350 value()->PrintTo(f); 347 value()->PrintTo(f);
351 f->Print(" goto (%d, %d)", 348 f->Print(" goto (%d, %d)",
352 true_successor()->block_id(), 349 true_successor()->block_id(),
353 false_successor()->block_id()); 350 false_successor()->block_id());
354 } 351 }
355 352
356 353
357 } // namespace dart 354 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698