mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
[doc] Fix typos in interpreter_definition.md (#127742)
This commit is contained in:
parent
3b78409878
commit
2367759212
1 changed files with 3 additions and 3 deletions
|
|
@ -309,7 +309,7 @@ This might become (if it was an instruction):
|
|||
|
||||
### More examples
|
||||
|
||||
For explanations see "Generating the interpreter" below.)
|
||||
For explanations see "Generating the interpreter" below.
|
||||
```C
|
||||
op ( CHECK_HAS_INSTANCE_VALUES, (owner -- owner) ) {
|
||||
PyDictOrValues dorv = *_PyObject_DictOrValuesPointer(owner);
|
||||
|
|
@ -371,7 +371,7 @@ For explanations see "Generating the interpreter" below.)
|
|||
|
||||
A _family_ maps a specializable instruction to its specializations.
|
||||
|
||||
Example: These opcodes all share the same instruction format):
|
||||
Example: These opcodes all share the same instruction format:
|
||||
```C
|
||||
family(load_attr) = { LOAD_ATTR, LOAD_ATTR_INSTANCE_VALUE, LOAD_SLOT };
|
||||
```
|
||||
|
|
@ -393,7 +393,7 @@ which can be easily inserted. What is more complex is ensuring the correct stack
|
|||
and not generating excess pops and pushes.
|
||||
|
||||
For example, in `CHECK_HAS_INSTANCE_VALUES`, `owner` occurs in the input, so it cannot be
|
||||
redefined. Thus it doesn't need to written and can be read without adjusting the stack pointer.
|
||||
redefined. Thus it doesn't need to be written and can be read without adjusting the stack pointer.
|
||||
The C code generated for `CHECK_HAS_INSTANCE_VALUES` would look something like:
|
||||
|
||||
```C
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue