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

Side by Side Diff: src/interpreter/bytecode-register-optimizer.h

Issue 2030583002: [Interpreter] Don't try to eliminate dead-code in bytecode-array-builder (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Test Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
6 #define V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 6 #define V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
7 7
8 #include "src/interpreter/bytecode-pipeline.h" 8 #include "src/interpreter/bytecode-pipeline.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 13 matching lines...) Expand all
24 int parameter_count, 24 int parameter_count,
25 BytecodePipelineStage* next_stage); 25 BytecodePipelineStage* next_stage);
26 virtual ~BytecodeRegisterOptimizer() {} 26 virtual ~BytecodeRegisterOptimizer() {}
27 27
28 // BytecodePipelineStage interface. 28 // BytecodePipelineStage interface.
29 size_t FlushForOffset() override; 29 size_t FlushForOffset() override;
30 void FlushBasicBlock() override; 30 void FlushBasicBlock() override;
31 void Write(BytecodeNode* node) override; 31 void Write(BytecodeNode* node) override;
32 32
33 private: 33 private:
34 const uint32_t kInvalidEquivalenceId = kMaxUInt32; 34 static const uint32_t kInvalidEquivalenceId = kMaxUInt32;
35 35
36 class RegisterInfo; 36 class RegisterInfo;
37 37
38 // TemporaryRegisterObserver interface. 38 // TemporaryRegisterObserver interface.
39 void TemporaryRegisterFreeEvent(Register reg) override; 39 void TemporaryRegisterFreeEvent(Register reg) override;
40 40
41 // Helpers for BytecodePipelineStage interface. 41 // Helpers for BytecodePipelineStage interface.
42 void FlushState(); 42 void FlushState();
43 void WriteToNextStage(BytecodeNode* node) const; 43 void WriteToNextStage(BytecodeNode* node) const;
44 void WriteToNextStage(BytecodeNode* node, 44 void WriteToNextStage(BytecodeNode* node,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 Zone* zone_; 140 Zone* zone_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(BytecodeRegisterOptimizer); 142 DISALLOW_COPY_AND_ASSIGN(BytecodeRegisterOptimizer);
143 }; 143 };
144 144
145 } // namespace interpreter 145 } // namespace interpreter
146 } // namespace internal 146 } // namespace internal
147 } // namespace v8 147 } // namespace v8
148 148
149 #endif // V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_ 149 #endif // V8_INTERPRETER_BYTECODE_REGISTER_OPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-peephole-optimizer.h ('k') | src/interpreter/bytecode-register-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698