| Index: src/interpreter/interpreter-assembler.h
|
| diff --git a/src/interpreter/interpreter-assembler.h b/src/interpreter/interpreter-assembler.h
|
| index 183d4ddaefff1e11306170eea5be41dee460e64a..259cd2f03b49f076ad8d391a924be9c6261da6fe 100644
|
| --- a/src/interpreter/interpreter-assembler.h
|
| +++ b/src/interpreter/interpreter-assembler.h
|
| @@ -67,6 +67,9 @@ class InterpreterAssembler : public CodeStubAssembler {
|
| compiler::Node* StoreRegister(compiler::Node* value,
|
| compiler::Node* reg_index);
|
|
|
| + // Build nodes for Star and don't dispatch
|
| + compiler::Node* StoreAccumulatorToRegister();
|
| +
|
| // Returns the next consecutive register.
|
| compiler::Node* NextRegister(compiler::Node* reg_index);
|
|
|
| @@ -218,14 +221,30 @@ class InterpreterAssembler : public CodeStubAssembler {
|
| // JumpIfWordNotEqual.
|
| void JumpConditional(compiler::Node* condition, compiler::Node* jump_offset);
|
|
|
| + // Returns BytecodeOffset() advanced by the current bytecode's size.
|
| + // Note: this does not update BytecodeOffset() itself.
|
| + compiler::Node* Advance();
|
| +
|
| // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not
|
| // update BytecodeOffset() itself.
|
| compiler::Node* Advance(int delta);
|
| compiler::Node* Advance(compiler::Node* delta);
|
|
|
| + // Load the bytecode at |bytecode_offset|.
|
| + compiler::Node* LoadBytecode(compiler::Node* bytecode_offset);
|
| +
|
| // Starts next instruction dispatch at |new_bytecode_offset|.
|
| compiler::Node* DispatchTo(compiler::Node* new_bytecode_offset);
|
|
|
| + // Look ahead for Star and inline it, will bind the next bytecode to dispatch
|
| + // to, to |target_bytecode| and its offset to |target_offset|.
|
| + void InlineDispatchToStar(Variable& target_bytecode, Variable& target_offset);
|
| +
|
| + // Dispatch to |target_bytecode| at |new_bytecode_offset|.
|
| + // |target_bytecode| should be equivalent to loading from the offset.
|
| + compiler::Node* DispatchToLoaded(compiler::Node* target_bytecode,
|
| + compiler::Node* new_bytecode_offset);
|
| +
|
| // Dispatch to the bytecode handler with code offset |handler|.
|
| compiler::Node* DispatchToBytecodeHandler(compiler::Node* handler,
|
| compiler::Node* bytecode_offset);
|
| @@ -237,6 +256,7 @@ class InterpreterAssembler : public CodeStubAssembler {
|
| OperandScale operand_scale() const { return operand_scale_; }
|
|
|
| Bytecode bytecode_;
|
| + CodeStubAssembler::Variable bytecode_offset_;
|
| OperandScale operand_scale_;
|
| CodeStubAssembler::Variable interpreted_frame_pointer_;
|
| CodeStubAssembler::Variable accumulator_;
|
|
|