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

Unified Diff: tests/language_strong/deoptimized_function_on_stack_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: tests/language_strong/deoptimized_function_on_stack_test.dart
diff --git a/tests/language_strong/deoptimized_function_on_stack_test.dart b/tests/language_strong/deoptimized_function_on_stack_test.dart
index 3ef5cb4c059b35ce1e21281f648b4a3c26b7b9d5..d0df4600c7d60ecc22508e6d1e3fa00424dfb3c7 100644
--- a/tests/language_strong/deoptimized_function_on_stack_test.dart
+++ b/tests/language_strong/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;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698