mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix whitespace
This commit is contained in:
parent
715a63b783
commit
dee8af225b
1 changed files with 16 additions and 20 deletions
|
@ -532,8 +532,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
|
||||||
tgt = GETJUMPTGT(codestr, i);
|
tgt = GETJUMPTGT(codestr, i);
|
||||||
j = codestr[tgt];
|
j = codestr[tgt];
|
||||||
if (CONDITIONAL_JUMP(j)) {
|
if (CONDITIONAL_JUMP(j)) {
|
||||||
/* NOTE: all possible jumps here are
|
/* NOTE: all possible jumps here are absolute! */
|
||||||
absolute! */
|
|
||||||
if (JUMPS_ON_TRUE(j) == JUMPS_ON_TRUE(opcode)) {
|
if (JUMPS_ON_TRUE(j) == JUMPS_ON_TRUE(opcode)) {
|
||||||
/* The second jump will be
|
/* The second jump will be
|
||||||
taken iff the first is. */
|
taken iff the first is. */
|
||||||
|
@ -544,13 +543,10 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
|
||||||
SETARG(codestr, i, tgttgt);
|
SETARG(codestr, i, tgttgt);
|
||||||
goto reoptimize_current;
|
goto reoptimize_current;
|
||||||
} else {
|
} else {
|
||||||
/* The second jump is not taken
|
/* The second jump is not taken if the first is (so
|
||||||
if the first is (so jump past
|
jump past it), and all conditional jumps pop their
|
||||||
it), and all conditional
|
argument when they're not taken (so change the
|
||||||
jumps pop their argument when
|
first jump to pop its argument when it's taken). */
|
||||||
they're not taken (so change
|
|
||||||
the first jump to pop its
|
|
||||||
argument when it's taken). */
|
|
||||||
if (JUMPS_ON_TRUE(opcode))
|
if (JUMPS_ON_TRUE(opcode))
|
||||||
codestr[i] = POP_JUMP_IF_TRUE;
|
codestr[i] = POP_JUMP_IF_TRUE;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue