| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 9cee8db2ba79d92adb820c0af6800f66a58c799e..093c7251dab39ddb16fbd655f5470aebc55c5a34 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2881,6 +2881,12 @@ std::string Isolate::GetTurboCfgFileName() {
|
| }
|
| }
|
|
|
| +void Isolate::SetTailCallEliminationEnabled(bool enabled) {
|
| + if (is_tail_call_elimination_enabled_ == enabled) return;
|
| + is_tail_call_elimination_enabled_ = enabled;
|
| + // This is a big hammer but we don't expect this to happen frequently.
|
| + internal::Deoptimizer::DeoptimizeAll(this);
|
| +}
|
|
|
| // Heap::detached_contexts tracks detached contexts as pairs
|
| // (number of GC since the context was detached, the context).
|
|
|