| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // The parser: Takes a script and and context information, and builds a | 137 // The parser: Takes a script and and context information, and builds a |
| 138 // FunctionLiteral AST node. Returns NULL and deallocates any allocated | 138 // FunctionLiteral AST node. Returns NULL and deallocates any allocated |
| 139 // AST nodes if parsing failed. | 139 // AST nodes if parsing failed. |
| 140 FunctionLiteral* MakeAST(bool compile_in_global_context, | 140 FunctionLiteral* MakeAST(bool compile_in_global_context, |
| 141 Handle<Script> script, | 141 Handle<Script> script, |
| 142 v8::Extension* extension, | 142 v8::Extension* extension, |
| 143 ScriptDataImpl* pre_data); | 143 ScriptDataImpl* pre_data); |
| 144 | 144 |
| 145 | 145 |
| 146 ScriptDataImpl* PreParse(unibrow::CharacterStream* stream, | 146 ScriptDataImpl* PreParse(Handle<String> source, |
| 147 unibrow::CharacterStream* stream, |
| 147 v8::Extension* extension); | 148 v8::Extension* extension); |
| 148 | 149 |
| 149 | 150 |
| 150 bool ParseRegExp(FlatStringReader* input, | 151 bool ParseRegExp(FlatStringReader* input, |
| 151 bool multiline, | 152 bool multiline, |
| 152 RegExpCompileData* result); | 153 RegExpCompileData* result); |
| 153 | 154 |
| 154 | 155 |
| 155 // Support for doing lazy compilation. The script is the script containing full | 156 // Support for doing lazy compilation. The script is the script containing full |
| 156 // source of the script where the function is declared. The start_position and | 157 // source of the script where the function is declared. The start_position and |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 static const int kTypeSlot = 0; | 193 static const int kTypeSlot = 0; |
| 193 static const int kElementsSlot = 1; | 194 static const int kElementsSlot = 1; |
| 194 | 195 |
| 195 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 196 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 196 }; | 197 }; |
| 197 | 198 |
| 198 | 199 |
| 199 } } // namespace v8::internal | 200 } } // namespace v8::internal |
| 200 | 201 |
| 201 #endif // V8_PARSER_H_ | 202 #endif // V8_PARSER_H_ |
| OLD | NEW |