| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 9cee8db2ba79d92adb820c0af6800f66a58c799e..0d1a4dbff0ba1711114bcfd7534d5247eab76a7b 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2881,6 +2881,14 @@ std::string Isolate::GetTurboCfgFileName() {
|
| }
|
| }
|
|
|
| +void Isolate::SetTailCallEliminationEnabled(bool enabled) {
|
| + if (is_tail_call_elimination_enabled_ == enabled) return;
|
| + is_tail_call_elimination_enabled_ = enabled;
|
| + // TODO(ishell): Introduce DependencyGroup::kTailCallChangedGroup to
|
| + // deoptimize only those functions that are affected by the change of this
|
| + // flag.
|
| + internal::Deoptimizer::DeoptimizeAll(this);
|
| +}
|
|
|
| // Heap::detached_contexts tracks detached contexts as pairs
|
| // (number of GC since the context was detached, the context).
|
|
|