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 |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 const char* pending_error_message_; | 900 const char* pending_error_message_; |
901 const AstRawString* pending_error_arg_; | 901 const AstRawString* pending_error_arg_; |
902 const char* pending_error_char_arg_; | 902 const char* pending_error_char_arg_; |
903 bool pending_error_is_reference_error_; | 903 bool pending_error_is_reference_error_; |
904 | 904 |
905 // Other information which will be stored in Parser and moved to Isolate after | 905 // Other information which will be stored in Parser and moved to Isolate after |
906 // parsing. | 906 // parsing. |
907 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; | 907 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; |
908 int total_preparse_skipped_; | 908 int total_preparse_skipped_; |
909 HistogramTimer* pre_parse_timer_; | 909 HistogramTimer* pre_parse_timer_; |
910 | |
911 // Temporary; for debugging. See Parser::SkipLazyFunctionBody. TODO(marja): | |
912 // remove this once done. | |
913 ScriptCompiler::CompileOptions debug_saved_compile_options_; | |
914 }; | 910 }; |
915 | 911 |
916 | 912 |
917 bool ParserTraits::IsFutureStrictReserved( | 913 bool ParserTraits::IsFutureStrictReserved( |
918 const AstRawString* identifier) const { | 914 const AstRawString* identifier) const { |
919 return parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); | 915 return parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); |
920 } | 916 } |
921 | 917 |
922 | 918 |
923 Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type) { | 919 Scope* ParserTraits::NewScope(Scope* parent_scope, ScopeType scope_type) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 } | 998 } |
1003 | 999 |
1004 | 1000 |
1005 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, | 1001 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, |
1006 int start, Expression* tag) { | 1002 int start, Expression* tag) { |
1007 return parser_->CloseTemplateLiteral(state, start, tag); | 1003 return parser_->CloseTemplateLiteral(state, start, tag); |
1008 } | 1004 } |
1009 } } // namespace v8::internal | 1005 } } // namespace v8::internal |
1010 | 1006 |
1011 #endif // V8_PARSER_H_ | 1007 #endif // V8_PARSER_H_ |
OLD | NEW |