Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
7f758ddb
Commit
7f758ddb
authored
9 years ago
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some statchecks
parent
930a382e
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
16 deletions
+16
-16
test/tests/30.py
test/tests/30.py
+1
-1
test/tests/47.py
test/tests/47.py
+1
-1
test/tests/call_patches.py
test/tests/call_patches.py
+2
-2
test/tests/class_clsgetattr_ics.py
test/tests/class_clsgetattr_ics.py
+1
-1
test/tests/descriptors_getattr_ics.py
test/tests/descriptors_getattr_ics.py
+1
-1
test/tests/descriptors_getset_ics.py
test/tests/descriptors_getset_ics.py
+2
-2
test/tests/descriptors_setattr_ics.py
test/tests/descriptors_setattr_ics.py
+1
-1
test/tests/getattr_ics.py
test/tests/getattr_ics.py
+1
-1
test/tests/global_ics.py
test/tests/global_ics.py
+1
-1
test/tests/icgetattr_invalid.py
test/tests/icgetattr_invalid.py
+1
-1
test/tests/nonzero_patching.py
test/tests/nonzero_patching.py
+1
-1
test/tests/polymorphic_ics.py
test/tests/polymorphic_ics.py
+1
-1
test/tests/xrange.py
test/tests/xrange.py
+2
-2
No files found.
test/tests/30.py
View file @
7f758ddb
# run_args: -n
# statcheck: ("-O" in EXTRA_JIT_ARGS) or (1 <= stats["num_osr_exits"] <= 2)
# statcheck:
stats['slowpath_binop']
<= 10
# statcheck:
noninit_count('slowpath_binop')
<= 10
x
=
100000
y
=
0
...
...
This diff is collapsed.
Click to expand it.
test/tests/47.py
View file @
7f758ddb
# run_args: -n
# statcheck: 1 <=
stats['slowpath_binop']
<= 5
# statcheck: 1 <=
noninit_count('slowpath_binop')
<= 5
def
i
():
return
0
...
...
This diff is collapsed.
Click to expand it.
test/tests/call_patches.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats.get('slowpath_callattr', 0
) <= 20
# statcheck:
noninit_count('slowpath_callattr'
) <= 20
# statcheck: noninit_count('slowpath_runtimecall') <= 20
# statcheck:
stats.get("slowpath_callclfunc", 0
) <= 20
# statcheck:
noninit_count("slowpath_callclfunc"
) <= 20
# statcheck: noninit_count('rewriter_nopatch') <= 20
def
outer
():
...
...
This diff is collapsed.
Click to expand it.
test/tests/class_clsgetattr_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_getattr']
<= 10
# statcheck:
noninit_count('slowpath_getattr')
<= 10
class
C
(
object
):
pass
...
...
This diff is collapsed.
Click to expand it.
test/tests/descriptors_getattr_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_getattr']
<= 80
# statcheck:
noninit_count('slowpath_getattr')
<= 80
class
DataDescriptor
(
object
):
def
__get__
(
self
,
obj
,
typ
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/descriptors_getset_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_getattr']
<= 10
# statcheck:
stats['slowpath_setattr']
<= 10
# statcheck:
noninit_count('slowpath_getattr')
<= 10
# statcheck:
noninit_count('slowpath_setattr')
<= 10
class
C
(
object
):
pass
...
...
This diff is collapsed.
Click to expand it.
test/tests/descriptors_setattr_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_setattr']
<= 120
# statcheck:
noninit_count('slowpath_setattr')
<= 120
class
Descriptor
(
object
):
def
__set__
(
self
,
obj
,
value
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/getattr_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_getattr']
<= 20
# statcheck:
noninit_count('slowpath_getattr')
<= 20
class
C
(
object
):
def
f
(
self
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/global_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats["slowpath_getglobal"]
<= 10
# statcheck:
noninit_count("slowpath_getglobal")
<= 10
def
f
():
print
True
...
...
This diff is collapsed.
Click to expand it.
test/tests/icgetattr_invalid.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_getattr']
<= 10
# statcheck:
noninit_count('slowpath_getattr')
<= 10
# Different ways that getattrs can be invalidated
class
C
(
object
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/nonzero_patching.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats.get('slowpath_nonzero', 0
) <= 10
# statcheck:
noninit_count('slowpath_nonzero'
) <= 10
def
f
():
for
i
in
xrange
(
-
10
,
10
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/polymorphic_ics.py
View file @
7f758ddb
# run_args: -n
# statcheck:
stats['slowpath_binop']
< 10
# statcheck:
noninit_count('slowpath_binop')
< 10
class
O
(
object
):
def
__init__
(
self
,
n
):
...
...
This diff is collapsed.
Click to expand it.
test/tests/xrange.py
View file @
7f758ddb
# run_args: -n
#
# statcheck: "-O" in EXTRA_JIT_ARGS or 'slowpath_getclsattr' in stats or 'slowpath_callattr' in stats
# statcheck:
stats.get('slowpath_getclsattr', 0
) <= 20
# statcheck:
stats.get('slowpath_callattr', 0
) <= 22
# statcheck:
noninit_count('slowpath_getclsattr'
) <= 20
# statcheck:
noninit_count('slowpath_callattr'
) <= 22
for
i
in
xrange
(
1000
):
print
i
...
...
This diff is collapsed.
Click to expand it.
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