| Index: src/compiler/code-generator.cc
|
| diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
|
| index 12746b82a325f7972dbbc589e20859c363a3b6f5..91602a02a3cde1de9f76bd20cd6ba8698c24012d 100644
|
| --- a/src/compiler/code-generator.cc
|
| +++ b/src/compiler/code-generator.cc
|
| @@ -359,11 +359,8 @@ void CodeGenerator::PopulateDeoptimizationData(Handle<Code> code_object) {
|
| data->SetInlinedFunctionCount(
|
| Smi::FromInt(static_cast<int>(inlined_function_count_)));
|
| data->SetOptimizationId(Smi::FromInt(info->optimization_id()));
|
| - // TODO(jarin) The following code was copied over from Lithium, not sure
|
| - // whether the scope or the IsOptimizing condition are really needed.
|
| - if (info->IsOptimizing()) {
|
| - // Reference to shared function info does not change between phases.
|
| - AllowDeferredHandleDereference allow_handle_dereference;
|
| +
|
| + if (info->has_shared_info()) {
|
| data->SetSharedFunctionInfo(*info->shared_info());
|
| } else {
|
| data->SetSharedFunctionInfo(Smi::FromInt(0));
|
|
|