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

Side by Side Diff: src/parser.h

Issue 98293004: Experimental scanner: support preparsing API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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/api.cc ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 148
149 class PreParserApi { 149 class PreParserApi {
150 public: 150 public:
151 // Pre-parse a character stream and return full preparse data. 151 // Pre-parse a character stream and return full preparse data.
152 // 152 //
153 // This interface is here instead of in preparser.h because it instantiates a 153 // This interface is here instead of in preparser.h because it instantiates a
154 // preparser recorder object that is suited to the parser's purposes. Also, 154 // preparser recorder object that is suited to the parser's purposes. Also,
155 // the preparser doesn't know about ScriptDataImpl. 155 // the preparser doesn't know about ScriptDataImpl.
156 static ScriptDataImpl* PreParse(Isolate* isolate, 156 static ScriptDataImpl* PreParse(Isolate* isolate,
157 Utf16CharacterStream* source); 157 Handle<String> source);
158 }; 158 };
159 159
160 160
161 // ---------------------------------------------------------------------------- 161 // ----------------------------------------------------------------------------
162 // REGEXP PARSING 162 // REGEXP PARSING
163 163
164 // A BufferedZoneList is an automatically growing list, just like (and backed 164 // A BufferedZoneList is an automatically growing list, just like (and backed
165 // by) a ZoneList, that is optimized for the case of adding and removing 165 // by) a ZoneList, that is optimized for the case of adding and removing
166 // a single element. The last element added is stored outside the backing list, 166 // a single element. The last element added is stored outside the backing list,
167 // and if no more than one element is ever added, the ZoneList isn't even 167 // and if no more than one element is ever added, the ZoneList isn't even
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 private: 814 private:
815 static const int kLiteralTypeSlot = 0; 815 static const int kLiteralTypeSlot = 0;
816 static const int kElementsSlot = 1; 816 static const int kElementsSlot = 1;
817 817
818 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 818 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
819 }; 819 };
820 820
821 } } // namespace v8::internal 821 } } // namespace v8::internal
822 822
823 #endif // V8_PARSER_H_ 823 #endif // V8_PARSER_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698