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 788b69284d49bc35e3023c972f41f1a30bd9314a..c07f390744e897a8c5b7edcac7aac33373bbc5b5 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -3089,7 +3089,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
// Call the construct call builtin that handles allocation and |
// constructor invocation. |
- SetConstructCallPosition(expr); |
+ SetConstructCallPosition(expr, arg_count); |
// Load function and argument count into r1 and r0. |
__ mov(r0, Operand(arg_count)); |
@@ -3125,7 +3125,7 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
// Call the construct call builtin that handles allocation and |
// constructor invocation. |
- SetConstructCallPosition(expr); |
+ SetConstructCallPosition(expr, arg_count); |
// Load new target into r4. |
VisitForAccumulatorValue(super_call_ref->new_target_var()); |
@@ -3853,6 +3853,10 @@ void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) { |
VisitForStackValue(args->at(0)); |
VisitForStackValue(args->at(1)); |
+ // Call the construct call builtin that handles allocation and |
+ // constructor invocation. |
+ SetConstructCallPosition(expr, 0); |
+ |
// Load new target into r3. |
__ ldr(r3, MemOperand(sp, 1 * kPointerSize)); |