Index: src/full-codegen/s390/full-codegen-s390.cc |
diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc |
index e5d634c6b26a09e3e5ead0c379344e14d263aa69..2f5a043eaf0a7ba03c9873250739e7892a06e53f 100644 |
--- a/src/full-codegen/s390/full-codegen-s390.cc |
+++ b/src/full-codegen/s390/full-codegen-s390.cc |
@@ -741,14 +741,11 @@ void FullCodeGenerator::VisitVariableDeclaration( |
case VariableLocation::LOOKUP: { |
Comment cmnt(masm_, "[ VariableDeclaration"); |
- __ mov(r4, Operand(variable->name())); |
- // Declaration nodes are always introduced in one of four modes. |
- DCHECK(IsDeclaredVariableMode(mode)); |
+ DCHECK_EQ(VAR, mode); |
DCHECK(!hole_init); |
- __ LoadSmiLiteral(r2, Smi::FromInt(0)); // Indicates no initial value. |
- __ Push(r4, r2); |
- __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
- __ CallRuntime(Runtime::kDeclareLookupSlot); |
+ __ mov(r4, Operand(variable->name())); |
+ __ Push(r4); |
+ __ CallRuntime(Runtime::kDeclareEvalVar); |
PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS); |
break; |
} |
@@ -799,8 +796,7 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
PushOperand(r4); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- PushOperand(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
- CallRuntimeWithOperands(Runtime::kDeclareLookupSlot); |
+ CallRuntimeWithOperands(Runtime::kDeclareEvalFunction); |
PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS); |
break; |
} |