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

Side by Side Diff: src/parsing/preparser.cc

Issue 2414383002: Drop Lazy from parser method names and events (Closed)
Patch Set: Rebase Created 4 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 unified diff | Download patch
« no previous file with comments | « src/parsing/preparser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <cmath> 5 #include <cmath>
6 6
7 #include "src/allocation.h" 7 #include "src/allocation.h"
8 #include "src/base/logging.h" 8 #include "src/base/logging.h"
9 #include "src/conversions-inl.h" 9 #include "src/conversions-inl.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 PreParserIdentifier PreParser::GetSymbol() const { 76 PreParserIdentifier PreParser::GetSymbol() const {
77 PreParserIdentifier symbol = GetSymbolHelper(scanner()); 77 PreParserIdentifier symbol = GetSymbolHelper(scanner());
78 if (track_unresolved_variables_) { 78 if (track_unresolved_variables_) {
79 const AstRawString* result = scanner()->CurrentSymbol(ast_value_factory()); 79 const AstRawString* result = scanner()->CurrentSymbol(ast_value_factory());
80 DCHECK_NOT_NULL(result); 80 DCHECK_NOT_NULL(result);
81 symbol.string_ = result; 81 symbol.string_ = result;
82 } 82 }
83 return symbol; 83 return symbol;
84 } 84 }
85 85
86 PreParser::PreParseResult PreParser::PreParseLazyFunction( 86 PreParser::PreParseResult PreParser::PreParseFunction(
87 DeclarationScope* function_scope, bool parsing_module, SingletonLogger* log, 87 DeclarationScope* function_scope, bool parsing_module, SingletonLogger* log,
88 bool is_inner_function, bool may_abort, int* use_counts) { 88 bool is_inner_function, bool may_abort, int* use_counts) {
89 DCHECK_EQ(FUNCTION_SCOPE, function_scope->scope_type()); 89 DCHECK_EQ(FUNCTION_SCOPE, function_scope->scope_type());
90 parsing_module_ = parsing_module; 90 parsing_module_ = parsing_module;
91 log_ = log; 91 log_ = log;
92 use_counts_ = use_counts; 92 use_counts_ = use_counts;
93 DCHECK(!track_unresolved_variables_); 93 DCHECK(!track_unresolved_variables_);
94 track_unresolved_variables_ = is_inner_function; 94 track_unresolved_variables_ = is_inner_function;
95 95
96 // The caller passes the function_scope which is not yet inserted into the 96 // The caller passes the function_scope which is not yet inserted into the
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 } 246 }
247 } 247 }
248 } 248 }
249 249
250 #undef CHECK_OK 250 #undef CHECK_OK
251 #undef CHECK_OK_CUSTOM 251 #undef CHECK_OK_CUSTOM
252 252
253 253
254 } // namespace internal 254 } // namespace internal
255 } // namespace v8 255 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/preparser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698