Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index afdd68eac6c1aef32dd7c4822633c6ec192f33f3..e2f02202bddecd3d1f607b781e508a80933be244 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -708,8 +708,7 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ Push(lhs, rhs); |
// Figure out which native to call and setup the arguments. |
if (cc == eq) { |
- __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2, |
- 1); |
+ __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2); |
} else { |
int ncr; // NaN compare result |
if (cc == lt || cc == le) { |
@@ -724,8 +723,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); |
@@ -948,7 +947,7 @@ void MathPowStub::Generate(MacroAssembler* masm) { |
if (exponent_type() == ON_STACK) { |
// The arguments are still on the stack. |
__ bind(&call_runtime); |
- __ TailCallRuntime(Runtime::kMathPowRT, 2, 1); |
+ __ TailCallRuntime(Runtime::kMathPowRT, 2); |
// The stub is called from non-optimized code, which expects the result |
// as heap number in exponent. |
@@ -1492,12 +1491,12 @@ void InstanceOfStub::Generate(MacroAssembler* masm) { |
// Invalidate the instanceof cache. |
__ LoadSmiLiteral(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); |
} |
@@ -1602,7 +1601,7 @@ void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
// by calling the runtime system. |
__ bind(&slow); |
__ push(r4); |
- __ TailCallRuntime(Runtime::kArguments, 1, 1); |
+ __ TailCallRuntime(Runtime::kArguments, 1); |
} |
@@ -1630,7 +1629,7 @@ void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) { |
__ bind(&runtime); |
__ Push(r4, r6, r5); |
- __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewSloppyArguments, 3); |
} |
@@ -1872,7 +1871,7 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// r8 = argument count (tagged) |
__ bind(&runtime); |
__ Push(r4, r6, r8); |
- __ TailCallRuntime(Runtime::kNewSloppyArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewSloppyArguments, 3); |
} |
@@ -1891,7 +1890,7 @@ void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { |
__ Push(receiver, key); // Receiver, key. |
// Perform tail call to the entry. |
- __ TailCallRuntime(Runtime::kLoadElementWithInterceptor, 2, 1); |
+ __ TailCallRuntime(Runtime::kLoadElementWithInterceptor, 2); |
__ bind(&slow); |
PropertyAccessCompiler::TailCallBuiltin( |
@@ -1983,7 +1982,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
// Do the runtime call to allocate the arguments object. |
__ bind(&runtime); |
__ Push(r4, r6, r5); |
- __ TailCallRuntime(Runtime::kNewStrictArguments, 3, 1); |
+ __ TailCallRuntime(Runtime::kNewStrictArguments, 3); |
} |
@@ -2009,7 +2008,7 @@ void RestParamAccessStub::GenerateNew(MacroAssembler* masm) { |
__ StoreP(r6, MemOperand(sp, 3 * kPointerSize)); |
__ bind(&runtime); |
- __ TailCallRuntime(Runtime::kNewRestParam, 4, 1); |
+ __ TailCallRuntime(Runtime::kNewRestParam, 4); |
} |
@@ -2018,7 +2017,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
// time or if regexp entry in generated code is turned off runtime switch or |
// at compilation. |
#ifdef V8_INTERPRETED_REGEXP |
- __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExec, 4); |
#else // V8_INTERPRETED_REGEXP |
// Stack frame on entry. |
@@ -2313,7 +2312,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ beq(&runtime); |
// For exception, throw the exception again. |
- __ TailCallRuntime(Runtime::kRegExpExecReThrow, 4, 1); |
+ __ TailCallRuntime(Runtime::kRegExpExecReThrow, 4); |
__ bind(&failure); |
// For failure and exception return null. |
@@ -2402,7 +2401,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Do the runtime call to execute the regexp. |
__ 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). |
@@ -3154,7 +3153,7 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
// Just jump to runtime to create the sub string. |
__ bind(&runtime); |
- __ TailCallRuntime(Runtime::kSubString, 3, 1); |
+ __ TailCallRuntime(Runtime::kSubString, 3); |
__ bind(&single_char); |
// r3: original string |
@@ -3194,7 +3193,7 @@ void ToNumberStub::Generate(MacroAssembler* masm) { |
__ blr(); |
__ bind(&slow_string); |
__ push(r3); // Push argument. |
- __ TailCallRuntime(Runtime::kStringToNumber, 1, 1); |
+ __ TailCallRuntime(Runtime::kStringToNumber, 1); |
__ bind(¬_string); |
Label not_oddball; |
@@ -3205,7 +3204,7 @@ void ToNumberStub::Generate(MacroAssembler* masm) { |
__ bind(¬_oddball); |
__ push(r3); // Push argument. |
- __ TailCallRuntime(Runtime::kToNumber, 1, 1); |
+ __ TailCallRuntime(Runtime::kToNumber, 1); |
} |
@@ -3227,7 +3226,7 @@ void ToLengthStub::Generate(MacroAssembler* masm) { |
__ bind(¬_smi); |
__ push(r3); // Push argument. |
- __ TailCallRuntime(Runtime::kToLength, 1, 1); |
+ __ TailCallRuntime(Runtime::kToLength, 1); |
} |
@@ -3257,7 +3256,7 @@ void ToStringStub::Generate(MacroAssembler* masm) { |
__ bind(¬_oddball); |
__ push(r3); // Push argument. |
- __ TailCallRuntime(Runtime::kToString, 1, 1); |
+ __ TailCallRuntime(Runtime::kToString, 1); |
} |
@@ -3412,7 +3411,7 @@ void StringCompareStub::Generate(MacroAssembler* masm) { |
// tagged as a small integer. |
__ bind(&runtime); |
__ Push(r4, r3); |
- __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringCompare, 2); |
} |
@@ -3454,7 +3453,7 @@ void CompareICStub::GenerateBooleans(MacroAssembler* masm) { |
__ CheckMap(r4, r5, Heap::kBooleanMapRootIndex, &miss, DO_SMI_CHECK); |
__ CheckMap(r3, r6, 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())) { |
__ LoadP(r4, FieldMemOperand(r4, Oddball::kToNumberOffset)); |
@@ -3738,9 +3737,9 @@ void CompareICStub::GenerateStrings(MacroAssembler* masm) { |
__ bind(&runtime); |
__ Push(left, right); |
if (equality) { |
- __ TailCallRuntime(Runtime::kStringEquals, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringEquals, 2); |
} else { |
- __ TailCallRuntime(Runtime::kStringCompare, 2, 1); |
+ __ TailCallRuntime(Runtime::kStringCompare, 2); |
} |
__ bind(&miss); |
@@ -3786,7 +3785,7 @@ void CompareICStub::GenerateKnownReceivers(MacroAssembler* masm) { |
__ sub(r3, r3, r4); |
__ Ret(); |
} else if (is_strong(strength())) { |
- __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0, 1); |
+ __ TailCallRuntime(Runtime::kThrowStrongModeImplicitConversion, 0); |
} else { |
if (op() == Token::LT || op() == Token::LTE) { |
__ LoadSmiLiteral(r5, Smi::FromInt(GREATER)); |
@@ -3794,7 +3793,7 @@ void CompareICStub::GenerateKnownReceivers(MacroAssembler* masm) { |
__ LoadSmiLiteral(r5, Smi::FromInt(LESS)); |
} |
__ Push(r4, r3, r5); |
- __ TailCallRuntime(Runtime::kCompare, 3, 1); |
+ __ TailCallRuntime(Runtime::kCompare, 3); |
} |
__ bind(&miss); |
@@ -5183,7 +5182,7 @@ void LoadGlobalViaContextStub::Generate(MacroAssembler* masm) { |
// Fallback to runtime. |
__ SmiTag(slot); |
__ Push(slot); |
- __ TailCallRuntime(Runtime::kLoadGlobalViaContext, 1, 1); |
+ __ TailCallRuntime(Runtime::kLoadGlobalViaContext, 1); |
} |
@@ -5312,7 +5311,7 @@ void StoreGlobalViaContextStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(is_strict(language_mode()) |
? Runtime::kStoreGlobalViaContext_Strict |
: Runtime::kStoreGlobalViaContext_Sloppy, |
- 2, 1); |
+ 2); |
} |
@@ -5448,7 +5447,7 @@ static void CallApiFunctionAndReturn(MacroAssembler* masm, |
// 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); |