OLD | NEW |
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 Loading... |
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 |
318 Expression visitGetLength(GetLength node) { | 323 Expression visitGetLength(GetLength node) { |
319 super.visitGetLength(node); | 324 super.visitGetLength(node); |
320 ++impureCounter; | 325 ++impureCounter; |
321 return node; | 326 return node; |
322 } | 327 } |
323 | 328 |
324 Expression visitGetIndex(GetIndex node) { | 329 Expression visitGetIndex(GetIndex node) { |
325 super.visitGetIndex(node); | 330 super.visitGetIndex(node); |
326 ++impureCounter; | 331 ++impureCounter; |
327 return node; | 332 return node; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 365 |
361 @override | 366 @override |
362 Expression visitForeignExpression(ForeignExpression node) { | 367 Expression visitForeignExpression(ForeignExpression node) { |
363 rewriteList(node.arguments); | 368 rewriteList(node.arguments); |
364 if (node.nativeBehavior.sideEffects.hasSideEffects()) { | 369 if (node.nativeBehavior.sideEffects.hasSideEffects()) { |
365 ++impureCounter; | 370 ++impureCounter; |
366 } | 371 } |
367 return node; | 372 return node; |
368 } | 373 } |
369 } | 374 } |
OLD | NEW |