Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index cc2ebea5d74015129e02934aa50085066f850cb3..167639656216d89e1aa082d7889861dbd9832d9b 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -68,6 +68,10 @@ namespace interpreter { |
V(KeyedStoreICStrict, OperandType::kReg8, OperandType::kReg8, \ |
OperandType::kIdx8) \ |
\ |
+ /* Context operations */ \ |
+ V(PushContext, OperandType::kReg8) \ |
+ V(PopContext, OperandType::kReg8) \ |
+ \ |
/* Binary Operators */ \ |
V(Add, OperandType::kReg8) \ |
V(Sub, OperandType::kReg8) \ |
@@ -176,6 +180,10 @@ class Register { |
int ToParameterIndex(int parameter_count) const; |
static int MaxParameterIndex(); |
+ // Returns the register for the function's closure object. |
+ static Register function_closure(); |
+ bool is_function_closure() const; |
+ |
// Returns the register for the function's outer context. |
static Register function_context(); |
bool is_function_context() const; |