Skip to content

Commit d5f48bd

Browse files
committed
whoops
1 parent 7554ac6 commit d5f48bd

File tree

3 files changed

+6
-41
lines changed

3 files changed

+6
-41
lines changed

core/src/main/java/org/jruby/ir/runtime/IRRuntimeHelpers.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,26 +1659,15 @@ public static RubyHash dupKwargsHashAndPopulateFromArray(ThreadContext context,
16591659

16601660
@JIT
16611661
public static IRubyObject searchConst(ThreadContext context, StaticScope staticScope, String constName, boolean noPrivateConsts) {
1662-
<<<<<<< Updated upstream
1663-
RubyModule object = objectClass(context);
1664-
IRubyObject constant = staticScope == null ? object.getConstant(constName) : staticScope.getConstantInner(constName);
1665-
=======
1666-
IRubyObject constant = staticScope.getScopedConstant(context, constName);
1667-
>>>>>>> Stashed changes
1662+
IRubyObject constant = staticScope.getConstantInner(constName);
16681663

16691664
// Inheritance lookup
16701665
RubyModule module = null;
16711666
if (constant == null) {
1672-
<<<<<<< Updated upstream
1673-
// SSS FIXME: Is this null check case correct?
1674-
module = staticScope == null ? object : staticScope.getModule();
1675-
constant = noPrivateConsts ? module.getConstantFromNoConstMissing(constName, false) : module.getConstantNoConstMissing(constName);
1676-
=======
16771667
module = staticScope.getModule();
16781668
constant = noPrivateConsts ?
16791669
module.getConstantFromNoConstMissing(constName, false) :
1680-
module.getConstantNoConstMissing(context, constName);
1681-
>>>>>>> Stashed changes
1670+
module.getConstantNoConstMissing(constName);
16821671
}
16831672

16841673
// Call const_missing or cache

core/src/main/java/org/jruby/ir/targets/indy/ConstantLookupSite.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,17 @@ private RubySymbol getSymbolicName(ThreadContext context) {
8080

8181
public IRubyObject searchConst(ThreadContext context, StaticScope staticScope) {
8282
// Lexical lookup
83-
<<<<<<< Updated upstream
84-
RubyModule object = objectClass(context);
85-
86-
// get switchpoint before value
87-
SwitchPoint switchPoint = getSwitchPointForConstant(context.runtime);
88-
IRubyObject constant = (staticScope == null) ? object.getConstant(name) : staticScope.getConstantInner(name);
89-
=======
9083
// get switchpoint before value
9184
SwitchPoint switchPoint = getSwitchPointForConstant(context.runtime);
92-
IRubyObject constant = staticScope.getScopedConstant(context, name);
93-
>>>>>>> Stashed changes
85+
IRubyObject constant = staticScope.getConstantInner(name);
9486

9587
// Inheritance lookup
9688
RubyModule module = null;
9789
if (constant == null) {
98-
<<<<<<< Updated upstream
99-
// SSS FIXME: Is this null check case correct?
100-
module = staticScope == null ? object : staticScope.getModule();
101-
constant = publicOnly ? module.getConstantFromNoConstMissing(name, false) : module.getConstantNoConstMissing(name);
102-
=======
10390
module = staticScope.getModule();
10491
constant = publicOnly ?
10592
module.getConstantFromNoConstMissing(name, false) :
106-
module.getConstantNoConstMissing(context, name);
107-
>>>>>>> Stashed changes
93+
module.getConstantNoConstMissing(name);
10894
}
10995

11096
// Call const_missing or cache

core/src/main/java/org/jruby/ir/targets/simple/ConstantLookupSite.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,15 @@ public ConstantLookupSite(RubySymbol name) {
2626
private IRubyObject cacheSearchConst(ThreadContext context, StaticScope staticScope, boolean publicOnly) {
2727
// Lexical lookup
2828
String id = this.id;
29-
<<<<<<< Updated upstream
30-
IRubyObject constant = (staticScope == null) ? object.getConstant(id) : staticScope.getConstantInner(id);
31-
=======
32-
IRubyObject constant = staticScope.getScopedConstant(context, id);
33-
>>>>>>> Stashed changes
29+
IRubyObject constant = staticScope.getConstantInner(id);
3430

3531
// Inheritance lookup
3632
RubyModule module = null;
3733
if (constant == null) {
38-
<<<<<<< Updated upstream
39-
// SSS FIXME: Is this null check case correct?
40-
module = staticScope == null ? object : staticScope.getModule();
41-
constant = publicOnly ? module.getConstantFromNoConstMissing(id, false) : module.getConstantNoConstMissing(id);
42-
=======
4334
module = staticScope.getModule();
4435
constant = publicOnly ?
4536
module.getConstantFromNoConstMissing(id, false) :
46-
module.getConstantNoConstMissing(context, id);
47-
>>>>>>> Stashed changes
37+
module.getConstantNoConstMissing(id);
4838
}
4939

5040
// Call const_missing or cache

0 commit comments

Comments
 (0)