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

Side by Side Diff: tests/lib/math/call_cmath_box_failure_path_test.dart

Issue 2979073002: "Set up directories.." commit below broke the buildbot tests, two others are collateral damage. (Closed)
Patch Set: Created 3 years, 5 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/language_strong/abstract_getter_test.dart ('k') | tests/lib_2/lib_2.status » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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=--optimization-counter-threshold=-1 --new_gen_semi_max_size=2 5 // VMOptions=--optimization-counter-threshold=-1 --new_gen_semi_max_size=2
6 6
7 // TODO(rnystrom): This looks like a VM-specific test. Move out of
8 // tests/language and into somewhere more appropriate.
9
10 import 'dart:math'; 7 import 'dart:math';
11 8
12 main() { 9 main() {
13 // 2MB / 16 bytes = 125000 allocations 10 // 2MB / 16 bytes = 125000 allocations
14 11
15 for (var i = 0; i < 500000; i++) { 12 for (var i = 0; i < 500000; i++) {
16 sin(i); 13 sin(i);
17 } 14 }
18 15
19 for (var i = 0; i < 500000; i++) { 16 for (var i = 0; i < 500000; i++) {
20 cos(i); 17 cos(i);
21 } 18 }
22 19
23 for (var i = 0; i < 500000; i++) { 20 for (var i = 0; i < 500000; i++) {
24 i.toDouble().truncateToDouble(); 21 i.toDouble().truncateToDouble();
25 } 22 }
26 } 23 }
OLDNEW
« no previous file with comments | « tests/language_strong/abstract_getter_test.dart ('k') | tests/lib_2/lib_2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698