Commit e0dc2cd5 authored by mbrandy's avatar mbrandy Committed by Commit bot

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}
parent ceaccc91
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment