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
adccd81c
Commit
adccd81c
authored
Apr 08, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Apr 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fixes
parent
294a77b4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
7 deletions
+9
-7
src/codegen/unwinding.cpp
src/codegen/unwinding.cpp
+4
-1
src/runtime/int.cpp
src/runtime/int.cpp
+1
-1
src/runtime/objmodel.cpp
src/runtime/objmodel.cpp
+2
-1
src/runtime/types.cpp
src/runtime/types.cpp
+2
-0
test/tests/descriptors_double.py
test/tests/descriptors_double.py
+0
-1
test/tests/descriptors_getset_ics.py
test/tests/descriptors_getset_ics.py
+0
-1
test/tests/hashlib_test.py
test/tests/hashlib_test.py
+0
-1
test/tests/traceback_test2.py
test/tests/traceback_test2.py
+0
-1
No files found.
src/codegen/unwinding.cpp
View file @
adccd81c
...
...
@@ -696,11 +696,14 @@ ExcInfo* getFrameExcInfo() {
if
(
!
copy_from_exc
->
type
)
{
// No exceptions found:
*
copy_from_exc
=
ExcInfo
(
None
,
None
,
NULL
);
*
copy_from_exc
=
ExcInfo
(
incref
(
None
),
incref
(
None
)
,
NULL
);
}
for
(
auto
*
ex
:
to_update
)
{
*
ex
=
*
copy_from_exc
;
Py_INCREF
(
ex
->
type
);
Py_INCREF
(
ex
->
value
);
Py_XINCREF
(
ex
->
traceback
);
}
assert
(
cur_exc
);
return
cur_exc
;
...
...
src/runtime/int.cpp
View file @
adccd81c
...
...
@@ -1395,7 +1395,7 @@ static void _addFuncIntUnknown(const char* name, ConcreteCompilerType* rtn_type,
static
Box
*
intIntGetset
(
Box
*
b
,
void
*
)
{
if
(
b
->
cls
==
int_cls
)
{
return
b
;
return
incref
(
b
)
;
}
else
{
assert
(
PyInt_Check
(
b
));
return
boxInt
(
static_cast
<
BoxedInt
*>
(
b
)
->
n
);
...
...
src/runtime/objmodel.cpp
View file @
adccd81c
...
...
@@ -2056,7 +2056,8 @@ Box* dataDescriptorInstanceSpecialCases(GetattrRewriteArgs* rewrite_args, BoxedS
case BoxedMemberDescriptor::TYPE: { \
if (rewrite_args) { \
RewriterVar* r_unboxed_val = rewrite_args->obj->getAttrCast<type, cast>(member_desc->offset); \
RewriterVar* r_rtn = rewrite_args->rewriter->call(true, (void*)boxFn, r_unboxed_val); \
RewriterVar* r_rtn \
= rewrite_args->rewriter->call(true, (void*)boxFn, r_unboxed_val)->setType(RefType::OWNED); \
/* XXX assuming that none of these throw a capi error! */
\
rewrite_args->setReturn(r_rtn, ReturnConvention::HAS_RETURN); \
} \
...
...
src/runtime/types.cpp
View file @
adccd81c
...
...
@@ -3443,8 +3443,10 @@ static void typeSetName(Box* b, Box* v, void*) {
}
BoxedHeapClass
*
ht
=
static_cast
<
BoxedHeapClass
*>
(
type
);
auto
old_name
=
ht
->
ht_name
;
ht
->
ht_name
=
incref
(
s
);
ht
->
tp_name
=
s
->
data
();
Py_DECREF
(
old_name
);
}
static
Box
*
typeBases
(
Box
*
b
,
void
*
)
{
...
...
test/tests/descriptors_double.py
View file @
adccd81c
# expected: reffail
# TODO This is a hodgepodge of stuff, should probably organize it better
# maybe merge some of it into dunder_descriptors?
...
...
test/tests/descriptors_getset_ics.py
View file @
adccd81c
# expected: reffail
# run_args: -n
# statcheck: noninit_count('slowpath_getattr') <= 10
# statcheck: noninit_count('slowpath_setattr') <= 10
...
...
test/tests/hashlib_test.py
View file @
adccd81c
# expected: reffail
import
hashlib
#for m in [hashlib.md5(), hashlib.sha1(), hashlib.sha256(), hashlib.sha512()]:
...
...
test/tests/traceback_test2.py
View file @
adccd81c
# expected: reffail
import
sys
,
traceback
def
lumberjack
():
...
...
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