| Index: src/interpreter/bytecodes.h
|
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h
|
| index 41359b0b250f799ba46d7cd366d496a1508429f8..dc125162fa4f6763b5203d2d2e0bc12595361a4f 100644
|
| --- a/src/interpreter/bytecodes.h
|
| +++ b/src/interpreter/bytecodes.h
|
| @@ -42,11 +42,16 @@ class Bytecodes {
|
| // Returns the size of the bytecode including its arguments.
|
| static const int Size(Bytecode bytecode);
|
|
|
| + // The maximum number of arguments across all bytecodes.
|
| + static const int kMaximumNumberOfArguments = 1;
|
| +
|
| + // Maximum size of a bytecode and its arguments.
|
| + static const int kMaximumSize = 1 + kMaximumNumberOfArguments;
|
| +
|
| private:
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(Bytecodes);
|
| };
|
|
|
| -
|
| std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
|
|
|
| } // namespace interpreter
|
|
|