mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 11:30:18 +00:00
Revert "some fix about emplace
"
This reverts commit 3d5b50a527b5992b53708676aee4738effba7707.
This commit is contained in:
parent
3d5b50a527
commit
638ce2699a
@ -172,7 +172,7 @@ public:
|
|||||||
|
|
||||||
template<typename ...Args>
|
template<typename ...Args>
|
||||||
PyObject* _exec(Args&&... args){
|
PyObject* _exec(Args&&... args){
|
||||||
callstack.emplace(Frame(&s_data, s_data._sp, std::forward<Args>(args)...));
|
callstack.emplace(&s_data, s_data._sp, std::forward<Args>(args)...);
|
||||||
return _run_top_frame();
|
return _run_top_frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -941,7 +941,7 @@ PyObject* VM::vectorcall(int ARGC, int KWARGC, bool op_call){
|
|||||||
for(int j=0; j<co_nlocals; j++) _base[j] = buffer[j];
|
for(int j=0; j<co_nlocals; j++) _base[j] = buffer[j];
|
||||||
|
|
||||||
__FAST_CALL:
|
__FAST_CALL:
|
||||||
callstack.emplace(Frame(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin())));
|
callstack.emplace(&s_data, p0, co, fn._module, callable, FastLocals(co, args.begin()));
|
||||||
if(op_call) return PY_OP_CALL;
|
if(op_call) return PY_OP_CALL;
|
||||||
return _run_top_frame();
|
return _run_top_frame();
|
||||||
/*****************_py_call*****************/
|
/*****************_py_call*****************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user