Index: tests/language/deoptimized_function_on_stack_test.dart |
diff --git a/tests/language/deoptimized_function_on_stack_test.dart b/tests/language/deoptimized_function_on_stack_test.dart |
index f64fedc035fa4f2230c5547b8aca12bee5309d07..bc207d01bfb1d1bb160c473a7e08e20b28821549 100644 |
--- a/tests/language/deoptimized_function_on_stack_test.dart |
+++ b/tests/language/deoptimized_function_on_stack_test.dart |
@@ -16,7 +16,7 @@ main() { |
// Create a situation where method 'call' is optimized for using class A |
// when calling foo. |
warmup() { |
- List a = [ new A(), new A(), new A(), new A()]; |
+ List a = [new A(), new A(), new A(), new A()]; |
var res = 0; |
for (int i = 0; i < 20; i++) { |
res = call(a, 0); |
@@ -24,13 +24,12 @@ warmup() { |
Expect.equals(10, res); |
} |
- |
// Create a situation where several optimized frames of 'call' are on stack |
// when deoptimization occurs because B.foo is called. After the first |
// deoptimization, several optimized frames of 'call' are still on stack and |
// some of them will be deoptimized. |
runTest() { |
- List a = [ new A(), new A(), new B(), new A(), new B(), new B()]; |
+ List a = [new A(), new A(), new B(), new A(), new B(), new B()]; |
var res = call(a, 0); |
Expect.equals(35, res); |
} |
@@ -48,12 +47,14 @@ call(List a, int n) { |
return 0; |
} |
- |
class A { |
- foo() { return 1; } |
+ foo() { |
+ return 1; |
+ } |
} |
- |
class B { |
- foo() { return 2; } |
+ foo() { |
+ return 2; |
+ } |
} |