aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-07-03 08:27:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-07-03 08:27:33 -0700
commit4e9d7978c6cdcc6eba29e372b763343f1bb4a1ff (patch)
treec8c6f386cffbf53fa3a4e9efa35b0d6f369803ff
parent867e0fcb19d06acae5d3d419d167b195168bb691 (diff)
comments
-rw-r--r--src/parseTools.js2
-rw-r--r--src/settings.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 8c8389fb..afd57543 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -473,7 +473,7 @@ function IEEEUnHex(stringy) {
stringy = stringy.substr(2); // leading '0x';
if (stringy.replace(/0/g, '') === '') return 0;
while (stringy.length < 16) stringy = '0' + stringy;
- assert(stringy.length === 16, 'Can only undex 16-digit double numbers, nothing platform-specific');
+ assert(stringy.length === 16, 'Can only unhex 16-digit double numbers, nothing platform-specific');
var top = eval('0x' + stringy[0]);
var neg = !!(top & 8); // sign
if (neg) {
diff --git a/src/settings.js b/src/settings.js
index 437d61b5..544cc7c2 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -46,6 +46,7 @@ USE_TYPED_ARRAYS = 0; // Try to use typed arrays for the heap
// simply because double stores are not necessarily 64-bit aligned, and we can only access
// 64-bit aligned values with a 64-bit typed array. Likewise int64s are stored as int32's,
// which is potentially very dangerous!
+ // TODO: require compiling with -malign-double, which does align doubles
SKIP_STACK_IN_SMALL = 1; // When enabled, does not push/pop the stack at all in
// functions that have no basic stack usage. But, they
// may allocate stack later, and in a loop, this can be