Skip to content

Commit

Permalink
Don't perform any liveness actions during OSR
Browse files Browse the repository at this point in the history
  • Loading branch information
cache-nez committed Mar 15, 2022
1 parent 6bb3cd3 commit 9b95cc1
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,32 @@ public final class LivenessAnalysis {
private final EdgeAction[] edge;
private final LocalVariableAction onStart;

public void performOnEdge(VirtualFrame frame, int bci, int nextBci) {
public void performOnEdge(VirtualFrame frame, int bci, int nextBci, boolean disable) {
if (CompilerDirectives.inCompiledCode()) {
if (edge != null && edge[nextBci] != null) {
edge[nextBci].onEdge(frame, bci);
if (!disable) {
if (edge != null && edge[nextBci] != null) {
edge[nextBci].onEdge(frame, bci);
}
}
}
}

public void onStart(VirtualFrame frame) {
public void onStart(VirtualFrame frame, boolean disable) {
if (CompilerDirectives.inCompiledCode()) {
if (onStart != null) {
onStart.execute(frame);
if (!disable) {
if (onStart != null) {
onStart.execute(frame);
}
}
}
}

public void performPostBCI(VirtualFrame frame, int bci) {
public void performPostBCI(VirtualFrame frame, int bci, boolean disable) {
if (CompilerDirectives.inCompiledCode()) {
if (result != null && result[bci] != null) {
result[bci].execute(frame);
if (!disable) {
if (result != null && result[bci] != null) {
result[bci].execute(frame);
}
}
}
}
Expand Down
Loading

0 comments on commit 9b95cc1

Please sign in to comment.