aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-02-12 19:36:02 -0800
committerAlon Zakai <azakai@mozilla.com>2011-02-12 19:36:02 -0800
commitbace573eb4e44e43227d4134e34158969d914efa (patch)
treecb50163af1c4a424132b20e1ded77e5cf8e6f4b2 /src/jsifier.js
parentffb61d77cae700fe2f45c60e06715033ae9f653a (diff)
line number debugging info
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js2
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 })