diff options
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/runtime.js b/src/runtime.js index 4de337f7..1a617ae5 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -11,7 +11,7 @@ RuntimeGenerator = { ret += '; assert(' + size + ' > 0, "Trying to allocate 0")'; } if (init) { - ret += '; Runtime.memset(' + type + 'TOP, 0, ' + size + ')'; + ret += '; _memset(' + type + 'TOP, 0, ' + size + ')'; } ret += '; ' + type + 'TOP += ' + size; if (QUANTUM_SIZE > 1) { @@ -39,7 +39,7 @@ RuntimeGenerator = { ret += '; assert(STACKTOP < STACK_MAX)'; } if (INIT_STACK) { - ret += '; Runtime.memset(__stackBase__, 0, ' + initial + ')'; + ret += '; _memset(__stackBase__, 0, ' + initial + ')'; } return ret; }, @@ -77,12 +77,6 @@ Runtime = { staticAlloc: unInline('staticAlloc', ['size']), alignMemory: unInline('alignMemory', ['size', 'quantum']), - memset: function(ptr, value, num) { - for (var i = 0; i < num; i++) { - {{{ makeSetValue('ptr', 'i', 'value', 'null') }}} - } - }, - getFunctionIndex: function getFunctionIndex(func, ident) { var key = FUNCTION_TABLE.length; FUNCTION_TABLE[key] = func; |