Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
08eef3ff
Kaydet (Commit)
08eef3ff
authored
Agu 08, 2016
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Re-linewrap comments
üst
2b1c45ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
peephole.c
Python/peephole.c
+8
-13
No files found.
Python/peephole.c
Dosyayı görüntüle @
08eef3ff
...
@@ -638,22 +638,17 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
...
@@ -638,22 +638,17 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
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.
The current opcode inherits its target's
The current opcode inherits
stack effect */
its target's stack effect */
h
=
set_arg
(
codestr
,
i
,
get_arg
(
codestr
,
tgt
));
h
=
set_arg
(
codestr
,
i
,
get_arg
(
codestr
,
tgt
));
}
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). */
h
=
set_arg
(
codestr
,
i
,
tgt
+
2
);
h
=
set_arg
(
codestr
,
i
,
tgt
+
2
);
j
=
opcode
==
JUMP_IF_TRUE_OR_POP
?
j
=
opcode
==
JUMP_IF_TRUE_OR_POP
?
POP_JUMP_IF_TRUE
:
POP_JUMP_IF_FALSE
;
POP_JUMP_IF_TRUE
:
POP_JUMP_IF_FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment