Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 03def66d5f76e452a6095df8ede85f2c80858774..33072e688ab9451b5bd7bcd068abcc7c609ea5b5 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -820,10 +820,10 @@ void FullCodeGenerator::VisitVariableDeclaration( |
__ LoadSmiLiteral(r3, Smi::FromInt(0)); // Indicates no initial value. |
__ Push(r5, r3); |
} |
- __ CallRuntime(IsImmutableVariableMode(mode) |
- ? Runtime::kDeclareReadOnlyLookupSlot |
- : Runtime::kDeclareLookupSlot, |
- 2); |
+ __ LoadSmiLiteral( |
+ r3, Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ Push(r3); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |
@@ -874,7 +874,10 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
__ Push(r5); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- __ CallRuntime(Runtime::kDeclareLookupSlot, 2); |
+ __ LoadSmiLiteral( |
+ r5, Smi::FromInt(variable->DeclarationPropertyAttributes())); |
+ __ Push(r5); |
+ __ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
} |