blob: 858864f3e50e97f1f867412c351430a898d321a1 [file] [edit]
/**
* @license
* Copyright 2017 The Emscripten Authors
* SPDX-License-Identifier: MIT
*/
var STACK_ALIGN = {{{ STACK_ALIGN }}};
var POINTER_SIZE = {{{ MEMORY64 ? 8 : 4 }}};
{{{ getNativeTypeSize }}}
#include "runtime_debug.js"
var tempRet0 = 0;
var setTempRet0 = (value) => { tempRet0 = value; };
var getTempRet0 = () => 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];
}
#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