diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-08 18:33:43 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-08 18:33:43 -0800 |
commit | 093ebe033d9bc906babb1a3511e2a4638b58d6a0 (patch) | |
tree | 3f69c8ecb0c07306e83cc4a89dfa741058153083 /src/parseTools.js | |
parent | 5a74e784b2feac3268dedd17d425a26b0437452d (diff) |
properly resolve multilevel function aliases, fixes bug with adding indexing for aliases. also optimize function indexing in compiler
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 92a360ad..24c38296 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -951,8 +951,8 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align, noSa } function indexizeFunctions(value, type) { - assert((type && type !== '?') || (typeof value === 'string' && value.substr(0, 6) === 'CHECK_'), 'No type given for function indexizing: ' + [value, type]); - assert(value !== type, 'Type set to value: ' + [value, type]); + assert((type && type !== '?') || (typeof value === 'string' && value.substr(0, 6) === 'CHECK_'), 'No type given for function indexizing'); + assert(value !== type, 'Type set to value'); if (type && isFunctionType(type) && value[0] === '_') { // checking for _ differentiates from $ (local vars) if (BUILD_AS_SHARED_LIB) { return '(FUNCTION_TABLE_OFFSET + ' + Functions.getIndex(value) + ')'; |