| 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 "../../../lib/compiler/implementation/ssa/ssa.dart"; | 5 import "../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart"; |
| 6 import "../../../lib/compiler/implementation/dart2jslib.dart"; | 6 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"; |
| 7 | 7 |
| 8 Value instructionValue = new InstructionValue(new HReturn(null)); | 8 Value instructionValue = new InstructionValue(new HReturn(null)); |
| 9 Value lengthValue = new LengthValue(new HReturn(null)); | 9 Value lengthValue = new LengthValue(new HReturn(null)); |
| 10 | 10 |
| 11 Range createSingleRange(Value value) => new Range(value, value); | 11 Range createSingleRange(Value value) => new Range(value, value); |
| 12 Range createSingleIntRange(int value) => createSingleRange(new IntValue(value)); | 12 Range createSingleIntRange(int value) => createSingleRange(new IntValue(value)); |
| 13 Range createSingleInstructionRange() => createSingleRange(instructionValue); | 13 Range createSingleInstructionRange() => createSingleRange(instructionValue); |
| 14 Range createSingleLengthRange() => createSingleRange(lengthValue); | 14 Range createSingleLengthRange() => createSingleRange(lengthValue); |
| 15 Range createIntRange(int lower, int upper) { | 15 Range createIntRange(int lower, int upper) { |
| 16 return new Range(new IntValue(lower), new IntValue(upper)); | 16 return new Range(new IntValue(lower), new IntValue(upper)); |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 checkSubRange(_0_instruction, _0_length, null, _0_instruction.upper); | 361 checkSubRange(_0_instruction, _0_length, null, _0_instruction.upper); |
| 362 checkSubRange(_0_instruction, _0_instruction, null, _0_instruction.upper); | 362 checkSubRange(_0_instruction, _0_instruction, null, _0_instruction.upper); |
| 363 } | 363 } |
| 364 | 364 |
| 365 main() { | 365 main() { |
| 366 HInstruction.idCounter = 0; | 366 HInstruction.idCounter = 0; |
| 367 testAnd(); | 367 testAnd(); |
| 368 testSub(); | 368 testSub(); |
| 369 testNegate(); | 369 testNegate(); |
| 370 } | 370 } |
| OLD | NEW |