Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions core/src/main/java/org/jruby/ir/targets/JVMVisitor.java
Original file line number Diff line number Diff line change
@@ -983,7 +983,7 @@ public void BuildSplatInstr(BuildSplatInstr instr) {

@Override
public void CallInstr(CallInstr callInstr) {
if (callInstr instanceof OneFixnumArgNoBlockCallInstr) {
if (callInstr instanceof OneFixnumArgNoBlockCallInstr && MethodIndex.getFastFixnumOpsMethod(callInstr.getName()) != null) {
oneFixnumArgNoBlockCallInstr((OneFixnumArgNoBlockCallInstr) callInstr);
return;
} else if (callInstr instanceof OneFloatArgNoBlockCallInstr) {
@@ -1505,10 +1505,6 @@ public void NoResultCallInstr(NoResultCallInstr noResultCallInstr) {
}

public void oneFixnumArgNoBlockCallInstr(OneFixnumArgNoBlockCallInstr oneFixnumArgNoBlockCallInstr) {
if (MethodIndex.getFastFixnumOpsMethod(oneFixnumArgNoBlockCallInstr.getName()) == null) {
CallInstr(oneFixnumArgNoBlockCallInstr);
return;
}
IRBytecodeAdapter m = jvmMethod();
String name = oneFixnumArgNoBlockCallInstr.getName();
long fixnum = oneFixnumArgNoBlockCallInstr.getFixnumArg();

0 comments on commit 444c2d6

Please sign in to comment.