Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Unified Diff: src/interpreter/bytecodes.cc

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Avoid outputting junk data in BytecodeArray::Print() and ByteArray::Print(). Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/interpreter/bytecodes.cc
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
index 68933e16f7092539b66c13b20553b61845a4d899..609389c8ebf0731f3f4b252a8ccafae605edac66 100644
--- a/src/interpreter/bytecodes.cc
+++ b/src/interpreter/bytecodes.cc
@@ -47,6 +47,12 @@ const bool Bytecodes::IsReturn(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);
}

Powered by Google App Engine
This is Rietveld 408576698