| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 bool* ok); | 789 bool* ok); |
| 790 | 790 |
| 791 PreParser::PreParseResult ParseLazyFunctionBodyWithPreParser( | 791 PreParser::PreParseResult ParseLazyFunctionBodyWithPreParser( |
| 792 SingletonLogger* logger); | 792 SingletonLogger* logger); |
| 793 | 793 |
| 794 // Consumes the ending }. | 794 // Consumes the ending }. |
| 795 ZoneList<Statement*>* ParseEagerFunctionBody( | 795 ZoneList<Statement*>* ParseEagerFunctionBody( |
| 796 const AstRawString* function_name, int pos, Variable* fvar, | 796 const AstRawString* function_name, int pos, Variable* fvar, |
| 797 Token::Value fvar_init_op, bool is_generator, bool* ok); | 797 Token::Value fvar_init_op, bool is_generator, bool* ok); |
| 798 | 798 |
| 799 void HandleSourceURLComments(); |
| 800 |
| 799 void ThrowPendingError(); | 801 void ThrowPendingError(); |
| 800 | 802 |
| 801 void InternalizeUseCounts(); | 803 void InternalizeUseCounts(); |
| 802 | 804 |
| 803 Isolate* isolate_; | 805 Isolate* isolate_; |
| 804 | 806 |
| 805 Handle<Script> script_; | 807 Handle<Script> script_; |
| 806 Scanner scanner_; | 808 Scanner scanner_; |
| 807 PreParser* reusable_preparser_; | 809 PreParser* reusable_preparser_; |
| 808 Scope* original_scope_; // for ES5 function declarations in sloppy eval | 810 Scope* original_scope_; // for ES5 function declarations in sloppy eval |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 private: | 851 private: |
| 850 static const int kLiteralTypeSlot = 0; | 852 static const int kLiteralTypeSlot = 0; |
| 851 static const int kElementsSlot = 1; | 853 static const int kElementsSlot = 1; |
| 852 | 854 |
| 853 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 855 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 854 }; | 856 }; |
| 855 | 857 |
| 856 } } // namespace v8::internal | 858 } } // namespace v8::internal |
| 857 | 859 |
| 858 #endif // V8_PARSER_H_ | 860 #endif // V8_PARSER_H_ |
| OLD | NEW |