mirror of
https://github.com/python/cpython.git
synced 2025-10-20 00:13:47 +00:00
gh-128627: Use __builtin_wasm_test_function_pointer_signature for Emscripten trampoline (#137470)
With https://github.com/llvm/llvm-project/pull/150201 being merged, there is now a better way to generate the Emscripten trampoline, instead of including hand-generated binary WASM content. Requires Emscripten 4.0.12.
This commit is contained in:
parent
81c975bcfc
commit
2629ee4eb0
9 changed files with 129 additions and 201 deletions
|
@ -8,7 +8,6 @@
|
|||
#include "pycore_codecs.h" // _PyCodec_Fini()
|
||||
#include "pycore_critical_section.h" // _PyCriticalSection_Resume()
|
||||
#include "pycore_dtoa.h" // _dtoa_state_INIT()
|
||||
#include "pycore_emscripten_trampoline.h" // _Py_EmscriptenTrampoline_Init()
|
||||
#include "pycore_freelist.h" // _PyObject_ClearFreeLists()
|
||||
#include "pycore_initconfig.h" // _PyStatus_OK()
|
||||
#include "pycore_interpframe.h" // _PyThreadState_HasStackSpace()
|
||||
|
@ -353,11 +352,6 @@ init_runtime(_PyRuntimeState *runtime,
|
|||
runtime->main_thread = PyThread_get_thread_ident();
|
||||
|
||||
runtime->unicode_state.ids.next_index = unicode_next_index;
|
||||
|
||||
#if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
|
||||
_Py_EmscriptenTrampoline_Init(runtime);
|
||||
#endif
|
||||
|
||||
runtime->_initialized = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue