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
a951853a
Commit
a951853a
authored
Mar 21, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More small fixes
parent
05b35703
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
src/codegen/cpython_ast.cpp
src/codegen/cpython_ast.cpp
+1
-0
src/codegen/irgen/irgenerator.cpp
src/codegen/irgen/irgenerator.cpp
+4
-3
src/runtime/types.cpp
src/runtime/types.cpp
+4
-1
No files found.
src/codegen/cpython_ast.cpp
View file @
a951853a
...
...
@@ -421,6 +421,7 @@ public:
if
(
o
->
cls
==
unicode_cls
)
{
o
=
PyUnicode_AsUTF8String
(
o
);
RELEASE_ASSERT
(
o
,
""
);
AUTO_DECREF
(
o
);
auto
r
=
new
AST_Str
();
r
->
str_data
=
static_cast
<
BoxedString
*>
(
o
)
->
s
();
...
...
src/codegen/irgen/irgenerator.cpp
View file @
a951853a
...
...
@@ -552,9 +552,10 @@ public:
// to a function which could throw an exception, inspect the python call frame,...
// Only patchpoint don't need to set the current statement because the stmt will be inluded in the stackmap args.
void
emitSetCurrentStmt
(
AST_stmt
*
stmt
)
{
getBuilder
()
->
CreateStore
(
stmt
?
embedRelocatablePtr
(
stmt
,
g
.
llvm_aststmt_type_ptr
)
:
getNullPtr
(
g
.
llvm_aststmt_type_ptr
),
irstate
->
getStmtVar
());
if
(
stmt
)
getBuilder
()
->
CreateStore
(
stmt
?
embedRelocatablePtr
(
stmt
,
g
.
llvm_aststmt_type_ptr
)
:
getNullPtr
(
g
.
llvm_aststmt_type_ptr
),
irstate
->
getStmtVar
());
}
llvm
::
Instruction
*
createCall
(
const
UnwindInfo
&
unw_info
,
llvm
::
Value
*
callee
,
...
...
src/runtime/types.cpp
View file @
a951853a
...
...
@@ -3973,6 +3973,9 @@ type_clear(PyTypeObject *type)
}
int
HCAttrs
::
traverse
(
visitproc
visit
,
void
*
arg
)
noexcept
{
if
(
!
hcls
)
return
0
;
int
nattrs
=
hcls
->
attributeArraySize
();
for
(
int
i
=
0
;
i
<
nattrs
;
i
++
)
{
Py_VISIT
(
attr_list
->
attrs
[
i
]);
...
...
@@ -4845,7 +4848,7 @@ extern "C" void Py_Finalize() noexcept {
PRINT_TOTAL_REFS
();
#ifdef Py_REF_DEBUG
#ifdef Py_TRACE_REFS
if
(
_Py_RefTotal
>
0
)
if
(
_Py_RefTotal
!=
0
)
_Py_PrintReferenceAddressesCapped
(
stderr
,
10
);
#endif
...
...
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