Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
a8ee838a
Commit
a8ee838a
authored
Jun 04, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make SimpleCallNode be able to lock and unlock temps values discarded after call (func().attr)
parent
7cf824a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+8
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
a8ee838a
...
@@ -6280,6 +6280,10 @@ class SimpleCallNode(CallNode):
...
@@ -6280,6 +6280,10 @@ class SimpleCallNode(CallNode):
else
:
else
:
goto_error
=
""
goto_error
=
""
code
.
putln
(
"%s%s; %s"
%
(
lhs
,
rhs
,
goto_error
))
code
.
putln
(
"%s%s; %s"
%
(
lhs
,
rhs
,
goto_error
))
if
self
.
wlocked
:
code
.
putln
(
"Cy_WLOCK(%s);"
%
self
.
result
())
elif
self
.
rlocked
:
code
.
putln
(
"Cy_RLOCK(%s);"
%
self
.
result
())
if
self
.
type
.
is_pyobject
and
self
.
result
():
if
self
.
type
.
is_pyobject
and
self
.
result
():
self
.
generate_gotref
(
code
)
self
.
generate_gotref
(
code
)
elif
self
.
type
.
is_cyp_class
and
self
.
result
():
elif
self
.
type
.
is_cyp_class
and
self
.
result
():
...
@@ -6287,6 +6291,10 @@ class SimpleCallNode(CallNode):
...
@@ -6287,6 +6291,10 @@ class SimpleCallNode(CallNode):
if
self
.
has_optional_args
:
if
self
.
has_optional_args
:
code
.
funcstate
.
release_temp
(
self
.
opt_arg_struct
)
code
.
funcstate
.
release_temp
(
self
.
opt_arg_struct
)
def
generate_disposal_code
(
self
,
code
):
if
self
.
wlocked
or
self
.
rlocked
:
code
.
putln
(
"Cy_UNLOCK(%s);"
%
self
.
result
())
ExprNode
.
generate_disposal_code
(
self
,
code
)
class
NumPyMethodCallNode
(
ExprNode
):
class
NumPyMethodCallNode
(
ExprNode
):
# Pythran call to a NumPy function or method.
# Pythran call to a NumPy function or method.
...
...
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