@@ -562,7 +562,6 @@ var LibraryPThread = {
562
562
worker . pthread_ptr = 0 ;
563
563
} ,
564
564
565
- __emscripten_thread_cleanup__sig : 'vp ',
566
565
__emscripten_thread_cleanup : function ( thread ) {
567
566
// Called when a thread needs to be cleaned up so it can be reused.
568
567
// A thread is considered reusable when it either returns from its
@@ -735,7 +734,6 @@ var LibraryPThread = {
735
734
// allocations from __pthread_create_js we could also remove this.
736
735
__pthread_create_js__noleakcheck : true ,
737
736
#endif
738
- __pthread_create_js__sig : 'ipppp' ,
739
737
__pthread_create_js__deps : [ '$spawnThread' , 'pthread_self' , '$pthreadCreateProxied' ,
740
738
#if OFFSCREENCANVAS_SUPPORT
741
739
'malloc' ,
@@ -947,9 +945,9 @@ var LibraryPThread = {
947
945
_exit ( returnCode ) ;
948
946
} ,
949
947
950
- emscripten_proxy_to_main_thread_js__deps : [ '$withStackSave' , '_emscripten_run_in_main_runtime_thread_js' ] ,
951
- emscripten_proxy_to_main_thread_js__docs : '/** @type{function(number, (number|boolean), ...(number|boolean))} */' ,
952
- emscripten_proxy_to_main_thread_js : function ( index , sync ) {
948
+ $proxyToMainThread__deps : [ '$withStackSave' , '_emscripten_run_in_main_runtime_thread_js' ] ,
949
+ $proxyToMainThread__docs : '/** @type{function(number, (number|boolean), ...(number|boolean))} */' ,
950
+ $proxyToMainThread : function ( index , sync ) {
953
951
// Additional arguments are passed after those two, which are the actual
954
952
// function arguments.
955
953
// The serialization buffer contains the number of call params, and then
@@ -960,7 +958,7 @@ var LibraryPThread = {
960
958
#if ASSERTIONS
961
959
var maxArgs = { { { cDefs . EM_QUEUED_JS_CALL_MAX_ARGS - 1 } } } ;
962
960
if ( numCallArgs > maxArgs ) {
963
- throw 'emscripten_proxy_to_main_thread_js : Too many arguments ' + numCallArgs + ' to proxied function idx=' + index + ', maximum supported is ' + maxArgs ;
961
+ throw 'proxyToMainThread : Too many arguments ' + numCallArgs + ' to proxied function idx=' + index + ', maximum supported is ' + maxArgs ;
964
962
}
965
963
#endif
966
964
// Allocate a buffer, which will be copied by the C code.
@@ -994,29 +992,28 @@ var LibraryPThread = {
994
992
} ) ;
995
993
} ,
996
994
997
- emscripten_receive_on_main_thread_js_callArgs : '=[]' ,
995
+ $ emscripten_receive_on_main_thread_js_callArgs : '=[]' ,
998
996
999
- emscripten_receive_on_main_thread_js__sig : 'diip' ,
1000
997
emscripten_receive_on_main_thread_js__deps : [
1001
- 'emscripten_proxy_to_main_thread_js ' ,
1002
- 'emscripten_receive_on_main_thread_js_callArgs' ] ,
998
+ '$proxyToMainThread ' ,
999
+ '$ emscripten_receive_on_main_thread_js_callArgs' ] ,
1003
1000
emscripten_receive_on_main_thread_js : function ( index , numCallArgs , args ) {
1004
1001
#if WASM_BIGINT
1005
1002
numCallArgs /= 2 ;
1006
1003
#endif
1007
- _emscripten_receive_on_main_thread_js_callArgs . length = numCallArgs ;
1004
+ emscripten_receive_on_main_thread_js_callArgs . length = numCallArgs ;
1008
1005
var b = args >> 3 ;
1009
1006
for ( var i = 0 ; i < numCallArgs ; i ++ ) {
1010
1007
#if WASM_BIGINT
1011
1008
if ( HEAP64 [ b + 2 * i ] ) {
1012
1009
// It's a BigInt.
1013
- _emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAP64 [ b + 2 * i + 1 ] ;
1010
+ emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAP64 [ b + 2 * i + 1 ] ;
1014
1011
} else {
1015
1012
// It's a Number.
1016
- _emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAPF64 [ b + 2 * i + 1 ] ;
1013
+ emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAPF64 [ b + 2 * i + 1 ] ;
1017
1014
}
1018
1015
#else
1019
- _emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAPF64 [ b + i ] ;
1016
+ emscripten_receive_on_main_thread_js_callArgs [ i ] = HEAPF64 [ b + i ] ;
1020
1017
#endif
1021
1018
}
1022
1019
// Proxied JS library funcs are encoded as positive values, and
@@ -1030,7 +1027,7 @@ var LibraryPThread = {
1030
1027
#if ASSERTIONS
1031
1028
assert ( func . length == numCallArgs , 'Call args mismatch in emscripten_receive_on_main_thread_js' ) ;
1032
1029
#endif
1033
- return func . apply ( null , _emscripten_receive_on_main_thread_js_callArgs ) ;
1030
+ return func . apply ( null , emscripten_receive_on_main_thread_js_callArgs ) ;
1034
1031
} ,
1035
1032
1036
1033
// TODO(sbc): Do we really need this to be dynamically settable from JS like this?
@@ -1126,7 +1123,6 @@ var LibraryPThread = {
1126
1123
} ,
1127
1124
1128
1125
#if MAIN_MODULE
1129
- _emscripten_thread_exit_joinable__sig: 'vp' ,
1130
1126
_emscripten_thread_exit_joinable : function ( thread ) {
1131
1127
// Called when a thread exits and is joinable. We mark these threads
1132
1128
// as finished, which means that are in state where are no longer actually
@@ -1152,7 +1148,6 @@ var LibraryPThread = {
1152
1148
// TODO(sbc): Should we make a new form of __proxy attribute for JS library
1153
1149
// function that run asynchronously like but blocks the caller until they are
1154
1150
// done. Perhaps "sync_with_ctx"?
1155
- _emscripten_dlsync_threads_async__sig : 'vppp' ,
1156
1151
_emscripten_dlsync_threads_async__deps : [ '_emscripten_proxy_dlsync_async' , 'emscripten_promise_create' , '$getPromise' ] ,
1157
1152
_emscripten_dlsync_threads_async : function ( caller , callback , ctx ) {
1158
1153
#if PTHREADS_DEBUG
@@ -1234,7 +1229,6 @@ var LibraryPThread = {
1234
1229
} ,
1235
1230
1236
1231
_emscripten_thread_mailbox_await__deps : [ '$checkMailbox' ] ,
1237
- _emscripten_thread_mailbox_await__sig : 'vp' ,
1238
1232
_emscripten_thread_mailbox_await : function ( pthread_ptr ) {
1239
1233
if ( typeof Atomics . waitAsync === 'function' ) {
1240
1234
// TODO: How to make this work with wasm64?
@@ -1249,7 +1243,6 @@ var LibraryPThread = {
1249
1243
} ,
1250
1244
1251
1245
_emscripten_notify_mailbox_postmessage__deps : [ '$checkMailbox' ] ,
1252
- _emscripten_notify_mailbox_postmessage__sig : 'vppp' ,
1253
1246
_emscripten_notify_mailbox_postmessage : function ( targetThreadId ,
1254
1247
currThreadId ,
1255
1248
mainThreadId ) {
0 commit comments