Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
emscripten-core
GitHub Repository: emscripten-core/emscripten
Path: blob/main/system/lib/compiler-rt/emscripten_tempret.s
6162 views
1
.section .globals,"",@
2
3
.globaltype tempRet0, i32
4
tempRet0:
5
6
.section .text,"",@
7
8
.globl _emscripten_tempret_set
9
_emscripten_tempret_set:
10
.functype _emscripten_tempret_set (i32) -> ()
11
local.get 0
12
global.set tempRet0
13
end_function
14
15
.globl _emscripten_tempret_get
16
_emscripten_tempret_get:
17
.functype _emscripten_tempret_get () -> (i32)
18
global.get tempRet0
19
end_function
20
21
# These aliases exist for LegalizeJSInterface pass in binaryen
22
# They get exported by emcc and the exports are then removed by the
23
# binaryen pass
24
.globl __get_temp_ret
25
.type __get_temp_ret, @function
26
__get_temp_ret = _emscripten_tempret_get
27
28
.globl __set_temp_ret
29
.type __set_temp_ret, @function
30
__set_temp_ret = _emscripten_tempret_set
31
32
# These aliases exist for the llvm passes that generate calls to these
33
# functions. These aliases should no longer be exported by emscripten
34
# and hopefully can be removed if/when we transition llvm to the new names
35
# above.
36
.globl getTempRet0
37
.type getTempRet0, @function
38
getTempRet0 = _emscripten_tempret_get
39
40
.globl setTempRet0
41
.type setTempRet0, @function
42
setTempRet0 = _emscripten_tempret_set
43
44