| 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_ARRAY_ITERATOR_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_ | 6 #define V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_ |
| 7 | 7 |
| 8 #include "src/handles.h" | 8 #include "src/handles.h" |
| 9 #include "src/interpreter/bytecode-register.h" | 9 #include "src/interpreter/bytecode-register.h" |
| 10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 Bytecode current_bytecode() const; | 24 Bytecode current_bytecode() const; |
| 25 int current_bytecode_size() const; | 25 int current_bytecode_size() const; |
| 26 int current_offset() const { return bytecode_offset_; } | 26 int current_offset() const { return bytecode_offset_; } |
| 27 OperandScale current_operand_scale() const { return operand_scale_; } | 27 OperandScale current_operand_scale() const { return operand_scale_; } |
| 28 int current_prefix_offset() const { return prefix_offset_; } | 28 int current_prefix_offset() const { return prefix_offset_; } |
| 29 const Handle<BytecodeArray>& bytecode_array() const { | 29 const Handle<BytecodeArray>& bytecode_array() const { |
| 30 return bytecode_array_; | 30 return bytecode_array_; |
| 31 } | 31 } |
| 32 | 32 |
| 33 uint32_t GetFlagOperand(int operand_index) const; | 33 uint32_t GetFlagOperand(int operand_index) const; |
| 34 uint32_t GetUnsignedImmediateOperand(int operand_index) const; |
| 34 int32_t GetImmediateOperand(int operand_index) const; | 35 int32_t GetImmediateOperand(int operand_index) const; |
| 35 uint32_t GetIndexOperand(int operand_index) const; | 36 uint32_t GetIndexOperand(int operand_index) const; |
| 36 uint32_t GetRegisterCountOperand(int operand_index) const; | 37 uint32_t GetRegisterCountOperand(int operand_index) const; |
| 37 Register GetRegisterOperand(int operand_index) const; | 38 Register GetRegisterOperand(int operand_index) const; |
| 38 int GetRegisterOperandRange(int operand_index) const; | 39 int GetRegisterOperandRange(int operand_index) const; |
| 39 Runtime::FunctionId GetRuntimeIdOperand(int operand_index) const; | 40 Runtime::FunctionId GetRuntimeIdOperand(int operand_index) const; |
| 40 Runtime::FunctionId GetIntrinsicIdOperand(int operand_index) const; | 41 Runtime::FunctionId GetIntrinsicIdOperand(int operand_index) const; |
| 41 Handle<Object> GetConstantForIndexOperand(int operand_index) const; | 42 Handle<Object> GetConstantForIndexOperand(int operand_index) const; |
| 42 | 43 |
| 43 // Returns the absolute offset of the branch target at the current | 44 // Returns the absolute offset of the branch target at the current |
| (...skipping 14 matching lines...) Expand all Loading... |
| 58 int prefix_offset_; | 59 int prefix_offset_; |
| 59 | 60 |
| 60 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); | 61 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 } // namespace interpreter | 64 } // namespace interpreter |
| 64 } // namespace internal | 65 } // namespace internal |
| 65 } // namespace v8 | 66 } // namespace v8 |
| 66 | 67 |
| 67 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ | 68 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ |
| OLD | NEW |