mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:41:24 +00:00
Add --no-background-compilation to tests that expect to run code in optimized form
BUG= R=asiva@google.com Review URL: https://codereview.chromium.org/1759973002 .
This commit is contained in:
parent
095038829c
commit
b3405d5ebc
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background-compilation
|
||||
|
||||
// Library tag to be able to run in html test framework.
|
||||
library byte_array_test;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --disable_alloc_stubs_after_gc
|
||||
// VMOptions=--optimization_counter_threshold=10 --disable_alloc_stubs_after_gc --no-background-compilation
|
||||
|
||||
// Library tag to be able to run in html test framework.
|
||||
library byte_array_test;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Testing Bigints with and without intrinsics.
|
||||
// VMOptions=
|
||||
// VMOptions=--no_intrinsify
|
||||
// VMOptions=--optimization_counter_threshold=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
|
||||
|
||||
library big_integer_test;
|
||||
import "package:expect/expect.dart";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=5
|
||||
// VMOptions=--optimization_counter_threshold=5 --no-background_compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Copyright (c) 2013, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
// Test allocation sinking with polymorphic inlining.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test canonicalization of simple arithmetic equivalences.
|
||||
// VMOptions=--optimization-counter-threshold=20 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=20 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Dart test program to test arithmetic operations.
|
||||
|
||||
// VMOptions=--optimization_counter_threshold=5
|
||||
// VMOptions=--optimization_counter_threshold=5 --no-background_compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program to test arithmetic operations.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
library arithmetic_test;
|
||||
import "package:expect/expect.dart";
|
||||
|
@ -423,24 +423,24 @@ class ArithmeticTest {
|
|||
var b = -1;
|
||||
for (var i = 0; i < 10; i++) Expect.equals(0x40000000, div(a, b));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static int divMod(a, b) => a ~/ b + a % b;
|
||||
|
||||
|
||||
static void testSmiDivModDeopt() {
|
||||
var a = -0x40000000;
|
||||
var b = -1;
|
||||
for (var i = 0; i < 10; i++) Expect.equals(0x40000000, divMod(a, b));
|
||||
}
|
||||
|
||||
|
||||
static double sinCosSub(double a) => sin(a) - cos(a);
|
||||
|
||||
|
||||
static double sinCosAddCos(double a) => sin(a) * cos(a) + cos(a);
|
||||
|
||||
static void testSinCos() {
|
||||
var e = sin(1.234) - cos(1.234);
|
||||
var f = sin(1.234) * cos(1.234) + cos(1.234);
|
||||
|
||||
|
||||
for (var i = 0; i < 20; i++) {
|
||||
Expect.approxEquals(e, sinCosSub(1.234));
|
||||
Expect.approxEquals(f, sinCosAddCos(1.234));
|
||||
|
@ -456,7 +456,7 @@ class ArithmeticTest {
|
|||
cos(i);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static mySqrt(var x) => sqrt(x);
|
||||
|
||||
static testSqrtDeopt() {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program to test arithmetic operations.
|
||||
// VMOptions=--optimization-counter-threshold=10 --checked
|
||||
// VMOptions=--optimization-counter-threshold=10 --checked --no-background-compilation
|
||||
|
||||
// This test crashes if we recompute type of AssertAssignableInstr based on its
|
||||
// output types. By doing that we would eliminate not only the unnecessary
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program for testing assign operators.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=5
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
import "package:async_helper/async_helper.dart";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=5
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
import "package:async_helper/async_helper.dart";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=5
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=10
|
||||
// VMOptions=---optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test for testing bitwise operations.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Test that branch fusion correctly sets branch environment for comparisons
|
||||
// that require unboxing and does not fuse branches that can deoptimize.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=100
|
||||
// VMOptions=--optimization-counter-threshold=100 --no-background-compilation
|
||||
|
||||
// Test lazy deoptimization at field guards with deferred loading.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=100
|
||||
// VMOptions=--optimization-counter-threshold=100 --no-background-compilation
|
||||
|
||||
// Test lazy deoptimization at type checks with deferred loading.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=100
|
||||
// VMOptions=--optimization-counter-threshold=100 --no-background-compilation
|
||||
|
||||
// Test lazy deoptimization at type checks with interface implementation.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Tests that lhs of a compound assignement is executed only once.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Check const classes.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
// Declares foo that returns 42.
|
||||
import "deferred_constraints_lib2.dart" deferred as lib;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// 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=100
|
||||
// VMOptions=--optimization-counter-threshold=100 --no-background-compilation
|
||||
|
||||
import "deferred_load_inval_code_lib.dart" deferred as d;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=10 --no-use-inlining
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-inlining --no-background-compilation
|
||||
|
||||
// Declares foo that returns 42.
|
||||
import "deferred_constraints_lib2.dart" deferred as lib;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test lazy deoptimization from within an inlined function.
|
||||
// VMOptions=--deoptimize_alot --optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--deoptimize_alot --optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test deoptimziation caused by lazy finalization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
@ -29,7 +29,7 @@ part2() {
|
|||
|
||||
class A {
|
||||
foo() => 2;
|
||||
|
||||
|
||||
loop() {
|
||||
var sum = 0;
|
||||
for (int i = 0; i < 10000; i++) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test deoptimization caused by running code that did not collect type
|
||||
// feedback before.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2011, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test division by power of two.
|
||||
// Test that results before and after optimization are the same.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test division by power of two.
|
||||
// Test that results before and after optimization are the same.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test optimization of modulo operator on Double.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Tests double comparisons with NaN in different contexts.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test throws exception in the middle of the increment operation, the setter
|
||||
// part of the instance field increment never completes.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
main() {
|
||||
var a = new A();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test that fast method extraction returns correct closure.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program to test cid guessing optimizations.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
@ -17,17 +17,17 @@ main() {
|
|||
Expect.equals(3, compareInt(3));
|
||||
Expect.equals(-2, compareInt(-2));
|
||||
Expect.equals(0, compareInt(-1));
|
||||
|
||||
|
||||
Expect.equals(3, binOpInt(3, 3));
|
||||
Expect.equals(0, binOpInt(-2, -2));
|
||||
|
||||
|
||||
Expect.equals(3.0, binOpDouble(3.0, 3.0));
|
||||
Expect.equals(0.0, binOpDouble(-2.0, -2.0));
|
||||
|
||||
|
||||
Expect.equals(3.0, compareDouble(3.0));
|
||||
Expect.equals(-2.0, compareDouble(-2.0));
|
||||
Expect.equals(0.0, compareDouble(-1.0));
|
||||
|
||||
|
||||
testOSR();
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test efficient and correct implementation of !identical(a, b).
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import 'package:expect/expect.dart';
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test that SSA values are correctly numbered after inlining that adds
|
||||
// constants to original environment.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
h(x, y) => x == y;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test inlining of simple function with control flow in an effect context.
|
||||
// Optimize function foo with instance of A and inlined function bar. Call later
|
||||
// with instance of B and cause deoptimization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test inlining of instance getters.
|
||||
// Three classes access always the same field. Optimize method foo and inline
|
||||
// getter for classes 'A' and 'B'. Call later via 'C' and cause deoptimization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test inlining of simple function with control flow in a test context.
|
||||
// Optimize function foo with instance of A and inlined function bar. Call later
|
||||
// with instance of B and cause deoptimization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Test inlining of simple function with control flow in a value context.
|
||||
// Optimize function foo with instance of A and inlined function bar. Call later
|
||||
// with instance of B and cause deoptimization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2011, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Dart test program for testing the instanceof operation.
|
||||
// Regression test for issue 5216.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Testing optimized 'is' tests.
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Test integer division by zero.
|
||||
// Test that results before and after optimization are the same.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program for testing compilation of large implicit getters.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
List<List> panels = [
|
||||
[6853.940039224797,6050.837897021371]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test constant propgation of load-indexed operations
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2011, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
library GenericInstanceofTest.dart;
|
||||
import "package:expect/expect.dart";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2011, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
library OverriddenNoSuchMethodTest.dart;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test megamorphic, but single target field load.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test program for correct optimizations related to types fo allocated lists.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test optimization of modulo operator on Smi.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
@ -15,7 +15,7 @@ main() {
|
|||
Expect.equals(i % 256, foo(i));
|
||||
Expect.equals(i % -256, boo(i));
|
||||
Expect.throws(() => hoo(i), (e) => e is IntegerDivisionByZeroException);
|
||||
|
||||
|
||||
Expect.equals(i ~/ 254 + i % 254, fooTwo(i));
|
||||
Expect.equals(i ~/ -254 + i % -254, booTwo(i));
|
||||
Expect.throws(() => hooTwo(i), (e) => e is IntegerDivisionByZeroException);
|
||||
|
@ -26,7 +26,7 @@ main() {
|
|||
}
|
||||
Expect.equals((i ~/ 10) + (i % 10) + (i % 10), threeOp(i));
|
||||
Expect.equals((i ~/ 10) + (i ~/ 12) + (i % 10) + (i % 12), fourOp(i));
|
||||
|
||||
|
||||
// Zero test is done outside the loop.
|
||||
if (i < 0) {
|
||||
Expect.equals(i % -i, foo2(i));
|
||||
|
@ -69,13 +69,13 @@ threeOp(a) {
|
|||
fourOp(a) {
|
||||
var x0 = a ~/ 10;
|
||||
var x1 = a ~/ 12;
|
||||
var y0 = a % 10;
|
||||
var y0 = a % 10;
|
||||
var y1 = a % 12;
|
||||
return x0 + x1 + y0 + y1;
|
||||
}
|
||||
|
||||
foo2(i) {
|
||||
// Make sure x has a range computed.
|
||||
// Make sure x has a range computed.
|
||||
var x = 0;
|
||||
if (i < 0) {
|
||||
x = -i;
|
||||
|
@ -87,7 +87,7 @@ foo2(i) {
|
|||
|
||||
|
||||
fooTwo2(i) {
|
||||
// Make sure x has a range computed.
|
||||
// Make sure x has a range computed.
|
||||
var x = 0;
|
||||
if (i < 0) {
|
||||
x = -i;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// incorrect:
|
||||
// - (a * (1.0 / b))
|
||||
//
|
||||
// VMOptions=--optimization-counter-threshold=8 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=8 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Test named arguments work as expected regardless of whether the function or
|
||||
// method is called via function call syntax or method call syntax.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test a new statement by itself.
|
||||
// VMOptions=--optimization-counter-threshold=4
|
||||
// VMOptions=--optimization-counter-threshold=4 --no-background-compilation
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Test that a static type inferrer takes [noSuchMethod] into account.
|
||||
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Second dart test program.
|
||||
|
||||
// VMOptions=--optimization-counter-threshold=5
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
||||
|
||||
import "dart:mirrors";
|
||||
import "package:expect/expect.dart";
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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=5
|
||||
// VMOptions=--optimization_counter_threshold=5 --no-background_compilation
|
||||
//
|
||||
// Basic null-aware operator test that invokes the optimizing compiler.
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//
|
||||
// Contains test that is failing on dart2js. Merge this test with
|
||||
// 'number_identity_test.dart' once fixed.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
import 'dart:typed_data';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program for testing params.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
// Test optimization and polymorphic inlining of String.isEmpty.
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test program for correct optimizations related to types fo allocated lists.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Test various setter situations, testing special cases in optimizing compiler.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
// Test optimized CodeUnitAt and array access.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=5
|
||||
// VMOptions=--optimization-counter-threshold=5 --no-background-compilation
|
||||
// Test correct OSR (issue 16151).
|
||||
|
||||
import "dart:collection";
|
||||
|
@ -9,18 +9,18 @@ import "package:expect/expect.dart";
|
|||
|
||||
List create([int length]) {
|
||||
return new MyList(length);
|
||||
}
|
||||
}
|
||||
|
||||
main() {
|
||||
test(create);
|
||||
test(create);
|
||||
}
|
||||
|
||||
|
||||
class MyList<E> extends ListBase<E> {
|
||||
List<E> _list;
|
||||
|
||||
|
||||
MyList([int length]): _list = (length==null ? new List() : new List(length));
|
||||
|
||||
|
||||
E operator [](int index) => _list[index];
|
||||
|
||||
void operator []=(int index, E value) {
|
||||
|
@ -36,7 +36,7 @@ class MyList<E> extends ListBase<E> {
|
|||
|
||||
|
||||
test(List create([int length])) {
|
||||
sort_A01_t02_test(create);
|
||||
sort_A01_t02_test(create);
|
||||
}
|
||||
|
||||
// From library co19 sort_A01_t02.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test program for constructors and initializers.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=8
|
||||
// VMOptions=--optimization-counter-threshold=8 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2011, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Replace with shared test once interface issues clarified.
|
||||
// Test various String intrinsics
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Simple test program for sync* generator functions.
|
||||
|
||||
// VMOptions=--optimization_counter_threshold=10
|
||||
// VMOptions=--optimization_counter_threshold=10 --no-background_compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// 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.
|
||||
// Dart test optimization of modulo operator on Smi.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
@ -24,7 +24,7 @@ main() {
|
|||
foo(i, x) => i % x;
|
||||
|
||||
foo2(i) {
|
||||
// Make sure x has a range computed.
|
||||
// Make sure x has a range computed.
|
||||
var x = 0;
|
||||
if (i < 0) {
|
||||
x = -i;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Dart test program for testing try/catch statement without any exceptions
|
||||
// being thrown. (Nested try/catch blocks).
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Dart test program for testing try/catch statement without any exceptions
|
||||
// being thrown.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Check that our SSA graph does have the try body a predecessor of a
|
||||
// try/finally.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// BSD-style license that can be found in the LICENSE file.
|
||||
// Check that our SSA graph does have the try body a predecessor of a
|
||||
// try/finally.
|
||||
// VMOptions=--optimization-counter-threshold=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2013, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2014, 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=10
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue