Reviewers: marja,

Message:
Committed patchset #1 manually as r18608.

Description:
Experimental parser: remove unnecessary reads

[email protected]

BUG=

Committed: https://code.google.com/p/v8/source/detail?r=18608

Please review this at https://codereview.chromium.org/135853012/

SVN Base: https://v8.googlecode.com/svn/branches/experimental/parser

Affected files (+2, -3 lines):
  M tools/lexer_generator/code_generator.jinja


Index: tools/lexer_generator/code_generator.jinja
diff --git a/tools/lexer_generator/code_generator.jinja b/tools/lexer_generator/code_generator.jinja index 75d95b0c412807a6b803898bcaf049ad6d242f6c..9b99de4b3276b2a9fde092b714456fe7fe3c9938 100644
--- a/tools/lexer_generator/code_generator.jinja
+++ b/tools/lexer_generator/code_generator.jinja
@@ -205,6 +205,8 @@

   {{ write_label('state_entry', node_number_chain) }}

+  READ_CURSOR();
+
   {% if debug_print %}
     fprintf(stderr,
             "state {{state.node_number}}, start %d, cursor %d\n",
@@ -295,12 +297,10 @@

 #define FORWARD() {                               \
   cursor_++;                                      \
-  READ_CURSOR();                                  \
 }

 #define BACKWARD(n) {                             \
   cursor_ -= n;                                   \
-  READ_CURSOR();                                  \
 }

 #define READ_CURSOR() {                           \
@@ -324,7 +324,6 @@ void ExperimentalScanner<{{char_type}}>::Scan() {
   Token::Value stored_token;
   const {{char_type}} * marker;
   {{char_type}} primary_char;
-  READ_CURSOR();

 {# first node is start node #}
 {% for dfa_state in dfa_states -%}


--
--
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