Reviewers: Kevin Millikin,
Description:
Always create deopt data when using full-codegen if the function is
optimizable
Please review this at http://codereview.chromium.org/8611003/
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/compiler.cc
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 10010)
+++ src/compiler.cc (working copy)
@@ -168,7 +168,11 @@
static bool MakeCrankshaftCode(CompilationInfo* info) {
// Test if we can optimize this function when asked to. We can only
// do this after the scopes are computed.
- if (!info->AllowOptimize()) info->DisableOptimization();
+ if (!info->AllowOptimize()) {
+ info->DisableOptimization();
+ } else if (info->IsOptimizable()) {
+ info->EnableDeoptimizationSupport();
+ }
// In case we are not optimizing simply return the code from
// the full code generator.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev