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