Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 6604191c5953cccaf137a938721692f0a9da596d..61d449796e3a24e2143526c36f5ae18e718e403d 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -150,6 +150,11 @@ int Bytecodes::Size(Bytecode bytecode, OperandScale operand_scale) { |
// static |
+size_t Bytecodes::ReturnCount(Bytecode bytecode) { |
+ return bytecode == Bytecode::kReturn ? 1 : 0; |
+} |
+ |
+// static |
int Bytecodes::NumberOfOperands(Bytecode bytecode) { |
DCHECK(bytecode <= Bytecode::kLast); |
switch (bytecode) { |