Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 83c09dbd2eabebcb29cabc2cb5d90902162a4b1c..2f91bf1b14c76b741136ee3363adb3a5de705899 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -239,7 +239,7 @@ namespace interpreter { |
/* Non-local flow control */ \ |
V(Throw, AccumulatorUse::kRead) \ |
V(ReThrow, AccumulatorUse::kRead) \ |
- V(Return, AccumulatorUse::kNone) \ |
+ V(Return, AccumulatorUse::kRead) \ |
\ |
/* Generators */ \ |
V(SuspendGenerator, AccumulatorUse::kRead, OperandType::kReg) \ |
@@ -509,6 +509,9 @@ class Bytecodes { |
// Returns the size of |operand|. |
static OperandSize SizeOfOperand(OperandType operand, OperandScale scale); |
+ // Returns the number of values which |bytecode| returns. |
+ static size_t ReturnCount(Bytecode bytecode); |
+ |
// Returns true if the bytecode is a conditional jump taking |
// an immediate byte operand (OperandType::kImm). |
static bool IsConditionalJumpImmediate(Bytecode bytecode); |