Skip to content

Commit 852cbaf

Browse files
committed
Updated the text for the steps 3,4,5 as per comment
1 parent d9783ca commit 852cbaf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

InternalDocs/interpreter.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,14 +556,13 @@ at the very least, a 16-bit counter is needed.
556556
} _PyContainsOpCache;
557557
```
558558
559-
3. Write the specializing function itself in [Python/specialize.c ](../Python/specialize.c).
560-
Refer to any other function in that file for the format.
559+
3. Write the specializing function itself (`_Py_Specialize_ContainsOp`) in [Python/specialize.c ](../Python/specialize.c).
560+
Refer to other functions in that file for the pattern.
561561
562-
4. Remember to update operation stats by calling `add_stat_dict` in
563-
[Python/specialize.c ](../Python/specialize.c).
562+
4. Add a call to `add_stat_dict` in `_Py_GetSpecializationStats` which is in [Python/specialize.c ](../Python/specialize.c).
564563
565564
5. Add the cache layout in [Lib/opcode.py](../Lib/opcode.py) so that Python's
566-
dis module will know how to represent it properly.
565+
`dis` module will know how to represent it properly.
567566
568567
6. Bump magic number in [Include/core/pycore_magic_number.h](../Include/internal/pycore_magic_number.h).
569568

0 commit comments

Comments
 (0)