| /** |
| * @license |
| * Copyright 2017 The Emscripten Authors |
| * SPDX-License-Identifier: MIT |
| */ |
| |
| var STACK_ALIGN = {{{ STACK_ALIGN }}}; |
| |
| {{{ alignMemory }}} |
| |
| {{{ getNativeTypeSize }}} |
| |
| function warnOnce(text) { |
| if (!warnOnce.shown) warnOnce.shown = {}; |
| if (!warnOnce.shown[text]) { |
| warnOnce.shown[text] = 1; |
| err(text); |
| } |
| } |
| |
| #include "runtime_functions.js" |
| |
| #include "runtime_debug.js" |
| |
| function makeBigInt(low, high, unsigned) { |
| return unsigned ? ((+((low>>>0)))+((+((high>>>0)))*4294967296.0)) : ((+((low>>>0)))+((+((high|0)))*4294967296.0)); |
| } |
| |
| var tempRet0 = 0; |
| |
| var setTempRet0 = function(value) { |
| tempRet0 = value; |
| }; |
| |
| var getTempRet0 = function() { |
| return tempRet0; |
| }; |
| |
| #if RETAIN_COMPILER_SETTINGS |
| var compilerSettings = {{{ JSON.stringify(makeRetainedCompilerSettings()) }}} ; |
| |
| function getCompilerSetting(name) { |
| if (!(name in compilerSettings)) return 'invalid compiler setting: ' + name; |
| return compilerSettings[name]; |
| } |
| #else // RETAIN_COMPILER_SETTINGS |
| #if ASSERTIONS |
| function getCompilerSetting(name) { |
| throw 'You must build with -s RETAIN_COMPILER_SETTINGS=1 for getCompilerSetting or emscripten_get_compiler_setting to work'; |
| } |
| #endif // ASSERTIONS |
| #endif // RETAIN_COMPILER_SETTINGS |
| |
| #if USE_PTHREADS |
| // JS library code refers to Atomics in the manner used from asm.js, provide |
| // the same API here. |
| var Atomics_load = Atomics.load; |
| var Atomics_store = Atomics.store; |
| var Atomics_compareExchange = Atomics.compareExchange; |
| #endif |