Revision: 19317
Author:   [email protected]
Date:     Wed Feb 12 11:56:07 2014 UTC
Log:      Move parenthesized_function_ to ParserBase.

This change is trivial (was probably overlooked when ParserBase was created).

[email protected]
BUG=v8:3126
LOG=N

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

Modified:
 /branches/bleeding_edge/src/parser.cc
 /branches/bleeding_edge/src/parser.h
 /branches/bleeding_edge/src/preparser.h

=======================================
--- /branches/bleeding_edge/src/parser.cc       Tue Feb 11 11:51:01 2014 UTC
+++ /branches/bleeding_edge/src/parser.cc       Wed Feb 12 11:56:07 2014 UTC
@@ -643,7 +643,6 @@
       extension_(info->extension()),
       pre_parse_data_(NULL),
       fni_(NULL),
-      parenthesized_function_(false),
       zone_(info->zone()),
       info_(info) {
   ASSERT(!script_.is_null());
=======================================
--- /branches/bleeding_edge/src/parser.h        Tue Feb 11 11:51:01 2014 UTC
+++ /branches/bleeding_edge/src/parser.h        Wed Feb 12 11:56:07 2014 UTC
@@ -785,11 +785,6 @@
   FuncNameInferrer* fni_;

   Mode mode_;
-  // If true, the next (and immediately following) function literal is
-  // preceded by a parenthesis.
-  // Heuristically that means that the function will be called immediately,
-  // so never lazily compile it.
-  bool parenthesized_function_;

   Zone* zone_;
   CompilationInfo* info_;
=======================================
--- /branches/bleeding_edge/src/preparser.h     Tue Feb 11 11:51:01 2014 UTC
+++ /branches/bleeding_edge/src/preparser.h     Wed Feb 12 11:56:07 2014 UTC
@@ -42,6 +42,7 @@
   ParserBase(Scanner* scanner, uintptr_t stack_limit,
              typename Traits::ParserType this_object)
       : Traits(this_object),
+        parenthesized_function_(false),
         scanner_(scanner),
         stack_limit_(stack_limit),
         stack_overflow_(false),
@@ -281,6 +282,12 @@
     LanguageMode language_mode_;
   };

+  // If true, the next (and immediately following) function literal is
+  // preceded by a parenthesis.
+  // Heuristically that means that the function will be called immediately,
+  // so never lazily compile it.
+  bool parenthesized_function_;
+
  private:
   Scanner* scanner_;
   uintptr_t stack_limit_;
@@ -505,8 +512,7 @@
             uintptr_t stack_limit)
       : ParserBase<PreParserTraits>(scanner, stack_limit, this),
         log_(log),
-        scope_(NULL),
-        parenthesized_function_(false) { }
+        scope_(NULL) { }

   ~PreParser() {}

@@ -748,7 +754,6 @@

   ParserRecorder* log_;
   Scope* scope_;
-  bool parenthesized_function_;
 };


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