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

Unified Diff: src/runtime/runtime.cc

Issue 1254073003: Tail call from TurboFan into select runtime calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Smaller patch Created 5 years, 5 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
« src/compiler/linkage-impl.h ('K') | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime.cc
diff --git a/src/runtime/runtime.cc b/src/runtime/runtime.cc
index 674f1173a789446cd138c8fa3c17c7c7baa06285..0d6b708391d468449eb2a3416298f6c92bcae2cf 100644
--- a/src/runtime/runtime.cc
+++ b/src/runtime/runtime.cc
@@ -90,6 +90,18 @@ const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
}
+bool Runtime::SupportsTailCall(FunctionId id) {
+ switch (id) {
+#define RUNTIME_FUNCTION_SWITCH(name, a, b) case k##name:
+ FOR_EACH_INTRINSIC_IC(RUNTIME_FUNCTION_SWITCH)
+#undef RUNTIME_FUNCTION_SWITCH
+ return true;
+ default:
+ return false;
+ }
+}
+
+
std::ostream& operator<<(std::ostream& os, Runtime::FunctionId id) {
return os << Runtime::FunctionForId(id)->name;
}
« src/compiler/linkage-impl.h ('K') | « src/runtime/runtime.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698