return index;
}
public synchronized static CallSite getCallSite(String name) {
if (!RubyInstanceConfig.FASTOPS_COMPILE_ENABLED) {
return new NormalCachingCallSite(name);
} else {
if (name.equals("+")) {
return new PlusCallSite();
} else if (name.equals("-")) {
return new MinusCallSite();
} else if (name.equals("*")) {
return new MulCallSite();
} else if (name.equals("/")) {
return new DivCallSite();
} else if (name.equals("<")) {
return new LtCallSite();
} else if (name.equals("<=")) {
return new LeCallSite();
} else if (name.equals(">")) {
return new GtCallSite();
} else if (name.equals(">=")) {
return new GeCallSite();
} else {
return new NormalCachingCallSite(name);
}
}
}