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 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
778 SingletonLogger* logger); | 778 SingletonLogger* logger); |
779 | 779 |
780 // Consumes the ending }. | 780 // Consumes the ending }. |
781 ZoneList<Statement*>* ParseEagerFunctionBody(Handle<String> function_name, | 781 ZoneList<Statement*>* ParseEagerFunctionBody(Handle<String> function_name, |
782 int pos, | 782 int pos, |
783 Variable* fvar, | 783 Variable* fvar, |
784 Token::Value fvar_init_op, | 784 Token::Value fvar_init_op, |
785 bool is_generator, | 785 bool is_generator, |
786 bool* ok); | 786 bool* ok); |
787 | 787 |
788 void ParseSourceMapComment(); | |
yurys
2014/06/05 13:55:21
The name is a bit misleading as we actually parse
| |
789 | |
788 void ThrowPendingError(); | 790 void ThrowPendingError(); |
789 | 791 |
790 Isolate* isolate_; | 792 Isolate* isolate_; |
791 | 793 |
792 Handle<Script> script_; | 794 Handle<Script> script_; |
793 Scanner scanner_; | 795 Scanner scanner_; |
794 PreParser* reusable_preparser_; | 796 PreParser* reusable_preparser_; |
795 Scope* original_scope_; // for ES5 function declarations in sloppy eval | 797 Scope* original_scope_; // for ES5 function declarations in sloppy eval |
796 Target* target_stack_; // for break, continue statements | 798 Target* target_stack_; // for break, continue statements |
797 ScriptData** cached_data_; | 799 ScriptData** cached_data_; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
833 private: | 835 private: |
834 static const int kLiteralTypeSlot = 0; | 836 static const int kLiteralTypeSlot = 0; |
835 static const int kElementsSlot = 1; | 837 static const int kElementsSlot = 1; |
836 | 838 |
837 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 839 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
838 }; | 840 }; |
839 | 841 |
840 } } // namespace v8::internal | 842 } } // namespace v8::internal |
841 | 843 |
842 #endif // V8_PARSER_H_ | 844 #endif // V8_PARSER_H_ |
OLD | NEW |