diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-16 14:40:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-16 14:40:45 -0700 |
commit | ba387574f23867d889a04f1586e6dd9597e8bad8 (patch) | |
tree | 6934000fdd9c173c552a382676b5046f58877b26 /src/jsifier.js | |
parent | 7acb48826165890ebc9d3794d8d7473aa62b762e (diff) | |
parent | 7c26bbdb7d3c40d68777cc93f54ebfa5355a48bc (diff) |
Merge branch 'incoming' into proxyGL
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index e35fef1a..1f6440dd 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -370,7 +370,7 @@ function JSify(data, functionsOnly) { // name the function; overwrite if it's already named snippet = snippet.replace(/function(?:\s+([^(]+))?\s*\(/, 'function _' + ident + '('); - if (LIBRARY_DEBUG) { + if (LIBRARY_DEBUG && !LibraryManager.library[ident + '__asm']) { snippet = snippet.replace('{', '{ var ret = (function() { if (Runtime.debug) Module.printErr("[library call:' + ident + ': " + Array.prototype.slice.call(arguments).map(Runtime.prettyPrint) + "]"); '); snippet = snippet.substr(0, snippet.length-1) + '}).apply(this, arguments); if (Runtime.debug && typeof ret !== "undefined") Module.printErr(" [ return:" + Runtime.prettyPrint(ret)); return ret; \n}'; } @@ -1902,6 +1902,9 @@ function JSify(data, functionsOnly) { print(read('webGLWorker.js')); print(read('proxyWorker.js')); } + if (DETERMINISTIC) { + print(read('deterministic.js')); + } if (RUNTIME_TYPE_INFO) { Types.cleanForRuntime(); print('Runtime.typeInfo = ' + JSON.stringify(Types.types)); |