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

Side by Side Diff: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart

Issue 1377323003: dart2js cps: Status updates and minor fixes for host checked mode. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix Created 5 years, 2 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 | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/pkg.status » ('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) 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 tree_ir_nodes; 5 library tree_ir_nodes;
6 6
7 import '../constants/values.dart' as values; 7 import '../constants/values.dart' as values;
8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType; 8 import '../dart_types.dart' show DartType, InterfaceType, TypeVariableType;
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../io/source_information.dart' show SourceInformation; 10 import '../io/source_information.dart' show SourceInformation;
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 return node; 1527 return node;
1528 } 1528 }
1529 1529
1530 visitAwait(Await node) { 1530 visitAwait(Await node) {
1531 node.input = visitExpression(node.input); 1531 node.input = visitExpression(node.input);
1532 return node; 1532 return node;
1533 } 1533 }
1534 1534
1535 visitYield(Yield node) { 1535 visitYield(Yield node) {
1536 node.input = visitExpression(node.input); 1536 node.input = visitExpression(node.input);
1537 node.next = visitStatement(node.next);
1537 return node; 1538 return node;
1538 } 1539 }
1539 } 1540 }
1540 1541
1541 class FallthroughTarget { 1542 class FallthroughTarget {
1542 final Statement target; 1543 final Statement target;
1543 int useCount = 0; 1544 int useCount = 0;
1544 1545
1545 FallthroughTarget(this.target); 1546 FallthroughTarget(this.target);
1546 } 1547 }
(...skipping 19 matching lines...) Expand all
1566 1567
1567 /// Number of uses of the current fallthrough target. 1568 /// Number of uses of the current fallthrough target.
1568 int get useCount => _stack.last.useCount; 1569 int get useCount => _stack.last.useCount;
1569 1570
1570 /// Indicate that a statement will fall through to the current fallthrough 1571 /// Indicate that a statement will fall through to the current fallthrough
1571 /// target. 1572 /// target.
1572 void use() { 1573 void use() {
1573 ++_stack.last.useCount; 1574 ++_stack.last.useCount;
1574 } 1575 }
1575 } 1576 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698