| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // VMOptions=--throw_on_javascript_int_overflow --optimization_counter_threshold
=10 --no-use-osr | 5 // VMOptions=--throw_on_javascript_int_overflow --print_stacktrace_at_throw --op
timization_counter_threshold=10 --no-use-osr |
| 6 | 6 |
| 7 | 7 |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 | 10 |
| 11 | 11 |
| 12 double dti_arg; | 12 double dti_arg; |
| 13 int double_to_int() { | 13 int double_to_int() { |
| 14 return dti_arg.toInt(); | 14 return dti_arg.toInt(); |
| 15 } | 15 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 Expect.equals(0x2FAFA000, doNotThrow3(0xFAFAFA, 12)); | 142 Expect.equals(0x2FAFA000, doNotThrow3(0xFAFAFA, 12)); |
| 143 Expect.equals(0xABABA000, doNotThrow2(0xFAFAFAABABA, 12)); | 143 Expect.equals(0xABABA000, doNotThrow2(0xFAFAFAABABA, 12)); |
| 144 Expect.equals(0x2BABA000, doNotThrow4(0xFAFAFAABABA, 12)); | 144 Expect.equals(0x2BABA000, doNotThrow4(0xFAFAFAABABA, 12)); |
| 145 } | 145 } |
| 146 for (int i = 0; i < 20; i++) { | 146 for (int i = 0; i < 20; i++) { |
| 147 Expect.equals(0xABABA000, doNotThrow1(0xFAFAFAABABA, 12)); | 147 Expect.equals(0xABABA000, doNotThrow1(0xFAFAFAABABA, 12)); |
| 148 Expect.equals(0x2BABA000, doNotThrow3(0xFAFAFAABABA, 12)); | 148 Expect.equals(0x2BABA000, doNotThrow3(0xFAFAFAABABA, 12)); |
| 149 } | 149 } |
| 150 | 150 |
| 151 } | 151 } |
| OLD | NEW |