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

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

Issue 2238853002: [Interpreter] Remove LdaConstant+ToName peephole optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_internalize
Patch Set: Created 4 years, 4 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-peephole-optimizer.h
diff --git a/src/interpreter/bytecode-peephole-optimizer.h b/src/interpreter/bytecode-peephole-optimizer.h
index 95c9d57795e3029f5d49efa9699715d02bd8a67d..e30e3b47bd02052d73d7c6bf35a86c84547917e5 100644
--- a/src/interpreter/bytecode-peephole-optimizer.h
+++ b/src/interpreter/bytecode-peephole-optimizer.h
@@ -21,8 +21,7 @@ class BytecodePeepholeActionAndData;
class BytecodePeepholeOptimizer final : public BytecodePipelineStage,
public ZoneObject {
public:
- BytecodePeepholeOptimizer(ConstantArrayBuilder* constant_array_builder,
- BytecodePipelineStage* next_stage);
+ explicit BytecodePeepholeOptimizer(BytecodePipelineStage* next_stage);
// BytecodePipelineStage interface.
void Write(BytecodeNode* node) override;
@@ -48,13 +47,9 @@ class BytecodePeepholeOptimizer final : public BytecodePipelineStage,
bool LastIsValid() const;
void SetLast(const BytecodeNode* const node);
- Handle<Object> GetConstantForIndexOperand(const BytecodeNode* const node,
- int index) const;
-
BytecodePipelineStage* next_stage() const { return next_stage_; }
BytecodeNode* last() { return &last_; }
- ConstantArrayBuilder* constant_array_builder_;
BytecodePipelineStage* next_stage_;
BytecodeNode last_;

Powered by Google App Engine
This is Rietveld 408576698