Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1303333009: PPC: Fix "Desugar %DefaultConstructorCallSuper partially in parser." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/ppc/full-codegen-ppc.cc
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc
index 35d03cc566d57e8cab67b865b1145f67c67f77ad..6a2f1480bc279cde615e448c490ae921c940f309 100644
--- a/src/full-codegen/ppc/full-codegen-ppc.cc
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc
@@ -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));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698