From e3074dc0f193b57a8bedac899be2024b6b338db7 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Fri, 28 Jun 2013 00:09:45 -0700 Subject: fixed comment typos --- src/jsifier.js | 9 +++++---- 1 file 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; } -- cgit v1.2.3-18-g5258