Revision: 18189
Author:   [email protected]
Date:     Mon Dec  2 13:04:33 2013 UTC
Log:      Experimental scanner: fix starting positions of tokens.

This fixes the mjsunit/strict-mode-eval.js failure. The problem is that the
parser apparently asks for the current token begin before scanning anything. Or
something along those lines.

[email protected],[email protected]
BUG=

Review URL: https://codereview.chromium.org/98973003
http://code.google.com/p/v8/source/detail?r=18189

Modified:
 /branches/experimental/parser/src/lexer/experimental-scanner.h

=======================================
--- /branches/experimental/parser/src/lexer/experimental-scanner.h Mon Dec 2 11:45:18 2013 UTC +++ /branches/experimental/parser/src/lexer/experimental-scanner.h Mon Dec 2 13:04:33 2013 UTC
@@ -302,6 +302,7 @@
         last_octal_end_(NULL) {
     ASSERT(source->IsFlat());
     SetBufferBasedOnHandle();
+ current_.beg_pos = current_.end_pos = next_.beg_pos = next_.end_pos = 0;
   }

   virtual void Init() {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to