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 846c854f6ce934e081c1fcb55dfe9d1e5eb4bba7..2ae5f674514c6baf0b9794ee2d37d6ad06276483 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -812,14 +812,11 @@ void FullCodeGenerator::VisitVariableDeclaration( |
// must not destroy the current value. |
if (hole_init) { |
__ LoadRoot(r3, Heap::kTheHoleValueRootIndex); |
- __ Push(r5, r3); |
} else { |
__ LoadSmiLiteral(r3, Smi::FromInt(0)); // Indicates no initial value. |
- __ Push(r5, r3); |
} |
- __ LoadSmiLiteral( |
- r3, Smi::FromInt(variable->DeclarationPropertyAttributes())); |
- __ Push(r3); |
+ __ Push(r5, r3); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
__ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |
@@ -871,9 +868,7 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
__ Push(r5); |
// Push initial value for function declaration. |
VisitForStackValue(declaration->fun()); |
- __ LoadSmiLiteral( |
- r5, Smi::FromInt(variable->DeclarationPropertyAttributes())); |
- __ Push(r5); |
+ __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); |
__ CallRuntime(Runtime::kDeclareLookupSlot, 3); |
break; |
} |