Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 0ab61e10e5a3f90bb435d109e5e71aa6cf15616a..89fcaf60e8e2339eb716ea9db5a900e134b94752 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -42,6 +42,12 @@ const int Bytecodes::Size(Bytecode bytecode) { |
} |
+#define CHECK_SIZE(Name, arg_count) \ |
+ STATIC_ASSERT(arg_count <= Bytecodes::kMaximumNumberOfArguments); |
+ BYTECODE_LIST(CHECK_SIZE) |
+#undef CHECK_SIZE |
+ |
+ |
std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode) { |
return os << Bytecodes::ToString(bytecode); |
} |