diff options
Diffstat (limited to 'Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h')
-rw-r--r-- | Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h b/Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h index e2ea261ee..430147280 100644 --- a/Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h +++ b/Source/JavaScriptCore/assembler/AssemblerBufferWithConstantPool.h @@ -127,9 +127,9 @@ public: AssemblerBuffer::ensureSpace(insnSpace); } - void ensureSpaceForAnyOneInstruction() + void ensureSpaceForAnyInstruction(int amount = 1) { - flushIfNoSpaceFor(maxInstructionSize, sizeof(uint64_t)); + flushIfNoSpaceFor(amount * maxInstructionSize, amount * sizeof(uint64_t)); } bool isAligned(int alignment) |