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

Unified Diff: tests/language/osr_test.dart

Issue 1759973002: Add --no-background-compilation to tests that expect to run code in optimized form (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: more Created 4 years, 10 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
« no previous file with comments | « tests/language/optimized_string_charcodeat_test.dart ('k') | tests/language/range_analysis_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/osr_test.dart
diff --git a/tests/language/osr_test.dart b/tests/language/osr_test.dart
index 6d31b85240bc573b6d716b185020ce7f9adf0c33..e4afb7bf4d91ba1621cbb13e42444a3c940388d8 100644
--- a/tests/language/osr_test.dart
+++ b/tests/language/osr_test.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=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.
« no previous file with comments | « tests/language/optimized_string_charcodeat_test.dart ('k') | tests/language/range_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698