Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 4f9127f67cfdc23656462b97f5403055228da336..76c0125c5b51f2a294e1ac8cd2bfd97d7fe29619 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -90,15 +90,19 @@ class Bytecodes { |
// Return the i-th operand of |bytecode|. |
static OperandType GetOperandType(Bytecode bytecode, int i); |
- // Returns the size of the bytecode including its arguments. |
+ // Returns the size of the bytecode including its operands. |
static int Size(Bytecode bytecode); |
// The maximum number of operands across all bytecodes. |
static int MaximumNumberOfOperands(); |
- // Maximum size of a bytecode and its arguments. |
+ // Maximum size of a bytecode and its operands. |
static int MaximumSize(); |
+ // Decode a single bytecode and operands to |os|. |
+ static std::ostream& Decode(std::ostream& os, const uint8_t* bytecode_start, |
+ const uint8_t* bytecode_end); |
Michael Starzinger
2015/08/03 15:59:09
It looks like the {bytecode_end} argument is only
|
+ |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecodes); |
}; |