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

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

Issue 1396663002: Revert "Use interceptors for is-checks (version 2)." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: 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
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 /// Where a variable has been assigned. 10 /// Where a variable has been assigned.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 ++impureCounter; 308 ++impureCounter;
309 return node; 309 return node;
310 } 310 }
311 311
312 Expression visitSetStatic(SetStatic node) { 312 Expression visitSetStatic(SetStatic node) {
313 super.visitSetStatic(node); 313 super.visitSetStatic(node);
314 ++impureCounter; 314 ++impureCounter;
315 return node; 315 return node;
316 } 316 }
317 317
318 Expression visitGetTypeTestProperty(GetTypeTestProperty node) {
319 super.visitGetTypeTestProperty(node);
320 return node;
321 }
322
323 Expression visitGetLength(GetLength node) { 318 Expression visitGetLength(GetLength node) {
324 super.visitGetLength(node); 319 super.visitGetLength(node);
325 ++impureCounter; 320 ++impureCounter;
326 return node; 321 return node;
327 } 322 }
328 323
329 Expression visitGetIndex(GetIndex node) { 324 Expression visitGetIndex(GetIndex node) {
330 super.visitGetIndex(node); 325 super.visitGetIndex(node);
331 ++impureCounter; 326 ++impureCounter;
332 return node; 327 return node;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 360
366 @override 361 @override
367 Expression visitForeignExpression(ForeignExpression node) { 362 Expression visitForeignExpression(ForeignExpression node) {
368 rewriteList(node.arguments); 363 rewriteList(node.arguments);
369 if (node.nativeBehavior.sideEffects.hasSideEffects()) { 364 if (node.nativeBehavior.sideEffects.hasSideEffects()) {
370 ++impureCounter; 365 ++impureCounter;
371 } 366 }
372 return node; 367 return node;
373 } 368 }
374 } 369 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698