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

Unified Diff: runtime/vm/guard_field_test.cc

Issue 1447203002: Fix disassembly output for background compilation; modify some tests to run long enough for backgro… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/guard_field_test.cc
diff --git a/runtime/vm/guard_field_test.cc b/runtime/vm/guard_field_test.cc
index 193d4b77fd0243e65a85af8442b93c3bb9db11f1..6d8c47c285bb5e406bded4afe19550d42d019bc4 100644
--- a/runtime/vm/guard_field_test.cc
+++ b/runtime/vm/guard_field_test.cc
@@ -54,8 +54,10 @@ TEST_CASE(GuardFieldSimpleTest) {
" }\n"
"}\n"
"main() {\n"
- " runFoo();\n"
- " runBar();\n"
+ " for (int i = 0; i < 100; i++) {\n"
+ " runFoo();\n"
+ " runBar();\n"
+ " }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(script_chars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
@@ -103,8 +105,10 @@ TEST_CASE(GuardFieldFinalListTest) {
" }\n"
"}\n"
"main() {\n"
- " runFoo();\n"
- " runBar();\n"
+ " for (int i = 0; i < 100; i++) {\n"
+ " runFoo();\n"
+ " runBar();\n"
+ " }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(script_chars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
@@ -154,8 +158,10 @@ TEST_CASE(GuardFieldFinalVariableLengthListTest) {
" }\n"
"}\n"
"main() {\n"
- " runFoo();\n"
- " runBar();\n"
+ " for (int i = 0; i < 100; i++) {\n"
+ " runFoo();\n"
+ " runBar();\n"
+ " }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(script_chars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
@@ -209,8 +215,10 @@ TEST_CASE(GuardFieldConstructorTest) {
" }\n"
"}\n"
"main() {\n"
- " runFoo();\n"
- " runBar();\n"
+ " for (int i = 0; i < 100; i++) {\n"
+ " runFoo();\n"
+ " runBar();\n"
+ " }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(script_chars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
@@ -256,8 +264,10 @@ TEST_CASE(GuardFieldConstructor2Test) {
" var a = new A(l);\n"
"}\n"
"main() {\n"
- " runFoo();\n"
- " runBar();\n"
+ " for (int i = 0; i < 100; i++) {\n"
+ " runFoo();\n"
+ " runBar();\n"
+ " }\n"
"}\n";
Dart_Handle lib = TestCase::LoadTestScript(script_chars, NULL);
Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698