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