| 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_PIPELINE_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_PIPELINE_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_PIPELINE_H_ | 6 #define V8_INTERPRETER_BYTECODE_PIPELINE_H_ |
| 7 | 7 |
| 8 #include "src/interpreter/bytecode-register-allocator.h" | 8 #include "src/interpreter/bytecode-register-allocator.h" |
| 9 #include "src/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
| 10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 is_statement_ == other.is_statement_; | 77 is_statement_ == other.is_statement_; |
| 78 } | 78 } |
| 79 bool operator!=(const BytecodeSourceInfo& other) const { | 79 bool operator!=(const BytecodeSourceInfo& other) const { |
| 80 return source_position_ != other.source_position_ || | 80 return source_position_ != other.source_position_ || |
| 81 is_statement_ != other.is_statement_; | 81 is_statement_ != other.is_statement_; |
| 82 } | 82 } |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 int source_position_; | 85 int source_position_; |
| 86 bool is_statement_; | 86 bool is_statement_; |
| 87 | |
| 88 DISALLOW_COPY_AND_ASSIGN(BytecodeSourceInfo); | |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 // A container for a generated bytecode, it's operands, and source information. | 89 // A container for a generated bytecode, it's operands, and source information. |
| 92 // These must be allocated by a BytecodeNodeAllocator instance. | 90 // These must be allocated by a BytecodeNodeAllocator instance. |
| 93 class BytecodeNode final : ZoneObject { | 91 class BytecodeNode final : ZoneObject { |
| 94 public: | 92 public: |
| 95 explicit BytecodeNode(Bytecode bytecode = Bytecode::kIllegal); | 93 explicit BytecodeNode(Bytecode bytecode = Bytecode::kIllegal); |
| 96 BytecodeNode(Bytecode bytecode, uint32_t operand0, | 94 BytecodeNode(Bytecode bytecode, uint32_t operand0, |
| 97 OperandScale operand_scale); | 95 OperandScale operand_scale); |
| 98 BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1, | 96 BytecodeNode(Bytecode bytecode, uint32_t operand0, uint32_t operand1, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 }; | 154 }; |
| 157 | 155 |
| 158 std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info); | 156 std::ostream& operator<<(std::ostream& os, const BytecodeSourceInfo& info); |
| 159 std::ostream& operator<<(std::ostream& os, const BytecodeNode& node); | 157 std::ostream& operator<<(std::ostream& os, const BytecodeNode& node); |
| 160 | 158 |
| 161 } // namespace interpreter | 159 } // namespace interpreter |
| 162 } // namespace internal | 160 } // namespace internal |
| 163 } // namespace v8 | 161 } // namespace v8 |
| 164 | 162 |
| 165 #endif // V8_INTERPRETER_BYTECODE_PIPELINE_H_ | 163 #endif // V8_INTERPRETER_BYTECODE_PIPELINE_H_ |
| OLD | NEW |