mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
Fix nullness information builder
This commit is contained in:
parent
a2a9dbcbe3
commit
3b170df2ca
|
@ -292,12 +292,13 @@ class NullnessInformationBuilder {
|
|||
Nullness status = deque.removeFirst() == 1 ? Nullness.NOT_NULL : Nullness.NULL;
|
||||
statuses[node] = status;
|
||||
|
||||
int[] pairs = variablePairs[node];
|
||||
if (pairs != null) {
|
||||
int pairStatus = status == Nullness.NULL ? 1 : 0;
|
||||
for (int pair : pairs) {
|
||||
deque.addLast(pair);
|
||||
deque.addLast(pairStatus);
|
||||
if (status == Nullness.NULL) {
|
||||
int[] pairs = variablePairs[node];
|
||||
if (pairs != null) {
|
||||
for (int pair : pairs) {
|
||||
deque.addLast(pair);
|
||||
deque.addLast(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -451,7 +452,7 @@ class NullnessInformationBuilder {
|
|||
IntSet newlyNonNull = new IntHashSet();
|
||||
}
|
||||
|
||||
class NullnessInitVisitor extends AbstractInstructionVisitor {
|
||||
static class NullnessInitVisitor extends AbstractInstructionVisitor {
|
||||
private IntDeque queue;
|
||||
|
||||
NullnessInitVisitor(IntDeque queue) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user