summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-06-04 11:38:45 +0900
committerNobuyoshi Nakada <[email protected]>2025-06-04 11:38:45 +0900
commit0ecb6896172469c273b2db5c16b0025ae97f16a0 (patch)
tree3a1fbb5d3a20c708a07cd679838526cadde0a937
parent553753cd3eaece627e31c987067edbf241d6c28b (diff)
Correct comments for packed shape and index [ci skip]
-rw-r--r--vm_callinfo.h2
-rw-r--r--vm_core.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index d4dc3b655e..0b224a3367 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -289,7 +289,7 @@ struct rb_callcache {
union {
struct {
- uint64_t value; // Shape ID in upper bits, index in lower bits
+ uint64_t value; // Shape ID in former half, index in latter half
} attr;
const enum method_missing_reason method_missing_reason; /* used by method_missing */
VALUE v;
diff --git a/vm_core.h b/vm_core.h
index af2a4f85e3..e1a87da134 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -288,7 +288,7 @@ struct iseq_inline_constant_cache {
};
struct iseq_inline_iv_cache_entry {
- uint64_t value; // attr_index in lower bits, dest_shape_id in upper bits
+ uint64_t value; // dest_shape_id in former half, attr_index in latter half
ID iv_set_name;
};