Commit 4b112e02 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[codegen] Reduce assembler gap for arm64 and mips64

The gap is chosen unneccessarily large, leading to too early growing of
the assembler buffer.

R=mstarzinger@chromium.org

Change-Id: I9ddbe1d59929f2a76511cbc2d18c054fb8eafa74
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914213Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64939}
parent 15281893
...@@ -2638,7 +2638,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase { ...@@ -2638,7 +2638,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
// not have to check for overflow. The same is true for writes of large // not have to check for overflow. The same is true for writes of large
// relocation info entries, and debug strings encoded in the instruction // relocation info entries, and debug strings encoded in the instruction
// stream. // stream.
static constexpr int kGap = 128; static constexpr int kGap = 64;
public: public:
#ifdef DEBUG #ifdef DEBUG
......
...@@ -1642,7 +1642,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase { ...@@ -1642,7 +1642,7 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
// the generated instructions. This is so that multi-instruction sequences do // the generated instructions. This is so that multi-instruction sequences do
// not have to check for overflow. The same is true for writes of large // not have to check for overflow. The same is true for writes of large
// relocation info entries. // relocation info entries.
static constexpr int kGap = 128; static constexpr int kGap = 64;
// Repeated checking whether the trampoline pool should be emitted is rather // Repeated checking whether the trampoline pool should be emitted is rather
// expensive. By default we only check again once a number of instructions // expensive. By default we only check again once a number of instructions
......
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