Skip to content

Commit

Permalink
prom speculate call targets
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJecmen committed May 17, 2022
1 parent 2197f32 commit 79a10dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rir/src/compiler/rir2pir/rir2pir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,8 @@ bool Rir2Pir::compileBC(const BC& bc, Opcode* pos, Opcode* nextPos,
// Insert a guard if we want to speculate
if (!staticMonomorphicBuiltin &&
(monomorphicBuiltin || monomorphicClosure || monomorphicSpecial)) {
// Can't speculate in promises
if (inPromise()) {
// Can't speculate while inlining a promise (there's no framestate)
if (inlining()) {
monomorphicBuiltin = monomorphicClosure = monomorphicSpecial =
false;
} else {
Expand Down

0 comments on commit 79a10dd

Please sign in to comment.