| 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 import '../constant_system_dart.dart'; | 5 import '../constant_system_dart.dart'; |
| 6 import '../constants/constant_system.dart'; | 6 import '../constants/constant_system.dart'; |
| 7 import '../constants/values.dart'; | 7 import '../constants/values.dart'; |
| 8 import '../js_backend/js_backend.dart'; | |
| 9 import '../js_backend/backend_helpers.dart'; | 8 import '../js_backend/backend_helpers.dart'; |
| 10 import '../world.dart' show ClosedWorld; | 9 import '../world.dart' show ClosedWorld; |
| 11 import 'nodes.dart'; | 10 import 'nodes.dart'; |
| 12 import 'optimize.dart'; | 11 import 'optimize.dart'; |
| 13 | 12 |
| 14 class ValueRangeInfo { | 13 class ValueRangeInfo { |
| 15 final ConstantSystem constantSystem; | 14 final ConstantSystem constantSystem; |
| 16 | 15 |
| 17 IntValue intZero; | 16 IntValue intZero; |
| 18 IntValue intOne; | 17 IntValue intOne; |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 } | 1105 } |
| 1107 | 1106 |
| 1108 Range handleBinaryOperation(HBinaryArithmetic instruction) { | 1107 Range handleBinaryOperation(HBinaryArithmetic instruction) { |
| 1109 Range leftRange = visit(instruction.left); | 1108 Range leftRange = visit(instruction.left); |
| 1110 Range rightRange = visit(instruction.right); | 1109 Range rightRange = visit(instruction.right); |
| 1111 if (leftRange == null || rightRange == null) return null; | 1110 if (leftRange == null || rightRange == null) return null; |
| 1112 BinaryOperation operation = instruction.operation(info.constantSystem); | 1111 BinaryOperation operation = instruction.operation(info.constantSystem); |
| 1113 return operation.apply(leftRange, rightRange); | 1112 return operation.apply(leftRange, rightRange); |
| 1114 } | 1113 } |
| 1115 } | 1114 } |
| OLD | NEW |