Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index eb9fb1dfb8c4ec8d9f0009b5e65541981ad9498b..a14b5f3f6f14102b173d23cde301a065e1182133 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -1155,12 +1155,6 @@ int BytecodeArrayBuilder::BorrowTemporaryRegisterNotInRange(int start_index, |
} |
-int BytecodeArrayBuilder::AllocateAndBorrowTemporaryRegister() { |
- temporary_register_count_ += 1; |
- return last_temporary_register().index(); |
-} |
- |
- |
void BytecodeArrayBuilder::BorrowConsecutiveTemporaryRegister(int reg_index) { |
DCHECK(free_temporaries_.find(reg_index) != free_temporaries_.end()); |
free_temporaries_.erase(reg_index); |
@@ -1639,13 +1633,6 @@ Register TemporaryRegisterScope::NewRegister() { |
} |
-Register TemporaryRegisterScope::AllocateNewRegister() { |
- int allocated = builder_->AllocateAndBorrowTemporaryRegister(); |
- allocated_.push_back(allocated); |
- return Register(allocated); |
-} |
- |
- |
bool TemporaryRegisterScope::RegisterIsAllocatedInThisScope( |
Register reg) const { |
for (auto i = allocated_.begin(); i != allocated_.end(); i++) { |