Fix found V8 deopt.

Increases perf from 230K to 360K lines/sec on std bench on my machine.
This commit is contained in:
Ingvar Stepanyan 2015-02-05 00:02:21 +02:00
parent c034550215
commit 7264bc0178

View File

@ -1238,7 +1238,7 @@
function readWord1() {
containsEsc = false;
var word = "", first = true, chunkStart = tokPos;
for (;;) {
while (tokPos < inputLen) {
var ch = input.charCodeAt(tokPos);
if (isIdentifierChar(ch)) {
++tokPos;