Skip to content

Commit

Permalink
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -41,7 +41,9 @@ public InterpretedIRMethod(IRScope method, Visibility visibility, RubyModule imp
this.method.getStaticScope().determineModule();
this.signature = getStaticScope().getSignature();

// FIXME: Enable no full build promotion option (perhaps piggy back JIT threshold)
if (!method.getManager().getInstanceConfig().getCompileMode().shouldJIT()) {
callCount = -1;
}
}

public IRScope getIRScope() {
Original file line number Diff line number Diff line change
@@ -43,7 +43,6 @@ public MixedModeIRMethod(IRScope method, Visibility visibility, RubyModule imple
this.signature = getStaticScope().getSignature();

// disable JIT if JIT is disabled
// FIXME: kinda hacky, but I use IRMethod data in JITCompiler.
if (!implementationClass.getRuntime().getInstanceConfig().getCompileMode().shouldJIT()) {
this.box.callCount = -1;
}
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ public InterpretedIRBlockBody(IRClosure closure, Signature signature) {

// JIT currently JITs blocks along with their method and no on-demand by themselves. We only
// promote to full build here if we are -X-C.
if (closure.getManager().getInstanceConfig().getCompileMode() != RubyInstanceConfig.CompileMode.OFF) {
if (!closure.getManager().getInstanceConfig().getCompileMode().shouldJIT()) {
callCount = -1;
}
}

0 comments on commit 31d5310

Please sign in to comment.