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

Unified Diff: runtime/vm/compiler.cc

Issue 1162033005: Fix http://dartbug.com/23578: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update to ToT. Created 5 years, 6 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: runtime/vm/compiler.cc
diff --git a/runtime/vm/compiler.cc b/runtime/vm/compiler.cc
index 57cfa7f6026391418fd2cf1aa5a61bd5c75b1954..05093ead27a22f6dcc501ef5b0ff15c373a0355c 100644
--- a/runtime/vm/compiler.cc
+++ b/runtime/vm/compiler.cc
@@ -790,6 +790,9 @@ static bool CompileParsedFunctionHelper(CompilationPipeline* pipeline,
}
}
}
+ // Mark that this isolate now has compiled code.
+ isolate->set_has_compiled(true);
+ // Exit the loop and the function with the correct result value.
is_compiled = true;
done = true;
} else {
@@ -1191,6 +1194,7 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) {
if (!error.IsNull()) {
return error.raw();
}
+ func.ClearICDataArray();
func.ClearCode();
}
}
@@ -1207,6 +1211,7 @@ RawError* Compiler::CompileAllFunctions(const Class& cls) {
if (!error.IsNull()) {
return error.raw();
}
+ func.ClearICDataArray();
func.ClearCode();
}
}

Powered by Google App Engine
This is Rietveld 408576698