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

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

Issue 1185633003: cps-ir: Support foreign code. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update test expectations. Created 5 years, 6 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
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 library tree_ir.optimization.pull_into_initializers; 5 library tree_ir.optimization.pull_into_initializers;
6 6
7 import 'optimization.dart' show Pass; 7 import 'optimization.dart' show Pass;
8 import '../tree_ir_nodes.dart'; 8 import '../tree_ir_nodes.dart';
9 9
10 /// Pulls assignment expressions to the top of the function body so they can be 10 /// Pulls assignment expressions to the top of the function body so they can be
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 Expression visitCreateInvocationMirror(CreateInvocationMirror node) { 324 Expression visitCreateInvocationMirror(CreateInvocationMirror node) {
325 rewriteList(node.arguments); 325 rewriteList(node.arguments);
326 return node; 326 return node;
327 } 327 }
328 328
329 Expression visitApplyBuiltinOperator(ApplyBuiltinOperator node) { 329 Expression visitApplyBuiltinOperator(ApplyBuiltinOperator node) {
330 rewriteList(node.arguments); 330 rewriteList(node.arguments);
331 return node; 331 return node;
332 } 332 }
333
334 @override
335 Expression visitForeignExpression(ForeignExpression node) {
336 rewriteList(node.arguments);
337 seenImpure = node.nativeBehavior.sideEffects.hasSideEffects();
338 return node;
339 }
333 } 340 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/task.dart ('k') | pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698