From f524f51ea79e359624f640a52a65ee2472e10b7d Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Fri, 28 Feb 2014 12:08:17 +0000 Subject: [PATCH] parser: fix build on solaris `FS` is defined in `regset.h` on solaris and smartos. BUG= R=ulan@chromium.org, danno@chromium.org Review URL: https://codereview.chromium.org/176403004 Patch from Fedor Indutny . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19602 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/parser.h | 8 ++++---- src/preparser.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/parser.h b/src/parser.h index 5a5c734..4a2cb02 100644 --- a/src/parser.h +++ b/src/parser.h @@ -427,16 +427,16 @@ class ParserTraits { explicit ParserTraits(Parser* parser) : parser_(parser) {} // Custom operations executed when FunctionStates are created and destructed. - template - static void SetUpFunctionState(FS* function_state, Zone* zone) { + template + 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 - static void TearDownFunctionState(FS* function_state) { + template + 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_); diff --git a/src/preparser.h b/src/preparser.h index f392304..6d89713 100644 --- a/src/preparser.h +++ b/src/preparser.h @@ -644,10 +644,10 @@ class PreParserTraits { // Custom operations executed when FunctionStates are created and // destructed. (The PreParser doesn't need to do anything.) - template - static void SetUpFunctionState(FS* function_state, void*) {} - template - static void TearDownFunctionState(FS* function_state) {} + template + static void SetUpFunctionState(FunctionState* function_state, void*) {} + template + static void TearDownFunctionState(FunctionState* function_state) {} // Helper functions for recursive descent. static bool IsEvalOrArguments(PreParserIdentifier identifier) { -- 2.7.4