Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Kirill Smelkov
cpython
Commits
469d1a70
Commit
469d1a70
authored
Jul 03, 2019
by
Jeroen Demeyer
Committed by
Inada Naoki
Jul 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-37484: use _PyObject_Vectorcall for __exit__ (GH-14557)
parent
74c9dd57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
Python/ceval.c
Python/ceval.c
+3
-5
No files found.
Python/ceval.c
View file @
469d1a70
...
...
@@ -3314,7 +3314,6 @@ main_loop:
Finally we push the result of the call.
*/
PyObject
*
stack
[
3
];
PyObject
*
exit_func
;
PyObject
*
exc
,
*
val
,
*
tb
,
*
res
;
...
...
@@ -3351,10 +3350,9 @@ main_loop:
block
->
b_level
--
;
}
stack
[
0
]
=
exc
;
stack
[
1
]
=
val
;
stack
[
2
]
=
tb
;
res
=
_PyObject_FastCall
(
exit_func
,
stack
,
3
);
PyObject
*
stack
[
4
]
=
{
NULL
,
exc
,
val
,
tb
};
res
=
_PyObject_Vectorcall
(
exit_func
,
stack
+
1
,
3
|
PY_VECTORCALL_ARGUMENTS_OFFSET
,
NULL
);
Py_DECREF
(
exit_func
);
if
(
res
==
NULL
)
goto
error
;
...
...
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