Commit ef930261 authored by sreten.kovacevic's avatar sreten.kovacevic Committed by Commit Bot

[Liftoff][mips64] Fix {kAvailableSpace} in PatchPrepareStackFrame

Fix value of {kAvailableSpace} to prevent buffer growing.

Bug: v8:6600
Change-Id: Ifc1c3e191929db9e20aa302b2f52d450fba54909
Reviewed-on: https://chromium-review.googlesource.com/930881
Commit-Queue: Sreten Kovacevic <sreten.kovacevic@mips.com>
Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51460}
parent 58fe4d3a
......@@ -35,7 +35,7 @@ void LiftoffAssembler::PatchPrepareStackFrame(uint32_t offset,
DCHECK_LE(bytes, kMaxInt);
// We can't run out of space, just pass anything big enough to not cause the
// assembler to try to grow the buffer.
constexpr int kAvailableSpace = 64;
constexpr int kAvailableSpace = 256;
Assembler patching_assembler(isolate(), buffer_ + offset, kAvailableSpace);
patching_assembler.daddiu(sp, sp, -bytes);
}
......
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