зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1259850 - Rename function, add a few comments, r=terrence
MozReview-Commit-ID: Fyk1zzbWGnh --HG-- extra : rebase_source : 61c6900bac4bea0e2c645334d3984614f2ba4a2e extra : source : e8544b072ee6b0055984ad7307216d61d4d3a26f
This commit is contained in:
Родитель
bc7d8b91bd
Коммит
13d4ab4e85
|
@ -527,7 +527,9 @@ function unsafeVariableAddressTaken(suppressed, variable)
|
|||
return null;
|
||||
}
|
||||
|
||||
function computePrintedLines(functionName)
|
||||
// Read out the brief (non-JSON, semi-human-readable) CFG description for the
|
||||
// given function and store it.
|
||||
function loadPrintedLines(functionName)
|
||||
{
|
||||
assert(!os.system("xdbfind src_body.xdb '" + functionName + "' > " + tmpfile));
|
||||
var lines = snarf(tmpfile).split('\n');
|
||||
|
@ -583,7 +585,7 @@ function printEntryTrace(functionName, entry)
|
|||
var gcPoint = entry.gcInfo ? entry.gcInfo.ppoint : 0;
|
||||
|
||||
if (!functionBodies[0].lines)
|
||||
computePrintedLines(functionName);
|
||||
loadPrintedLines(functionName);
|
||||
|
||||
while (entry) {
|
||||
var ppoint = entry.ppoint;
|
||||
|
@ -598,8 +600,8 @@ function printEntryTrace(functionName, entry)
|
|||
var table = {};
|
||||
entry.body.edgeTable = table;
|
||||
for (var line of entry.body.lines) {
|
||||
if (match = /\((\d+),(\d+),/.exec(line))
|
||||
table[match[1] + "," + match[2]] = line; // May be multiple?
|
||||
if (match = /\((\d+,\d+),/.exec(line))
|
||||
table[match[1]] = line; // May be multiple?
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче