| Index: src/compiler/interpreter-assembler.h
|
| diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h
|
| index adb7ed8f71971bb9a5f94cf5c39eac12929c9a42..62310caa097f94ddbccaaca64c40699f1ad496a5 100644
|
| --- a/src/compiler/interpreter-assembler.h
|
| +++ b/src/compiler/interpreter-assembler.h
|
| @@ -13,6 +13,7 @@
|
| #include "src/frames.h"
|
| #include "src/interpreter/bytecodes.h"
|
| #include "src/runtime/runtime.h"
|
| +#include "src/zone-containers.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -68,6 +69,7 @@ class InterpreterAssembler {
|
| Node* IntPtrConstant(intptr_t value);
|
| Node* NumberConstant(double value);
|
| Node* HeapConstant(Handle<HeapObject> object);
|
| + Node* BooleanConstant(bool value);
|
|
|
| // Tag and untag Smi values.
|
| Node* SmiTag(Node* value);
|
| @@ -106,6 +108,13 @@ class InterpreterAssembler {
|
| // Call runtime function.
|
| Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2);
|
|
|
| + // Jump relative to the current bytecode by |jump_offset|.
|
| + void Jump(Node* jump_offset);
|
| +
|
| + // Jump relative to the current bytecode by |jump_offset| if the
|
| + // word values |lhs| and |rhs| are equal.
|
| + void JumpIfWordEqual(Node* lhs, Node* rhs, Node* jump_offset);
|
| +
|
| // Returns from the function.
|
| void Return();
|
|
|
| @@ -146,9 +155,13 @@ class InterpreterAssembler {
|
| // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not
|
| // update BytecodeOffset() itself.
|
| Node* Advance(int delta);
|
| + Node* Advance(Node* delta);
|
| +
|
| + // Starts next instruction dispatch at |new_bytecode_offset|.
|
| + void DispatchTo(Node* new_bytecode_offset);
|
|
|
| - // Sets the end node of the graph.
|
| - void SetEndInput(Node* input);
|
| + // Adds an end node of the graph.
|
| + void AddEndInput(Node* input);
|
|
|
| // Private helpers which delegate to RawMachineAssembler.
|
| Isolate* isolate();
|
| @@ -157,7 +170,7 @@ class InterpreterAssembler {
|
|
|
| interpreter::Bytecode bytecode_;
|
| base::SmartPointer<RawMachineAssembler> raw_assembler_;
|
| - Node* end_node_;
|
| + ZoneVector<Node*> end_nodes_;
|
| Node* accumulator_;
|
| bool code_generated_;
|
|
|
|
|