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

Side by Side Diff: src/parser.h

Issue 3538005: Cleanup of the parser. (Closed)
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright 2006-2010 the V8 project authors. All rights reserved. 1 // Copyright 2006-2010 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ScriptDataImpl* PartialPreParse(Handle<String> source, 185 ScriptDataImpl* PartialPreParse(Handle<String> source,
186 unibrow::CharacterStream* stream, 186 unibrow::CharacterStream* stream,
187 v8::Extension* extension); 187 v8::Extension* extension);
188 188
189 189
190 bool ParseRegExp(FlatStringReader* input, 190 bool ParseRegExp(FlatStringReader* input,
191 bool multiline, 191 bool multiline,
192 RegExpCompileData* result); 192 RegExpCompileData* result);
193 193
194 194
195 // Support for doing lazy compilation. The script is the script containing full 195 // Support for doing lazy compilation.
196 // source of the script where the function is declared. The start_position and 196 FunctionLiteral* MakeLazyAST(Handle<SharedFunctionInfo> info);
Lasse Reichstein 2010/09/30 09:11:41 Thank you for removing this sentence. :)
197 // end_position specifies the part of the script source which has the source
198 // for the function declaration in the form:
199 //
200 // (<formal parameters>) { <function body> }
201 //
202 // without any function keyword or name.
203 //
204 FunctionLiteral* MakeLazyAST(Handle<Script> script,
205 Handle<String> name,
206 int start_position,
207 int end_position,
208 bool is_expression);
209 197
210 198
211 // Support for handling complex values (array and object literals) that 199 // Support for handling complex values (array and object literals) that
212 // can be fully handled at compile time. 200 // can be fully handled at compile time.
213 class CompileTimeValue: public AllStatic { 201 class CompileTimeValue: public AllStatic {
214 public: 202 public:
215 enum Type { 203 enum Type {
216 OBJECT_LITERAL_FAST_ELEMENTS, 204 OBJECT_LITERAL_FAST_ELEMENTS,
217 OBJECT_LITERAL_SLOW_ELEMENTS, 205 OBJECT_LITERAL_SLOW_ELEMENTS,
218 ARRAY_LITERAL 206 ARRAY_LITERAL
(...skipping 16 matching lines...) Expand all
235 static const int kTypeSlot = 0; 223 static const int kTypeSlot = 0;
236 static const int kElementsSlot = 1; 224 static const int kElementsSlot = 1;
237 225
238 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 226 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
239 }; 227 };
240 228
241 229
242 } } // namespace v8::internal 230 } } // namespace v8::internal
243 231
244 #endif // V8_PARSER_H_ 232 #endif // V8_PARSER_H_
OLDNEW
« src/compiler.cc ('K') | « src/compiler.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698