diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-03-13 12:13:21 -0700 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-03-13 12:13:21 -0700 |
commit | 6c22a66671b6f42ad63044b0fd46a5dc892298b4 (patch) | |
tree | 2dcbf1895b6d97be7b6e1a9f26561045c3e8fa28 /src/preamble.js | |
parent | f534adece703cadde53e2e14b199219376d63028 (diff) |
misc compiler tweaks
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/preamble.js b/src/preamble.js index ea0c8fa4..2eb745a5 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -269,8 +269,8 @@ function __initializeRuntime__() { } } - var base = intArrayFromString('(null)').concat(0); // So printing %s of NULL gives '(null)' - // Also this ensures we leave 0 as an invalid address, 'NULL' + var base = intArrayFromString('(null)'); // So printing %s of NULL gives '(null)' + // Also this ensures we leave 0 as an invalid address, 'NULL' for (var i = 0; i < base.length; i++) { {{{ makeSetValue(0, 'i', 'base[i]', 'i8') }}} } @@ -360,7 +360,7 @@ function jrint(label, obj) { // XXX manual debugging print(label + JSON.stringify(obj)); } -// This processes a 'normal' string into a C-line array of numbers. +// This processes a JS string into a C-line array of numbers, 0-terminated. // For LLVM-originating strings, see parser.js:parseLLVMString function function intArrayFromString(stringy) { var ret = []; |