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

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

Issue 2369873002: [Interpreter] Replace BytecodeRegisterAllocator with a simple bump pointer. (Closed)
Patch Set: Rebase Created 4 years, 3 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-register-allocator.cc ('k') | src/interpreter/bytecode-register-optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-register-optimizer.h
diff --git a/src/interpreter/bytecode-register-optimizer.h b/src/interpreter/bytecode-register-optimizer.h
index e6a439680189eb52c2d60a22b3383c80a4b473be..eda22e5f4d91ae245ce8525f7c6998156251f937 100644
--- a/src/interpreter/bytecode-register-optimizer.h
+++ b/src/interpreter/bytecode-register-optimizer.h
@@ -15,13 +15,14 @@ namespace interpreter {
// registers. The bytecode generator uses temporary registers
// liberally for correctness and convenience and this stage removes
// transfers that are not required and preserves correctness.
-class BytecodeRegisterOptimizer final : public BytecodePipelineStage,
- public TemporaryRegisterObserver,
- public ZoneObject {
+class BytecodeRegisterOptimizer final
+ : public BytecodePipelineStage,
+ public BytecodeRegisterAllocator::Observer,
+ public ZoneObject {
public:
BytecodeRegisterOptimizer(Zone* zone,
- TemporaryRegisterAllocator* register_allocator,
- int parameter_count,
+ BytecodeRegisterAllocator* register_allocator,
+ int fixed_registers_count, int parameter_count,
BytecodePipelineStage* next_stage);
virtual ~BytecodeRegisterOptimizer() {}
@@ -39,8 +40,10 @@ class BytecodeRegisterOptimizer final : public BytecodePipelineStage,
class RegisterInfo;
- // TemporaryRegisterObserver interface.
- void TemporaryRegisterFreeEvent(Register reg) override;
+ // BytecodeRegisterAllocator::Observer interface.
+ void RegisterAllocateEvent(Register reg) override;
+ void RegisterListAllocateEvent(RegisterList reg_list) override;
+ void RegisterListFreeEvent(RegisterList reg) override;
// Helpers for BytecodePipelineStage interface.
void FlushState();
« no previous file with comments | « src/interpreter/bytecode-register-allocator.cc ('k') | src/interpreter/bytecode-register-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698