Revision: 19602
Author:   [email protected]
Date:     Fri Feb 28 12:08:17 2014 UTC
Log:      parser: fix build on solaris

`FS` is defined in `regset.h` on solaris and smartos.

BUG=
[email protected], [email protected]

Review URL: https://codereview.chromium.org/176403004

Patch from Fedor Indutny <[email protected]>.
http://code.google.com/p/v8/source/detail?r=19602

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

=======================================
--- /branches/bleeding_edge/src/parser.h        Wed Feb 19 08:56:11 2014 UTC
+++ /branches/bleeding_edge/src/parser.h        Fri Feb 28 12:08:17 2014 UTC
@@ -427,16 +427,16 @@
   explicit ParserTraits(Parser* parser) : parser_(parser) {}

// Custom operations executed when FunctionStates are created and destructed.
-  template<typename FS>
-  static void SetUpFunctionState(FS* function_state, Zone* zone) {
+  template<typename FunctionState>
+ static void SetUpFunctionState(FunctionState* function_state, Zone* zone) {
     Isolate* isolate = zone->isolate();
     function_state->isolate_ = isolate;
     function_state->saved_ast_node_id_ = isolate->ast_node_id();
     isolate->set_ast_node_id(BailoutId::FirstUsable().ToInt());
   }

-  template<typename FS>
-  static void TearDownFunctionState(FS* function_state) {
+  template<typename FunctionState>
+  static void TearDownFunctionState(FunctionState* function_state) {
     if (function_state->outer_function_state_ != NULL) {
       function_state->isolate_->set_ast_node_id(
           function_state->saved_ast_node_id_);
=======================================
--- /branches/bleeding_edge/src/preparser.h     Wed Feb 19 08:56:11 2014 UTC
+++ /branches/bleeding_edge/src/preparser.h     Fri Feb 28 12:08:17 2014 UTC
@@ -644,10 +644,10 @@

   // Custom operations executed when FunctionStates are created and
   // destructed. (The PreParser doesn't need to do anything.)
-  template<typename FS>
-  static void SetUpFunctionState(FS* function_state, void*) {}
-  template<typename FS>
-  static void TearDownFunctionState(FS* function_state) {}
+  template<typename FunctionState>
+  static void SetUpFunctionState(FunctionState* function_state, void*) {}
+  template<typename FunctionState>
+  static void TearDownFunctionState(FunctionState* function_state) {}

   // Helper functions for recursive descent.
   static bool IsEvalOrArguments(PreParserIdentifier identifier) {

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