| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index ffcee57ee8287fe91450f4b06eff5b98de842c0a..bcc50c5a844be54e9bc11afe985a78056574d984 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -11789,7 +11789,6 @@ void HOptimizedGraphBuilder::VisitVariableDeclaration(
|
| DCHECK(!slot.IsInvalid());
|
| globals_.Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| globals_.Add(isolate()->factory()->undefined_value(), zone());
|
| - globals_.Add(isolate()->factory()->undefined_value(), zone());
|
| return;
|
| }
|
| case VariableLocation::PARAMETER:
|
| @@ -11814,12 +11813,6 @@ void HOptimizedGraphBuilder::VisitFunctionDeclaration(
|
| FeedbackVectorSlot slot = proxy->VariableFeedbackSlot();
|
| DCHECK(!slot.IsInvalid());
|
| globals_.Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| -
|
| - // We need the slot where the literals array lives, too.
|
| - slot = declaration->fun()->LiteralFeedbackSlot();
|
| - DCHECK(!slot.IsInvalid());
|
| - globals_.Add(handle(Smi::FromInt(slot.ToInt()), isolate()), zone());
|
| -
|
| Handle<SharedFunctionInfo> function = Compiler::GetSharedFunctionInfo(
|
| declaration->fun(), current_info()->script(), top_info());
|
| // Check for stack-overflow exception.
|
|
|