aboutsummaryrefslogtreecommitdiff
path: root/src/preamble.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-09 20:09:11 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-09 20:09:11 -0800
commit1c5355c76c0389775f3e11b5b962311e7501ad31 (patch)
treefda230be1c9214bf6b2e7d9dda016fa0fd70a7e9 /src/preamble.js
parent023a34753e1e47f03eadfd91a7e639afbbead888 (diff)
proper support for bitfields
Diffstat (limited to 'src/preamble.js')
-rw-r--r--src/preamble.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js
index 7ae7e0ad..aa58e172 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -35,7 +35,8 @@ function SAFE_HEAP_ACCESS(dest, type, store) {
}
var history = HEAP_HISTORY[dest];
if (history === null) return;
- assert(history, 'Must have a history for a safe heap load!');
+ assert(history, 'Must have a history for a safe heap load!'); // Warning - bit fields in C structs cause loads+stores for each store, so
+ // they will show up here...
// assert((history && history[0]) /* || HEAP[dest] === 0 */, "Loading from where there was no store! " + dest + ',' + HEAP[dest] + ',' + type + ', \n\n' + new Error().stack + '\n');
// if (history[0].type !== type) {
if (history !== type) {