Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index b1b35f82f68aba06c2443b272f11674ea73ebae7..9fcbe2dcab00f68c4cfbfe669c32745267925bca 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -230,7 +230,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
__ Push(rbx); |
__ Push(rax); // initial map |
- __ CallRuntime(Runtime::kFinalizeInstanceSize, 1); |
+ __ CallRuntime(Runtime::kFinalizeInstanceSize); |
__ Pop(rbx); |
__ Pop(rdx); |
@@ -268,7 +268,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
__ Push(rdx); |
__ Push(rdi); // constructor function |
__ Push(rdx); // new target |
- __ CallRuntime(Runtime::kNewObject, 2); |
+ __ CallRuntime(Runtime::kNewObject); |
__ movp(rbx, rax); // store result in rbx |
__ Pop(rdx); |
__ Pop(rdi); |
@@ -388,7 +388,7 @@ void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) { |
void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) { |
FrameScope scope(masm, StackFrame::INTERNAL); |
__ Push(rdi); |
- __ CallRuntime(Runtime::kThrowConstructedNonConstructable, 1); |
+ __ CallRuntime(Runtime::kThrowConstructedNonConstructable); |
} |
@@ -423,7 +423,7 @@ static void Generate_CheckStackOverflow(MacroAssembler* masm, |
__ j(greater, &okay); // Signed comparison. |
// Out of stack space. |
- __ CallRuntime(Runtime::kThrowStackOverflow, 0); |
+ __ CallRuntime(Runtime::kThrowStackOverflow); |
__ bind(&okay); |
} |
@@ -628,7 +628,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ subp(rdx, rcx); |
__ CompareRoot(rdx, Heap::kRealStackLimitRootIndex); |
__ j(above_equal, &ok, Label::kNear); |
- __ CallRuntime(Runtime::kThrowStackOverflow, 0); |
+ __ CallRuntime(Runtime::kThrowStackOverflow); |
__ bind(&ok); |
// If ok, push undefined as the initial value for all register file entries. |
@@ -658,7 +658,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
__ CompareRoot(rsp, Heap::kStackLimitRootIndex); |
__ j(above_equal, &ok, Label::kNear); |
__ Push(kInterpreterBytecodeArrayRegister); |
- __ CallRuntime(Runtime::kStackGuard, 0); |
+ __ CallRuntime(Runtime::kStackGuard); |
__ Pop(kInterpreterBytecodeArrayRegister); |
__ bind(&ok); |
} |
@@ -800,7 +800,7 @@ static void Generate_InterpreterNotifyDeoptimizedHelper( |
// Pass the deoptimization type to the runtime system. |
__ Push(Smi::FromInt(static_cast<int>(type))); |
- __ CallRuntime(Runtime::kNotifyDeoptimized, 1); |
+ __ CallRuntime(Runtime::kNotifyDeoptimized); |
__ Pop(kInterpreterAccumulatorRegister); // Restore accumulator register. |
// Tear down internal frame. |
@@ -984,7 +984,7 @@ static void Generate_NotifyStubFailureHelper(MacroAssembler* masm, |
// stubs that tail call the runtime on deopts passing their parameters in |
// registers. |
__ Pushad(); |
- __ CallRuntime(Runtime::kNotifyStubFailure, 0, save_doubles); |
+ __ CallRuntime(Runtime::kNotifyStubFailure, save_doubles); |
__ Popad(); |
// Tear down internal frame. |
} |
@@ -1013,7 +1013,7 @@ static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, |
// Pass the deoptimization type to the runtime system. |
__ Push(Smi::FromInt(static_cast<int>(type))); |
- __ CallRuntime(Runtime::kNotifyDeoptimized, 1); |
+ __ CallRuntime(Runtime::kNotifyDeoptimized); |
// Tear down internal frame. |
} |
@@ -1126,7 +1126,7 @@ void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |
{ |
StackArgumentsAccessor args(rsp, 0); |
__ movp(args.GetReceiverOperand(), rdi); |
- __ TailCallRuntime(Runtime::kThrowApplyNonFunction, 1); |
+ __ TailCallRuntime(Runtime::kThrowApplyNonFunction); |
} |
} |
@@ -1242,7 +1242,7 @@ void Builtins::Generate_ReflectApply(MacroAssembler* masm) { |
{ |
StackArgumentsAccessor args(rsp, 0); |
__ movp(args.GetReceiverOperand(), rdi); |
- __ TailCallRuntime(Runtime::kThrowApplyNonFunction, 1); |
+ __ TailCallRuntime(Runtime::kThrowApplyNonFunction); |
} |
} |
@@ -1316,7 +1316,7 @@ void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { |
{ |
StackArgumentsAccessor args(rsp, 0); |
__ movp(args.GetReceiverOperand(), rdi); |
- __ TailCallRuntime(Runtime::kThrowCalledNonCallable, 1); |
+ __ TailCallRuntime(Runtime::kThrowCalledNonCallable); |
} |
// 4c. The new.target is not a constructor, throw an appropriate TypeError. |
@@ -1324,7 +1324,7 @@ void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { |
{ |
StackArgumentsAccessor args(rsp, 0); |
__ movp(args.GetReceiverOperand(), rdx); |
- __ TailCallRuntime(Runtime::kThrowCalledNonCallable, 1); |
+ __ TailCallRuntime(Runtime::kThrowCalledNonCallable); |
} |
} |
@@ -1446,7 +1446,7 @@ void Builtins::Generate_StringConstructor(MacroAssembler* masm) { |
__ PopReturnAddressTo(rcx); |
__ Push(rax); |
__ PushReturnAddressFrom(rcx); |
- __ TailCallRuntime(Runtime::kSymbolDescriptiveString, 1); |
+ __ TailCallRuntime(Runtime::kSymbolDescriptiveString); |
} |
} |
@@ -1532,7 +1532,7 @@ void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
__ Push(rbx); // the first argument |
__ Push(rdi); // constructor function |
__ Push(rdx); // new target |
- __ CallRuntime(Runtime::kNewObject, 2); |
+ __ CallRuntime(Runtime::kNewObject); |
__ Pop(FieldOperand(rax, JSValue::kValueOffset)); |
} |
__ Ret(); |
@@ -1671,7 +1671,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
{ |
FrameScope frame(masm, StackFrame::MANUAL); |
EnterArgumentsAdaptorFrame(masm); |
- __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments, 0); |
+ __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments); |
} |
__ bind(&no_strong_error); |
@@ -1730,7 +1730,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
__ bind(&stack_overflow); |
{ |
FrameScope frame(masm, StackFrame::MANUAL); |
- __ CallRuntime(Runtime::kThrowStackOverflow, 0); |
+ __ CallRuntime(Runtime::kThrowStackOverflow); |
__ int3(); |
} |
} |
@@ -1774,7 +1774,7 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
__ Push(rdi); |
__ Push(rdx); |
__ Push(rax); |
- __ CallRuntime(Runtime::kCreateListFromArrayLike, 1); |
+ __ CallRuntime(Runtime::kCreateListFromArrayLike); |
__ Pop(rdx); |
__ Pop(rdi); |
__ SmiToInteger32(rbx, FieldOperand(rax, FixedArray::kLengthOffset)); |
@@ -1824,7 +1824,7 @@ void Builtins::Generate_Apply(MacroAssembler* masm) { |
// Check if the arguments will overflow the stack. |
__ cmpp(rcx, rbx); |
__ j(greater, &done, Label::kNear); // Signed comparison. |
- __ TailCallRuntime(Runtime::kThrowStackOverflow, 1); |
+ __ TailCallRuntime(Runtime::kThrowStackOverflow); |
__ bind(&done); |
} |
@@ -1974,7 +1974,7 @@ void Builtins::Generate_CallFunction(MacroAssembler* masm, |
{ |
FrameScope frame(masm, StackFrame::INTERNAL); |
__ Push(rdi); |
- __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1); |
+ __ CallRuntime(Runtime::kThrowConstructorNonCallableError); |
} |
} |
@@ -2018,7 +2018,7 @@ void Generate_PushBoundArguments(MacroAssembler* masm) { |
{ |
FrameScope scope(masm, StackFrame::MANUAL); |
__ EnterFrame(StackFrame::INTERNAL); |
- __ CallRuntime(Runtime::kThrowStackOverflow, 0); |
+ __ CallRuntime(Runtime::kThrowStackOverflow); |
} |
__ bind(&done); |
} |
@@ -2140,7 +2140,7 @@ void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
__ Push(rdi); |
- __ CallRuntime(Runtime::kThrowCalledNonCallable, 1); |
+ __ CallRuntime(Runtime::kThrowCalledNonCallable); |
} |
} |
@@ -2394,7 +2394,7 @@ void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { |
__ PushReturnAddressFrom(rbx); |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ TailCallRuntime(Runtime::kThrowIllegalInvocation, 0); |
+ __ TailCallRuntime(Runtime::kThrowIllegalInvocation); |
} |
} |
@@ -2406,7 +2406,7 @@ void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Pass function as argument. |
__ Push(rax); |
- __ CallRuntime(Runtime::kCompileForOnStackReplacement, 1); |
+ __ CallRuntime(Runtime::kCompileForOnStackReplacement); |
} |
Label skip; |
@@ -2442,7 +2442,7 @@ void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { |
__ j(above_equal, &ok); |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ CallRuntime(Runtime::kStackGuard, 0); |
+ __ CallRuntime(Runtime::kStackGuard); |
} |
__ jmp(masm->isolate()->builtins()->OnStackReplacement(), |
RelocInfo::CODE_TARGET); |