Skip to content

Commit a7f00bf

Browse files
committed
format comment
1 parent f74096b commit a7f00bf

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

Include/internal/pycore_optimizer_types.h

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff 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+
*/
109111
typedef struct {
110112
uint16_t slot_index;
111113
uint16_t symbol;

0 commit comments

Comments
 (0)