Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: src/interpreter/bytecode-array-builder.cc

Issue 1576403004: [Interpreter] Removes assignment hazard scope. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased the patch Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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++) {
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698