Commit d25be6eb authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[liftoff] Remove simulator-only bailout

This makes sure that the code tested by fuzzers is the same as running
on native hardware.

R=ahaas@chromium.org

Bug: v8:11041
Change-Id: I1005b2de3a22d88a6bdf164338633bbb7991bc1f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2573481Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71613}
parent 22d5ac91
......@@ -477,16 +477,18 @@ void LiftoffAssembler::PatchPrepareStackFrame(int offset) {
// anymore.
int frame_size = GetTotalFrameSize() - kSystemPointerSize;
#ifdef USE_SIMULATOR
// When using the simulator, deal with Liftoff which allocates the stack
// before checking it.
// TODO(arm): Remove this when the stack check mechanism will be updated.
// Note: This check is only needed for simulator runs, but we run it
// unconditionally to make sure that the simulator executes the same code
// that's also executed on native hardware (see https://crbug.com/v8/11041).
if (frame_size > KB / 2) {
bailout(kOtherReason,
"Stack limited to 512 bytes to avoid a bug in StackCheck");
return;
}
#endif
PatchingAssembler patching_assembler(AssemblerOptions{},
buffer_start_ + offset,
liftoff::kPatchInstructionsRequired);
......
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