Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index e3349bcbc8903428ad73baade7189f265b755af6..5d8857440975f6684cf69d732985963449e2aaa1 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2074,9 +2074,10 @@ void BytecodeGenerator::VisitNewLocalBlockContext(Scope* scope) { |
// Allocate a new local block context. |
TemporaryRegisterScope temporary_register_scope(builder()); |
- Register scope_info = temporary_register_scope.NewRegister(); |
- Register closure = temporary_register_scope.NewRegister(); |
- DCHECK(Register::AreContiguous(scope_info, closure)); |
+ temporary_register_scope.PrepareForConsecutiveAllocations(2); |
+ Register scope_info = temporary_register_scope.NextConsecutiveRegister(); |
+ Register closure = temporary_register_scope.NextConsecutiveRegister(); |
+ |
builder() |
->LoadLiteral(scope->GetScopeInfo(isolate())) |
.StoreAccumulatorInRegister(scope_info); |