Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: src/parser.h

Issue 316173002: Handle "//# sourceURL" comments in the Parser instead of the JS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: yet another trivial rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698