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
9263848f
Kaydet (Commit)
9263848f
authored
Agu 29, 2001
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve stack depth computation for try/except and try/finally
Add CONTINUE_LOOP to the list of unconditional transfers
üst
4bd4dddd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
pyassem.py
Lib/compiler/pyassem.py
+4
-1
pyassem.py
Tools/compiler/compiler/pyassem.py
+4
-1
No files found.
Lib/compiler/pyassem.py
Dosyayı görüntüle @
9263848f
...
@@ -267,7 +267,7 @@ class Block:
...
@@ -267,7 +267,7 @@ class Block:
assert
len
(
self
.
next
)
==
1
,
map
(
str
,
self
.
next
)
assert
len
(
self
.
next
)
==
1
,
map
(
str
,
self
.
next
)
_uncond_transfer
=
(
'RETURN_VALUE'
,
'RAISE_VARARGS'
,
_uncond_transfer
=
(
'RETURN_VALUE'
,
'RAISE_VARARGS'
,
'JUMP_ABSOLUTE'
,
'JUMP_FORWARD'
)
'JUMP_ABSOLUTE'
,
'JUMP_FORWARD'
,
'CONTINUE_LOOP'
)
def
pruneNext
(
self
):
def
pruneNext
(
self
):
"""Remove bogus edge for unconditional transfers
"""Remove bogus edge for unconditional transfers
...
@@ -753,6 +753,9 @@ class StackDepthTracker:
...
@@ -753,6 +753,9 @@ class StackDepthTracker:
'IMPORT_STAR'
:
-
1
,
'IMPORT_STAR'
:
-
1
,
'IMPORT_NAME'
:
0
,
'IMPORT_NAME'
:
0
,
'IMPORT_FROM'
:
1
,
'IMPORT_FROM'
:
1
,
# close enough...
'SETUP_EXCEPT'
:
3
,
'SETUP_FINALLY'
:
3
,
}
}
# use pattern match
# use pattern match
patterns
=
[
patterns
=
[
...
...
Tools/compiler/compiler/pyassem.py
Dosyayı görüntüle @
9263848f
...
@@ -267,7 +267,7 @@ class Block:
...
@@ -267,7 +267,7 @@ class Block:
assert
len
(
self
.
next
)
==
1
,
map
(
str
,
self
.
next
)
assert
len
(
self
.
next
)
==
1
,
map
(
str
,
self
.
next
)
_uncond_transfer
=
(
'RETURN_VALUE'
,
'RAISE_VARARGS'
,
_uncond_transfer
=
(
'RETURN_VALUE'
,
'RAISE_VARARGS'
,
'JUMP_ABSOLUTE'
,
'JUMP_FORWARD'
)
'JUMP_ABSOLUTE'
,
'JUMP_FORWARD'
,
'CONTINUE_LOOP'
)
def
pruneNext
(
self
):
def
pruneNext
(
self
):
"""Remove bogus edge for unconditional transfers
"""Remove bogus edge for unconditional transfers
...
@@ -753,6 +753,9 @@ class StackDepthTracker:
...
@@ -753,6 +753,9 @@ class StackDepthTracker:
'IMPORT_STAR'
:
-
1
,
'IMPORT_STAR'
:
-
1
,
'IMPORT_NAME'
:
0
,
'IMPORT_NAME'
:
0
,
'IMPORT_FROM'
:
1
,
'IMPORT_FROM'
:
1
,
# close enough...
'SETUP_EXCEPT'
:
3
,
'SETUP_FINALLY'
:
3
,
}
}
# use pattern match
# use pattern match
patterns
=
[
patterns
=
[
...
...
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