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

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

Issue 10536086: Add stack check in loops so that loops can be stopped. Optimize relational operations. (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
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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 String::Handle(type().Name()).ToCString()); 216 String::Handle(type().Name()).ToCString());
217 f->Print(" (instantiator:"); 217 f->Print(" (instantiator:");
218 instantiator()->PrintTo(f); 218 instantiator()->PrintTo(f);
219 f->Print(")"); 219 f->Print(")");
220 f->Print(" (type-arg:"); 220 f->Print(" (type-arg:");
221 instantiator_type_arguments()->PrintTo(f); 221 instantiator_type_arguments()->PrintTo(f);
222 f->Print(")"); 222 f->Print(")");
223 } 223 }
224 224
225 225
226 void RelationalOpComp::PrintOperandsTo(BufferFormatter* f) const {
227 f->Print("%s, ", Token::Str(kind()));
228 left()->PrintTo(f);
229 f->Print(", ");
230 right()->PrintTo(f);
231 }
232
233
226 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const { 234 void AllocateObjectComp::PrintOperandsTo(BufferFormatter* f) const {
227 f->Print("%s", Class::Handle(constructor().owner()).ToCString()); 235 f->Print("%s", Class::Handle(constructor().owner()).ToCString());
228 for (intptr_t i = 0; i < arguments().length(); i++) { 236 for (intptr_t i = 0; i < arguments().length(); i++) {
229 f->Print(", "); 237 f->Print(", ");
230 arguments()[i]->PrintTo(f); 238 arguments()[i]->PrintTo(f);
231 } 239 }
232 } 240 }
233 241
234 242
235 void AllocateObjectWithBoundsCheckComp::PrintOperandsTo( 243 void AllocateObjectWithBoundsCheckComp::PrintOperandsTo(
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 f->Print("_ %s ", DebugName()); 562 f->Print("_ %s ", DebugName());
555 f->Print("if "); 563 f->Print("if ");
556 value()->PrintTo(f); 564 value()->PrintTo(f);
557 f->Print(" goto (B%d, B%d)", 565 f->Print(" goto (B%d, B%d)",
558 true_successor()->block_id(), 566 true_successor()->block_id(),
559 false_successor()->block_id()); 567 false_successor()->block_id());
560 } 568 }
561 569
562 570
563 } // namespace dart 571 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698