From 030d03190f3daf323b78138717b2e84cf299cdbe Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 13 Mar 2014 20:46:23 +0400 Subject: [PATCH] deps: backport a6fed7c5 from v8's trunk --- deps/v8/src/parser.h | 8 ++++---- deps/v8/src/preparser.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/deps/v8/src/parser.h b/deps/v8/src/parser.h index 85a219e04e..85e34d9ae5 100644 --- a/deps/v8/src/parser.h +++ b/deps/v8/src/parser.h @@ -426,16 +426,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/deps/v8/src/preparser.h b/deps/v8/src/preparser.h index 5cb0a9d352..89c522060f 100644 --- a/deps/v8/src/preparser.h +++ b/deps/v8/src/preparser.h @@ -616,10 +616,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) {