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

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

Issue 1568493002: [Interpreter] Add support for calling runtime functions which return a pair. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
Index: src/compiler/interpreter-assembler.h
diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h
index b5e93e7ef6b131976d642e8fa70cb6555fa16986..83dfc3d8c1c628084d81e2e874f57cd14b10dbf2 100644
--- a/src/compiler/interpreter-assembler.h
+++ b/src/compiler/interpreter-assembler.h
@@ -67,6 +67,9 @@ class InterpreterAssembler {
Node* StoreRegister(Node* value, interpreter::Register reg);
Node* StoreRegister(Node* value, Node* reg_index);
+ // Returns the next consecutive register.
+ Node* NextRegister(Node* reg_index);
+
// Returns the location in memory of the register |reg_index| in the
// interpreter register file.
Node* RegisterLocation(Node* reg_index);
@@ -130,7 +133,10 @@ class InterpreterAssembler {
Node* arg2, Node* arg3, Node* arg4, Node* arg5);
// Call runtime function.
+ Node* CallRuntime(CallDescriptor* descriptor, Handle<Code> call_stub,
+ Node* function_id, Node* first_arg, Node* arg_count);
Node* CallRuntime(Node* function_id, Node* first_arg, Node* arg_count);
Michael Starzinger 2016/01/07 17:21:28 suggestion: Likewise to code-factory, can we pass
rmcilroy 2016/01/08 14:15:07 Done.
+ Node* CallRuntimePair(Node* function_id, Node* first_arg, Node* arg_count);
Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1);
Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2);
Node* CallRuntime(Runtime::FunctionId function_id, Node* arg1, Node* arg2,

Powered by Google App Engine
This is Rietveld 408576698