Always create deopt data when using full-codegen if the function is optimizable
Review URL: http://codereview.chromium.org/8611003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10040 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
29b5ceb897
commit
ec04dcfa0c
@ -168,7 +168,11 @@ static void FinishOptimization(Handle<JSFunction> function, int64_t start) {
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user