RESOLVED FIXED 124913
Do bytecode validation as part of testing
https://bugs.webkit.org/show_bug.cgi?id=124913
Summary Do bytecode validation as part of testing
Filip Pizlo
Reported 2013-11-26 21:10:17 PST
Patch forthcoming.
Attachments
the patch (16.89 KB, patch)
2013-11-26 21:13 PST, Filip Pizlo
buildbot: commit-queue-
the patch (19.03 KB, patch)
2013-11-27 10:28 PST, Filip Pizlo
oliver: review+
Filip Pizlo
Comment 1 2013-11-26 21:13:58 PST
Created attachment 217924 [details] the patch
Nadav Rotem
Comment 2 2013-11-26 21:38:36 PST
LGTM. The FastVector change can go as a separate patch. What is this change: - unsigned numberOfVariables = unlinkedCodeBlock->m_numVars + + unsigned numberOfVariables =
Filip Pizlo
Comment 3 2013-11-26 21:45:07 PST
(In reply to comment #2) > LGTM. The FastVector change can go as a separate patch. Yeah, it can land separately. We often prefer not to land dead code - so if we add WTF methods that we use for feature X then the patch for feature X will usually include the WTF patch inside it. I guess the theory is that if you branched WebKit at any arbitrary revision, not only would you expect to get a reasonably stable web engine, but also you would get one that didn't have unneeded code. > > What is this change: > > - unsigned numberOfVariables = unlinkedCodeBlock->m_numVars + > + unsigned numberOfVariables = A bug I found by adding the bytecode liveness analysis verifier. I was surprised by the number of bits in the bitvector. It turns out that the liveness analysis had a benign bug where it assumed that the number of variables was the sum of numVars and numCalleeRegs. In fact, numCalleeRegs is numVars + numTemps, so adding numVars is incorrect. Prior to this patch it would have been a benign bug because it really doesn't matter if you create a bitvector that is larger than you need. I mean, you waste some memory, but probably not a lot.
Build Bot
Comment 4 2013-11-26 21:57:35 PST
Filip Pizlo
Comment 5 2013-11-27 10:28:23 PST
Created attachment 217958 [details] the patch
Filip Pizlo
Comment 6 2013-11-27 15:13:25 PST
Note You need to log in before you can comment on or make changes to this bug.