Skip to content

Commit

Permalink
Fix found V8 deopt.
Browse files Browse the repository at this point in the history
Increases perf from 230K to 360K lines/sec on std bench on my machine.
  • Loading branch information
RReverser committed Feb 4, 2015
1 parent c034550 commit 7264bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7264bc0

Please sign in to comment.