aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-06-28 00:09:45 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-28 10:46:25 -0700
commite3074dc0f193b57a8bedac899be2024b6b338db7 (patch)
tree8bc9720117dfc9af45f0b7eccc440ab1ce998b43
parent57bac5ccc9ce0d01e9c200a114fc4bf4ca690a11 (diff)
fixed comment typos
-rw-r--r--src/jsifier.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 73cc7740..14c9cfbe 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -290,13 +290,14 @@ function JSify(data, functionsOnly, givenFunctions) {
var length = calcAllocatedSize(item.type);
length = Runtime.alignMemory(length);
- // If not using indexed globals, go ahead and early out (it doesn't need to
- // be explicitly allocated).
+ // If using indexed globals, go ahead and early out (no need to explicitly
+ // initialize).
if (!NAMED_GLOBALS) {
return ret;
}
- // If using named globals, shorten the call to allocate() by just passing an
- // integer representing the length of the chunk of memory we need to alloc.
+ // If using named globals, we can at least shorten the call to allocate by
+ // passing an integer representing the size of memory to alloc instead of
+ // an array of 0s of size length.
else {
constant = length;
}