Home | History | Annotate | Download | only in s390

Lines Matching refs:masm

16 #define __ ACCESS_MASM(masm)
18 void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id) {
43 __ JumpToExternalReference(ExternalReference(id, masm->isolate()));
47 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm,
54 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) {
59 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) {
68 GenerateLoadInternalArrayFunction(masm, r3);
82 InternalArrayConstructorStub stub(masm->isolate());
86 void Builtins::Generate_ArrayCode(MacroAssembler* masm) {
95 GenerateLoadArrayFunction(masm, r3);
110 ArrayConstructorStub stub(masm->isolate());
115 void Builtins::Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind) {
161 FrameScope scope(masm, StackFrame::MANUAL);
167 __ Call(masm->isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
223 void Builtins::Generate_NumberConstructor(MacroAssembler* masm) {
246 __ Jump(masm->isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
255 void Builtins::Generate_NumberConstructor_ConstructStub(MacroAssembler* masm) {
293 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
296 __ Call(masm->isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
315 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
317 FastNewObjectStub stub(masm->isolate());
326 void Builtins::Generate_StringConstructor(MacroAssembler* masm) {
369 ToStringStub stub(masm->isolate());
381 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) {
420 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
421 ToStringStub stub(masm->isolate());
443 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
445 FastNewObjectStub stub(masm->isolate());
453 static void GenerateTailCallToSharedCode(MacroAssembler* masm) {
460 static void GenerateTailCallToReturnedCode(MacroAssembler* masm,
468 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
486 void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) {
496 GenerateTailCallToReturnedCode(masm, Runtime::kTryInstallOptimizedCode);
499 GenerateTailCallToSharedCode(masm);
502 static void Generate_JSConstructStubHelper(MacroAssembler* masm,
516 Isolate* isolate = masm->isolate();
520 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT);
536 FastNewObjectStub stub(masm->isolate());
593 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset());
646 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
661 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) {
662 Generate_JSConstructStubHelper(masm, false, true, false);
665 void Builtins::Generate_JSConstructStubApi(MacroAssembler* masm) {
666 Generate_JSConstructStubHelper(masm, true, false, false);
669 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) {
670 Generate_JSConstructStubHelper(masm, false, false, false);
674 MacroAssembler* masm) {
675 Generate_JSConstructStubHelper(masm, false, false, true);
679 void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
705 ExternalReference::debug_last_step_action_address(masm->isolate());
715 ExternalReference::debug_suspended_generator_address(masm->isolate());
782 FrameScope scope(masm, StackFrame::MANUAL);
814 ConstantPoolUnavailableScope constant_pool_unavailable(masm);
829 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
839 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
848 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) {
849 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
857 static void Generate_CheckStackOverflow(MacroAssembler* masm, Register argc,
883 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
892 ProfileEntryHookStub::MaybeCallEntryHook(masm);
897 FrameScope scope(masm, StackFrame::INTERNAL);
901 masm->isolate());
912 Generate_CheckStackOverflow(masm, r5, kArgcIsUntaggedInt);
953 masm->isolate()->builtins()->Construct()
954 : masm->isolate()->builtins()->Call();
965 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) {
966 Generate_JSEntryTrampolineHelper(masm, false);
969 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) {
970 Generate_JSEntryTrampolineHelper(masm, true);
973 static void LeaveInterpreterFrame(MacroAssembler* masm, Register scratch) {
1004 void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
1005 ProfileEntryHookStub::MaybeCallEntryHook(masm);
1010 FrameScope frame_scope(masm, StackFrame::MANUAL);
1086 masm->isolate())));
1095 masm->isolate()->heap()->SetInterpreterEntryReturnPCOffset(masm->pc_offset());
1098 LeaveInterpreterFrame(masm, r4);
1114 void Builtins::Generate_InterpreterMarkBaselineOnReturn(MacroAssembler* masm) {
1122 LeaveInterpreterFrame(masm, r4);
1125 FrameScope frame_scope(masm, StackFrame::INTERNAL);
1139 static void Generate_InterpreterPushArgs(MacroAssembler* masm, Register index,
1154 MacroAssembler* masm, TailCallMode tail_call_mode) {
1167 Generate_InterpreterPushArgs(masm, r4, r5, r6);
1170 __ Jump(masm->isolate()->builtins()->Call(ConvertReceiverMode::kAny,
1176 void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) {
1192 Generate_InterpreterPushArgs(masm, r4, r2, r6);
1196 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
1199 void Builtins::Generate_InterpreterEnterBytecodeDispatch(MacroAssembler* masm) {
1203 masm->isolate()->heap()->interpreter_entry_return_pc_offset());
1205 __ Move(r4, masm->isolate()->builtins()->InterpreterEntryTrampoline());
1212 masm->isolate())));
1240 void Builtins::Generate_CompileLazy(MacroAssembler* masm) {
1381 GenerateTailCallToReturnedCode(masm, Runtime::kCompileLazy);
1384 void Builtins::Generate_CompileBaseline(MacroAssembler* masm) {
1385 GenerateTailCallToReturnedCode(masm, Runtime::kCompileBaseline);
1388 void Builtins::Generate_CompileOptimized(MacroAssembler* masm) {
1389 GenerateTailCallToReturnedCode(masm,
1393 void Builtins::Generate_CompileOptimizedConcurrent(MacroAssembler* masm) {
1394 GenerateTailCallToReturnedCode(masm, Runtime::kCompileOptimized_Concurrent);
1397 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) {
1417 FrameScope scope(masm, StackFrame::MANUAL);
1420 __ mov(r3, Operand(ExternalReference::isolate_address(masm->isolate())));
1422 ExternalReference::get_make_code_young_function(masm->isolate()), 2);
1430 MacroAssembler* masm) { \
1431 GenerateMakeCodeYoungAgainCommon(masm); \
1434 MacroAssembler* masm) { \
1435 GenerateMakeCodeYoungAgainCommon(masm); \
1440 void Builtins::Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm) {
1460 FrameScope scope(masm, StackFrame::MANUAL);
1463 __ mov(r3, Operand(ExternalReference::isolate_address(masm->isolate())));
1465 ExternalReference::get_mark_code_as_executed_function(masm->isolate()),
1478 void Builtins::Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm) {
1479 GenerateMakeCodeYoungAgainCommon(masm);
1482 void Builtins::Generate_MarkCodeAsToBeExecutedOnce(MacroAssembler* masm) {
1483 Generate_MarkCodeAsExecutedOnce(masm);
1486 static void Generate_NotifyStubFailureHelper(MacroAssembler* masm,
1489 FrameScope scope(masm, StackFrame::INTERNAL);
1504 void Builtins::Generate_NotifyStubFailure(MacroAssembler* masm) {
1505 Generate_NotifyStubFailureHelper(masm, kDontSaveFPRegs);
1508 void Builtins::Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm) {
1509 Generate_NotifyStubFailureHelper(masm, kSaveFPRegs);
1512 static void Generate_NotifyDeoptimizedHelper(MacroAssembler* masm,
1515 FrameScope scope(masm, StackFrame::INTERNAL);
1548 void Builtins::Generate_NotifyDeoptimized(MacroAssembler* masm) {
1549 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::EAGER);
1552 void Builtins::Generate_NotifySoftDeoptimized(MacroAssembler* masm) {
1553 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::SOFT);
1556 void Builtins::Generate_NotifyLazyDeoptimized(MacroAssembler* masm) {
1557 Generate_NotifyDeoptimizedHelper(masm, Deoptimizer::LAZY);
1561 void CompatibleReceiverCheck(MacroAssembler* masm, Register receiver,
1625 void Builtins::Generate_HandleFastApiCall(MacroAssembler* masm) {
1644 CompatibleReceiverCheck(masm, r4, r5, &receiver_check_failed);
1661 void Builtins::Generate_OnStackReplacement(MacroAssembler* masm) {
1665 FrameScope scope(masm, StackFrame::INTERNAL);
1701 void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm,
1727 __ mov(r3, Operand(ExternalReference::date_cache_stamp(masm->isolate())));
1737 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
1741 ExternalReference::get_date_field_function(masm->isolate()), 2);
1748 FrameScope scope(masm, StackFrame::MANUAL);
1758 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) {
1811 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET);
1818 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
1830 void Builtins::Generate_FunctionPrototypeCall(MacroAssembler* masm) {
1870 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET);
1873 void Builtins::Generate_ReflectApply(MacroAssembler* masm) {
1925 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET);
1935 void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) {
1995 __ Jump(masm->isolate()->builtins()->Apply(), RelocInfo::CODE_TARGET);
2012 static void ArgumentAdaptorStackCheck(MacroAssembler* masm,
2033 static void EnterArgumentsAdaptorFrame(MacroAssembler* masm) {
2056 static void LeaveArgumentsAdaptorFrame(MacroAssembler* masm) {
2071 void Builtins::Generate_Apply(MacroAssembler* masm) {
2105 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2188 __ Jump(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, eq);
2189 __ Jump(masm->isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET);
2222 void PrepareForTailCall(MacroAssembler* masm, Register args_reg,
2226 Comment cmnt(masm, "[ PrepareForTailCall");
2232 masm->isolate());
2289 void Builtins::Generate_CallFunction(MacroAssembler* masm,
2351 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2355 ToObjectStub stub(masm->isolate());
2377 PrepareForTailCall(masm, r2, r5, r6, r7);
2393 FrameAndConstantPoolScope frame(masm, StackFrame::INTERNAL);
2401 void Generate_PushBoundArguments(MacroAssembler* masm) {
2438 FrameScope scope(masm, StackFrame::MANUAL);
2484 void Builtins::Generate_CallBoundFunctionImpl(MacroAssembler* masm,
2493 PrepareForTailCall(masm, r2, r5, r6, r7);
2502 Generate_PushBoundArguments(masm);
2508 masm->isolate())));
2515 void Builtins::Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode,
2526 __ Jump(masm->isolate()->builtins()->CallFunction(mode, tail_call_mode),
2529 __ Jump(masm->isolate()->builtins()->CallBoundFunction(tail_call_mode),
2542 PrepareForTailCall(masm, r2, r5, r6, r7);
2552 ExternalReference(Runtime::kJSProxyCall, masm->isolate()));
2562 __ Jump(masm->isolate()->builtins()->CallFunction(
2569 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2576 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) {
2597 void Builtins::Generate_ConstructBoundFunction(MacroAssembler* masm) {
2606 Generate_PushBoundArguments(masm);
2619 __ mov(ip, Operand(ExternalReference(Builtins::kConstruct, masm->isolate())));
2626 void Builtins::Generate_ConstructProxy(MacroAssembler* masm) {
2640 ExternalReference(Runtime::kJSProxyConstruct, masm->isolate()));
2644 void Builtins::Generate_Construct(MacroAssembler* masm) {
2658 __ Jump(masm->isolate()->builtins()->ConstructFunction(),
2669 __ Jump(masm->isolate()->builtins()->ConstructBoundFunction(),
2674 __ Jump(masm->isolate()->builtins()->ConstructProxy(), RelocInfo::CODE_TARGET,
2684 __ Jump(masm->isolate()->builtins()->CallFunction(),
2691 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(),
2696 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) {
2708 void Builtins::Generate_AllocateInOldSpace(MacroAssembler* masm) {
2721 void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
2735 FrameScope frame(masm, StackFrame::INTERNAL);
2746 void Builtins::Generate_ToNumber(MacroAssembler* masm) {
2757 __ Jump(masm->isolate()->builtins()->NonNumberToNumber(),
2762 void Builtins::Generate_NonNumberToNumber(MacroAssembler* masm) {
2769 __ Jump(masm->isolate()->builtins()->StringToNumber(), RelocInfo::CODE_TARGET,
2780 FrameScope frame(masm, StackFrame::INTERNAL);
2790 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
2809 EnterArgumentsAdaptorFrame(masm);
2810 ArgumentAdaptorStackCheck(masm, &stack_overflow);
2847 EnterArgumentsAdaptorFrame(masm);
2848 ArgumentAdaptorStackCheck(masm, &stack_overflow);
2901 masm->isolate()->heap()->SetArgumentsAdaptorDeoptPCOffset(masm->pc_offset());
2904 LeaveArgumentsAdaptorFrame(masm);
2915 FrameScope frame(masm, StackFrame::MANUAL);