summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan de Mooij <jdemooij@mozilla.com>2020-07-29 10:36:00 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-29 10:36:00 +0000
commitd84749b0fdd1f0be1e08b4fa107ae231dabd91f8 (patch)
treee0d38eab05b85f22c3868eb87af904b0ac292a3d
parent3b0123aa12675decc11332704997e29a819eb8ff (diff)
downloadUXP-d84749b0fdd1f0be1e08b4fa107ae231dabd91f8.tar
UXP-d84749b0fdd1f0be1e08b4fa107ae231dabd91f8.tar.gz
UXP-d84749b0fdd1f0be1e08b4fa107ae231dabd91f8.tar.lz
UXP-d84749b0fdd1f0be1e08b4fa107ae231dabd91f8.tar.xz
UXP-d84749b0fdd1f0be1e08b4fa107ae231dabd91f8.zip
[js] Fix Sink to check for non-recoverable operands.
-rw-r--r--js/src/jit/Sink.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/src/jit/Sink.cpp b/js/src/jit/Sink.cpp
index b2c36fae5..2764fc1cb 100644
--- a/js/src/jit/Sink.cpp
+++ b/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())