aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-25 17:18:19 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-25 17:18:19 -0800
commit2f8f8a72fffffdd2b9f4114c0d7e7d8bc941c1d2 (patch)
treefa50bf720b24980b25a1233d8797d089b5eccd17 /src/runtime.js
parentb2fd961d06812c0bfcecc19521a040b8c0a06d24 (diff)
clean up getNativeFieldSize
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime.js b/src/runtime.js
index f6bcdee9..3784c236 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -31,7 +31,7 @@ RuntimeGenerator = {
},
stackEnter: function(initial) {
- if (initial === 0) return ''; // XXX Note that we don't even push the stack! This is faster, but
+ if (initial === 0) return ''; // Note that we don't even push the stack! This is faster, but
// means that we don't clear stack allocations done in this function
// until the parent unwinds its stack. So potentially if we are in
// a loop, we can use a lot of memory.
@@ -41,7 +41,7 @@ RuntimeGenerator = {
}
var initMemory = 'for (var i = __stackBase__; i < STACKTOP; i++) {' + (
USE_TYPED_ARRAYS ?
- 'IHEAP[i] = FHEAP[i] = 0' : // XXX Suboptimal due to type differences?
+ 'IHEAP[i] = FHEAP[i] = 0' : // TODO: Benchmark this. Suboptimal due to type differences?
'HEAP[i] = 0'
) + (SAFE_HEAP ? '; SAFE_HEAP_ACCESS(i, null, true)' : '') + ' }';
ret += '; ' + initMemory;
@@ -49,7 +49,7 @@ RuntimeGenerator = {
},
stackExit: function(initial) {
- if (initial === 0) return ''; // XXX See comment in stackEnter
+ if (initial === 0) return ''; // See comment in stackEnter
var ret = '';
if (SAFE_HEAP) {
ret += 'for (var i = __stackBase__; i < STACKTOP; i++) SAFE_HEAP_CLEAR(i);';