mirror of
https://github.com/python/cpython
synced 2024-09-15 22:26:46 +00:00
Fix whitespace in generated code
This commit is contained in:
parent
2a3c37c273
commit
9263173280
12
Python/executor_cases.c.h
generated
12
Python/executor_cases.c.h
generated
|
@ -1842,7 +1842,7 @@
|
||||||
PyObject *null = NULL;
|
PyObject *null = NULL;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
assert(descr != NULL);
|
assert(descr != NULL);
|
||||||
attr = Py_NewRef(descr);
|
attr = Py_NewRef(descr);
|
||||||
|
@ -2546,7 +2546,7 @@
|
||||||
PyObject *self = NULL;
|
PyObject *self = NULL;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
assert(oparg & 1);
|
assert(oparg & 1);
|
||||||
/* Cached method object */
|
/* Cached method object */
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
|
@ -2566,7 +2566,7 @@
|
||||||
PyObject *self = NULL;
|
PyObject *self = NULL;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
assert(oparg & 1);
|
assert(oparg & 1);
|
||||||
assert(Py_TYPE(owner)->tp_dictoffset == 0);
|
assert(Py_TYPE(owner)->tp_dictoffset == 0);
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
|
@ -2585,7 +2585,7 @@
|
||||||
PyObject *attr;
|
PyObject *attr;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
assert((oparg & 1) == 0);
|
assert((oparg & 1) == 0);
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
assert(descr != NULL);
|
assert(descr != NULL);
|
||||||
|
@ -2601,7 +2601,7 @@
|
||||||
PyObject *attr;
|
PyObject *attr;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
assert((oparg & 1) == 0);
|
assert((oparg & 1) == 0);
|
||||||
assert(Py_TYPE(owner)->tp_dictoffset == 0);
|
assert(Py_TYPE(owner)->tp_dictoffset == 0);
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
|
@ -2630,7 +2630,7 @@
|
||||||
PyObject *self = NULL;
|
PyObject *self = NULL;
|
||||||
oparg = CURRENT_OPARG();
|
oparg = CURRENT_OPARG();
|
||||||
owner = stack_pointer[-1];
|
owner = stack_pointer[-1];
|
||||||
PyObject * descr = (PyObject *)CURRENT_OPERAND();
|
PyObject *descr = (PyObject *)CURRENT_OPERAND();
|
||||||
assert(oparg & 1);
|
assert(oparg & 1);
|
||||||
STAT_INC(LOAD_ATTR, hit);
|
STAT_INC(LOAD_ATTR, hit);
|
||||||
assert(descr != NULL);
|
assert(descr != NULL);
|
||||||
|
|
|
@ -123,10 +123,11 @@ def write_uop(uop: Uop, out: CWriter, stack: Stack) -> None:
|
||||||
for cache in uop.caches:
|
for cache in uop.caches:
|
||||||
if cache.name != "unused":
|
if cache.name != "unused":
|
||||||
if cache.size == 4:
|
if cache.size == 4:
|
||||||
type = "PyObject *"
|
type = cast ="PyObject *"
|
||||||
else:
|
else:
|
||||||
type = f"uint{cache.size*16}_t"
|
type = f"uint{cache.size*16}_t "
|
||||||
out.emit(f"{type} {cache.name} = ({type})CURRENT_OPERAND();\n")
|
cast = f"uint{cache.size*16}_t"
|
||||||
|
out.emit(f"{type}{cache.name} = ({cast})CURRENT_OPERAND();\n")
|
||||||
emit_tokens(out, uop, stack, None, TIER2_REPLACEMENT_FUNCTIONS)
|
emit_tokens(out, uop, stack, None, TIER2_REPLACEMENT_FUNCTIONS)
|
||||||
if uop.properties.stores_sp:
|
if uop.properties.stores_sp:
|
||||||
for i, var in enumerate(uop.stack.outputs):
|
for i, var in enumerate(uop.stack.outputs):
|
||||||
|
|
Loading…
Reference in a new issue