Index: src/compiler/interpreter-assembler.h |
diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h |
index 905f3e0585aec3f75d28992b0a0ad24d982b0d74..80ad0b6e5030c7eaae53d47bb841b71b07b7baff 100644 |
--- a/src/compiler/interpreter-assembler.h |
+++ b/src/compiler/interpreter-assembler.h |
@@ -36,6 +36,13 @@ class InterpreterAssembler { |
Handle<Code> GenerateCode(); |
+ // Returns the Imm8 immediate for bytecode operand |index| in the current |
Michael Starzinger
2015/08/17 08:22:34
nit: Comment seems to be outdated, no index is pas
rmcilroy
2015/08/18 13:06:22
Changed parameter and comment to operand_index
|
+ // bytecode. |
+ Node* BytecodeOperandImm8(int delta); |
+ // Returns the register index for bytecode operand |index| in the current |
+ // bytecode. |
+ Node* BytecodeOperandReg(int delta); |
+ |
// Accumulator. |
Node* GetAccumulator(); |
void SetAccumulator(Node* value); |
@@ -49,15 +56,16 @@ class InterpreterAssembler { |
Node* NumberConstant(double value); |
Node* HeapConstant(Unique<HeapObject> object); |
+ // Tag and untag Smi values. |
+ Node* SmiTag(Node* value); |
+ Node* SmiUntag(Node* value); |
+ |
// Returns from the function. |
void Return(); |
// Dispatch to the bytecode. |
void Dispatch(); |
- Node* BytecodeOperand(int index); |
- Node* BytecodeOperandSignExtended(int index); |
- |
protected: |
// Close the graph. |
void End(); |
@@ -79,6 +87,10 @@ class InterpreterAssembler { |
// Returns the offset of register |index| relative to RegisterFilePointer(). |
Node* RegisterFrameOffset(Node* index); |
+ Node* SmiShiftBitsConstant(); |
+ Node* BytecodeOperand(int index); |
+ Node* BytecodeOperandSignExtended(int index); |
+ |
// Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not |
// update BytecodeOffset() itself. |
Node* Advance(int delta); |