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
120eb242
Commit
120eb242
authored
8 years ago
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy CPython's slot_tp_call implementation to Pyston
parent
4989639e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/capi/typeobject.cpp
src/capi/typeobject.cpp
+9
-7
No files found.
src/capi/typeobject.cpp
View file @
120eb242
...
...
@@ -702,15 +702,17 @@ static long slot_tp_hash(PyObject* self) noexcept {
PyObject
*
slot_tp_call
(
PyObject
*
self
,
PyObject
*
args
,
PyObject
*
kwds
)
noexcept
{
STAT_TIMER
(
t0
,
"us_timer_slot_tpcall"
,
SLOT_AVOIDABILITY
(
self
));
try
{
Py_FatalError
(
"this function is untested"
);
static
PyObject
*
call_str
;
PyObject
*
meth
=
lookup_method
(
self
,
"__call__"
,
&
call_str
);
PyObject
*
res
;
// TODO: runtime ICs?
return
runtimeCall
(
self
,
ArgPassSpec
(
0
,
0
,
true
,
true
),
args
,
kwds
,
NULL
,
NULL
,
NULL
);
}
catch
(
ExcInfo
e
)
{
setCAPIException
(
e
);
if
(
meth
==
NULL
)
return
NULL
;
}
res
=
PyObject_Call
(
meth
,
args
,
kwds
);
Py_DECREF
(
meth
);
return
res
;
}
static
const
char
*
name_op
[]
=
{
...
...
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