Chromium Code Reviews| Index: src/interpreter/bytecodes.h |
| diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
| index de451b54bb0d77ffb3e86791896a1e20129654ab..998e628191446379a26669fe4214ecd5a34705ef 100644 |
| --- a/src/interpreter/bytecodes.h |
| +++ b/src/interpreter/bytecodes.h |
| @@ -43,11 +43,16 @@ class Bytecodes { |
| // Returns true if the bytecode is a function return bytecode. |
| static const bool IsReturn(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; |
|
rmcilroy
2015/07/21 11:25:16
Is this just used for the disassembly? I don't thi
|
| + |
| private: |
| Bytecodes() { UNREACHABLE(); } |
| }; |
| - |
| std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); |
| } // namespace interpreter |