PPC: Fix "[compiler] Remove the special case "prototype" load in class literals."

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=

Review URL: https://codereview.chromium.org/1675383002

Cr-Commit-Position: refs/heads/master@{#33831}
This commit is contained in:
mbrandy 2016-02-08 14:24:38 -08:00 committed by Commit bot
parent ceaccc911e
commit e0dc2cd5b6
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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<Object> value);
void Move(Register dst, Register src, Condition cond = al);
void Move(DoubleRegister dst, DoubleRegister src);