Browse Source

[js] Fix Sink to check for non-recoverable operands.

pull/24/head
Jan de Mooij 2 years ago committed by Roy Tam
parent
commit
51d75f257d
  1. 6
      js/src/jit/Sink.cpp

6
js/src/jit/Sink.cpp

@ -71,8 +71,12 @@ Sink(MIRGenerator* mir, MIRGraph& graph)
for (MUseIterator i(ins->usesBegin()), e(ins->usesEnd()); i != e; i++) {
hasUses = true;
MNode* consumerNode = (*i)->consumer();
if (consumerNode->isResumePoint())
if (consumerNode->isResumePoint()) {
if (!consumerNode->toResumePoint()->isRecoverableOperand(*i)) {
hasLiveUses = true;
}
continue;
}
MDefinition* consumer = consumerNode->toDefinition();
if (consumer->isRecoveredOnBailout())

Loading…
Cancel
Save