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

Side by Side Diff: src/parsing/parser.h

Issue 2650703003: [parser]: Skipping inner funcs / initial implemetation of storing scope analysis data from preparse… (Closed)
Patch Set: rebased - argh, forced to format build.gn Created 3 years, 10 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/parse-info.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/base/compiler-specific.h" 10 #include "src/base/compiler-specific.h"
11 #include "src/globals.h" 11 #include "src/globals.h"
12 #include "src/parsing/parser-base.h" 12 #include "src/parsing/parser-base.h"
13 #include "src/parsing/parsing.h" 13 #include "src/parsing/parsing.h"
14 #include "src/parsing/preparse-data-format.h" 14 #include "src/parsing/preparse-data-format.h"
15 #include "src/parsing/preparse-data.h" 15 #include "src/parsing/preparse-data.h"
16 #include "src/parsing/preparser.h" 16 #include "src/parsing/preparser.h"
17 #include "src/pending-compilation-error-handler.h" 17 #include "src/pending-compilation-error-handler.h"
18 #include "src/utils.h" 18 #include "src/utils.h"
19 19
20 namespace v8 { 20 namespace v8 {
21 21
22 class ScriptCompiler; 22 class ScriptCompiler;
23 23
24 namespace internal { 24 namespace internal {
25 25
26 class ParseInfo; 26 class ParseInfo;
27 class ScriptData; 27 class ScriptData;
28 class ParserTarget; 28 class ParserTarget;
29 class ParserTargetScope; 29 class ParserTargetScope;
30 class PreParsedScopeData;
30 31
31 class FunctionEntry BASE_EMBEDDED { 32 class FunctionEntry BASE_EMBEDDED {
32 public: 33 public:
33 enum { 34 enum {
34 kStartPositionIndex, 35 kStartPositionIndex,
35 kEndPositionIndex, 36 kEndPositionIndex,
36 kNumParametersIndex, 37 kNumParametersIndex,
37 kFunctionLengthIndex, 38 kFunctionLengthIndex,
38 kLiteralCountIndex, 39 kLiteralCountIndex,
39 kPropertyCountIndex, 40 kPropertyCountIndex,
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 1130
1130 PendingCompilationErrorHandler pending_error_handler_; 1131 PendingCompilationErrorHandler pending_error_handler_;
1131 1132
1132 // Other information which will be stored in Parser and moved to Isolate after 1133 // Other information which will be stored in Parser and moved to Isolate after
1133 // parsing. 1134 // parsing.
1134 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; 1135 int use_counts_[v8::Isolate::kUseCounterFeatureCount];
1135 int total_preparse_skipped_; 1136 int total_preparse_skipped_;
1136 bool allow_lazy_; 1137 bool allow_lazy_;
1137 bool temp_zoned_; 1138 bool temp_zoned_;
1138 ParserLogger* log_; 1139 ParserLogger* log_;
1140
1141 PreParsedScopeData* preparsed_scope_data_;
1139 }; 1142 };
1140 1143
1141 // ---------------------------------------------------------------------------- 1144 // ----------------------------------------------------------------------------
1142 // Target is a support class to facilitate manipulation of the 1145 // Target is a support class to facilitate manipulation of the
1143 // Parser's target_stack_ (the stack of potential 'break' and 1146 // Parser's target_stack_ (the stack of potential 'break' and
1144 // 'continue' statement targets). Upon construction, a new target is 1147 // 'continue' statement targets). Upon construction, a new target is
1145 // added; it is removed upon destruction. 1148 // added; it is removed upon destruction.
1146 1149
1147 class ParserTarget BASE_EMBEDDED { 1150 class ParserTarget BASE_EMBEDDED {
1148 public: 1151 public:
(...skipping 27 matching lines...) Expand all
1176 1179
1177 private: 1180 private:
1178 ParserTarget** variable_; 1181 ParserTarget** variable_;
1179 ParserTarget* previous_; 1182 ParserTarget* previous_;
1180 }; 1183 };
1181 1184
1182 } // namespace internal 1185 } // namespace internal
1183 } // namespace v8 1186 } // namespace v8
1184 1187
1185 #endif // V8_PARSING_PARSER_H_ 1188 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/parsing/parse-info.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698