OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_PEEPHOLE_OPTIMIZER_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_PEEPHOLE_OPTIMIZER_H_ |
6 #define V8_INTERPRETER_BYTECODE_PEEPHOLE_OPTIMIZER_H_ | 6 #define V8_INTERPRETER_BYTECODE_PEEPHOLE_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 27 matching lines...) Loading... |
38 void SetLast(const BytecodeNode* const node); | 38 void SetLast(const BytecodeNode* const node); |
39 | 39 |
40 bool LastBytecodePutsNameInAccumulator() const; | 40 bool LastBytecodePutsNameInAccumulator() const; |
41 | 41 |
42 Handle<Object> GetConstantForIndexOperand(const BytecodeNode* const node, | 42 Handle<Object> GetConstantForIndexOperand(const BytecodeNode* const node, |
43 int index) const; | 43 int index) const; |
44 | 44 |
45 ConstantArrayBuilder* constant_array_builder_; | 45 ConstantArrayBuilder* constant_array_builder_; |
46 BytecodePipelineStage* next_stage_; | 46 BytecodePipelineStage* next_stage_; |
47 BytecodeNode last_; | 47 BytecodeNode last_; |
48 bool last_is_valid_; | |
49 bool last_is_discardable_; | 48 bool last_is_discardable_; |
50 | 49 |
51 DISALLOW_COPY_AND_ASSIGN(BytecodePeepholeOptimizer); | 50 DISALLOW_COPY_AND_ASSIGN(BytecodePeepholeOptimizer); |
52 }; | 51 }; |
53 | 52 |
54 } // namespace interpreter | 53 } // namespace interpreter |
55 } // namespace internal | 54 } // namespace internal |
56 } // namespace v8 | 55 } // namespace v8 |
57 | 56 |
58 #endif // V8_INTERPRETER_BYTECODE_PEEPHOLE_OPTIMIZER_H_ | 57 #endif // V8_INTERPRETER_BYTECODE_PEEPHOLE_OPTIMIZER_H_ |
OLD | NEW |