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

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

Issue 154393003: Implement eager instantiation and canonicalization of type arguments at run (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
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 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 472
473 void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const { 473 void AllocateObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
474 f->Print("%s", cls().ToCString()); 474 f->Print("%s", cls().ToCString());
475 for (intptr_t i = 0; i < ArgumentCount(); i++) { 475 for (intptr_t i = 0; i < ArgumentCount(); i++) {
476 f->Print(", "); 476 f->Print(", ");
477 PushArgumentAt(i)->value()->PrintTo(f); 477 PushArgumentAt(i)->value()->PrintTo(f);
478 } 478 }
479 } 479 }
480 480
481 481
482 void AllocateObjectWithBoundsCheckInstr::PrintOperandsTo(
483 BufferFormatter* f) const {
484 f->Print("%s", Class::Handle(constructor().Owner()).ToCString());
485 for (intptr_t i = 0; i < InputCount(); i++) {
486 f->Print(", ");
487 InputAt(i)->PrintTo(f);
488 }
489 }
490
491
492 void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const { 482 void MaterializeObjectInstr::PrintOperandsTo(BufferFormatter* f) const {
493 f->Print("%s", String::Handle(cls_.Name()).ToCString()); 483 f->Print("%s", String::Handle(cls_.Name()).ToCString());
494 for (intptr_t i = 0; i < InputCount(); i++) { 484 for (intptr_t i = 0; i < InputCount(); i++) {
495 f->Print(", "); 485 f->Print(", ");
496 f->Print("%s: ", String::Handle(fields_[i]->name()).ToCString()); 486 f->Print("%s: ", String::Handle(fields_[i]->name()).ToCString());
497 InputAt(i)->PrintTo(f); 487 InputAt(i)->PrintTo(f);
498 } 488 }
499 } 489 }
500 490
501 491
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 f->Print(" ["); 981 f->Print(" [");
992 locations_[i].PrintTo(f); 982 locations_[i].PrintTo(f);
993 f->Print("]"); 983 f->Print("]");
994 } 984 }
995 } 985 }
996 f->Print(" }"); 986 f->Print(" }");
997 if (outer_ != NULL) outer_->PrintTo(f); 987 if (outer_ != NULL) outer_->PrintTo(f);
998 } 988 }
999 989
1000 } // namespace dart 990 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698