Skip to content
Snippets Groups Projects
Commit 2b08c335 authored by Steve Fink's avatar Steve Fink
Browse files

Bug 1400442 - analyzeHeapWrites: implement a cache for checking whether local...

Bug 1400442 - analyzeHeapWrites: implement a cache for checking whether local variables are safe pointers, r=jonco

--HG--
extra : rebase_source : fce58842604238e6102f43057301fff27ee58d6f
parent 1ec4752d
No related branches found
No related tags found
No related merge requests found
......@@ -1153,6 +1153,18 @@ function isSafeVariable(entry, variable)
return false;
var name = variableName(variable);
if (!entry.safeLocals)
entry.safeLocals = new Map;
if (entry.safeLocals.has(name))
return entry.safeLocals.get(name);
const safe = isSafeLocalVariable(entry, name);
entry.safeLocals.set(name, safe);
return safe;
}
function isSafeLocalVariable(entry, name)
{
// If there is a single place where this variable has been assigned on
// edges we are considering, look at that edge.
var edge = singleAssignment(name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment