diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-02-12 19:36:02 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-02-12 19:36:02 -0800 |
commit | bace573eb4e44e43227d4134e34158969d914efa (patch) | |
tree | cb50163af1c4a424132b20e1ded77e5cf8e6f4b2 /src/jsifier.js | |
parent | ffb61d77cae700fe2f45c60e06715033ae9f653a (diff) |
line number debugging info
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 765c41f8..32cf263d 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -436,7 +436,7 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions, givenGlobalVaria ret += indent + 'if (Date.now() - START_TIME >= ' + (EXECUTION_TIMEOUT*1000) + ') throw "Timed out!" + (new Error().stack);\n'; } // for special labels we care about (for phi), mark that we visited them - return ret + label.lines.map(function(line) { return line.JS + (line.comment ? ' // ' + line.comment : '') }) + return ret + label.lines.map(function(line) { return line.JS + (Debugging.on ? ' //@line ' + Debugging.llvmLineToSourceLine[line.lineNum] : '') }) .join('\n') .split('\n') // some lines include line breaks .map(function(line) { return indent + line }) |