Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |