Skip to content

Commit 40e4a3e

Browse files
committed
Add phase to disable globopt for generators
1 parent 511f501 commit 40e4a3e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/Backend/Func.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class Func
206206
!PHASE_OFF(Js::GlobOptPhase, this) && !IsSimpleJit() &&
207207
(!GetTopFunc()->HasTry() || GetTopFunc()->CanOptimizeTryCatch()) &&
208208
(!GetTopFunc()->HasFinally() || GetTopFunc()->CanOptimizeTryFinally()) &&
209-
!GetTopFunc()->GetJITFunctionBody()->IsCoroutine();
209+
(!GetTopFunc()->GetJITFunctionBody()->IsCoroutine() || !PHASE_OFF(Js::GeneratorGlobOptPhase, this));
210210
}
211211

212212
bool DoInline() const

lib/Common/ConfigFlagsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ PHASE(All)
325325
PHASE(Host)
326326
PHASE(BailOut)
327327
PHASE(BailIn)
328+
PHASE(GeneratorGlobOpt)
328329
PHASE(RegexQc)
329330
PHASE(RegexOptBT)
330331
PHASE(InlineCache)

0 commit comments

Comments
 (0)