diff options
author | max99x <max99x@gmail.com> | 2011-08-25 13:25:51 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-08-25 13:25:51 +0300 |
commit | 5d737c3b7012f9936b3293b2211e59a5e22f4c78 (patch) | |
tree | e237998d1333bcb359f6425e52ec1c432d5777da /src/parseTools.js | |
parent | 414d1bdedfc87f9302128dfd8caadfa85ac01875 (diff) |
Added an "ignore" parameter to makeGetValue().
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 4a2ff3a8..5473ff37 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -687,7 +687,7 @@ function getHeapOffset(offset, type) { } // See makeSetValue -function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) { +function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore) { if (isStructType(type)) { var typeData = Types.types[type]; var ret = []; @@ -701,7 +701,7 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) { if (SAFE_HEAP) { if (type !== 'null' && type[0] !== '#') type = '"' + safeQuote(type) + '"'; if (type[0] === '#') type = type.substr(1); - return 'SAFE_HEAP_LOAD(' + offset + ', ' + type + ', ' + (!!unsigned+0) + ', ' + (!checkSafeHeap()+0) + ')'; + return 'SAFE_HEAP_LOAD(' + offset + ', ' + type + ', ' + (!!unsigned+0) + ', ' + ((!checkSafeHeap() || ignore)|0) + ')'; } else { return makeGetSlabs(ptr, type, false, unsigned)[0] + '[' + getHeapOffset(offset, type) + ']'; } |