@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { Object constant = cachedConstant; // Store to temp so it does null out on us mid-stream if (!isCached(context, constant)) constant = cache(context, currDynScope, self, temp); return constant; }
@Override public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { ConstantCache cache = this.cache; if (!ConstantCache.isCached(cache)) return cache(context, currScope, currDynScope, self, temp); return cache.value; }
@Override public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { ConstantCache cache = this.cache; if (!ConstantCache.isCached(cache)) return cache(context, currScope, currDynScope, self, temp); return cache.value; }
@Override public Object interpret(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Block block) { Object constant = cachedConstant; // Store to temp so it does null out on us mid-stream if (!isCached(context, constant)) constant = cache(context, currDynScope, self, temp); return constant; }
ConstantCache cache = sci.getConstantCache(); Object result = !ConstantCache.isCached(cache) ? sci.cache(context, currScope, currDynScope, self, temp) : cache.value; setResult(temp, currDynScope, sci.getResult(), result); break;
ConstantCache cache = sci.getConstantCache(); Object result = !ConstantCache.isCached(cache) ? sci.cache(context, currScope, currDynScope, self, temp) : cache.value; setResult(temp, currDynScope, sci.getResult(), result); break;
ConstantCache cache = sci.getConstantCache(); if (!ConstantCache.isCached(cache)) { result = sci.cache(context, currScope, currDynScope, self, temp); } else { result = cache.value;
ConstantCache cache = sci.getConstantCache(); if (!ConstantCache.isCached(cache)) { result = sci.cache(context, currScope, currDynScope, self, temp); } else { result = cache.value;
SearchConstInstr sci = (SearchConstInstr)instr; result = sci.getCachedConst(); if (!sci.isCached(context, result)) result = sci.cache(context, currDynScope, self, temp); setResult(temp, currDynScope, sci.getResult(), result); break;
SearchConstInstr sci = (SearchConstInstr)instr; result = sci.getCachedConst(); if (!sci.isCached(context, result)) result = sci.cache(context, currDynScope, self, temp); setResult(temp, currDynScope, sci.getResult(), result); break;