| Index: src/full-codegen/arm/full-codegen-arm.cc
|
| diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc
|
| index 08cf50acd8bf5b9d06ce9865ca52fb526b5c938b..d223f93d7e71fd2223bc0b80cb40c9f92e4d31d4 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -803,15 +803,7 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| __ mov(r2, Operand(variable->name()));
|
| // Declaration nodes are always introduced in one of four modes.
|
| DCHECK(IsDeclaredVariableMode(mode));
|
| - // Push initial value, if any.
|
| - // Note: For variables we must not push an initial value (such as
|
| - // 'undefined') because we may have a (legal) redeclaration and we
|
| - // must not destroy the current value.
|
| - if (hole_init) {
|
| - __ LoadRoot(r0, Heap::kTheHoleValueRootIndex);
|
| - } else {
|
| - __ mov(r0, Operand(Smi::FromInt(0))); // Indicates no initial value.
|
| - }
|
| + __ mov(r0, Operand(Smi::FromInt(0))); // Indicates no initial value.
|
| __ Push(r2, r0);
|
| __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
|
| __ CallRuntime(Runtime::kDeclareLookupSlot);
|
|
|