Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 552797adb224d70a3e36b79ec18269ef291811e0..d84087e40da781be84ce71d1ba30907e74ba4806 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -5113,7 +5113,11 @@ void CallFunctionStub::Generate(MacroAssembler* masm) { |
__ Branch(&slow, ne, a3, Operand(JS_FUNCTION_TYPE)); |
if (RecordCallTarget()) { |
- GenerateRecordCallTargetNoArray(masm); |
+ if (FLAG_optimize_constructed_arrays) { |
+ GenerateRecordCallTarget(masm); |
+ } else { |
+ GenerateRecordCallTargetNoArray(masm); |
+ } |
} |
// Fast-case: Invoke the function now. |