private IRubyObject getConstantInnerNoObject(String internedName) { if (previousCRefScope == null) return null; return getConstantInner(internedName); }
private IRubyObject getConstantInnerNoObject(String internedName) { if (previousCRefScope == null) return null; return getConstantInner(internedName); }
private IRubyObject getConstantInnerNoObject(String internedName) { if (previousCRefScope == null) return null; return getConstantInner(internedName); }
private IRubyObject getConstantInnerNoObject(String internedName) { if (previousCRefScope == null) return null; return getConstantInner(internedName); }
public IRubyObject getConstantWithConstMissing(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstant(internedName) : result; }
public IRubyObject getConstant(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstantNoConstMissing(internedName) : result; }
public IRubyObject getConstant(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstantNoConstMissing(internedName) : result; }
@JIT public static IRubyObject lexicalSearchConst(ThreadContext context, StaticScope staticScope, String constName) { IRubyObject constant = staticScope.getConstantInner(constName); if (constant == null) { constant = UndefinedValue.UNDEFINED; } return constant; }
public IRubyObject getConstant(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstantNoConstMissing(internedName) : result; }
@JIT public static IRubyObject lexicalSearchConst(ThreadContext context, StaticScope staticScope, String constName) { IRubyObject constant = staticScope.getConstantInner(constName); if (constant == null) { constant = UndefinedValue.UNDEFINED; } return constant; }
public IRubyObject getConstant(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstantNoConstMissing(internedName) : result; }
public IRubyObject getConstantWithConstMissing(String internedName) { IRubyObject result = getConstantInner(internedName); // If we could not find the constant from cref..then try getting from inheritence hierarchy return result == null ? cref.getConstant(internedName) : result; }
private Object cache(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Ruby runtime, Object constant) { StaticScope staticScope = (StaticScope) definingScope.retrieve(context, self, currDynScope, temp); RubyModule object = runtime.getObject(); // SSS FIXME: IRManager objects dont have a static-scope yet, so this hack of looking up the module right away // This IR needs fixing! constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); if (constant == null) { constant = UndefinedValue.UNDEFINED; } else { // recache generation = invalidator(runtime).getData(); cachedConstant = constant; } return constant; }
private Object cache(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp, Ruby runtime, Object constant) { StaticScope staticScope = (StaticScope) definingScope.retrieve(context, self, currDynScope, temp); RubyModule object = runtime.getObject(); // SSS FIXME: IRManager objects dont have a static-scope yet, so this hack of looking up the module right away // This IR needs fixing! constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); if (constant == null) { constant = UndefinedValue.UNDEFINED; } else { // recache generation = invalidator(runtime).getData(); cachedConstant = constant; } return constant; }
@JIT public static IRubyObject searchConst(ThreadContext context, StaticScope staticScope, String constName, boolean noPrivateConsts) { RubyModule object = context.runtime.getObject(); IRubyObject constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(constName, false) : module.getConstantNoConstMissing(constName); } // Call const_missing or cache if (constant == null) { return module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(constName)); } return constant; }
@JIT public static IRubyObject searchConst(ThreadContext context, StaticScope staticScope, String constName, boolean noPrivateConsts) { RubyModule object = context.runtime.getObject(); IRubyObject constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(constName, false) : module.getConstantNoConstMissing(constName); } // Call const_missing or cache if (constant == null) { return module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(constName)); } return constant; }
public Object cache(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp) { // Lexical lookup Ruby runtime = context.getRuntime(); RubyModule object = runtime.getObject(); StaticScope staticScope = (StaticScope) startingScope.retrieve(context, self, currDynScope, temp); Object constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(constName, false) : module.getConstantNoConstMissing(constName); } // Call const_missing or cache if (constant == null) { constant = module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(constName)); } else { // recache generation = runtime.getConstantInvalidator(constName).getData(); cachedConstant = constant; } return constant; }
public Object cache(ThreadContext context, DynamicScope currDynScope, IRubyObject self, Object[] temp) { // Lexical lookup Ruby runtime = context.getRuntime(); RubyModule object = runtime.getObject(); StaticScope staticScope = (StaticScope) startingScope.retrieve(context, self, currDynScope, temp); Object constant = (staticScope == null) ? object.getConstant(constName) : staticScope.getConstantInner(constName); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(constName, false) : module.getConstantNoConstMissing(constName); } // Call const_missing or cache if (constant == null) { constant = module.callMethod(context, "const_missing", context.runtime.fastNewSymbol(constName)); } else { // recache generation = runtime.getConstantInvalidator(constName).getData(); cachedConstant = constant; } return constant; }
public Object cache(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { // Lexical lookup Ruby runtime = context.getRuntime(); RubyModule object = runtime.getObject(); String id = getId(); StaticScope staticScope = (StaticScope) getStartingScope().retrieve(context, self, currScope, currDynScope, temp); Object constant = (staticScope == null) ? object.getConstant(id) : staticScope.getConstantInner(id); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(id, false) : module.getConstantNoConstMissing(id); } // Call const_missing or cache if (constant == null) { constant = module.callMethod(context, "const_missing", runtime.fastNewSymbol(id)); } else { // recache Invalidator invalidator = runtime.getConstantInvalidator(id); cache = new ConstantCache((IRubyObject)constant, invalidator.getData(), invalidator); } return constant; }
public Object cache(ThreadContext context, StaticScope currScope, DynamicScope currDynScope, IRubyObject self, Object[] temp) { // Lexical lookup Ruby runtime = context.getRuntime(); RubyModule object = runtime.getObject(); String id = getId(); StaticScope staticScope = (StaticScope) getStartingScope().retrieve(context, self, currScope, currDynScope, temp); Object constant = (staticScope == null) ? object.getConstant(id) : staticScope.getConstantInner(id); // Inheritance lookup RubyModule module = null; if (constant == null) { // SSS FIXME: Is this null check case correct? module = staticScope == null ? object : staticScope.getModule(); constant = noPrivateConsts ? module.getConstantFromNoConstMissing(id, false) : module.getConstantNoConstMissing(id); } // Call const_missing or cache if (constant == null) { constant = module.callMethod(context, "const_missing", runtime.fastNewSymbol(id)); } else { // recache Invalidator invalidator = runtime.getConstantInvalidator(id); cache = new ConstantCache((IRubyObject)constant, invalidator.getData(), invalidator); } return constant; }