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

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

Issue 10398046: Move code for accessing captured variables into the IL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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_compiler_x64.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 9
10 namespace dart { 10 namespace dart {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 259 }
260 260
261 261
262 void FlowGraphPrinter::VisitNativeLoadField(NativeLoadFieldComp* comp) { 262 void FlowGraphPrinter::VisitNativeLoadField(NativeLoadFieldComp* comp) {
263 OS::Print("NativeLoadField("); 263 OS::Print("NativeLoadField(");
264 comp->value()->Accept(this); 264 comp->value()->Accept(this);
265 OS::Print(", %d)", comp->offset_in_bytes()); 265 OS::Print(", %d)", comp->offset_in_bytes());
266 } 266 }
267 267
268 268
269 void FlowGraphPrinter::VisitNativeStoreField(NativeStoreFieldComp* comp) {
270 OS::Print("NativeStoreField(");
271 comp->dest()->Accept(this);
272 OS::Print(", %d, ", comp->offset_in_bytes());
273 comp->value()->Accept(this);
274 OS::Print(")");
275 }
276
277
269 void FlowGraphPrinter::VisitInstantiateTypeArguments( 278 void FlowGraphPrinter::VisitInstantiateTypeArguments(
270 InstantiateTypeArgumentsComp* comp) { 279 InstantiateTypeArgumentsComp* comp) {
271 const String& type_args = String::Handle(comp->type_arguments().Name()); 280 const String& type_args = String::Handle(comp->type_arguments().Name());
272 OS::Print("InstantiateTypeArguments(%s, ", type_args.ToCString()); 281 OS::Print("InstantiateTypeArguments(%s, ", type_args.ToCString());
273 comp->instantiator()->Accept(this); 282 comp->instantiator()->Accept(this);
274 OS::Print(")"); 283 OS::Print(")");
275 } 284 }
276 285
277 286
278 void FlowGraphPrinter::VisitExtractConstructorTypeArguments( 287 void FlowGraphPrinter::VisitExtractConstructorTypeArguments(
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) { 388 void FlowGraphPrinter::VisitBranch(BranchInstr* instr) {
380 OS::Print(" if "); 389 OS::Print(" if ");
381 instr->value()->Accept(this); 390 instr->value()->Accept(this);
382 OS::Print(" goto(%d, %d)", 391 OS::Print(" goto(%d, %d)",
383 reverse_index(instr->true_successor()->postorder_number()), 392 reverse_index(instr->true_successor()->postorder_number()),
384 reverse_index(instr->false_successor()->postorder_number())); 393 reverse_index(instr->false_successor()->postorder_number()));
385 } 394 }
386 395
387 396
388 } // namespace dart 397 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698