df4e0d5ac6
X64: Fix smashed ARGS_DESC_REG. IA32: Remove unnecessary preservation of ICREG. BUG=http://dartbug.com/26516 R=vegorov@google.com Review URL: https://codereview.chromium.org/2003403003 .
24 lines
553 B
Dart
24 lines
553 B
Dart
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// VMOptions=--optimization-counter-threshold=-1 --new_gen_semi_max_size=2
|
|
|
|
import 'dart:math';
|
|
|
|
main() {
|
|
// 2MB / 16 bytes = 125000 allocations
|
|
|
|
for (var i = 0; i < 500000; i++) {
|
|
sin(i);
|
|
}
|
|
|
|
for (var i = 0; i < 500000; i++) {
|
|
cos(i);
|
|
}
|
|
|
|
for (var i = 0; i < 500000; i++) {
|
|
i.toDouble().truncateToDouble();
|
|
}
|
|
}
|