Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1942)

Unified Diff: src/parser.h

Issue 633373003: Simplify AST ID generation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/ast.h ('K') | « src/ast.h ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index e461a99d84cfdcd6a13a4a9c2d81ab5fa1647581..2957a190c251818715e0ecfc8612367868fcb60b 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -376,21 +376,6 @@ class ParserTraits {
explicit ParserTraits(Parser* parser) : parser_(parser) {}
- // Custom operations executed when FunctionStates are created and destructed.
- template <typename FunctionState>
- static void SetUpFunctionState(FunctionState* function_state) {
- function_state->saved_id_gen_ = *function_state->ast_node_id_gen_;
- *function_state->ast_node_id_gen_ =
- AstNode::IdGen(BailoutId::FirstUsable().ToInt());
- }
-
- template <typename FunctionState>
- static void TearDownFunctionState(FunctionState* function_state) {
- if (function_state->outer_function_state_ != NULL) {
- *function_state->ast_node_id_gen_ = function_state->saved_id_gen_;
- }
- }
-
// Helper functions for recursive descent.
bool IsEvalOrArguments(const AstRawString* identifier) const;
V8_INLINE bool IsFutureStrictReserved(const AstRawString* identifier) const;
« src/ast.h ('K') | « src/ast.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698