forked from emscripten-core/emscripten
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstructor-output.js
More file actions
63 lines (52 loc) · 1.09 KB
/
constructor-output.js
File metadata and controls
63 lines (52 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// EMSCRIPTEN_START_ASM
function a(asmLibraryArg, wasmMemory, wasmTable) {
var scratchBuffer = new ArrayBuffer(16);
var b = new Int32Array(scratchBuffer);
var c = new Float32Array(scratchBuffer);
function d(index) {
return b[index];
}
function e(index, value) {
b[index] = value;
}
function f(value) {
c[2] = value;
}
function g() {
return c[2];
}
function h(global, env, buffer) {
var i = new global.Int8Array(buffer);
var j = env.emscripten_glVertexAttrib4fv;
var k = 6191184;
// EMSCRIPTEN_START_FUNCS
function n() {
return l(10, 20) + m(30);
}
function l(a, b) {
return m(a + b);
}
function m(a) {
return a + 1;
}
// EMSCRIPTEN_END_FUNCS
return {
"main": n
};
}
return h({
"Int8Array": Int8Array,
"Int16Array": Int16Array,
"Int32Array": Int32Array,
"Uint8Array": Uint8Array,
"Uint16Array": Uint16Array,
"Uint32Array": Uint32Array,
"Float32Array": Float32Array,
"Float64Array": Float64Array,
"NaN": NaN,
"Infinity": Infinity,
"Math": Math
}, asmLibraryArg, wasmMemory.buffer);
}
// EMSCRIPTEN_END_ASM
// EMSCRIPTEN_GENERATED_FUNCTIONS