DescriptionRestore function-local variables to use a vector.
CL 1282523002 changed the bitcode parser from using a vector, to using
an unordered map. This was done because one could forward reference a
local variable, and would freeze the computer trying to allocate a
vector large enough to contain the index.
This patch goes back to using vectors. To fix the forward variable
reference, we use the number of bytes in the function to determine if
the index is possible. This stops very large (probematic) vector
resizes from happening.
BUG=None
R=stichnot@chromium.org
Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=7a99327dae74a3abd7f222de1b218d20da665e1c
Patch Set 1 #Patch Set 2 : Fix nit. #
Total comments: 2
Messages
Total messages: 8 (2 generated)
|