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

Unified Diff: src/interpreter/bytecodes.h

Issue 1230753004: [Interpreter] Add BytecodeArray class and add to SharedFunctionInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix pedantic build (take2). 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
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/interpreter/bytecodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698