Lines Matching refs:masm

17 #define __ ACCESS_MASM(masm)
20 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument
60 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor()
65 MacroAssembler* masm, Runtime::FunctionId function_id) { in CallRuntimePassFunction() argument
71 FrameScope scope(masm, StackFrame::INTERNAL); in CallRuntimePassFunction()
85 static void GenerateTailCallToSharedCode(MacroAssembler* masm) { in GenerateTailCallToSharedCode() argument
93 static void GenerateTailCallToReturnedCode(MacroAssembler* masm) { in GenerateTailCallToReturnedCode() argument
99 void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) { in Generate_InOptimizationQueue() argument
107 ExternalReference::address_of_stack_limit(masm->isolate()); in Generate_InOptimizationQueue()
111 CallRuntimePassFunction(masm, Runtime::kTryInstallOptimizedCode); in Generate_InOptimizationQueue()
112 GenerateTailCallToReturnedCode(masm); in Generate_InOptimizationQueue()
115 GenerateTailCallToSharedCode(masm); in Generate_InOptimizationQueue()
119 static void Generate_JSConstructStubHelper(MacroAssembler* masm, in Generate_JSConstructStubHelper() argument
131 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSConstructStubHelper()
183 Factory* factory = masm->isolate()->factory(); in Generate_JSConstructStubHelper()
316 masm->isolate()->builtins()->HandleApiCallConstruct(); in Generate_JSConstructStubHelper()
326 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); in Generate_JSConstructStubHelper()
368 __ IncrementCounter(masm->isolate()->counters()->constructed_objects(), 1); in Generate_JSConstructStubHelper()
374 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument
375 Generate_JSConstructStubHelper(masm, false, true); in Generate_JSConstructStubGeneric()
379 void Builtins::Generate_JSConstructStubApi(MacroAssembler* masm) { in Generate_JSConstructStubApi() argument
380 Generate_JSConstructStubHelper(masm, true, true); in Generate_JSConstructStubApi()
384 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStub() argument
385 Generate_JSConstructStubHelper(masm, false, false); in Generate_JSBuiltinsConstructStub()
389 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) { in Generate_ConstructedNonConstructable() argument
390 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_ConstructedNonConstructable()
400 static void Generate_CheckStackOverflow(MacroAssembler* masm, in Generate_CheckStackOverflow() argument
409 ExternalReference::address_of_real_stack_limit(masm->isolate()); in Generate_CheckStackOverflow()
431 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, in Generate_JSEntryTrampolineHelper() argument
433 ProfileEntryHookStub::MaybeCallEntryHook(masm); in Generate_JSEntryTrampolineHelper()
439 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_JSEntryTrampolineHelper()
443 masm->isolate()); in Generate_JSEntryTrampolineHelper()
459 Generate_CheckStackOverflow(masm, kEaxIsUntaggedInt); in Generate_JSEntryTrampolineHelper()
482 ? masm->isolate()->builtins()->Construct() in Generate_JSEntryTrampolineHelper()
483 : masm->isolate()->builtins()->Call(); in Generate_JSEntryTrampolineHelper()
494 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { in Generate_JSEntryTrampoline() argument
495 Generate_JSEntryTrampolineHelper(masm, false); in Generate_JSEntryTrampoline()
499 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { in Generate_JSConstructEntryTrampoline() argument
500 Generate_JSEntryTrampolineHelper(masm, true); in Generate_JSConstructEntryTrampoline()
520 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { in Generate_InterpreterEntryTrampoline() argument
524 FrameScope frame_scope(masm, StackFrame::MANUAL); in Generate_InterpreterEntryTrampoline()
559 ExternalReference::address_of_real_stack_limit(masm->isolate()); in Generate_InterpreterEntryTrampoline()
568 __ mov(eax, Immediate(masm->isolate()->factory()->undefined_value())); in Generate_InterpreterEntryTrampoline()
590 ExternalReference::address_of_stack_limit(masm->isolate()); in Generate_InterpreterEntryTrampoline()
623 __ mov(eax, Immediate(masm->isolate()->factory()->undefined_value())); in Generate_InterpreterEntryTrampoline()
633 void Builtins::Generate_InterpreterExitTrampoline(MacroAssembler* masm) { in Generate_InterpreterExitTrampoline() argument
655 static void Generate_InterpreterPushArgs(MacroAssembler* masm, in Generate_InterpreterPushArgs() argument
674 void Builtins::Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { in Generate_InterpreterPushArgsAndCall() argument
693 Generate_InterpreterPushArgs(masm, ecx); in Generate_InterpreterPushArgsAndCall()
697 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_InterpreterPushArgsAndCall()
702 void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) { in Generate_InterpreterPushArgsAndConstruct() argument
729 Generate_InterpreterPushArgs(masm, eax); in Generate_InterpreterPushArgsAndConstruct()
738 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); in Generate_InterpreterPushArgsAndConstruct()
743 MacroAssembler* masm, Deoptimizer::BailoutType type) { in Generate_InterpreterNotifyDeoptimizedHelper() argument
746 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_InterpreterNotifyDeoptimizedHelper()
811 void Builtins::Generate_InterpreterNotifyDeoptimized(MacroAssembler* masm) { in Generate_InterpreterNotifyDeoptimized() argument
812 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::EAGER); in Generate_InterpreterNotifyDeoptimized()
816 void Builtins::Generate_InterpreterNotifySoftDeoptimized(MacroAssembler* masm) { in Generate_InterpreterNotifySoftDeoptimized() argument
817 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); in Generate_InterpreterNotifySoftDeoptimized()
821 void Builtins::Generate_InterpreterNotifyLazyDeoptimized(MacroAssembler* masm) { in Generate_InterpreterNotifyLazyDeoptimized() argument
822 Generate_InterpreterNotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); in Generate_InterpreterNotifyLazyDeoptimized()
826 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { in Generate_CompileLazy() argument
827 CallRuntimePassFunction(masm, Runtime::kCompileLazy); in Generate_CompileLazy()
828 GenerateTailCallToReturnedCode(masm); in Generate_CompileLazy()
832 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) { in Generate_CompileOptimized() argument
833 CallRuntimePassFunction(masm, Runtime::kCompileOptimized_NotConcurrent); in Generate_CompileOptimized()
834 GenerateTailCallToReturnedCode(masm); in Generate_CompileOptimized()
838 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) { in Generate_CompileOptimizedConcurrent() argument
839 CallRuntimePassFunction(masm, Runtime::kCompileOptimized_Concurrent); in Generate_CompileOptimizedConcurrent()
840 GenerateTailCallToReturnedCode(masm); in Generate_CompileOptimizedConcurrent()
844 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { in GenerateMakeCodeYoungAgainCommon() argument
857 FrameScope scope(masm, StackFrame::MANUAL); in GenerateMakeCodeYoungAgainCommon()
860 Immediate(ExternalReference::isolate_address(masm->isolate()))); in GenerateMakeCodeYoungAgainCommon()
863 ExternalReference::get_make_code_young_function(masm->isolate()), 2); in GenerateMakeCodeYoungAgainCommon()
871 MacroAssembler* masm) { \
872 GenerateMakeCodeYoungAgainCommon(masm); \
875 MacroAssembler* masm) { \
876 GenerateMakeCodeYoungAgainCommon(masm); \
882 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) { in CODE_AGE_LIST()
891 FrameScope scope(masm, StackFrame::MANUAL); in CODE_AGE_LIST()
894 Immediate(ExternalReference::isolate_address(masm->isolate()))); in CODE_AGE_LIST()
897 ExternalReference::get_mark_code_as_executed_function(masm->isolate()), in CODE_AGE_LIST()
915 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) { in Generate_MarkCodeAsExecutedTwice() argument
916 GenerateMakeCodeYoungAgainCommon(masm); in Generate_MarkCodeAsExecutedTwice()
920 void Builtins::Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm) { in Generate_MarkCodeAsToBeExecutedOnce() argument
921 Generate_MarkCodeAsExecutedOnce(masm); in Generate_MarkCodeAsToBeExecutedOnce()
925 static void Generate_NotifyStubFailureHelper(MacroAssembler* masm, in Generate_NotifyStubFailureHelper() argument
929 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_NotifyStubFailureHelper()
945 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) { in Generate_NotifyStubFailure() argument
946 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs); in Generate_NotifyStubFailure()
950 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) { in Generate_NotifyStubFailureSaveDoubles() argument
951 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs); in Generate_NotifyStubFailureSaveDoubles()
955 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm, in Generate_NotifyDeoptimizedHelper() argument
958 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_NotifyDeoptimizedHelper()
988 void Builtins::Generate_NotifyDeoptimized(MacroAssembler* masm) { in Generate_NotifyDeoptimized() argument
989 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::EAGER); in Generate_NotifyDeoptimized()
993 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) { in Generate_NotifySoftDeoptimized() argument
994 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT); in Generate_NotifySoftDeoptimized()
998 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) { in Generate_NotifyLazyDeoptimized() argument
999 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY); in Generate_NotifyLazyDeoptimized()
1004 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, in Generate_DatePrototype_GetField() argument
1027 ExternalReference::date_cache_stamp(masm->isolate()))); in Generate_DatePrototype_GetField()
1035 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_DatePrototype_GetField()
1041 ExternalReference::get_date_field_function(masm->isolate()), 2); in Generate_DatePrototype_GetField()
1048 FrameScope scope(masm, StackFrame::MANUAL); in Generate_DatePrototype_GetField()
1056 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { in Generate_FunctionPrototypeApply() argument
1113 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeApply()
1120 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeApply()
1133 void Builtins::Generate_FunctionPrototypeCall(MacroAssembler* masm) { in Generate_FunctionPrototypeCall() argument
1175 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_FunctionPrototypeCall()
1179 void Builtins::Generate_ReflectApply(MacroAssembler* masm) { in Generate_ReflectApply() argument
1230 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET); in Generate_ReflectApply()
1241 void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { in Generate_ReflectConstruct() argument
1300 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET); in Generate_ReflectConstruct()
1318 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument
1342 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode()
1347 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument
1371 __ mov(ebx, masm->isolate()->factory()->undefined_value()); in Generate_ArrayCode()
1372 ArrayConstructorStub stub(masm->isolate()); in Generate_ArrayCode()
1378 void Builtins::Generate_NumberConstructor(MacroAssembler* masm) { in Generate_NumberConstructor() argument
1401 ToNumberStub stub(masm->isolate()); in Generate_NumberConstructor()
1411 void Builtins::Generate_NumberConstructor_ConstructStub(MacroAssembler* masm) { in Generate_NumberConstructor_ConstructStub() argument
1448 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_NumberConstructor_ConstructStub()
1452 ToNumberStub stub(masm->isolate()); in Generate_NumberConstructor_ConstructStub()
1473 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_NumberConstructor_ConstructStub()
1485 void Builtins::Generate_StringConstructor(MacroAssembler* masm) { in Generate_StringConstructor() argument
1529 ToStringStub stub(masm->isolate()); in Generate_StringConstructor()
1545 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { in Generate_StringConstructor_ConstructStub() argument
1582 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_StringConstructor_ConstructStub()
1583 ToStringStub stub(masm->isolate()); in Generate_StringConstructor_ConstructStub()
1607 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_StringConstructor_ConstructStub()
1618 static void ArgumentsAdaptorStackCheck(MacroAssembler* masm, in ArgumentsAdaptorStackCheck() argument
1629 ExternalReference::address_of_real_stack_limit(masm->isolate()); in ArgumentsAdaptorStackCheck()
1645 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) { in EnterArgumentsAdaptorFrame() argument
1664 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) { in LeaveArgumentsAdaptorFrame() argument
1680 void Builtins::Generate_Apply(MacroAssembler* masm) { in Generate_Apply() argument
1713 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_Apply()
1761 ExternalReference::address_of_real_stack_limit(masm->isolate()); in Generate_Apply()
1806 __ j(equal, masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); in Generate_Apply()
1807 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); in Generate_Apply()
1813 void Builtins::Generate_CallFunction(MacroAssembler* masm, in Generate_CallFunction() argument
1877 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_CallFunction()
1882 ToObjectStub stub(masm->isolate()); in Generate_CallFunction()
1913 FrameScope frame(masm, StackFrame::INTERNAL); in Generate_CallFunction()
1922 void Generate_PushBoundArguments(MacroAssembler* masm) { in Generate_PushBoundArguments() argument
1958 FrameScope scope(masm, StackFrame::MANUAL); in Generate_PushBoundArguments()
2008 void Builtins::Generate_CallBoundFunction(MacroAssembler* masm) { in Generate_CallBoundFunction() argument
2020 Generate_PushBoundArguments(masm); in Generate_CallBoundFunction()
2025 Builtins::kCall_ReceiverIsAny, masm->isolate()))); in Generate_CallBoundFunction()
2032 void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode) { in Generate_Call() argument
2042 __ j(equal, masm->isolate()->builtins()->CallFunction(mode), in Generate_Call()
2045 __ j(equal, masm->isolate()->builtins()->CallBoundFunction(), in Generate_Call()
2059 ExternalReference(Runtime::kJSProxyCall, masm->isolate())); in Generate_Call()
2071 __ Jump(masm->isolate()->builtins()->CallFunction( in Generate_Call()
2078 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_Call()
2086 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { in Generate_ConstructFunction() argument
2108 void Builtins::Generate_ConstructBoundFunction(MacroAssembler* masm) { in Generate_ConstructBoundFunction() argument
2117 Generate_PushBoundArguments(masm); in Generate_ConstructBoundFunction()
2131 ExternalReference(Builtins::kConstruct, masm->isolate()))); in Generate_ConstructBoundFunction()
2138 void Builtins::Generate_ConstructProxy(MacroAssembler* masm) { in Generate_ConstructProxy() argument
2155 ExternalReference(Runtime::kJSProxyConstruct, masm->isolate())); in Generate_ConstructProxy()
2160 void Builtins::Generate_Construct(MacroAssembler* masm) { in Generate_Construct() argument
2174 __ j(equal, masm->isolate()->builtins()->ConstructFunction(), in Generate_Construct()
2184 __ j(equal, masm->isolate()->builtins()->ConstructBoundFunction(), in Generate_Construct()
2189 __ j(equal, masm->isolate()->builtins()->ConstructProxy(), in Generate_Construct()
2198 __ Jump(masm->isolate()->builtins()->CallFunction(), in Generate_Construct()
2205 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), in Generate_Construct()
2210 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { in Generate_ArgumentsAdaptorTrampoline() argument
2219 __ IncrementCounter(masm->isolate()->counters()->arguments_adaptors(), 1); in Generate_ArgumentsAdaptorTrampoline()
2229 EnterArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2230 ArgumentsAdaptorStackCheck(masm, &stack_overflow); in Generate_ArgumentsAdaptorTrampoline()
2265 FrameScope frame(masm, StackFrame::MANUAL); in Generate_ArgumentsAdaptorTrampoline()
2266 EnterArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2271 EnterArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2272 ArgumentsAdaptorStackCheck(masm, &stack_overflow); in Generate_ArgumentsAdaptorTrampoline()
2298 __ push(Immediate(masm->isolate()->factory()->undefined_value())); in Generate_ArgumentsAdaptorTrampoline()
2317 masm->isolate()->heap()->SetArgumentsAdaptorDeoptPCOffset(masm->pc_offset()); in Generate_ArgumentsAdaptorTrampoline()
2320 LeaveArgumentsAdaptorFrame(masm); in Generate_ArgumentsAdaptorTrampoline()
2332 FrameScope frame(masm, StackFrame::MANUAL); in Generate_ArgumentsAdaptorTrampoline()
2339 static void CompatibleReceiverCheck(MacroAssembler* masm, Register receiver, in CompatibleReceiverCheck() argument
2405 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) { in Generate_HandleFastApiCall() argument
2425 CompatibleReceiverCheck(masm, ecx, ebx, edx, eax, &receiver_check_failed); in Generate_HandleFastApiCall()
2443 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_HandleFastApiCall()
2449 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) { in Generate_OnStackReplacement() argument
2453 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_OnStackReplacement()
2486 void Builtins::Generate_OsrAfterStackCheck(MacroAssembler* masm) { in Generate_OsrAfterStackCheck() argument
2490 ExternalReference::address_of_stack_limit(masm->isolate()); in Generate_OsrAfterStackCheck()
2494 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_OsrAfterStackCheck()
2497 __ jmp(masm->isolate()->builtins()->OnStackReplacement(), in Generate_OsrAfterStackCheck()