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

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

Issue 346823003: VM: Optimized context allocation on all platforms. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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_type_propagator.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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 f->Print("%s, ", type_args.ToCString()); 568 f->Print("%s, ", type_args.ToCString());
569 instantiator()->PrintTo(f); 569 instantiator()->PrintTo(f);
570 } 570 }
571 571
572 572
573 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const { 573 void AllocateContextInstr::PrintOperandsTo(BufferFormatter* f) const {
574 f->Print("%" Pd "", num_context_variables()); 574 f->Print("%" Pd "", num_context_variables());
575 } 575 }
576 576
577 577
578 void AllocateUninitializedContextInstr::PrintOperandsTo(
579 BufferFormatter* f) const {
580 f->Print("%" Pd "", num_context_variables());
581 }
582
583
578 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { 584 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const {
579 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind())); 585 f->Print("'%s', ", MathUnaryInstr::KindToCString(kind()));
580 value()->PrintTo(f); 586 value()->PrintTo(f);
581 } 587 }
582 588
583 589
584 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { 590 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const {
585 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); 591 f->Print("'%s', ", MergedMathInstr::KindToCString(kind()));
586 Definition::PrintOperandsTo(f); 592 Definition::PrintOperandsTo(f);
587 } 593 }
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 } 1093 }
1088 1094
1089 const char* Environment::ToCString() const { 1095 const char* Environment::ToCString() const {
1090 char buffer[1024]; 1096 char buffer[1024];
1091 BufferFormatter bf(buffer, 1024); 1097 BufferFormatter bf(buffer, 1024);
1092 PrintTo(&bf); 1098 PrintTo(&bf);
1093 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1099 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1094 } 1100 }
1095 1101
1096 } // namespace dart 1102 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698