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

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: Address comments 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
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/bytecode-peephole-optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..afa507daa8e6c2926d72ee6ba0c5b2e081d05fea 100644
--- a/src/interpreter/bytecode-peephole-optimizer.h
+++ b/src/interpreter/bytecode-peephole-optimizer.h
@@ -12,7 +12,6 @@ namespace v8 {
namespace internal {
namespace interpreter {
-class ConstantArrayBuilder;
class BytecodePeepholeActionAndData;
// An optimization stage for performing peephole optimizations on
@@ -21,8 +20,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 +46,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_;
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/bytecode-peephole-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698