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

Unified Diff: src/runtime.cc

Issue 254763007: Introduce DisallowDeoptimization scope. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | « src/objects-inl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index f3946d3b7ad03edaa3626c02ce348687541c951e..50a80467e41cd33f76ca9302548f00d5b82c17f0 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -14583,6 +14583,7 @@ RUNTIME_FUNCTION(Runtime_TryMigrateInstance) {
// code where we can't handle lazy deopts for lack of a suitable bailout
// ID. So we just try migration and signal failure if necessary,
// which will also trigger a deopt.
+ DisallowDeoptimization no_deoptimization(isolate);
if (!JSObject::TryMigrateInstance(js_object)) return Smi::FromInt(0);
Yang 2014/04/28 06:38:38 Isn't JSObject::TryMigrateInstance not supposed to
Benedikt Meurer 2014/04/28 06:44:36 Done.
return *object;
}
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698