| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Test deoptimization. | 4 // Test deoptimization. |
| 5 | 5 |
| 6 import "package:expect/expect.dart"; | |
| 7 | |
| 8 class SmiCompares { | 6 class SmiCompares { |
| 9 // Test deoptimization when one argument is known to be Smi. | 7 // Test deoptimization when one argument is known to be Smi. |
| 10 static bool smiCompareLessThan2(a) { | 8 static bool smiCompareLessThan2(a) { |
| 11 return a < 2; | 9 return a < 2; |
| 12 } | 10 } |
| 13 | 11 |
| 14 // Test deoptimization when one argument is known to be Smi. | 12 // Test deoptimization when one argument is known to be Smi. |
| 15 static bool smiCompareGreaterThan2(a) { | 13 static bool smiCompareGreaterThan2(a) { |
| 16 return 2 < a; | 14 return 2 < a; |
| 17 } | 15 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 SmiBinop.smiBinopOverflowTest(); | 203 SmiBinop.smiBinopOverflowTest(); |
| 206 ObjectsEquality.objectsEqualityTest(); | 204 ObjectsEquality.objectsEqualityTest(); |
| 207 smiRightShift(); | 205 smiRightShift(); |
| 208 doubleUnary(); | 206 doubleUnary(); |
| 209 } | 207 } |
| 210 } | 208 } |
| 211 | 209 |
| 212 main() { | 210 main() { |
| 213 DeoptimizationTest.testMain(); | 211 DeoptimizationTest.testMain(); |
| 214 } | 212 } |
| OLD | NEW |