Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
import org.jruby.parser.StaticScope;
import org.jruby.runtime.*;
import org.jruby.runtime.builtin.IRubyObject;
import org.jruby.runtime.callsite.RefinedCachingCallSite;
import org.jruby.util.ByteList;
import org.jruby.util.ClassDefiningClassLoader;
import org.jruby.util.JavaNameMangler;
@@ -777,6 +778,11 @@ public void BuildSplatInstr(BuildSplatInstr instr) {

@Override
public void CallInstr(CallInstr callInstr) {
// JIT does not support refinements yet
if (callInstr.getCallSite() instanceof RefinedCachingCallSite) {
throw new NotCompilableException("refinements are unsupported in JIT");
}

IRBytecodeAdapter m = jvmMethod();
String name = callInstr.getName();
Operand[] args = callInstr.getCallArgs();

0 comments on commit 7d6a4e1

Please sign in to comment.