Commit 620f07e3 authored by hpayer@chromium.org's avatar hpayer@chromium.org

If map became unstable, abort compilation and allow re-compilation.

BUG=
R=danno@google.com

Review URL: https://codereview.chromium.org/291653006

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21438 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 58932c6c
......@@ -456,6 +456,8 @@ OptimizedCompileJob::Status OptimizedCompileJob::GenerateCode() {
if (optimized_code.is_null()) {
if (info()->bailout_reason() == kNoReason) {
info_->set_bailout_reason(kCodeGenerationFailed);
} else if (info()->bailout_reason() == kMapBecameUnstable) {
return AbortOptimization();
}
return AbortAndDisableOptimization();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment