diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-30 18:30:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-30 18:30:48 -0800 |
commit | 8608b60d2deecf8a042d4f8ca4237aeb23f3c63a (patch) | |
tree | c37729ce196fe2bc2af1abb756371513e2d6fb2b /src/parseTools.js | |
parent | 2eec25eab19a07f700c807fa7a62668e77fbaf34 (diff) |
makeSetValue debugging stuff, and fix some missing ;'s for makeSetValue
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 48c96c98..7f837419 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1026,6 +1026,8 @@ function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe) return 'SAFE_HEAP_STORE(' + offset + ', ' + value + ', ' + type + ', ' + ((!checkSafeHeap() || ignore)|0) + ')'; } else { return makeGetSlabs(ptr, type, true).map(function(slab) { return slab + '[' + getHeapOffset(offset, type) + ']=' + value }).join('; '); + //return '(print("set:"+(' + value + ')+":"+(' + getHeapOffset(offset, type) + ')),' + + // makeGetSlabs(ptr, type, true).map(function(slab) { return slab + '[' + getHeapOffset(offset, type) + ']=' + value }).join('; ') + ')'; } } |