Skip to content

Commit 9107930

Browse files
committed
Rename Primitive.object_same_or_equal to Primitive.same_or_equal?
1 parent b8a8243 commit 9107930

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/truffle/truffle/cext.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ def rb_io_puts(out, args)
12551255
end
12561256

12571257
def rb_equal(a, b)
1258-
Primitive.object_same_or_equal(a, b)
1258+
Primitive.same_or_equal?(a, b)
12591259
end
12601260

12611261
def rb_obj_call_init(obj, args, block)

src/main/java/org/truffleruby/core/kernel/KernelNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public abstract class KernelNodes {
175175

176176
/** Check if operands are the same object or call #==. Known as rb_equal() in MRI. The fact Kernel#=== uses this is
177177
* pure coincidence. */
178-
@Primitive(name = "object_same_or_equal")
178+
@Primitive(name = "same_or_equal?")
179179
public abstract static class SameOrEqualNode extends PrimitiveArrayArgumentsNode {
180180

181181
@Child private DispatchNode equalNode;

src/main/ruby/truffleruby/core/array.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def ==(other)
138138
total = size
139139

140140
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])
142142
i += 1
143143
end
144144
end

0 commit comments

Comments
 (0)