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:
parent
ceaccc911e
commit
e0dc2cd5b6
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user