Chromium Code Reviews| Index: src/interpreter/bytecode-array-iterator.h |
| diff --git a/src/interpreter/bytecode-array-iterator.h b/src/interpreter/bytecode-array-iterator.h |
| index 5379bbf0288d3140db0e8114b2f7080c924289f1..9111d7917a87e7380bc14d5efee2ab38000ce7a4 100644 |
| --- a/src/interpreter/bytecode-array-iterator.h |
| +++ b/src/interpreter/bytecode-array-iterator.h |
| @@ -21,31 +21,38 @@ class BytecodeArrayIterator { |
| bool done() const; |
| Bytecode current_bytecode() const; |
| int current_bytecode_size() const; |
| - void set_current_offset(int offset) { bytecode_offset_ = offset; } |
| int current_offset() const { return bytecode_offset_; } |
| + OperandScale current_operand_scale() const { return operand_scale_; } |
| + int current_prefix_offset() const { return prefix_offset_; } |
| const Handle<BytecodeArray>& bytecode_array() const { |
| return bytecode_array_; |
| } |
| - int8_t GetImmediateOperand(int operand_index) const; |
| - int GetIndexOperand(int operand_index) const; |
| - int GetRegisterCountOperand(int operand_index) const; |
| + uint32_t GetFlagOperand(int operand_index) const; |
| + int32_t GetImmediateOperand(int operand_index) const; |
| + uint32_t GetIndexOperand(int operand_index) const; |
| + uint32_t GetRegisterCountOperand(int operand_index) const; |
| Register GetRegisterOperand(int operand_index) const; |
| int GetRegisterOperandRange(int operand_index) const; |
| + uint32_t GetRuntimeIdOperand(int operand_index) const; |
| Handle<Object> GetConstantForIndexOperand(int operand_index) const; |
| - // Get the raw byte for the given operand. Note: you should prefer using the |
| - // typed versions above which cast the return to an appropriate type. |
| - uint32_t GetRawOperand(int operand_index, OperandType operand_type) const; |
| - |
| // Returns the absolute offset of the branch target at the current |
| // bytecode. It is an error to call this method if the bytecode is |
| // not for a jump or conditional jump. |
| int GetJumpTargetOffset() const; |
| private: |
| + uint32_t GetUnsignedOperand(int operand_index, |
| + OperandType operand_type) const; |
| + int32_t GetSignedOperand(int operand_index, OperandType operand_type) const; |
| + |
| + void update_operand_scale(); |
|
rmcilroy
2016/03/17 17:30:50
nit - UpdateOperandScale (not a getter or setter
oth
2016/03/21 09:16:53
Done.
|
| + |
| Handle<BytecodeArray> bytecode_array_; |
| int bytecode_offset_; |
| + OperandScale operand_scale_; |
| + int prefix_offset_; |
| DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); |
| }; |