Lines Matching refs:masm
35 #define __ ACCESS_MASM(masm)
37 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument
45 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
49 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
57 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
84 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument
88 UseScratchRegisterScope temps(masm); in Generate_PushArguments()
105 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
123 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
142 Generate_PushArguments(masm, r4, r0, r5, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper()
166 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_JSBuiltinsConstructStubHelper()
175 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument
185 FrameScope scope(masm, StackFrame::MANUAL); in Generate_JSConstructStubGeneric()
212 __ IncrementCounter(masm->isolate()->counters()->constructed_objects(), 1, r4, in Generate_JSConstructStubGeneric()
214 __ Call(BUILTIN_CODE(masm->isolate(), FastNewObject), RelocInfo::CODE_TARGET); in Generate_JSConstructStubGeneric()
229 masm->isolate()->heap()->SetConstructStubCreateDeoptPCOffset( in Generate_JSConstructStubGeneric()
230 masm->pc_offset()); in Generate_JSConstructStubGeneric()
265 Generate_PushArguments(masm, r4, r0, r5, ArgumentsElementType::kRaw); in Generate_JSConstructStubGeneric()
283 masm->isolate()->heap()->SetConstructStubInvokeDeoptPCOffset( in Generate_JSConstructStubGeneric()
284 masm->pc_offset()); in Generate_JSConstructStubGeneric()
339 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStub() argument
340 Generate_JSBuiltinsConstructStubHelper(masm); in Generate_JSBuiltinsConstructStub()
343 static void AssertCodeIsBaseline(MacroAssembler* masm, Register code, in AssertCodeIsBaseline() argument
353 static void GetSharedFunctionInfoBytecodeOrBaseline(MacroAssembler* masm, in GetSharedFunctionInfoBytecodeOrBaseline() argument
357 ASM_CODE_COMMENT(masm); in GetSharedFunctionInfoBytecodeOrBaseline()
363 AssertCodeIsBaseline(masm, sfi_data, scratch1); in GetSharedFunctionInfoBytecodeOrBaseline()
378 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { in Generate_ResumeGeneratorTrampoline() argument
401 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); in Generate_ResumeGeneratorTrampoline()
410 ExternalReference::debug_suspended_generator_address(masm->isolate()); in Generate_ResumeGeneratorTrampoline()
460 GetSharedFunctionInfoBytecodeOrBaseline(masm, r3, r0, &is_baseline); in Generate_ResumeGeneratorTrampoline()
483 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
495 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
505 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
511 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) { in Generate_ConstructedNonConstructable() argument
512 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_ConstructedNonConstructable()
544 void Generate_JSEntryVariant(MacroAssembler* masm, StackFrame::Type type, in Generate_JSEntryVariant() argument
563 NoRootArrayScope no_root_array(masm); in Generate_JSEntryVariant()
589 masm->isolate())); in Generate_JSEntryVariant()
610 IsolateAddressId::kJSEntrySPAddress, masm->isolate()); in Generate_JSEntryVariant()
632 Assembler::BlockConstPoolScope block_const_pool(masm); in Generate_JSEntryVariant()
637 masm->isolate()->builtins()->SetJSEntryHandlerOffset(handler_entry.pos()); in Generate_JSEntryVariant()
645 IsolateAddressId::kPendingExceptionAddress, masm->isolate())); in Generate_JSEntryVariant()
663 masm->isolate()->builtins()->code_handle(entry_trampoline); in Generate_JSEntryVariant()
685 masm->isolate())); in Generate_JSEntryVariant()
708 void Builtins::Generate_JSEntry(MacroAssembler* masm) { in Generate_JSEntry() argument
709 Generate_JSEntryVariant(masm, StackFrame::ENTRY, Builtin::kJSEntryTrampoline); in Generate_JSEntry()
712 void Builtins::Generate_JSConstructEntry(MacroAssembler* masm) { in Generate_JSConstructEntry() argument
713 Generate_JSEntryVariant(masm, StackFrame::CONSTRUCT_ENTRY, in Generate_JSConstructEntry()
717 void Builtins::Generate_JSRunMicrotasksEntry(MacroAssembler* masm) { in Generate_JSRunMicrotasksEntry() argument
718 Generate_JSEntryVariant(masm, StackFrame::ENTRY, in Generate_JSRunMicrotasksEntry()
722 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, in Generate_JSEntryTrampolineHelper() argument
746 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_JSEntryTrampolineHelper()
750 IsolateAddressId::kContextAddress, masm->isolate()); in Generate_JSEntryTrampolineHelper()
776 Generate_PushArguments(masm, r4, r0, r5, ArgumentsElementType::kHandle); in Generate_JSEntryTrampolineHelper()
801 ? BUILTIN_CODE(masm->isolate(), Construct) in Generate_JSEntryTrampolineHelper()
802 : masm->isolate()->builtins()->Call(); in Generate_JSEntryTrampolineHelper()
814 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { in Generate_JSEntryTrampoline() argument
815 Generate_JSEntryTrampolineHelper(masm, false); in Generate_JSEntryTrampoline()
818 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { in Generate_JSConstructEntryTrampoline() argument
819 Generate_JSEntryTrampolineHelper(masm, true); in Generate_JSConstructEntryTrampoline()
822 void Builtins::Generate_RunMicrotasksTrampoline(MacroAssembler* masm) { in Generate_RunMicrotasksTrampoline() argument
829 __ Jump(BUILTIN_CODE(masm->isolate(), RunMicrotasks), RelocInfo::CODE_TARGET); in Generate_RunMicrotasksTrampoline()
832 static void ReplaceClosureCodeWithOptimizedCode(MacroAssembler* masm, in ReplaceClosureCodeWithOptimizedCode() argument
835 ASM_CODE_COMMENT(masm); in ReplaceClosureCodeWithOptimizedCode()
844 static void LeaveInterpreterFrame(MacroAssembler* masm, Register scratch1, in LeaveInterpreterFrame() argument
846 ASM_CODE_COMMENT(masm); in LeaveInterpreterFrame()
874 static void TailCallRuntimeIfStateEquals(MacroAssembler* masm, in TailCallRuntimeIfStateEquals() argument
878 ASM_CODE_COMMENT(masm); in TailCallRuntimeIfStateEquals()
882 GenerateTailCallToReturnedCode(masm, function_id); in TailCallRuntimeIfStateEquals()
886 static void TailCallOptimizedCodeSlot(MacroAssembler* masm, in TailCallOptimizedCodeSlot() argument
915 ReplaceClosureCodeWithOptimizedCode(masm, optimized_code_entry, closure); in TailCallOptimizedCodeSlot()
924 GenerateTailCallToReturnedCode(masm, Runtime::kHealOptimizedCodeSlot); in TailCallOptimizedCodeSlot()
927 static void MaybeOptimizeCode(MacroAssembler* masm, Register feedback_vector, in MaybeOptimizeCode() argument
939 TailCallRuntimeIfStateEquals(masm, tiering_state, in MaybeOptimizeCode()
942 TailCallRuntimeIfStateEquals(masm, tiering_state, in MaybeOptimizeCode()
954 static void AdvanceBytecodeOffsetOrReturn(MacroAssembler* masm, in AdvanceBytecodeOffsetOrReturn() argument
959 ASM_CODE_COMMENT(masm); in AdvanceBytecodeOffsetOrReturn()
1033 MacroAssembler* masm, Register optimization_state, Register feedback_vector, in LoadTieringStateAndJumpIfNeedsProcessing() argument
1035 ASM_CODE_COMMENT(masm); in LoadTieringStateAndJumpIfNeedsProcessing()
1046 MacroAssembler* masm, Register optimization_state, in MaybeOptimizeCodeOrTailCallOptimizedCodeSlot() argument
1048 ASM_CODE_COMMENT(masm); in MaybeOptimizeCodeOrTailCallOptimizedCodeSlot()
1058 MaybeOptimizeCode(masm, feedback_vector, tiering_state); in MaybeOptimizeCodeOrTailCallOptimizedCodeSlot()
1065 TailCallOptimizedCodeSlot(masm, optimized_code_entry, r6); in MaybeOptimizeCodeOrTailCallOptimizedCodeSlot()
1070 void ResetBytecodeAgeAndOsrState(MacroAssembler* masm, Register bytecode_array, in ResetBytecodeAgeAndOsrState() argument
1084 void Builtins::Generate_BaselineOutOfLinePrologue(MacroAssembler* masm) { in Generate_BaselineOutOfLinePrologue() argument
1085 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1099 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1110 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1114 LoadTieringStateAndJumpIfNeedsProcessing(masm, optimization_state, in Generate_BaselineOutOfLinePrologue()
1121 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1132 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_BaselineOutOfLinePrologue()
1134 ASM_CODE_COMMENT_STRING(masm, "Frame Setup"); in Generate_BaselineOutOfLinePrologue()
1154 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1155 ResetBytecodeAgeAndOsrState(masm, bytecodeArray, temps.Acquire()); in Generate_BaselineOutOfLinePrologue()
1162 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1175 ASM_CODE_COMMENT_STRING(masm, "Stack/interrupt check"); in Generate_BaselineOutOfLinePrologue()
1181 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1197 ASM_CODE_COMMENT_STRING(masm, "Optimized marker check"); in Generate_BaselineOutOfLinePrologue()
1198 UseScratchRegisterScope temps(masm); in Generate_BaselineOutOfLinePrologue()
1204 MaybeOptimizeCodeOrTailCallOptimizedCodeSlot(masm, optimization_state, in Generate_BaselineOutOfLinePrologue()
1211 ASM_CODE_COMMENT_STRING(masm, "Stack/interrupt call"); in Generate_BaselineOutOfLinePrologue()
1212 FrameScope frame_scope(masm, StackFrame::INTERNAL); in Generate_BaselineOutOfLinePrologue()
1240 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { in Generate_InterpreterEntryTrampoline() argument
1252 masm, kInterpreterBytecodeArrayRegister, r8, &is_baseline); in Generate_InterpreterEntryTrampoline()
1277 masm, optimization_state, feedback_vector, &has_optimized_code_or_state); in Generate_InterpreterEntryTrampoline()
1293 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_InterpreterEntryTrampoline()
1296 ResetBytecodeAgeAndOsrState(masm, kInterpreterBytecodeArrayRegister, r9); in Generate_InterpreterEntryTrampoline()
1357 ExternalReference::interpreter_dispatch_table_address(masm->isolate())); in Generate_InterpreterEntryTrampoline()
1364 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); in Generate_InterpreterEntryTrampoline()
1380 AdvanceBytecodeOffsetOrReturn(masm, kInterpreterBytecodeArrayRegister, in Generate_InterpreterEntryTrampoline()
1387 LeaveInterpreterFrame(masm, r2, r4); in Generate_InterpreterEntryTrampoline()
1415 MaybeOptimizeCodeOrTailCallOptimizedCodeSlot(masm, optimization_state, in Generate_InterpreterEntryTrampoline()
1435 LoadTieringStateAndJumpIfNeedsProcessing(masm, optimization_state, in Generate_InterpreterEntryTrampoline()
1442 ReplaceClosureCodeWithOptimizedCode(masm, r2, closure); in Generate_InterpreterEntryTrampoline()
1446 GenerateTailCallToReturnedCode(masm, Runtime::kInstallBaselineCode); in Generate_InterpreterEntryTrampoline()
1450 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy); in Generate_InterpreterEntryTrampoline()
1457 static void GenerateInterpreterPushArgs(MacroAssembler* masm, Register num_args, in GenerateInterpreterPushArgs() argument
1460 ASM_CODE_COMMENT(masm); in GenerateInterpreterPushArgs()
1472 MacroAssembler* masm, ConvertReceiverMode receiver_mode, in Generate_InterpreterPushArgsThenCallImpl() argument
1498 GenerateInterpreterPushArgs(masm, r3, r2, r4); in Generate_InterpreterPushArgsThenCallImpl()
1515 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithSpread), in Generate_InterpreterPushArgsThenCallImpl()
1518 __ Jump(masm->isolate()->builtins()->Call(ConvertReceiverMode::kAny), in Generate_InterpreterPushArgsThenCallImpl()
1532 MacroAssembler* masm, InterpreterPushArgsMode mode) { in Generate_InterpreterPushArgsThenConstructImpl() argument
1552 GenerateInterpreterPushArgs(masm, argc_without_receiver, r4, r5); in Generate_InterpreterPushArgsThenConstructImpl()
1573 Handle<Code> code = BUILTIN_CODE(masm->isolate(), ArrayConstructorImpl); in Generate_InterpreterPushArgsThenConstructImpl()
1577 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructWithSpread), in Generate_InterpreterPushArgsThenConstructImpl()
1582 __ Jump(BUILTIN_CODE(masm->isolate(), Construct), RelocInfo::CODE_TARGET); in Generate_InterpreterPushArgsThenConstructImpl()
1593 static void Generate_InterpreterEnterBytecode(MacroAssembler* masm) { in Generate_InterpreterEnterBytecode() argument
1598 masm->isolate()->heap()->interpreter_entry_return_pc_offset()); in Generate_InterpreterEnterBytecode()
1621 masm->isolate())); in Generate_InterpreterEnterBytecode()
1630 ExternalReference::interpreter_dispatch_table_address(masm->isolate())); in Generate_InterpreterEnterBytecode()
1662 UseScratchRegisterScope temps(masm); in Generate_InterpreterEnterBytecode()
1672 void Builtins::Generate_InterpreterEnterAtNextBytecode(MacroAssembler* masm) { in Generate_InterpreterEnterAtNextBytecode() argument
1692 AdvanceBytecodeOffsetOrReturn(masm, kInterpreterBytecodeArrayRegister, in Generate_InterpreterEnterAtNextBytecode()
1701 Generate_InterpreterEnterBytecode(masm); in Generate_InterpreterEnterAtNextBytecode()
1717 void Builtins::Generate_InterpreterEnterAtBytecode(MacroAssembler* masm) { in Generate_InterpreterEnterAtBytecode() argument
1718 Generate_InterpreterEnterBytecode(masm); in Generate_InterpreterEnterAtBytecode()
1722 void Generate_ContinueToBuiltinHelper(MacroAssembler* masm, in Generate_ContinueToBuiltinHelper() argument
1727 UseScratchRegisterScope temps(masm); in Generate_ContinueToBuiltinHelper()
1775 void Builtins::Generate_ContinueToCodeStubBuiltin(MacroAssembler* masm) { in Generate_ContinueToCodeStubBuiltin() argument
1776 Generate_ContinueToBuiltinHelper(masm, false, false); in Generate_ContinueToCodeStubBuiltin()
1780 MacroAssembler* masm) { in Generate_ContinueToCodeStubBuiltinWithResult() argument
1781 Generate_ContinueToBuiltinHelper(masm, false, true); in Generate_ContinueToCodeStubBuiltinWithResult()
1784 void Builtins::Generate_ContinueToJavaScriptBuiltin(MacroAssembler* masm) { in Generate_ContinueToJavaScriptBuiltin() argument
1785 Generate_ContinueToBuiltinHelper(masm, true, false); in Generate_ContinueToJavaScriptBuiltin()
1789 MacroAssembler* masm) { in Generate_ContinueToJavaScriptBuiltinWithResult() argument
1790 Generate_ContinueToBuiltinHelper(masm, true, true); in Generate_ContinueToJavaScriptBuiltinWithResult()
1793 void Builtins::Generate_NotifyDeoptimized(MacroAssembler* masm) { in Generate_NotifyDeoptimized() argument
1795 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_NotifyDeoptimized()
1806 void Generate_OSREntry(MacroAssembler* masm, Register entry_address, in Generate_OSREntry() argument
1819 void OnStackReplacement(MacroAssembler* masm, bool is_interpreter) { in OnStackReplacement() argument
1820 ASM_CODE_COMMENT(masm); in OnStackReplacement()
1822 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in OnStackReplacement()
1846 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in OnStackReplacement()
1854 Generate_OSREntry(masm, r0, Operand::SmiUntag(r1)); in OnStackReplacement()
1859 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { in Generate_InterpreterOnStackReplacement() argument
1860 return OnStackReplacement(masm, true); in Generate_InterpreterOnStackReplacement()
1863 void Builtins::Generate_BaselineOnStackReplacement(MacroAssembler* masm) { in Generate_BaselineOnStackReplacement() argument
1866 return OnStackReplacement(masm, false); in Generate_BaselineOnStackReplacement()
1870 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { in Generate_FunctionPrototypeApply() argument
1909 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithArrayLike), in Generate_FunctionPrototypeApply()
1917 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeApply()
1922 void Builtins::Generate_FunctionPrototypeCall(MacroAssembler* masm) { in Generate_FunctionPrototypeCall() argument
1941 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeCall()
1944 void Builtins::Generate_ReflectApply(MacroAssembler* masm) { in Generate_ReflectApply() argument
1981 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithArrayLike), in Generate_ReflectApply()
1985 void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { in Generate_ReflectConstruct() argument
2029 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructWithArrayLike), in Generate_ReflectConstruct()
2040 MacroAssembler* masm, Register count, Register argc_in_out, in Generate_AllocateSpaceAndShiftExistingArguments() argument
2044 UseScratchRegisterScope temps(masm); in Generate_AllocateSpaceAndShiftExistingArguments()
2073 void Builtins::Generate_CallOrConstructVarargs(MacroAssembler* masm, in Generate_CallOrConstructVarargs() argument
2111 Generate_AllocateSpaceAndShiftExistingArguments(masm, r4, r0, r9, r5, r6); in Generate_CallOrConstructVarargs()
2140 void Builtins::Generate_CallOrConstructForwardVarargs(MacroAssembler* masm, in Generate_CallOrConstructForwardVarargs() argument
2162 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CallOrConstructForwardVarargs()
2200 Generate_AllocateSpaceAndShiftExistingArguments(masm, r5, r0, r2, scratch, in Generate_CallOrConstructForwardVarargs()
2227 void Builtins::Generate_CallFunction(MacroAssembler* masm, in Generate_CallFunction() argument
2281 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_CallFunction()
2286 __ Call(BUILTIN_CODE(masm->isolate(), ToObject), in Generate_CallFunction()
2314 void Generate_PushBoundArguments(MacroAssembler* masm) { in Generate_PushBoundArguments() argument
2315 ASM_CODE_COMMENT(masm); in Generate_PushBoundArguments()
2347 UseScratchRegisterScope temps(masm); in Generate_PushBoundArguments()
2362 FrameScope scope(masm, StackFrame::MANUAL); in Generate_PushBoundArguments()
2393 void Builtins::Generate_CallBoundFunctionImpl(MacroAssembler* masm) { in Generate_CallBoundFunctionImpl() argument
2405 Generate_PushBoundArguments(masm); in Generate_CallBoundFunctionImpl()
2409 __ Jump(BUILTIN_CODE(masm->isolate(), Call_ReceiverIsAny), in Generate_CallBoundFunctionImpl()
2414 void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { in Generate_Call() argument
2431 __ Jump(masm->isolate()->builtins()->CallFunction(mode), in Generate_Call()
2434 __ Jump(BUILTIN_CODE(masm->isolate(), CallBoundFunction), in Generate_Call()
2448 __ Jump(BUILTIN_CODE(masm->isolate(), CallProxy), RelocInfo::CODE_TARGET, eq); in Generate_Call()
2453 __ Jump(BUILTIN_CODE(masm->isolate(), CallWrappedFunction), in Generate_Call()
2467 __ Jump(masm->isolate()->builtins()->CallFunction( in Generate_Call()
2474 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_Call()
2483 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_Call()
2491 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { in Generate_ConstructFunction() argument
2512 __ Jump(BUILTIN_CODE(masm->isolate(), JSBuiltinsConstructStub), in Generate_ConstructFunction()
2516 __ Jump(BUILTIN_CODE(masm->isolate(), JSConstructStubGeneric), in Generate_ConstructFunction()
2521 void Builtins::Generate_ConstructBoundFunction(MacroAssembler* masm) { in Generate_ConstructBoundFunction() argument
2531 Generate_PushBoundArguments(masm); in Generate_ConstructBoundFunction()
2540 __ Jump(BUILTIN_CODE(masm->isolate(), Construct), RelocInfo::CODE_TARGET); in Generate_ConstructBoundFunction()
2544 void Builtins::Generate_Construct(MacroAssembler* masm) { in Generate_Construct() argument
2574 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructFunction), in Generate_Construct()
2580 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructBoundFunction), in Generate_Construct()
2586 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructProxy), in Generate_Construct()
2597 __ Jump(masm->isolate()->builtins()->CallFunction(), in Generate_Construct()
2604 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructedNonConstructable), in Generate_Construct()
2609 void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { in Generate_WasmCompileLazy() argument
2614 HardAbortScope hard_abort(masm); // Avoid calls to Abort. in Generate_WasmCompileLazy()
2615 FrameAndConstantPoolScope scope(masm, StackFrame::WASM_COMPILE_LAZY); in Generate_WasmCompileLazy()
2673 void Builtins::Generate_WasmDebugBreak(MacroAssembler* masm) { in Generate_WasmDebugBreak() argument
2674 HardAbortScope hard_abort(masm); // Avoid calls to Abort. in Generate_WasmDebugBreak()
2676 FrameAndConstantPoolScope scope(masm, StackFrame::WASM_DEBUG_BREAK); in Generate_WasmDebugBreak()
2710 void Builtins::Generate_GenericJSToWasmWrapper(MacroAssembler* masm) { in Generate_GenericJSToWasmWrapper() argument
2715 void Builtins::Generate_WasmReturnPromiseOnSuspend(MacroAssembler* masm) { in Generate_WasmReturnPromiseOnSuspend() argument
2720 void Builtins::Generate_WasmSuspend(MacroAssembler* masm) { in Generate_WasmSuspend() argument
2725 void Builtins::Generate_WasmResume(MacroAssembler* masm) { in Generate_WasmResume() argument
2730 void Builtins::Generate_WasmOnStackReplace(MacroAssembler* masm) { in Generate_WasmOnStackReplace() argument
2736 void Builtins::Generate_CEntry(MacroAssembler* masm, int result_size, in Generate_CEntry() argument
2761 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CEntry()
2791 __ Move(r2, ExternalReference::isolate_address(masm->isolate())); in Generate_CEntry()
2806 IsolateAddressId::kPendingExceptionAddress, masm->isolate()); in Generate_CEntry()
2832 IsolateAddressId::kPendingHandlerContextAddress, masm->isolate()); in Generate_CEntry()
2835 IsolateAddressId::kPendingHandlerEntrypointAddress, masm->isolate()); in Generate_CEntry()
2837 IsolateAddressId::kPendingHandlerFPAddress, masm->isolate()); in Generate_CEntry()
2839 IsolateAddressId::kPendingHandlerSPAddress, masm->isolate()); in Generate_CEntry()
2846 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CEntry()
2850 __ Move(r2, ExternalReference::isolate_address(masm->isolate())); in Generate_CEntry()
2869 UseScratchRegisterScope temps(masm); in Generate_CEntry()
2872 IsolateAddressId::kCEntryFPAddress, masm->isolate())); in Generate_CEntry()
2878 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in Generate_CEntry()
2884 void Builtins::Generate_DoubleToI(MacroAssembler* masm) { in Generate_DoubleToI() argument
2887 HardAbortScope hard_abort(masm); // Avoid calls to Abort. in Generate_DoubleToI()
2888 UseScratchRegisterScope temps(masm); in Generate_DoubleToI()
2988 void CallApiFunctionAndReturn(MacroAssembler* masm, Register function_address, in CallApiFunctionAndReturn() argument
2992 ASM_CODE_COMMENT(masm); in CallApiFunctionAndReturn()
2993 Isolate* isolate = masm->isolate(); in CallApiFunctionAndReturn()
3095 void Builtins::Generate_CallApiCallback(MacroAssembler* masm) { in Generate_CallApiCallback() argument
3143 __ Move(scratch, ExternalReference::isolate_address(masm->isolate())); in Generate_CallApiCallback()
3165 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_CallApiCallback()
3201 AllowExternalCallThatCantCauseGC scope(masm); in Generate_CallApiCallback()
3202 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, in Generate_CallApiCallback()
3207 void Builtins::Generate_CallApiGetter(MacroAssembler* masm) { in Generate_CallApiGetter() argument
3233 __ Move(scratch, ExternalReference::isolate_address(masm->isolate())); in Generate_CallApiGetter()
3246 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_CallApiGetter()
3265 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, in Generate_CallApiGetter()
3270 void Builtins::Generate_DirectCEntry(MacroAssembler* masm) { in Generate_DirectCEntry() argument
3283 void Builtins::Generate_MemCopyUint8Uint8(MacroAssembler* masm) { in Generate_MemCopyUint8Uint8() argument
3291 UseScratchRegisterScope temps(masm); in Generate_MemCopyUint8Uint8()
3320 void Generate_DeoptimizationEntry(MacroAssembler* masm, in Generate_DeoptimizationEntry() argument
3322 Isolate* isolate = masm->isolate(); in Generate_DeoptimizationEntry()
3333 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3351 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3384 AllowExternalCallThatCantCauseGC scope(masm); in Generate_DeoptimizationEntry()
3404 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3418 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3455 AllowExternalCallThatCantCauseGC scope(masm); in Generate_DeoptimizationEntry()
3496 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3520 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3531 UseScratchRegisterScope temps(masm); in Generate_DeoptimizationEntry()
3543 void Builtins::Generate_DeoptimizationEntry_Eager(MacroAssembler* masm) { in Generate_DeoptimizationEntry_Eager() argument
3544 Generate_DeoptimizationEntry(masm, DeoptimizeKind::kEager); in Generate_DeoptimizationEntry_Eager()
3547 void Builtins::Generate_DeoptimizationEntry_Lazy(MacroAssembler* masm) { in Generate_DeoptimizationEntry_Lazy() argument
3548 Generate_DeoptimizationEntry(masm, DeoptimizeKind::kLazy); in Generate_DeoptimizationEntry_Lazy()
3551 void Builtins::Generate_DeoptimizationEntry_Unused(MacroAssembler* masm) { in Generate_DeoptimizationEntry_Unused() argument
3552 Generate_DeoptimizationEntry(masm, DeoptimizeKind::kUnused); in Generate_DeoptimizationEntry_Unused()
3561 void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm, in Generate_BaselineOrInterpreterEntry() argument
3589 __ Jump(masm->isolate()->builtins()->code_handle(builtin_id), in Generate_BaselineOrInterpreterEntry()
3600 AssertCodeIsBaseline(masm, code_obj, r3); in Generate_BaselineOrInterpreterEntry()
3665 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_BaselineOrInterpreterEntry()
3675 UseScratchRegisterScope temps(masm); in Generate_BaselineOrInterpreterEntry()
3676 ResetBytecodeAgeAndOsrState(masm, kInterpreterBytecodeArrayRegister, in Generate_BaselineOrInterpreterEntry()
3678 Generate_OSREntry(masm, code_obj, in Generate_BaselineOrInterpreterEntry()
3700 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_BaselineOrInterpreterEntry()
3713 MacroAssembler* masm) { in Generate_BaselineOrInterpreterEnterAtBytecode() argument
3714 Generate_BaselineOrInterpreterEntry(masm, false); in Generate_BaselineOrInterpreterEnterAtBytecode()
3718 MacroAssembler* masm) { in Generate_BaselineOrInterpreterEnterAtNextBytecode() argument
3719 Generate_BaselineOrInterpreterEntry(masm, true); in Generate_BaselineOrInterpreterEnterAtNextBytecode()
3723 MacroAssembler* masm) { in Generate_InterpreterOnStackReplacement_ToBaseline() argument
3724 Generate_BaselineOrInterpreterEntry(masm, false, true); in Generate_InterpreterOnStackReplacement_ToBaseline()