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

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

Issue 18801007: Support type parameters and classes as expression in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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_optimizer.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 #include "vm/parser.h" 9 #include "vm/parser.h"
10 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 } 547 }
548 548
549 549
550 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const { 550 void StoreVMFieldInstr::PrintOperandsTo(BufferFormatter* f) const {
551 dest()->PrintTo(f); 551 dest()->PrintTo(f);
552 f->Print(", %"Pd", ", offset_in_bytes()); 552 f->Print(", %"Pd", ", offset_in_bytes());
553 value()->PrintTo(f); 553 value()->PrintTo(f);
554 } 554 }
555 555
556 556
557 void InstantiateTypeInstr::PrintOperandsTo(BufferFormatter* f) const {
558 const String& type_name = String::Handle(type().Name());
559 f->Print("%s, ", type_name.ToCString());
560 instantiator()->PrintTo(f);
561 }
562
563
557 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const { 564 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const {
558 const String& type_args = String::Handle(type_arguments().Name()); 565 const String& type_args = String::Handle(type_arguments().Name());
559 f->Print("%s, ", type_args.ToCString()); 566 f->Print("%s, ", type_args.ToCString());
560 instantiator()->PrintTo(f); 567 instantiator()->PrintTo(f);
561 } 568 }
562 569
563 570
564 void ExtractConstructorTypeArgumentsInstr::PrintOperandsTo( 571 void ExtractConstructorTypeArgumentsInstr::PrintOperandsTo(
565 BufferFormatter* f) const { 572 BufferFormatter* f) const {
566 const String& type_args = String::Handle(type_arguments().Name()); 573 const String& type_args = String::Handle(type_arguments().Name());
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 f->Print(" ["); 954 f->Print(" [");
948 locations_[i].PrintTo(f); 955 locations_[i].PrintTo(f);
949 f->Print("]"); 956 f->Print("]");
950 } 957 }
951 } 958 }
952 f->Print(" }"); 959 f->Print(" }");
953 if (outer_ != NULL) outer_->PrintTo(f); 960 if (outer_ != NULL) outer_->PrintTo(f);
954 } 961 }
955 962
956 } // namespace dart 963 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698