diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc index 41b89da395..5b2d2a0c70 100644 --- a/src/full-codegen/ppc/full-codegen-ppc.cc +++ b/src/full-codegen/ppc/full-codegen-ppc.cc @@ -2237,6 +2237,7 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { ObjectLiteral::Property* property = lit->properties()->at(i); Expression* value = property->value(); + Register scratch = r4; if (property->is_static()) { __ LoadP(scratch, MemOperand(sp, kPointerSize)); // constructor } else { diff --git a/src/ppc/macro-assembler-ppc.h b/src/ppc/macro-assembler-ppc.h index c773571bb9..1f96a2e23c 100644 --- a/src/ppc/macro-assembler-ppc.h +++ b/src/ppc/macro-assembler-ppc.h @@ -163,6 +163,7 @@ class MacroAssembler : public Assembler { } // Register move. May do nothing if the registers are identical. + void Move(Register dst, Smi* smi) { LoadSmiLiteral(dst, smi); } void Move(Register dst, Handle value); void Move(Register dst, Register src, Condition cond = al); void Move(DoubleRegister dst, DoubleRegister src);