| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 '../common_elements.dart' show CommonElements; | 5 import '../common_elements.dart' show CommonElements; |
| 6 import '../constants/constant_system.dart'; | 6 import '../constants/constant_system.dart'; |
| 7 import '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 import '../elements/elements.dart' show Name; | |
| 9 import '../elements/entities.dart'; | 8 import '../elements/entities.dart'; |
| 9 import '../elements/names.dart'; |
| 10 import '../options.dart'; | 10 import '../options.dart'; |
| 11 import '../types/types.dart'; | 11 import '../types/types.dart'; |
| 12 import '../universe/call_structure.dart'; | 12 import '../universe/call_structure.dart'; |
| 13 import '../universe/selector.dart'; | 13 import '../universe/selector.dart'; |
| 14 import '../world.dart' show ClosedWorld; | 14 import '../world.dart' show ClosedWorld; |
| 15 import 'nodes.dart'; | 15 import 'nodes.dart'; |
| 16 import 'types.dart'; | 16 import 'types.dart'; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * [InvokeDynamicSpecializer] and its subclasses are helpers to | 19 * [InvokeDynamicSpecializer] and its subclasses are helpers to |
| (...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 ClosedWorld closedWorld) { | 1136 ClosedWorld closedWorld) { |
| 1137 HInstruction receiver = instruction.getDartReceiver(closedWorld); | 1137 HInstruction receiver = instruction.getDartReceiver(closedWorld); |
| 1138 if (receiver.isNumberOrNull(closedWorld)) { | 1138 if (receiver.isNumberOrNull(closedWorld)) { |
| 1139 // Even if there is no builtin equivalent instruction, we know the | 1139 // Even if there is no builtin equivalent instruction, we know the |
| 1140 // instruction does not have any side effect, and that it can be GVN'ed. | 1140 // instruction does not have any side effect, and that it can be GVN'ed. |
| 1141 clearAllSideEffects(instruction); | 1141 clearAllSideEffects(instruction); |
| 1142 } | 1142 } |
| 1143 return null; | 1143 return null; |
| 1144 } | 1144 } |
| 1145 } | 1145 } |
| OLD | NEW |