Index: src/interpreter/bytecode-array-builder.h |
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h |
index d4e1c34e540a2d67a22c19d61c7372c78dbf6cfb..ebcb18017e8bf4d1f6da09498ed584a94a48b37f 100644 |
--- a/src/interpreter/bytecode-array-builder.h |
+++ b/src/interpreter/bytecode-array-builder.h |
@@ -35,6 +35,9 @@ class BytecodeArrayBuilder { |
void set_locals_count(int number_of_locals); |
int locals_count() const; |
+ // Returns true if the bytecode has an explicit return at the end. |
+ bool HasExplicitReturn(); |
+ |
Register Parameter(int parameter_index); |
// Constant loads to accumulator. |
@@ -56,6 +59,14 @@ class BytecodeArrayBuilder { |
BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot, |
LanguageMode language_mode); |
+ // Store properties. The value to be stored should be in the accumulator. |
+ BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name, |
+ int feedback_slot, |
+ LanguageMode language_mode); |
+ BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, |
+ int feedback_slot, |
+ LanguageMode language_mode); |
+ |
// Operators. |
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg); |