Skip to content

Commit a023a52

Browse files
committed
Addressed the review comments
1 parent 9ec70df commit a023a52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

InternalDocs/interpreter.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ After the last `DEOPT_IF` has passed, a hit should be recorded with
505505
`STAT_INC(BASE_INSTRUCTION, hit)`.
506506
After an optimization has been deferred in the adaptive instruction,
507507
that should be recorded with `STAT_INC(BASE_INSTRUCTION, deferred)`.
508+
508509
## How to add a new bytecode specialization
509510

510511
Assuming you found an instruction that serves as a good specialization candidate.
@@ -555,7 +556,7 @@ at the very least, a 16-bit counter is needed.
555556

556557
3. Write the specializing function itself in [Python/specialize.c ](../Python/specialize.c).
557558
Refer to any other function in that file for the format.
558-
4. Remember to update operation stats by calling add_stat_dict in
559+
4. Remember to update operation stats by calling `add_stat_dict` in
559560
[Python/specialize.c ](../Python/specialize.c).
560561
5. Add the cache layout in [Lib/opcode.py](../Lib/opcode.py) so that Python's
561562
dis module will know how to represent it properly.

0 commit comments

Comments
 (0)