1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
6 if (!Module) Module = eval('(function() { try { return Module || {} } catch(e) { return {} } })()');
7 else if (ENVIRONMENT_IS_SHELL) {
10 stackSave: function () {
12 alignMemory: function (quantum) { var ret = size = Math.ceil()*(quantum ? quantum : 8); return ret; }}
15 function callRuntimeCallbacks(callbacks) {
16 var callback = callbacks.shift();
17 var func = callback.func;
18 if (typeof func === 'number') {
23 var __ATINIT__ = []; // functions called during startup
24 function ensureInitRuntime() {
25 callRuntimeCallbacks(__ATINIT__);
27 /* global initializers */ __ATINIT__.push({ func: function() { runPostSets() } });
28 function __formatString() {
32 var Browser={mainLoop:{queue:[],pause:function () {
33 }},moduleContextCreatedCallbacks:[],workers:[],init:function () {
35 var asm = (function() {
39 function runPostSets() {
45 return { runPostSets: runPostSets};
48 var runPostSets = Module["runPostSets"] = asm["runPostSets"];
49 var i64Math = (function() { // Emscripten wrapper