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

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

Issue 2761933002: Add Genericity enum in VM to distinguish how a type is uninstantiated. (Closed)
Patch Set: sync Created 3 years, 9 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
« no previous file with comments | « runtime/vm/flow_graph_inliner.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/flow_graph_range_analysis.h" 7 #include "vm/flow_graph_range_analysis.h"
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 #include "vm/os.h" 9 #include "vm/os.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 expected); 629 expected);
630 } 630 }
631 631
632 f->Print(", immutable=%d", immutable_); 632 f->Print(", immutable=%d", immutable_);
633 } 633 }
634 634
635 635
636 void InstantiateTypeInstr::PrintOperandsTo(BufferFormatter* f) const { 636 void InstantiateTypeInstr::PrintOperandsTo(BufferFormatter* f) const {
637 const String& type_name = String::Handle(type().Name()); 637 const String& type_name = String::Handle(type().Name());
638 f->Print("%s, ", type_name.ToCString()); 638 f->Print("%s, ", type_name.ToCString());
639 instantiator()->PrintTo(f); 639 instantiator_type_arguments()->PrintTo(f);
640 } 640 }
641 641
642 642
643 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const { 643 void InstantiateTypeArgumentsInstr::PrintOperandsTo(BufferFormatter* f) const {
644 const String& type_args = String::Handle(type_arguments().Name()); 644 const String& type_args = String::Handle(type_arguments().Name());
645 f->Print("%s, ", type_args.ToCString()); 645 f->Print("%s, ", type_args.ToCString());
646 instantiator()->PrintTo(f); 646 instantiator_type_arguments()->PrintTo(f);
647 } 647 }
648 648
649 649
650 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { 650 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const {
651 f->Print("%" Pd "", num_context_variables()); 651 f->Print("%" Pd "", num_context_variables());
652 } 652 }
653 653
654 654
655 void AllocateUninitializedContextInstr::PrintOperandsTo( 655 void AllocateUninitializedContextInstr::PrintOperandsTo(
656 BufferFormatter* f) const { 656 BufferFormatter* f) const {
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 } 1316 }
1317 1317
1318 1318
1319 bool FlowGraphPrinter::ShouldPrint(const Function& function) { 1319 bool FlowGraphPrinter::ShouldPrint(const Function& function) {
1320 return false; 1320 return false;
1321 } 1321 }
1322 1322
1323 #endif // !PRODUCT 1323 #endif // !PRODUCT
1324 1324
1325 } // namespace dart 1325 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_inliner.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698