| Index: src/full-codegen/x87/full-codegen-x87.cc
|
| diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc
|
| index d0be6ba9d52449280863ba12eac2d6fdd6218e6f..d978b6b2fe240fcd3f8999ed8141fd99db152b81 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -748,15 +748,8 @@ void FullCodeGenerator::VisitVariableDeclaration(
|
| __ push(Immediate(variable->name()));
|
| // VariableDeclaration 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) {
|
| - __ push(Immediate(isolate()->factory()->the_hole_value()));
|
| - } else {
|
| - __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value.
|
| - }
|
| + DCHECK(!hole_init);
|
| + __ push(Immediate(Smi::FromInt(0))); // Indicates no initial value.
|
| __ push(
|
| Immediate(Smi::FromInt(variable->DeclarationPropertyAttributes())));
|
| __ CallRuntime(Runtime::kDeclareLookupSlot);
|
|
|