Examples of ConstantCache


Examples of org.jruby.runtime.opto.ConstantCache

        if (cmVal instanceof RubyModule) {
            module = (RubyModule) cmVal;
        } else {
            throw runtime.newTypeError(cmVal + " is not a type/class");
        }
        ConstantCache cache = this.cache;
        if (!ConstantCache.isCachedFrom(module, cache)) return cache(runtime, module);

        return cache.value;
    }
View Full Code Here

Examples of org.jruby.runtime.opto.ConstantCache

            break;
        }

        case SEARCH_CONST: {
            SearchConstInstr sci = (SearchConstInstr)instr;
            ConstantCache cache = sci.getConstantCache();
            if (!ConstantCache.isCached(cache)) {
                result = sci.cache(context, currScope, currDynScope, self, temp);
            } else {
                result = cache.value;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.