| Index: src/interpreter/bytecode-array-builder.h
|
| diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
|
| index 59f1c1fa7f720df082e45ea28da91f272456ab33..e7da928995debe479b8d268d64199f4a03d50d72 100644
|
| --- a/src/interpreter/bytecode-array-builder.h
|
| +++ b/src/interpreter/bytecode-array-builder.h
|
| @@ -264,6 +264,8 @@ class BytecodeArrayBuilder {
|
| bool IsRegisterInAccumulator(Register reg);
|
|
|
| int BorrowTemporaryRegister();
|
| + int BorrowTemporaryRegisterNotInRange(int start_index, int end_index);
|
| + int AllocateAndBorrowTemporaryRegister();
|
| void ReturnTemporaryRegister(int reg_index);
|
| int PrepareForConsecutiveTemporaryRegisters(size_t count);
|
| void BorrowConsecutiveTemporaryRegister(int reg_index);
|
| @@ -346,12 +348,15 @@ class TemporaryRegisterScope {
|
| explicit TemporaryRegisterScope(BytecodeArrayBuilder* builder);
|
| ~TemporaryRegisterScope();
|
| Register NewRegister();
|
| + Register AllocateNewRegister();
|
|
|
| void PrepareForConsecutiveAllocations(size_t count);
|
| Register NextConsecutiveRegister();
|
|
|
| bool RegisterIsAllocatedInThisScope(Register reg) const;
|
|
|
| + bool hasConsecutiveAllocations() const { return next_consecutive_count_ > 0; }
|
| +
|
| private:
|
| void* operator new(size_t size);
|
| void operator delete(void* p);
|
|
|