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

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

Issue 1130813002: dart2js cps: Handle error cases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Whitelist unused API due to semantic visitor being WIP Created 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import 'optimization.dart' show Pass; 5 import 'optimization.dart' show Pass;
6 import '../tree_ir_nodes.dart'; 6 import '../tree_ir_nodes.dart';
7 7
8 /// Pulls assignment expressions to the top of the function body so they can be 8 /// Pulls assignment expressions to the top of the function body so they can be
9 /// translated into declaration-site variable initializaters. 9 /// translated into declaration-site variable initializaters.
10 /// 10 ///
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 } 307 }
308 308
309 Expression visitNot(Not node) { 309 Expression visitNot(Not node) {
310 node.operand = visitExpression(node.operand); 310 node.operand = visitExpression(node.operand);
311 return node; 311 return node;
312 } 312 }
313 313
314 Expression visitVariableUse(VariableUse node) { 314 Expression visitVariableUse(VariableUse node) {
315 return node; 315 return node;
316 } 316 }
317
318 Expression visitCreateInvocationMirror(CreateInvocationMirror node) {
319 rewriteList(node.arguments);
320 return node;
321 }
317 } 322 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698