Please review http://cr.openjdk.java.net/~hannesw/8008096/. This is a simple patch that helps reduce pdfjs.js parse time by about 200 ms on my machine, not much difference on other large scripts. Hannes