OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 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 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 // Implementation of Parser | 1432 // Implementation of Parser |
1433 | 1433 |
1434 Parser::Parser(Handle<Script> script, | 1434 Parser::Parser(Handle<Script> script, |
1435 bool allow_natives_syntax, | 1435 bool allow_natives_syntax, |
1436 v8::Extension* extension, | 1436 v8::Extension* extension, |
1437 ParserMode is_pre_parsing, | 1437 ParserMode is_pre_parsing, |
1438 ParserFactory* factory, | 1438 ParserFactory* factory, |
1439 ParserLog* log, | 1439 ParserLog* log, |
1440 ScriptDataImpl* pre_data) | 1440 ScriptDataImpl* pre_data) |
1441 : script_(script), | 1441 : script_(script), |
1442 scanner_(is_pre_parsing), | 1442 scanner_(), |
1443 top_scope_(NULL), | 1443 top_scope_(NULL), |
1444 with_nesting_level_(0), | 1444 with_nesting_level_(0), |
1445 temp_scope_(NULL), | 1445 temp_scope_(NULL), |
1446 target_stack_(NULL), | 1446 target_stack_(NULL), |
1447 allow_natives_syntax_(allow_natives_syntax), | 1447 allow_natives_syntax_(allow_natives_syntax), |
1448 extension_(extension), | 1448 extension_(extension), |
1449 factory_(factory), | 1449 factory_(factory), |
1450 log_(log), | 1450 log_(log), |
1451 is_pre_parsing_(is_pre_parsing == PREPARSE), | 1451 is_pre_parsing_(is_pre_parsing == PREPARSE), |
1452 pre_data_(pre_data), | 1452 pre_data_(pre_data), |
(...skipping 4117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5570 parser.ParseLazy(script_source, name, | 5570 parser.ParseLazy(script_source, name, |
5571 start_position, end_position, is_expression); | 5571 start_position, end_position, is_expression); |
5572 return result; | 5572 return result; |
5573 } | 5573 } |
5574 | 5574 |
5575 | 5575 |
5576 #undef NEW | 5576 #undef NEW |
5577 | 5577 |
5578 | 5578 |
5579 } } // namespace v8::internal | 5579 } } // namespace v8::internal |
OLD | NEW |