| 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 |
| 6 class SmiCompares { | 8 class SmiCompares { |
| 7 // Test deoptimization when one argument is known to be Smi. | 9 // Test deoptimization when one argument is known to be Smi. |
| 8 static bool smiCompareLessThan2(a) { | 10 static bool smiCompareLessThan2(a) { |
| 9 return a < 2; | 11 return a < 2; |
| 10 } | 12 } |
| 11 | 13 |
| 12 // Test deoptimization when one argument is known to be Smi. | 14 // Test deoptimization when one argument is known to be Smi. |
| 13 static bool smiCompareGreaterThan2(a) { | 15 static bool smiCompareGreaterThan2(a) { |
| 14 return 2 < a; | 16 return 2 < a; |
| 15 } | 17 } |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 SmiBinop.smiBinopOverflowTest(); | 205 SmiBinop.smiBinopOverflowTest(); |
| 204 ObjectsEquality.objectsEqualityTest(); | 206 ObjectsEquality.objectsEqualityTest(); |
| 205 smiRightShift(); | 207 smiRightShift(); |
| 206 doubleUnary(); | 208 doubleUnary(); |
| 207 } | 209 } |
| 208 } | 210 } |
| 209 | 211 |
| 210 main() { | 212 main() { |
| 211 DeoptimizationTest.testMain(); | 213 DeoptimizationTest.testMain(); |
| 212 } | 214 } |
| OLD | NEW |