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 76bad8306db72753d7022c4bb7e7c3297b5cfa4f..7aed227891ce565ac2f27fc76d3114b1c6442a01 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -3064,7 +3064,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ EmitLoadTypeFeedbackVector(r5); |
__ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot())); |
- CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); |
+ CallConstructStub stub(isolate()); |
__ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
// Restore context register. |
@@ -3092,20 +3092,15 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
// constructor invocation. |
SetConstructCallPosition(expr, arg_count); |
- // Load new target into r7. |
+ // Load new target into r6. |
VisitForAccumulatorValue(super_call_ref->new_target_var()); |
- __ mr(r7, result_register()); |
+ __ mr(r6, result_register()); |
// Load function and argument count into r1 and r0. |
__ mov(r3, Operand(arg_count)); |
__ LoadP(r4, MemOperand(sp, arg_count * kPointerSize)); |
- // Record call targets in unoptimized code. |
- __ EmitLoadTypeFeedbackVector(r5); |
- __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackSlot())); |
- |
- CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET); |
- __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
+ __ Call(isolate()->builtins()->Construct(), RelocInfo::CONSTRUCT_CALL); |
RecordJSReturnSite(expr); |