In practice, we will always have multiple instructions after invalidation points, and have enough room in the JIT buffer for the invalidation point to work with. However, as a precaution, we can guarantee that there's enough room by always emitting a label just before we link the buffer. The label will emit nop padding if needed.
Created attachment 302533 [details] proposed patch.
Comment on attachment 302533 [details] proposed patch. Attachment 302533 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/3179795 New failing tests: fast/dom/timer-throttling-hidden-page-non-nested.html
Created attachment 302547 [details] Archive of layout-test-results from ews116 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Comment on attachment 302533 [details] proposed patch. Clearing flags on attachment: 302533 Committed r212908: <http://trac.webkit.org/changeset/212908>
All reviewed patches have been landed. Closing bug.