OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 FunctionLiteral* MakeAST(bool compile_in_global_context, | 138 FunctionLiteral* MakeAST(bool compile_in_global_context, |
139 Handle<Script> script, | 139 Handle<Script> script, |
140 v8::Extension* extension, | 140 v8::Extension* extension, |
141 ScriptDataImpl* pre_data); | 141 ScriptDataImpl* pre_data); |
142 | 142 |
143 | 143 |
144 ScriptDataImpl* PreParse(unibrow::CharacterStream* stream, | 144 ScriptDataImpl* PreParse(unibrow::CharacterStream* stream, |
145 v8::Extension* extension); | 145 v8::Extension* extension); |
146 | 146 |
147 | 147 |
| 148 bool ParseRegExp(FlatStringReader* input, RegExpParseResult* result); |
| 149 |
| 150 |
148 // Support for doing lazy compilation. The script is the script containing full | 151 // Support for doing lazy compilation. The script is the script containing full |
149 // source of the script where the function is declared. The start_position and | 152 // source of the script where the function is declared. The start_position and |
150 // end_position specifies the part of the script source which has the source | 153 // end_position specifies the part of the script source which has the source |
151 // for the function decleration in the form: | 154 // for the function decleration in the form: |
152 // | 155 // |
153 // (<formal parameters>) { <function body> } | 156 // (<formal parameters>) { <function body> } |
154 // | 157 // |
155 // without any function keyword or name. | 158 // without any function keyword or name. |
156 // | 159 // |
157 FunctionLiteral* MakeLazyAST(Handle<Script> script, | 160 FunctionLiteral* MakeLazyAST(Handle<Script> script, |
158 Handle<String> name, | 161 Handle<String> name, |
159 int start_position, | 162 int start_position, |
160 int end_position, | 163 int end_position, |
161 bool is_expression); | 164 bool is_expression); |
162 | 165 |
163 } } // namespace v8::internal | 166 } } // namespace v8::internal |
164 | 167 |
165 #endif // V8_PARSER_H_ | 168 #endif // V8_PARSER_H_ |
OLD | NEW |