Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: tests/standalone/javascript_int_overflow_test.dart

Issue 1648123003: - Try to get more information for buildbot only failures. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tests/standalone/javascript_int_overflow_literal_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « tests/standalone/javascript_int_overflow_literal_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698