Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index 7e5f035113a60afb0ef2b978909d16c438b433e9..3ab949fd35b1732f8156b6b23a273ba1f45e7f7b 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3071,7 +3071,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ EmitLoadTypeFeedbackVector(r2); |
__ mov(r3, Operand(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. |
@@ -3099,20 +3099,15 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
// constructor invocation. |
SetConstructCallPosition(expr, arg_count); |
- // Load new target into r4. |
+ // Load new target into r3. |
VisitForAccumulatorValue(super_call_ref->new_target_var()); |
- __ mov(r4, result_register()); |
+ __ mov(r3, result_register()); |
// Load function and argument count into r1 and r0. |
__ mov(r0, Operand(arg_count)); |
__ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); |
- // Record call targets in unoptimized code. |
- __ EmitLoadTypeFeedbackVector(r2); |
- __ mov(r3, Operand(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); |