summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-06 09:26:35 +0200
committerJean Boussier <[email protected]>2025-06-07 18:30:44 +0200
commit689ec5114624978f47edcba4f055e62017e4ac36 (patch)
tree2fffb2d5d1523a8149249c85185cf932ebde6ff1 /test
parent42cf301254d4bfec30c07a221f34f3fa85a29f33 (diff)
Replicate `heap_index` in shape_id flags.
This is preparation to getting rid of `T_OBJECT` transitions. By first only replicating the information it's easier to ensure consistency.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13556
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_shapes.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_shapes.rb b/test/ruby/test_shapes.rb
index 7d9e28ba7a..e62b8c33e7 100644
--- a/test/ruby/test_shapes.rb
+++ b/test/ruby/test_shapes.rb
@@ -976,7 +976,7 @@ class TestShapes < Test::Unit::TestCase
example.add_foo # makes a transition
add_foo_shape = RubyVM::Shape.of(example)
assert_equal([:@foo], example.instance_variables)
- assert_equal(initial_shape.id, add_foo_shape.parent.id)
+ assert_equal(initial_shape.raw_id, add_foo_shape.parent.raw_id)
assert_equal(1, add_foo_shape.next_field_index)
example.remove_foo # makes a transition
@@ -987,7 +987,7 @@ class TestShapes < Test::Unit::TestCase
example.add_bar # makes a transition
bar_shape = RubyVM::Shape.of(example)
assert_equal([:@bar], example.instance_variables)
- assert_equal(initial_shape.id, bar_shape.parent_id)
+ assert_equal(initial_shape.raw_id, bar_shape.parent_id)
assert_equal(1, bar_shape.next_field_index)
end