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

PPC: Fix "Desugar %DefaultConstructorCallSuper partially in parser."

R=mstarzinger@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=

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

Cr-Commit-Position: refs/heads/master@{#30666}
parent 96c0e6f9
......@@ -4112,9 +4112,13 @@ void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) {
ZoneList<Expression*>* args = expr->arguments();
DCHECK(args->length() == 2);
// Evaluate new.target and super constructor.
// Evaluate new.target.
VisitForStackValue(args->at(0));
VisitForStackValue(args->at(1));
// Evaluate super constructor (to stack and r4).
VisitForAccumulatorValue(args->at(1));
__ push(result_register());
__ mr(r4, result_register());
// Load original constructor into r7.
__ LoadP(r7, MemOperand(sp, 1 * kPointerSize));
......
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