Commit 9fc48575 authored by mbrandy's avatar mbrandy Committed by Commit bot

PPC: Fix "[fullcodegen] Add support for %_GetSuperConstructor."

Use appropriate load instruction for 32-bit mode.

R=bmeurer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=v8:3330
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#32917}
parent 4903f82c
......@@ -3746,8 +3746,8 @@ void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) {
DCHECK_EQ(1, args->length());
VisitForAccumulatorValue(args->at(0));
__ AssertFunction(r3);
__ ld(r3, FieldMemOperand(r3, HeapObject::kMapOffset));
__ ld(r3, FieldMemOperand(r3, Map::kPrototypeOffset));
__ LoadP(r3, FieldMemOperand(r3, HeapObject::kMapOffset));
__ LoadP(r3, FieldMemOperand(r3, Map::kPrototypeOffset));
context()->Plug(r3);
}
......
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