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 // Dart test program to test arithmetic operations. | 4 // Dart test program to test arithmetic operations. |
5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr --use-far-branches | 5 // VMOptions=--optimization-counter-threshold=10 --no-use-osr |
6 | 6 |
7 library arithmetic_test; | 7 library arithmetic_test; |
8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
9 import 'dart:math'; | 9 import 'dart:math'; |
10 | 10 |
11 class ArithmeticTest { | 11 class ArithmeticTest { |
12 | 12 |
13 static bool exceptionCaughtParseInt(String s) { | 13 static bool exceptionCaughtParseInt(String s) { |
14 try { | 14 try { |
15 int.parse(s); | 15 int.parse(s); |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 testSmiDivDeopt(); | 454 testSmiDivDeopt(); |
455 testSqrtDeopt(); | 455 testSqrtDeopt(); |
456 testDoubleEquality(); | 456 testDoubleEquality(); |
457 } | 457 } |
458 } | 458 } |
459 } | 459 } |
460 | 460 |
461 main() { | 461 main() { |
462 ArithmeticTest.testMain(); | 462 ArithmeticTest.testMain(); |
463 } | 463 } |
OLD | NEW |