| 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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 const char* pending_error_message_; | 843 const char* pending_error_message_; |
| 844 const AstRawString* pending_error_arg_; | 844 const AstRawString* pending_error_arg_; |
| 845 const char* pending_error_char_arg_; | 845 const char* pending_error_char_arg_; |
| 846 bool pending_error_is_reference_error_; | 846 bool pending_error_is_reference_error_; |
| 847 | 847 |
| 848 // Other information which will be stored in Parser and moved to Isolate after | 848 // Other information which will be stored in Parser and moved to Isolate after |
| 849 // parsing. | 849 // parsing. |
| 850 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; | 850 int use_counts_[v8::Isolate::kUseCounterFeatureCount]; |
| 851 int total_preparse_skipped_; | 851 int total_preparse_skipped_; |
| 852 HistogramTimer* pre_parse_timer_; | 852 HistogramTimer* pre_parse_timer_; |
| 853 |
| 854 // Temporary; for debugging. See Parser::SkipLazyFunctionBody. TODO(marja): |
| 855 // remove this once done. |
| 856 ScriptCompiler::CompileOptions debug_saved_compile_options_; |
| 853 }; | 857 }; |
| 854 | 858 |
| 855 | 859 |
| 856 bool ParserTraits::IsFutureStrictReserved( | 860 bool ParserTraits::IsFutureStrictReserved( |
| 857 const AstRawString* identifier) const { | 861 const AstRawString* identifier) const { |
| 858 return identifier->IsOneByteEqualTo("yield") || | 862 return identifier->IsOneByteEqualTo("yield") || |
| 859 parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); | 863 parser_->scanner()->IdentifierIsFutureStrictReserved(identifier); |
| 860 } | 864 } |
| 861 | 865 |
| 862 | 866 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 private: | 925 private: |
| 922 static const int kLiteralTypeSlot = 0; | 926 static const int kLiteralTypeSlot = 0; |
| 923 static const int kElementsSlot = 1; | 927 static const int kElementsSlot = 1; |
| 924 | 928 |
| 925 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 929 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 926 }; | 930 }; |
| 927 | 931 |
| 928 } } // namespace v8::internal | 932 } } // namespace v8::internal |
| 929 | 933 |
| 930 #endif // V8_PARSER_H_ | 934 #endif // V8_PARSER_H_ |
| OLD | NEW |