MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / asmFunc

Function asmFunc

test/js_optimizer/constructor.js:23–41  ·  view source on GitHub ↗
(global, env, buffer)

Source from the content-addressed store, hash-verified

21 }
22
23function asmFunc(global, env, buffer) {
24 var HEAP8 = new global.Int8Array(buffer);
25 var emscripten_glVertexAttrib4fv = env.emscripten_glVertexAttrib4fv;
26 var global$0 = 6191184;
27 // EMSCRIPTEN_START_FUNCS
28 function foo(x, y) {
29 return constructor(x + y);
30}
31 function constructor(foo) {
32 return foo + 1;
33}
34 function mainey() {
35 return foo(10, 20) + constructor(30);
36}
37 // EMSCRIPTEN_END_FUNCS
38 return {
39 "main": mainey
40 };
41}
42
43return asmFunc({
44 'Int8Array': Int8Array,

Callers 1

instantiateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected