| Index: src/interpreter/bytecode-register-allocator.cc
|
| diff --git a/src/interpreter/bytecode-register-allocator.cc b/src/interpreter/bytecode-register-allocator.cc
|
| index 0a617c048acb17176df0f5693dead235dc42e271..b15248f485d697214c4a34d44d84725821750282 100644
|
| --- a/src/interpreter/bytecode-register-allocator.cc
|
| +++ b/src/interpreter/bytecode-register-allocator.cc
|
| @@ -224,6 +224,14 @@ Register BytecodeRegisterAllocator::NextConsecutiveRegister() {
|
| return Register(next_consecutive_register_++);
|
| }
|
|
|
| +void BytecodeRegisterAllocator::PrepareAndInitializeConsecutiveAllocations(
|
| + Register* registers, size_t count) {
|
| + PrepareForConsecutiveAllocations(count);
|
| + for (size_t i = 0; i < count; i++) {
|
| + registers[i] = NextConsecutiveRegister();
|
| + }
|
| +}
|
| +
|
| } // namespace interpreter
|
| } // namespace internal
|
| } // namespace v8
|
|
|