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

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

Issue 1356903002: dart2js CPS: Fix a bug in the generic Tree transformer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | no next file » | 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 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 1425
1426 visitSetStatic(SetStatic node) { 1426 visitSetStatic(SetStatic node) {
1427 node.value = visitExpression(node.value); 1427 node.value = visitExpression(node.value);
1428 return node; 1428 return node;
1429 } 1429 }
1430 1430
1431 visitCreateBox(CreateBox node) => node; 1431 visitCreateBox(CreateBox node) => node;
1432 1432
1433 visitCreateInstance(CreateInstance node) { 1433 visitCreateInstance(CreateInstance node) {
1434 _replaceExpressions(node.arguments); 1434 _replaceExpressions(node.arguments);
1435 _replaceExpressions(node.typeInformation);
1435 return node; 1436 return node;
1436 } 1437 }
1437 1438
1438 visitReifyRuntimeType(ReifyRuntimeType node) { 1439 visitReifyRuntimeType(ReifyRuntimeType node) {
1439 node.value = visitExpression(node.value); 1440 node.value = visitExpression(node.value);
1440 return node; 1441 return node;
1441 } 1442 }
1442 1443
1443 visitReadTypeVariable(ReadTypeVariable node) { 1444 visitReadTypeVariable(ReadTypeVariable node) {
1444 node.target = visitExpression(node.target); 1445 node.target = visitExpression(node.target);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 1538
1538 /// Number of uses of the current fallthrough target. 1539 /// Number of uses of the current fallthrough target.
1539 int get useCount => _stack.last.useCount; 1540 int get useCount => _stack.last.useCount;
1540 1541
1541 /// Indicate that a statement will fall through to the current fallthrough 1542 /// Indicate that a statement will fall through to the current fallthrough
1542 /// target. 1543 /// target.
1543 void use() { 1544 void use() {
1544 ++_stack.last.useCount; 1545 ++_stack.last.useCount;
1545 } 1546 }
1546 } 1547 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698