File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -96,16 +96,18 @@ typedef struct {
9696 uint8_t tag ;
9797} JitOptCompactInt ;
9898
99- // Mapping from slot index or attribute offset to its symbolic value.
100- // SAFETY: This structure is used for both STORE_ATTR_SLOT
101- // and STORE_ATTR_INSTANCE_VALUE.
102- // These two never appear on the same object type because:
103- // __slots__ classes don't have Py_TPFLAGS_INLINE_VALUES
104- // Therefore, there is no index collision between
105- // slot offsets and inline value offsets.
106- // Note: STORE_ATTR_WITH_HINT is NOT currently tracked.
107- // If we want to track it in the future, we need to
108- // be careful about potential index collisions with STORE_ATTR_INSTANCE_VALUE.
99+ /*
100+ Mapping from slot index or attribute offset to its symbolic value.
101+ SAFETY:
102+ This structure is used for both STORE_ATTR_SLOT and STORE_ATTR_INSTANCE_VALUE.
103+ These two never appear on the same object type because:
104+ __slots__ classes don't have Py_TPFLAGS_INLINE_VALUES
105+ Therefore, there is no index collision between slot offsets and inline value offsets.
106+ Note:
107+ STORE_ATTR_WITH_HINT is NOT currently tracked.
108+ If we want to track it in the future, we need to be careful about
109+ potential index collisions with STORE_ATTR_INSTANCE_VALUE.
110+ */
109111typedef struct {
110112 uint16_t slot_index ;
111113 uint16_t symbol ;
You can’t perform that action at this time.
0 commit comments