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(); |
} |
} |