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

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

Issue 1294133004: [Interpreter] Pass context to interpreter bytecode handlers and add LoadConstextSlot (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
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/linkage.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 4662fc8042519c6ce81a9d50b0489042a1c866d9..b15311bbedf02d0a6cdef9905dec05b049c90f4c 100644
--- a/src/compiler/interpreter-assembler.h
+++ b/src/compiler/interpreter-assembler.h
@@ -53,6 +53,7 @@ class InterpreterAssembler {
// Constants.
Node* Int32Constant(int value);
+ Node* IntPtrConstant(intptr_t value);
Node* NumberConstant(double value);
Node* HeapConstant(Unique<HeapObject> object);
@@ -60,6 +61,9 @@ class InterpreterAssembler {
Node* SmiTag(Node* value);
Node* SmiUntag(Node* value);
+ // Load |slot_index| from the current context.
+ Node* LoadContextSlot(int slot_index);
+
// Returns from the function.
void Return();
@@ -81,8 +85,10 @@ class InterpreterAssembler {
Node* BytecodeArrayTaggedPointer();
// Returns the offset from the BytecodeArrayPointer of the current bytecode.
Node* BytecodeOffset();
- // Returns a pointer to first entry in the interpreter dispatch table.
+ // Returns a raw pointer to first entry in the interpreter dispatch table.
Node* DispatchTableRawPointer();
+ // Returns a tagged pointer to the current context.
+ Node* ContextTaggedPointer();
// Returns the offset of register |index| relative to RegisterFilePointer().
Node* RegisterFrameOffset(Node* index);
« no previous file with comments | « no previous file | src/compiler/interpreter-assembler.cc » ('j') | src/compiler/linkage.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698