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

Unified Diff: include/v8-debug.h

Issue 1842763002: [api] Add a switch that controls if ES2015 tail call elimination feature is enabled or not. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-dynamic
Patch Set: Added workaround and TODO to investigate TurboFan issue. Created 4 years, 9 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/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-debug.h
diff --git a/include/v8-debug.h b/include/v8-debug.h
index 0d0ee739c0ed39b44e566cd490a2315ba73eb849..50314501e3b3b95afee45bff708e50be0b3fbfde 100644
--- a/include/v8-debug.h
+++ b/include/v8-debug.h
@@ -276,6 +276,14 @@ class V8_EXPORT Debug {
*/
static MaybeLocal<Array> GetInternalProperties(Isolate* isolate,
Local<Value> value);
+
+ /**
+ * Defines if the ES2015 tail call elimination feature is enabled or not.
+ * The change of this flag triggers deoptimization of all functions that
+ * contain calls at tail position.
+ */
+ static bool IsTailCallEliminationEnabled(Isolate* isolate);
+ static void SetTailCallEliminationEnabled(Isolate* isolate, bool enabled);
};
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698