Commit 71b29be4 authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

S390: relocate stack_check_interrupt in builtins

Change-Id: I875efc2db384742ca7e6b68099321504ca79a8d6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2508689Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#70885}
parent d7bc6e80
......@@ -1271,20 +1271,6 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
LeaveInterpreterFrame(masm, r4);
__ Ret();
__ bind(&has_optimized_code_or_marker);
Label maybe_has_optimized_code;
// Check if optimized code is available
__ TestBitMask(optimization_state,
FeedbackVector::OptimizationTierBits::kMask, r0);
__ bne(&maybe_has_optimized_code);
Register optimization_marker = optimization_state;
__ DecodeField<FeedbackVector::OptimizationMarkerBits>(optimization_marker);
MaybeOptimizeCode(masm, feedback_vector, optimization_marker);
// Fall through if there's no runnable optimized code.
__ jmp(&not_optimized);
__ bind(&stack_check_interrupt);
// Modify the bytecode offset in the stack to be kFunctionEntryBytecodeOffset
// for the call to the StackGuard.
......@@ -1310,6 +1296,20 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
__ jmp(&after_stack_check_interrupt);
__ bind(&has_optimized_code_or_marker);
Label maybe_has_optimized_code;
// Check if optimized code is available
__ TestBitMask(optimization_state,
FeedbackVector::OptimizationTierBits::kMask, r0);
__ bne(&maybe_has_optimized_code);
Register optimization_marker = optimization_state;
__ DecodeField<FeedbackVector::OptimizationMarkerBits>(optimization_marker);
MaybeOptimizeCode(masm, feedback_vector, optimization_marker);
// Fall through if there's no runnable optimized code.
__ jmp(&not_optimized);
__ bind(&maybe_has_optimized_code);
Register optimized_code_entry = optimization_state;
__ LoadAnyTaggedField(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment