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 31e237f09832b8083c46be3dd3825d220f945962..04482144cf56513616df0738787b13462d2379da 100644 |
| --- a/src/interpreter/bytecode-array-iterator.h |
| +++ b/src/interpreter/bytecode-array-iterator.h |
| @@ -35,6 +35,10 @@ class BytecodeArrayIterator { |
| // 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 if the current bytecode |
| + // is jump or conditional jump, kMinInt otherwise. |
|
rmcilroy
2015/12/15 17:35:44
It never actually returns kMinInt since there is a
oth
2015/12/15 22:42:17
Done. Yes, doh!
|
| + int GetJumpTargetOffset() const; |
| + |
| private: |
| Handle<BytecodeArray> bytecode_array_; |
| int bytecode_offset_; |