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

Unified Diff: src/interpreter/bytecode-register-allocator.h

Issue 1689573004: [interpreter] Support for ES6 super keyword. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 10 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
Index: src/interpreter/bytecode-register-allocator.h
diff --git a/src/interpreter/bytecode-register-allocator.h b/src/interpreter/bytecode-register-allocator.h
index 798fd06d2937ce66f978524511f7bdf28910544d..5d1949f76a73c0e37d940f70322b4472a2f125e3 100644
--- a/src/interpreter/bytecode-register-allocator.h
+++ b/src/interpreter/bytecode-register-allocator.h
@@ -74,11 +74,22 @@ class BytecodeRegisterAllocator final {
~BytecodeRegisterAllocator();
Register NewRegister();
+ // Ensure |count| consecutive allocations are available.
void PrepareForConsecutiveAllocations(size_t count);
+
+ // Get the next consecutive allocation after calling
+ // PrepareForConsecutiveAllocations.
Register NextConsecutiveRegister();
+ // Prepare consecutive register allocations and initialize an array
+ // of registers with the allocations.
+ void PrepareAndInitializeConsecutiveAllocations(Register* registers,
+ size_t count);
+
+ // Returns true if |reg| is allocated in this allocator.
bool RegisterIsAllocatedInThisScope(Register reg) const;
+ // Returns true if unused consecutive allocations remain.
bool HasConsecutiveAllocations() const { return next_consecutive_count_ > 0; }
private:

Powered by Google App Engine
This is Rietveld 408576698