| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 abstract class OptimizationPhase { | 7 abstract class OptimizationPhase { |
| 8 String get name; | 8 String get name; |
| 9 void visitGraph(HGraph graph); | 9 void visitGraph(HGraph graph); |
| 10 } | 10 } |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 if (other != value) { | 898 if (other != value) { |
| 899 node.block.addBefore(node, other); | 899 node.block.addBefore(node, other); |
| 900 value = other; | 900 value = other; |
| 901 } | 901 } |
| 902 } | 902 } |
| 903 return new HFieldSet(field, receiver, value); | 903 return new HFieldSet(field, receiver, value); |
| 904 } | 904 } |
| 905 | 905 |
| 906 HInstruction visitInvokeStatic(HInvokeStatic node) { | 906 HInstruction visitInvokeStatic(HInvokeStatic node) { |
| 907 propagateConstantValueToUses(node); | 907 propagateConstantValueToUses(node); |
| 908 if (node.element == backend.getCheckConcurrentModificationError()) { | 908 if (node.element == backend.helpers.checkConcurrentModificationError) { |
| 909 if (node.inputs.length == 2) { | 909 if (node.inputs.length == 2) { |
| 910 HInstruction firstArgument = node.inputs[0]; | 910 HInstruction firstArgument = node.inputs[0]; |
| 911 if (firstArgument is HConstant) { | 911 if (firstArgument is HConstant) { |
| 912 HConstant constant = firstArgument; | 912 HConstant constant = firstArgument; |
| 913 if (constant.constant.isTrue) return constant; | 913 if (constant.constant.isTrue) return constant; |
| 914 } | 914 } |
| 915 } | 915 } |
| 916 } | 916 } |
| 917 return node; | 917 return node; |
| 918 } | 918 } |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2390 | 2390 |
| 2391 keyedValues.forEach((receiver, values) { | 2391 keyedValues.forEach((receiver, values) { |
| 2392 result.keyedValues[receiver] = | 2392 result.keyedValues[receiver] = |
| 2393 new Map<HInstruction, HInstruction>.from(values); | 2393 new Map<HInstruction, HInstruction>.from(values); |
| 2394 }); | 2394 }); |
| 2395 | 2395 |
| 2396 result.nonEscapingReceivers.addAll(nonEscapingReceivers); | 2396 result.nonEscapingReceivers.addAll(nonEscapingReceivers); |
| 2397 return result; | 2397 return result; |
| 2398 } | 2398 } |
| 2399 } | 2399 } |
| OLD | NEW |