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

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

Issue 265443002: VM: Explicitly load function and context before calling a closure. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 f->Print(")"); 348 f->Print(")");
349 } 349 }
350 350
351 351
352 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const { 352 void AssertBooleanInstr::PrintOperandsTo(BufferFormatter* f) const {
353 value()->PrintTo(f); 353 value()->PrintTo(f);
354 } 354 }
355 355
356 356
357 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const { 357 void ClosureCallInstr::PrintOperandsTo(BufferFormatter* f) const {
358 f->Print("function=");
359 InputAt(0)->PrintTo(f);
358 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 360 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
359 if (i > 0) f->Print(", "); 361 f->Print(", ");
360 PushArgumentAt(i)->value()->PrintTo(f); 362 PushArgumentAt(i)->value()->PrintTo(f);
361 } 363 }
362 } 364 }
363 365
364 366
365 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const { 367 void InstanceCallInstr::PrintOperandsTo(BufferFormatter* f) const {
366 f->Print("%s", function_name().ToCString()); 368 f->Print("%s", function_name().ToCString());
367 for (intptr_t i = 0; i < ArgumentCount(); ++i) { 369 for (intptr_t i = 0; i < ArgumentCount(); ++i) {
368 f->Print(", "); 370 f->Print(", ");
369 PushArgumentAt(i)->value()->PrintTo(f); 371 PushArgumentAt(i)->value()->PrintTo(f);
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 } 1071 }
1070 1072
1071 const char* Environment::ToCString() const { 1073 const char* Environment::ToCString() const {
1072 char buffer[1024]; 1074 char buffer[1024];
1073 BufferFormatter bf(buffer, 1024); 1075 BufferFormatter bf(buffer, 1024);
1074 PrintTo(&bf); 1076 PrintTo(&bf);
1075 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer); 1077 return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
1076 } 1078 }
1077 1079
1078 } // namespace dart 1080 } // 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