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

Unified Diff: src/code-factory.cc

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/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 949bf9ab9c9db30155785457c92fbdf1172d87fd..22020605c54ae614696addfe9fadff842529b851 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -360,12 +360,20 @@ Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) {
// static
Callable CodeFactory::InterpreterCEntry(Isolate* isolate) {
- // TODO(rmcilroy): Deal with runtime functions that return two values.
// Note: If we ever use fpregs in the interpreter then we will need to
// save fpregs too.
CEntryStub stub(isolate, 1, kDontSaveFPRegs, kArgvInRegister);
return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
}
+
+// static
+Callable CodeFactory::InterpreterCEntryPair(Isolate* isolate) {
+ // Note: If we ever use fpregs in the interpreter then we will need to
+ // save fpregs too.
+ CEntryStub stub(isolate, 2, kDontSaveFPRegs, kArgvInRegister);
+ return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
+}
+
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698