summaryrefslogtreecommitdiff
path: root/deps/v8/include/v8-debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/include/v8-debug.h')
-rw-r--r--deps/v8/include/v8-debug.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/deps/v8/include/v8-debug.h b/deps/v8/include/v8-debug.h
index 0d0ee739c0..e41df29ad0 100644
--- a/deps/v8/include/v8-debug.h
+++ b/deps/v8/include/v8-debug.h
@@ -18,13 +18,11 @@ enum DebugEvent {
Exception = 2,
NewFunction = 3,
BeforeCompile = 4,
- AfterCompile = 5,
+ AfterCompile = 5,
CompileError = 6,
- PromiseEvent = 7,
- AsyncTaskEvent = 8,
+ AsyncTaskEvent = 7,
};
-
class V8_EXPORT Debug {
public:
/**
@@ -276,6 +274,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);
};