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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 | 147 |
148 bool ParseRegExp(FlatStringReader* input, | 148 bool ParseRegExp(FlatStringReader* input, |
149 bool multiline, | 149 bool multiline, |
150 RegExpCompileData* result); | 150 RegExpCompileData* result); |
151 | 151 |
152 | 152 |
153 // Support for doing lazy compilation. The script is the script containing full | 153 // Support for doing lazy compilation. The script is the script containing full |
154 // source of the script where the function is declared. The start_position and | 154 // source of the script where the function is declared. The start_position and |
155 // end_position specifies the part of the script source which has the source | 155 // end_position specifies the part of the script source which has the source |
156 // for the function decleration in the form: | 156 // for the function declaration in the form: |
157 // | 157 // |
158 // (<formal parameters>) { <function body> } | 158 // (<formal parameters>) { <function body> } |
159 // | 159 // |
160 // without any function keyword or name. | 160 // without any function keyword or name. |
161 // | 161 // |
162 FunctionLiteral* MakeLazyAST(Handle<Script> script, | 162 FunctionLiteral* MakeLazyAST(Handle<Script> script, |
163 Handle<String> name, | 163 Handle<String> name, |
164 int start_position, | 164 int start_position, |
165 int end_position, | 165 int end_position, |
166 bool is_expression); | 166 bool is_expression); |
167 | 167 |
168 } } // namespace v8::internal | 168 } } // namespace v8::internal |
169 | 169 |
170 #endif // V8_PARSER_H_ | 170 #endif // V8_PARSER_H_ |
OLD | NEW |