Skip to content

Commit 79a10dd

Browse files
committed
prom speculate call targets
1 parent 2197f32 commit 79a10dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rir/src/compiler/rir2pir/rir2pir.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,8 +669,8 @@ bool Rir2Pir::compileBC(const BC& bc, Opcode* pos, Opcode* nextPos,
669669
// Insert a guard if we want to speculate
670670
if (!staticMonomorphicBuiltin &&
671671
(monomorphicBuiltin || monomorphicClosure || monomorphicSpecial)) {
672-
// Can't speculate in promises
673-
if (inPromise()) {
672+
// Can't speculate while inlining a promise (there's no framestate)
673+
if (inlining()) {
674674
monomorphicBuiltin = monomorphicClosure = monomorphicSpecial =
675675
false;
676676
} else {

0 commit comments

Comments
 (0)