diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 16:04:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-07 16:04:55 -0800 |
commit | cda70ff4768b521f8f1d02483352fa997798324e (patch) | |
tree | c982bdcd5453c6fcda1207c510db45df998a4e4e /src/intertyper.js | |
parent | 2101d2d569eb129798389d84eed20d41255e9319 (diff) |
automatically disable SKIP_STACK_IN_SMALL when processing autodebugger data, to not flood the stack
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 19eb658e..b16b1e3e 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -123,6 +123,12 @@ function intertyper(data, sidePass, baseLineNums) { inFunction = false; if (mainPass) { var func = funcHeader.processItem(tokenizer.processItem({ lineText: currFunctionLines[0], lineNum: currFunctionLineNum }, true))[0]; + + if (SKIP_STACK_IN_SMALL && /emscripten_autodebug/.exec(func.ident)) { + warn('Disabling SKIP_STACK_IN_SMALL because we are apparently processing autodebugger data'); + SKIP_STACK_IN_SMALL = 0; + } + unparsedBundles.push({ intertype: 'unparsedFunction', // We need this early, to know basic function info - ident, params, varargs |