Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/main/java/org/jruby/ir/IRScope.java
Original file line number Diff line number Diff line change
@@ -698,6 +698,15 @@ public synchronized InterpreterContext prepareForInterpretation(boolean rebuild)

/** Run any necessary passes to get the IR ready for compilation */
public synchronized List<BasicBlock> prepareForCompilation() {
// FIXME: This is messy and prepareForInterpretation and prepareForCompilation need to
// clean up the lifecycle aspects of creating CFG from instrList and running passes in
// a consistent and predictable way. This is a hack atm to unbreak the fact JIT
// may happen before IC.build count and thus not have cloned the instrs (which then
// modifies instrs IC is using causing weird blowups.
if (getCFG() == null) {
cloneInstrs();
}

// Reset linearization, if any exists
resetLinearizationData();

0 comments on commit 3158e91

Please sign in to comment.