| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index bea5206ba44fe22ef3548006a82c61ef834fbd47..ba6bb42bfa2862ad21932d47d1e82ea7b3b60f00 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -58,6 +58,7 @@ CompilationInfo::CompilationInfo(Handle<Script> script)
|
| script_(script),
|
| extension_(NULL),
|
| pre_parse_data_(NULL),
|
| + supports_deoptimization_(false),
|
| osr_ast_id_(AstNode::kNoNumber) {
|
| Initialize(NONOPT);
|
| }
|
| @@ -72,6 +73,7 @@ CompilationInfo::CompilationInfo(Handle<SharedFunctionInfo> shared_info)
|
| script_(Handle<Script>(Script::cast(shared_info->script()))),
|
| extension_(NULL),
|
| pre_parse_data_(NULL),
|
| + supports_deoptimization_(false),
|
| osr_ast_id_(AstNode::kNoNumber) {
|
| Initialize(BASE);
|
| }
|
| @@ -87,6 +89,7 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> closure)
|
| script_(Handle<Script>(Script::cast(shared_info_->script()))),
|
| extension_(NULL),
|
| pre_parse_data_(NULL),
|
| + supports_deoptimization_(false),
|
| osr_ast_id_(AstNode::kNoNumber) {
|
| Initialize(BASE);
|
| }
|
| @@ -305,9 +308,9 @@ static bool MakeCrankshaftCode(CompilationInfo* info) {
|
|
|
|
|
| static bool GenerateCode(CompilationInfo* info) {
|
| - return info->IsCompilingForDebugging() || !V8::UseCrankshaft() ?
|
| - FullCodeGenerator::MakeCode(info) :
|
| - MakeCrankshaftCode(info);
|
| + return V8::UseCrankshaft() ?
|
| + MakeCrankshaftCode(info) :
|
| + FullCodeGenerator::MakeCode(info);
|
| }
|
|
|
|
|
|
|