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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart

Issue 918653002: Propagate pseudo-constants expressions separately in tree rewriter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment, bugfix, and test case Created 5 years, 10 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart2js.ir_tracer; 5 library dart2js.ir_tracer;
6 6
7 import 'dart:async' show EventSink; 7 import 'dart:async' show EventSink;
8 8
9 import 'cps_ir_nodes.dart' as cps_ir hide Function; 9 import 'cps_ir_nodes.dart' as cps_ir hide Function;
10 import '../tracer.dart'; 10 import '../tracer.dart';
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 } 459 }
460 460
461 visitInvokeContinuation(cps_ir.InvokeContinuation exp) { 461 visitInvokeContinuation(cps_ir.InvokeContinuation exp) {
462 addEdgeToContinuation(exp.continuation); 462 addEdgeToContinuation(exp.continuation);
463 } 463 }
464 464
465 visitSetMutableVariable(cps_ir.SetMutableVariable exp) { 465 visitSetMutableVariable(cps_ir.SetMutableVariable exp) {
466 visit(exp.body); 466 visit(exp.body);
467 } 467 }
468 468
469 visitLetMutable(cps_ir.LetMutable exp) {
470 visit(exp.body);
471 }
472
469 visitSetField(cps_ir.SetField exp) { 473 visitSetField(cps_ir.SetField exp) {
470 visit(exp.body); 474 visit(exp.body);
471 } 475 }
472 476
473 visitDeclareFunction(cps_ir.DeclareFunction exp) { 477 visitDeclareFunction(cps_ir.DeclareFunction exp) {
474 visit(exp.body); 478 visit(exp.body);
475 } 479 }
476 480
477 visitBranch(cps_ir.Branch exp) { 481 visitBranch(cps_ir.Branch exp) {
478 cps_ir.Continuation trueTarget = exp.trueContinuation.definition; 482 cps_ir.Continuation trueTarget = exp.trueContinuation.definition;
479 if (!trueTarget.isReturnContinuation) { 483 if (!trueTarget.isReturnContinuation) {
480 current_block.addEdgeTo(getBlock(trueTarget)); 484 current_block.addEdgeTo(getBlock(trueTarget));
481 } 485 }
482 cps_ir.Continuation falseTarget = exp.falseContinuation.definition; 486 cps_ir.Continuation falseTarget = exp.falseContinuation.definition;
483 if (!falseTarget.isReturnContinuation) { 487 if (!falseTarget.isReturnContinuation) {
484 current_block.addEdgeTo(getBlock(falseTarget)); 488 current_block.addEdgeTo(getBlock(falseTarget));
485 } 489 }
486 } 490 }
487 491
488 visitContinuation(cps_ir.Continuation c) { 492 visitContinuation(cps_ir.Continuation c) {
489 var old_node = current_block; 493 var old_node = current_block;
490 current_block = getBlock(c); 494 current_block = getBlock(c);
491 visit(c.body); 495 visit(c.body);
492 current_block = old_node; 496 current_block = old_node;
493 } 497 }
494 } 498 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698