Lines Matching refs:masm

21 #define __ ACCESS_MASM(masm)
23 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
27 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
31 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
36 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
58 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
62 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
70 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
91 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
104 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
145 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in Generate_JSBuiltinsConstructStubHelper()
169 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument
181 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSConstructStubGeneric()
204 __ IncrementCounter(masm->isolate()->counters()->constructed_objects(), 1, in Generate_JSConstructStubGeneric()
206 __ Call(BUILTIN_CODE(masm->isolate(), FastNewObject), in Generate_JSConstructStubGeneric()
223 masm->isolate()->heap()->SetConstructStubCreateDeoptPCOffset( in Generate_JSConstructStubGeneric()
224 masm->pc_offset()); in Generate_JSConstructStubGeneric()
279 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in Generate_JSConstructStubGeneric()
294 masm->isolate()->heap()->SetConstructStubInvokeDeoptPCOffset( in Generate_JSConstructStubGeneric()
295 masm->pc_offset()); in Generate_JSConstructStubGeneric()
345 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStub() argument
346 Generate_JSBuiltinsConstructStubHelper(masm); in Generate_JSBuiltinsConstructStub()
349 static void GetSharedFunctionInfoBytecode(MacroAssembler* masm, in GetSharedFunctionInfoBytecode() argument
362 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { in Generate_ResumeGeneratorTrampoline() argument
384 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); in Generate_ResumeGeneratorTrampoline()
394 ExternalReference::debug_suspended_generator_address(masm->isolate()); in Generate_ResumeGeneratorTrampoline()
448 GetSharedFunctionInfoBytecode(masm, r6, r3); in Generate_ResumeGeneratorTrampoline()
468 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
480 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
490 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_ResumeGeneratorTrampoline()
496 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) { in Generate_ConstructedNonConstructable() argument
497 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_ConstructedNonConstructable()
503 static void Generate_CheckStackOverflow(MacroAssembler* masm, Register argc) { in Generate_CheckStackOverflow() argument
523 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, in Generate_JSEntryTrampolineHelper() argument
532 ProfileEntryHookStub::MaybeCallEntryHook(masm); in Generate_JSEntryTrampolineHelper()
536 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_JSEntryTrampolineHelper()
540 IsolateAddressId::kContextAddress, masm->isolate()); in Generate_JSEntryTrampolineHelper()
549 Generate_CheckStackOverflow(masm, r6); in Generate_JSEntryTrampolineHelper()
584 ? BUILTIN_CODE(masm->isolate(), Construct) in Generate_JSEntryTrampolineHelper()
585 : masm->isolate()->builtins()->Call(); in Generate_JSEntryTrampolineHelper()
596 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { in Generate_JSEntryTrampoline() argument
597 Generate_JSEntryTrampolineHelper(masm, false); in Generate_JSEntryTrampoline()
600 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { in Generate_JSConstructEntryTrampoline() argument
601 Generate_JSEntryTrampolineHelper(masm, true); in Generate_JSConstructEntryTrampoline()
605 MacroAssembler* masm, Register optimized_code, Register closure, in ReplaceClosureCodeWithOptimizedCode() argument
616 static void LeaveInterpreterFrame(MacroAssembler* masm, Register scratch) { in LeaveInterpreterFrame() argument
632 static void TailCallRuntimeIfMarkerEquals(MacroAssembler* masm, in TailCallRuntimeIfMarkerEquals() argument
639 GenerateTailCallToReturnedCode(masm, function_id); in TailCallRuntimeIfMarkerEquals()
643 static void MaybeTailCallOptimizedCodeSlot(MacroAssembler* masm, in MaybeTailCallOptimizedCodeSlot() argument
678 TailCallRuntimeIfMarkerEquals(masm, optimized_code_entry, in MaybeTailCallOptimizedCodeSlot()
681 TailCallRuntimeIfMarkerEquals(masm, optimized_code_entry, in MaybeTailCallOptimizedCodeSlot()
685 masm, optimized_code_entry, in MaybeTailCallOptimizedCodeSlot()
723 ReplaceClosureCodeWithOptimizedCode(masm, optimized_code_entry, closure, in MaybeTailCallOptimizedCodeSlot()
733 GenerateTailCallToReturnedCode(masm, Runtime::kEvictOptimizedCodeSlot); in MaybeTailCallOptimizedCodeSlot()
744 static void AdvanceBytecodeOffsetOrReturn(MacroAssembler* masm, in AdvanceBytecodeOffsetOrReturn() argument
814 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { in Generate_InterpreterEntryTrampoline() argument
815 ProfileEntryHookStub::MaybeCallEntryHook(masm); in Generate_InterpreterEntryTrampoline()
827 MaybeTailCallOptimizedCodeSlot(masm, feedback_vector, r7, r9, r8); in Generate_InterpreterEntryTrampoline()
832 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_InterpreterEntryTrampoline()
841 GetSharedFunctionInfoBytecode(masm, kInterpreterBytecodeArrayRegister, r7); in Generate_InterpreterEntryTrampoline()
930 ExternalReference::interpreter_dispatch_table_address(masm->isolate())); in Generate_InterpreterEntryTrampoline()
938 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset()); in Generate_InterpreterEntryTrampoline()
954 AdvanceBytecodeOffsetOrReturn(masm, kInterpreterBytecodeArrayRegister, in Generate_InterpreterEntryTrampoline()
961 LeaveInterpreterFrame(masm, r5); in Generate_InterpreterEntryTrampoline()
965 static void Generate_StackOverflowCheck(MacroAssembler* masm, Register num_args, in Generate_StackOverflowCheck() argument
981 static void Generate_InterpreterPushArgs(MacroAssembler* masm, in Generate_InterpreterPushArgs() argument
998 MacroAssembler* masm, ConvertReceiverMode receiver_mode, in Generate_InterpreterPushArgsThenCallImpl() argument
1013 Generate_StackOverflowCheck(masm, r6, ip, &stack_overflow); in Generate_InterpreterPushArgsThenCallImpl()
1022 Generate_InterpreterPushArgs(masm, r6, r5, r6, r7); in Generate_InterpreterPushArgsThenCallImpl()
1031 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithSpread), in Generate_InterpreterPushArgsThenCallImpl()
1034 __ Jump(masm->isolate()->builtins()->Call(ConvertReceiverMode::kAny), in Generate_InterpreterPushArgsThenCallImpl()
1048 MacroAssembler* masm, InterpreterPushArgsMode mode) { in Generate_InterpreterPushArgsThenConstructImpl() argument
1066 Generate_StackOverflowCheck(masm, r3, ip, &stack_overflow); in Generate_InterpreterPushArgsThenConstructImpl()
1068 Generate_InterpreterPushArgs(masm, r3, r7, r3, r9); in Generate_InterpreterPushArgsThenConstructImpl()
1081 Handle<Code> code = BUILTIN_CODE(masm->isolate(), ArrayConstructorImpl); in Generate_InterpreterPushArgsThenConstructImpl()
1085 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructWithSpread), in Generate_InterpreterPushArgsThenConstructImpl()
1090 __ Jump(BUILTIN_CODE(masm->isolate(), Construct), RelocInfo::CODE_TARGET); in Generate_InterpreterPushArgsThenConstructImpl()
1101 static void Generate_InterpreterEnterBytecode(MacroAssembler* masm) { in Generate_InterpreterEnterBytecode() argument
1106 masm->isolate()->heap()->interpreter_entry_return_pc_offset()); in Generate_InterpreterEnterBytecode()
1124 __ Move(r5, BUILTIN_CODE(masm->isolate(), InterpreterEntryTrampoline)); in Generate_InterpreterEnterBytecode()
1134 ExternalReference::interpreter_dispatch_table_address(masm->isolate())); in Generate_InterpreterEnterBytecode()
1166 void Builtins::Generate_InterpreterEnterBytecodeAdvance(MacroAssembler* masm) { in Generate_InterpreterEnterBytecodeAdvance() argument
1180 AdvanceBytecodeOffsetOrReturn(masm, kInterpreterBytecodeArrayRegister, in Generate_InterpreterEnterBytecodeAdvance()
1189 Generate_InterpreterEnterBytecode(masm); in Generate_InterpreterEnterBytecodeAdvance()
1196 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) { in Generate_InterpreterEnterBytecodeDispatch() argument
1197 Generate_InterpreterEnterBytecode(masm); in Generate_InterpreterEnterBytecodeDispatch()
1200 void Builtins::Generate_InstantiateAsmJs(MacroAssembler* masm) { in Generate_InstantiateAsmJs() argument
1208 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_InstantiateAsmJs()
1267 void Generate_ContinueToBuiltinHelper(MacroAssembler* masm, in Generate_ContinueToBuiltinHelper() argument
1300 void Builtins::Generate_ContinueToCodeStubBuiltin(MacroAssembler* masm) { in Generate_ContinueToCodeStubBuiltin() argument
1301 Generate_ContinueToBuiltinHelper(masm, false, false); in Generate_ContinueToCodeStubBuiltin()
1305 MacroAssembler* masm) { in Generate_ContinueToCodeStubBuiltinWithResult() argument
1306 Generate_ContinueToBuiltinHelper(masm, false, true); in Generate_ContinueToCodeStubBuiltinWithResult()
1309 void Builtins::Generate_ContinueToJavaScriptBuiltin(MacroAssembler* masm) { in Generate_ContinueToJavaScriptBuiltin() argument
1310 Generate_ContinueToBuiltinHelper(masm, true, false); in Generate_ContinueToJavaScriptBuiltin()
1314 MacroAssembler* masm) { in Generate_ContinueToJavaScriptBuiltinWithResult() argument
1315 Generate_ContinueToBuiltinHelper(masm, true, true); in Generate_ContinueToJavaScriptBuiltinWithResult()
1318 void Builtins::Generate_NotifyDeoptimized(MacroAssembler* masm) { in Generate_NotifyDeoptimized() argument
1320 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_NotifyDeoptimized()
1330 static void Generate_OnStackReplacementHelper(MacroAssembler* masm, in Generate_OnStackReplacementHelper() argument
1341 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_OnStackReplacementHelper()
1366 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in Generate_OnStackReplacementHelper()
1389 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { in Generate_OnStackReplacement() argument
1390 Generate_OnStackReplacementHelper(masm, false); in Generate_OnStackReplacement()
1393 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { in Generate_InterpreterOnStackReplacement() argument
1394 Generate_OnStackReplacementHelper(masm, true); in Generate_InterpreterOnStackReplacement()
1398 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { in Generate_FunctionPrototypeApply() argument
1445 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithArrayLike), in Generate_FunctionPrototypeApply()
1453 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeApply()
1458 void Builtins::Generate_FunctionPrototypeCall(MacroAssembler* masm) { in Generate_FunctionPrototypeCall() argument
1498 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeCall()
1501 void Builtins::Generate_ReflectApply(MacroAssembler* masm) { in Generate_ReflectApply() argument
1547 __ Jump(BUILTIN_CODE(masm->isolate(), CallWithArrayLike), in Generate_ReflectApply()
1551 void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { in Generate_ReflectConstruct() argument
1603 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructWithArrayLike), in Generate_ReflectConstruct()
1607 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { in EnterArgumentsAdaptorFrame() argument
1622 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { in LeaveArgumentsAdaptorFrame() argument
1636 void Builtins::Generate_CallOrConstructVarargs(MacroAssembler* masm, in Generate_CallOrConstructVarargs() argument
1648 if (masm->emit_debug_code()) { in Generate_CallOrConstructVarargs()
1710 void Builtins::Generate_CallOrConstructForwardVarargs(MacroAssembler* masm, in Generate_CallOrConstructForwardVarargs() argument
1731 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CallOrConstructForwardVarargs()
1768 Generate_StackOverflowCheck(masm, r8, r5, &stack_overflow); in Generate_CallOrConstructForwardVarargs()
1796 void Builtins::Generate_CallFunction(MacroAssembler* masm, in Generate_CallFunction() argument
1858 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_CallFunction()
1863 __ Call(BUILTIN_CODE(masm->isolate(), ToObject), in Generate_CallFunction()
1894 FrameAndConstantPoolScope frame(masm, StackFrame::INTERNAL); in Generate_CallFunction()
1902 void Generate_PushBoundArguments(MacroAssembler* masm) { in Generate_PushBoundArguments() argument
1938 FrameScope scope(masm, StackFrame::MANUAL); in Generate_PushBoundArguments()
1983 void Builtins::Generate_CallBoundFunctionImpl(MacroAssembler* masm) { in Generate_CallBoundFunctionImpl() argument
1996 Generate_PushBoundArguments(masm); in Generate_CallBoundFunctionImpl()
2001 __ Jump(BUILTIN_CODE(masm->isolate(), Call_ReceiverIsAny), in Generate_CallBoundFunctionImpl()
2006 void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { in Generate_Call() argument
2016 __ Jump(masm->isolate()->builtins()->CallFunction(mode), in Generate_Call()
2019 __ Jump(BUILTIN_CODE(masm->isolate(), CallBoundFunction), in Generate_Call()
2030 __ Jump(BUILTIN_CODE(masm->isolate(), CallProxy), RelocInfo::CODE_TARGET); in Generate_Call()
2040 __ Jump(masm->isolate()->builtins()->CallFunction( in Generate_Call()
2047 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in Generate_Call()
2054 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { in Generate_ConstructFunction() argument
2076 __ Jump(BUILTIN_CODE(masm->isolate(), JSBuiltinsConstructStub), in Generate_ConstructFunction()
2080 __ Jump(BUILTIN_CODE(masm->isolate(), JSConstructStubGeneric), in Generate_ConstructFunction()
2085 void Builtins::Generate_ConstructBoundFunction(MacroAssembler* masm) { in Generate_ConstructBoundFunction() argument
2095 Generate_PushBoundArguments(masm); in Generate_ConstructBoundFunction()
2108 __ Jump(BUILTIN_CODE(masm->isolate(), Construct), RelocInfo::CODE_TARGET); in Generate_ConstructBoundFunction()
2112 void Builtins::Generate_Construct(MacroAssembler* masm) { in Generate_Construct() argument
2132 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructFunction), in Generate_Construct()
2138 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructBoundFunction), in Generate_Construct()
2144 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructProxy), in Generate_Construct()
2155 __ Jump(masm->isolate()->builtins()->CallFunction(), in Generate_Construct()
2162 __ Jump(BUILTIN_CODE(masm->isolate(), ConstructedNonConstructable), in Generate_Construct()
2166 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { in Generate_ArgumentsAdaptorTrampoline() argument
2184 EnterArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2185 Generate_StackOverflowCheck(masm, r5, r8, &stack_overflow); in Generate_ArgumentsAdaptorTrampoline()
2220 EnterArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2221 Generate_StackOverflowCheck(masm, r5, r8, &stack_overflow); in Generate_ArgumentsAdaptorTrampoline()
2276 masm->isolate()->heap()->SetArgumentsAdaptorDeoptPCOffset(masm->pc_offset()); in Generate_ArgumentsAdaptorTrampoline()
2279 LeaveArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2293 FrameScope frame(masm, StackFrame::MANUAL); in Generate_ArgumentsAdaptorTrampoline()
2299 void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { in Generate_WasmCompileLazy() argument
2304 HardAbortScope hard_abort(masm); // Avoid calls to Abort. in Generate_WasmCompileLazy()
2305 FrameAndConstantPoolScope scope(masm, StackFrame::WASM_COMPILE_LAZY); in Generate_WasmCompileLazy()
2338 void Builtins::Generate_CEntry(MacroAssembler* masm, int result_size, in Generate_CEntry() argument
2350 ProfileEntryHookStub::MaybeCallEntryHook(masm); in Generate_CEntry()
2365 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CEntry()
2402 __ Move(isolate_reg, ExternalReference::isolate_address(masm->isolate())); in Generate_CEntry()
2446 IsolateAddressId::kPendingExceptionAddress, masm->isolate()); in Generate_CEntry()
2473 IsolateAddressId::kPendingHandlerContextAddress, masm->isolate()); in Generate_CEntry()
2476 IsolateAddressId::kPendingHandlerEntrypointAddress, masm->isolate()); in Generate_CEntry()
2480 masm->isolate()); in Generate_CEntry()
2482 IsolateAddressId::kPendingHandlerFPAddress, masm->isolate()); in Generate_CEntry()
2484 IsolateAddressId::kPendingHandlerSPAddress, masm->isolate()); in Generate_CEntry()
2491 FrameScope scope(masm, StackFrame::MANUAL); in Generate_CEntry()
2495 __ Move(r5, ExternalReference::isolate_address(masm->isolate())); in Generate_CEntry()
2521 ConstantPoolUnavailableScope constant_pool_unavailable(masm); in Generate_CEntry()
2531 void Builtins::Generate_DoubleToI(MacroAssembler* masm) { in Generate_DoubleToI() argument
2535 HardAbortScope hard_abort(masm); // Avoid calls to Abort. in Generate_DoubleToI()
2648 void Builtins::Generate_MathPowInternal(MacroAssembler* masm) { in Generate_MathPowInternal() argument
2666 AllowExternalCallThatCantCauseGC scope(masm); in Generate_MathPowInternal()
2729 AllowExternalCallThatCantCauseGC scope(masm); in Generate_MathPowInternal()
2744 void GenerateInternalArrayConstructorCase(MacroAssembler* masm, in GenerateInternalArrayConstructorCase() argument
2748 __ Jump(CodeFactory::InternalArrayNoArgumentConstructor(masm->isolate(), kind) in GenerateInternalArrayConstructorCase()
2752 __ Jump(BUILTIN_CODE(masm->isolate(), ArrayNArgumentsConstructor), in GenerateInternalArrayConstructorCase()
2762 masm->isolate(), GetHoleyElementsKind(kind)) in GenerateInternalArrayConstructorCase()
2768 CodeFactory::InternalArraySingleArgumentConstructor(masm->isolate(), kind) in GenerateInternalArrayConstructorCase()
2775 void Builtins::Generate_InternalArrayConstructorImpl(MacroAssembler* masm) { in Generate_InternalArrayConstructorImpl() argument
2817 GenerateInternalArrayConstructorCase(masm, HOLEY_ELEMENTS); in Generate_InternalArrayConstructorImpl()
2820 GenerateInternalArrayConstructorCase(masm, PACKED_ELEMENTS); in Generate_InternalArrayConstructorImpl()