File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
java/org/truffleruby/core/kernel Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1255,7 +1255,7 @@ def rb_io_puts(out, args)
1255
1255
end
1256
1256
1257
1257
def rb_equal ( a , b )
1258
- Primitive . object_same_or_equal ( a , b )
1258
+ Primitive . same_or_equal? ( a , b )
1259
1259
end
1260
1260
1261
1261
def rb_obj_call_init ( obj , args , block )
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ public abstract class KernelNodes {
175
175
176
176
/** Check if operands are the same object or call #==. Known as rb_equal() in MRI. The fact Kernel#=== uses this is
177
177
* pure coincidence. */
178
- @ Primitive (name = "object_same_or_equal " )
178
+ @ Primitive (name = "same_or_equal? " )
179
179
public abstract static class SameOrEqualNode extends PrimitiveArrayArgumentsNode {
180
180
181
181
@ Child private DispatchNode equalNode ;
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def ==(other)
138
138
total = size
139
139
140
140
while i < total
141
- return false unless Primitive . object_same_or_equal ( self [ i ] , other [ i ] )
141
+ return false unless Primitive . same_or_equal? ( self [ i ] , other [ i ] )
142
142
i += 1
143
143
end
144
144
end
You can’t perform that action at this time.
0 commit comments