Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index b31726458b181886c8b1f46460bd37039dfe045b..c6a7fcefefc50c5e5ca4f1541ef5b8c86b3c2550 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -653,8 +653,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ Push(lhs, rhs); |
// Figure out which native to call and setup the arguments. |
if (cond == eq) { |
- __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2, |
- 1); |
+ __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2); |
} else { |
int ncr; // NaN compare result |
if ((cond == lt) || (cond == le)) { |
@@ -669,8 +668,8 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
// Call the native; it returns -1 (less), 0 (equal), or 1 (greater) |
// tagged as a small integer. |
__ TailCallRuntime( |
- is_strong(strength()) ? Runtime::kCompare_Strong : Runtime::kCompare, 3, |
- 1); |
+ is_strong(strength()) ? Runtime::kCompare_Strong : Runtime::kCompare, |
+ 3); |
} |
__ Bind(&miss); |
@@ -966,7 +965,7 @@ void MathPowStub::Generate(MacroAssembler* masm) { |
__ Bind(&call_runtime); |
// Put the arguments back on the stack. |
__ Push(base_tagged, exponent_tagged); |
- __ TailCallRuntime(Runtime::kMathPowRT, 2, 1); |
+ __ TailCallRuntime(Runtime::kMathPowRT, 2); |
// Return. |
__ Bind(&done); |
@@ -1609,12 +1608,12 @@ void InstanceOfStub::Generate(MacroAssembler* masm) { |
// Invalidate the instanceof cache. |
__ Move(scratch, Smi::FromInt(0)); |
__ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); |
- __ TailCallRuntime(Runtime::kHasInPrototypeChain, 2, 1); |
+ __ TailCallRuntime(Runtime::kHasInPrototypeChain, 2); |
// Slow-case: Call the %InstanceOf runtime function. |
__ bind(&slow_case); |
__ Push(object, function); |
- __ TailCallRuntime(Runtime::kInstanceOf, 2, 1); |
+ __ TailCallRuntime(Runtime::kInstanceOf, 2); |
} |
@@ -1665,7 +1664,7 @@ void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
// the runtime system. |
__ Bind(&slow); |
__ Push(key); |
- __ TailCallRuntime(Runtime::kArguments, 1, 1); |
+ __ TailCallRuntime(Runtime::kArguments, 1); |
} |
@@ -1696,7 +1695,7 @@ void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) { |
__ Bind(&runtime); |
__ Push(x1, x3, x2); |
- __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewSloppyArguments, 3); |
} |
@@ -1971,7 +1970,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// Do the runtime call to allocate the arguments object. |
__ Bind(&runtime); |
__ Push(function, recv_arg, arg_count_smi); |
- __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewSloppyArguments, 3); |
} |
@@ -1987,7 +1986,7 @@ void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { |
// Everything is fine, call runtime. |
__ Push(receiver, key); |
- __ TailCallRuntime(Runtime::kLoadElementWithInterceptor, 2, 1); |
+ __ TailCallRuntime(Runtime::kLoadElementWithInterceptor, 2); |
__ Bind(&slow); |
PropertyAccessCompiler::TailCallBuiltin( |
@@ -2119,7 +2118,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
// Do the runtime call to allocate the arguments object. |
__ Bind(&runtime); |
__ Push(function, params, param_count_smi); |
- __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewStrictArguments, 3); |
} |
@@ -2168,13 +2167,13 @@ void RestParamAccessStub::GenerateNew(MacroAssembler* masm) { |
__ Bind(&runtime); |
__ Push(params, param_count_smi, rest_index_smi, language_mode_smi); |
- __ TailCallRuntime(Runtime::kNewRestParam, 4, 1); |
+ __ TailCallRuntime(Runtime::kNewRestParam, 4); |
} |
void RegExpExecStub::Generate(MacroAssembler* masm) { |
#ifdef V8_INTERPRETED_REGEXP |
- __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4); |
#else // V8_INTERPRETED_REGEXP |
// Stack frame on entry. |
@@ -2615,7 +2614,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ B(eq, &runtime); |
// For exception, throw the exception again. |
- __ TailCallRuntime(Runtime::kRegExpExecReThrow, 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExecReThrow, 4); |
__ Bind(&failure); |
__ Mov(x0, Operand(isolate()->factory()->null_value())); |
@@ -2624,7 +2623,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ Ret(); |
__ Bind(&runtime); |
- __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4); |
// Deferred code for string handling. |
// (6) Not a long external string? If yes, go to (8). |
@@ -3155,7 +3154,7 @@ void CompareICStub::GenerateBooleans(MacroAssembler* masm) { |
__ CheckMap(x1, x2, Heap::kBooleanMapRootIndex, &miss, DO_SMI_CHECK); |
__ CheckMap(x0, x3, Heap::kBooleanMapRootIndex, &miss, DO_SMI_CHECK); |
if (op() != Token::EQ_STRICT && is_strong(strength())) { |
- __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0, 1); |
+ __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0); |
} else { |
if (!Token::IsEqualityOp(op())) { |
__ Ldr(x1, FieldMemOperand(x1, Oddball::kToNumberOffset)); |
@@ -3409,9 +3408,9 @@ void CompareICStub::GenerateStrings(MacroAssembler* masm) { |
__ Bind(&runtime); |
__ Push(lhs, rhs); |
if (equality) { |
- __ TailCallRuntime(Runtime::kStringEquals, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringEquals, 2); |
} else { |
- __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringCompare, 2); |
} |
__ Bind(&miss); |
@@ -3471,7 +3470,7 @@ void CompareICStub::GenerateKnownReceivers(MacroAssembler* masm) { |
__ Sub(result, rhs, lhs); |
__ Ret(); |
} else if (is_strong(strength())) { |
- __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0, 1); |
+ __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0); |
} else { |
Register ncr = x2; |
if (op() == Token::LT || op() == Token::LTE) { |
@@ -3480,7 +3479,7 @@ void CompareICStub::GenerateKnownReceivers(MacroAssembler* masm) { |
__ Mov(ncr, Smi::FromInt(LESS)); |
} |
__ Push(lhs, rhs, ncr); |
- __ TailCallRuntime(Runtime::kCompare, 3, 1); |
+ __ TailCallRuntime(Runtime::kCompare, 3); |
} |
__ Bind(&miss); |
@@ -3754,7 +3753,7 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
__ Ret(); |
__ Bind(&runtime); |
- __ TailCallRuntime(Runtime::kSubString, 3, 1); |
+ __ TailCallRuntime(Runtime::kSubString, 3); |
__ bind(&single_char); |
// x1: result_length |
@@ -3800,7 +3799,7 @@ void ToNumberStub::Generate(MacroAssembler* masm) { |
__ Ret(); |
__ Bind(&slow_string); |
__ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); |
+ __ TailCallRuntime(Runtime::kStringToNumber, 1); |
__ Bind(¬_string); |
Label not_oddball; |
@@ -3811,7 +3810,7 @@ void ToNumberStub::Generate(MacroAssembler* masm) { |
__ Bind(¬_oddball); |
__ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
+ __ TailCallRuntime(Runtime::kToNumber, 1); |
} |
@@ -3826,7 +3825,7 @@ void ToLengthStub::Generate(MacroAssembler* masm) { |
__ Bind(¬_smi); |
__ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kToLength, 1, 1); |
+ __ TailCallRuntime(Runtime::kToLength, 1); |
} |
@@ -3858,7 +3857,7 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
__ Bind(¬_oddball); |
__ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kToString, 1, 1); |
+ __ TailCallRuntime(Runtime::kToString, 1); |
} |
@@ -4002,7 +4001,7 @@ void StringCompareStub::Generate(MacroAssembler* masm) { |
// Returns -1 (less), 0 (equal), or 1 (greater) tagged as a small integer. |
__ Bind(&runtime); |
__ Push(x1, x0); |
- __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringCompare, 2); |
} |
@@ -5371,7 +5370,7 @@ void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
__ Bind(&slow_case); |
__ SmiTag(slot); |
__ Push(slot); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext, 1, 1); |
+ __ TailCallRuntime(Runtime::kLoadGlobalViaContext, 1); |
} |
@@ -5492,7 +5491,7 @@ void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(is_strict(language_mode()) |
? Runtime::kStoreGlobalViaContext_Strict |
: Runtime::kStoreGlobalViaContext_Sloppy, |
- 2, 1); |
+ 2); |
} |
@@ -5645,7 +5644,7 @@ static void CallApiFunctionAndReturn( |
// Re-throw by promoting a scheduled exception. |
__ Bind(&promote_scheduled_exception); |
- __ TailCallRuntime(Runtime::kPromoteScheduledException, 0, 1); |
+ __ TailCallRuntime(Runtime::kPromoteScheduledException, 0); |
// HandleScope limit has changed. Delete allocated extensions. |
__ Bind(&delete_allocated_handles); |