aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-07 16:48:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-07 16:48:12 -0700
commit272e961c063ad4fdb44e61babdfbb0bee200752b (patch)
treecb5f090f03833247edca5e6b26152c4f0fe1c97b /src/jsifier.js
parent6dff9374e3cb873968f9a58f80b625e7f256d6d9 (diff)
rename __stackbase__ to sp
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 3f8c184c..86931f3e 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1335,7 +1335,7 @@ function JSify(data, functionsOnly, givenFunctions) {
makeFuncLineActor('alloca', function(item) {
if (typeof item.allocatedIndex === 'number') {
if (item.allocatedSize === 0) return ''; // This will not actually be shown - it's nativized
- return asmCoercion(getFastValue('__stackBase__', '+', item.allocatedIndex.toString()), 'i32');
+ return asmCoercion(getFastValue('sp', '+', item.allocatedIndex.toString()), 'i32');
} else {
return RuntimeGenerator.stackAlloc(getFastValue(calcAllocatedSize(item.allocatedType), '*', item.allocatedNum));
}