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

Unified Diff: src/compiler/linkage-impl.h

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
« no previous file with comments | « src/compiler/js-context-relaxation.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/linkage-impl.h
diff --git a/src/compiler/linkage-impl.h b/src/compiler/linkage-impl.h
index 6641ef130982cc39de530c23d4243179ec6904d4..4694dd7dbd0baf514b195cf22cb5c2fb714b409c 100644
--- a/src/compiler/linkage-impl.h
+++ b/src/compiler/linkage-impl.h
@@ -7,6 +7,7 @@
#include "src/code-stubs.h"
#include "src/compiler/osr.h"
+#include "src/runtime/runtime.h"
namespace v8 {
namespace internal {
@@ -119,6 +120,9 @@ class LinkageHelper {
CallDescriptor::Flags flags = Linkage::FrameStateInputCount(function_id) > 0
? CallDescriptor::kNeedsFrameState
: CallDescriptor::kNoFlags;
+ if (Runtime::SupportsTailCall(function_id)) {
Michael Starzinger 2015/08/04 15:01:54 This new predicate on {Runtime} is similar to Link
+ flags |= CallDescriptor::kSupportsTailCalls;
+ }
// The target for runtime calls is a code object.
MachineType target_type = kMachAnyTagged;
« no previous file with comments | « src/compiler/js-context-relaxation.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698