Index: src/interpreter/bytecode-array-builder.h |
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h |
index 8a45c73bbbcbb4a7bd44ca05142c8ad63da08b4d..666ec52c1ee91e99fbe0601f042cba015f4b4ab8 100644 |
--- a/src/interpreter/bytecode-array-builder.h |
+++ b/src/interpreter/bytecode-array-builder.h |
@@ -51,6 +51,12 @@ class BytecodeArrayBuilder { |
BytecodeArrayBuilder& LoadAccumulatorWithRegister(Register reg); |
BytecodeArrayBuilder& StoreAccumulatorInRegister(Register reg); |
+ // Load properties. The property name should be in the accumulator. |
+ BytecodeArrayBuilder& LoadNamedProperty(Register object, int feedback_slot, |
+ LanguageMode language_mode); |
+ BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot, |
+ LanguageMode language_mode); |
+ |
// Operators. |
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg); |
@@ -62,6 +68,8 @@ class BytecodeArrayBuilder { |
-InterpreterFrameConstants::kLastParamFromRegisterPointer / kPointerSize; |
static Bytecode BytecodeForBinaryOperation(Token::Value op); |
+ static bool FitsInByteOperand(int value); |
+ static bool FitsInByteOperand(size_t value); |
void Output(Bytecode bytecode, uint8_t r0, uint8_t r1, uint8_t r2); |
void Output(Bytecode bytecode, uint8_t r0, uint8_t r1); |