Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(910)

Unified Diff: src/compiler/interpreter-assembler.h

Issue 1294793002: [Interpreter] Add implementations for load immediate bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@interpreter_accum
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/interpreter-assembler.cc » ('j') | src/compiler/interpreter-assembler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | src/compiler/interpreter-assembler.cc » ('j') | src/compiler/interpreter-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698