OLD | NEW |
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_PARSER_H_ | 5 #ifndef V8_PARSER_H_ |
6 #define V8_PARSER_H_ | 6 #define V8_PARSER_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/ast.h" | 9 #include "src/ast.h" |
10 #include "src/compiler.h" // For CachedDataMode | 10 #include "src/compiler.h" // For CachedDataMode |
11 #include "src/preparse-data.h" | 11 #include "src/preparse-data.h" |
12 #include "src/preparse-data-format.h" | 12 #include "src/preparse-data-format.h" |
13 #include "src/preparser.h" | 13 #include "src/preparser.h" |
14 #include "src/scopes.h" | 14 #include "src/scopes.h" |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 class ScriptCompiler; | 17 class ScriptCompiler; |
18 | 18 |
19 namespace internal { | 19 namespace internal { |
20 | 20 |
21 class CompilationInfo; | 21 class CompilationInfo; |
22 class ParserLog; | 22 class ParserLog; |
23 class PositionStack; | 23 class PositionStack; |
24 class Target; | 24 class Target; |
25 | 25 |
26 template <typename T> class ZoneListWrapper; | |
27 | |
28 | 26 |
29 class FunctionEntry BASE_EMBEDDED { | 27 class FunctionEntry BASE_EMBEDDED { |
30 public: | 28 public: |
31 enum { | 29 enum { |
32 kStartPositionIndex, | 30 kStartPositionIndex, |
33 kEndPositionIndex, | 31 kEndPositionIndex, |
34 kLiteralCountIndex, | 32 kLiteralCountIndex, |
35 kPropertyCountIndex, | 33 kPropertyCountIndex, |
36 kStrictModeIndex, | 34 kStrictModeIndex, |
37 kSize | 35 kSize |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 } | 988 } |
991 | 989 |
992 | 990 |
993 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, | 991 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, |
994 int start, Expression* tag) { | 992 int start, Expression* tag) { |
995 return parser_->CloseTemplateLiteral(state, start, tag); | 993 return parser_->CloseTemplateLiteral(state, start, tag); |
996 } | 994 } |
997 } } // namespace v8::internal | 995 } } // namespace v8::internal |
998 | 996 |
999 #endif // V8_PARSER_H_ | 997 #endif // V8_PARSER_H_ |
OLD | NEW |