| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 // Check if the given string is 'eval' or 'arguments'. | 579 // Check if the given string is 'eval' or 'arguments'. |
| 580 bool IsEvalOrArguments(Handle<String> string); | 580 bool IsEvalOrArguments(Handle<String> string); |
| 581 | 581 |
| 582 // All ParseXXX functions take as the last argument an *ok parameter | 582 // All ParseXXX functions take as the last argument an *ok parameter |
| 583 // which is set to false if parsing failed; it is unchanged otherwise. | 583 // which is set to false if parsing failed; it is unchanged otherwise. |
| 584 // By making the 'exception handling' explicit, we are forced to check | 584 // By making the 'exception handling' explicit, we are forced to check |
| 585 // for failure at the call sites. | 585 // for failure at the call sites. |
| 586 void* ParseSourceElements(ZoneList<Statement*>* processor, | 586 void* ParseSourceElements(ZoneList<Statement*>* processor, |
| 587 int end_token, bool is_eval, bool* ok); | 587 int end_token, bool is_eval, bool* ok); |
| 588 Statement* ParseModuleElement(ZoneStringList* labels, bool* ok); | 588 Statement* ParseModuleElement(ZoneStringList* labels, bool* ok); |
| 589 Block* ParseModuleDeclaration(ZoneStringList* names, bool* ok); | 589 Statement* ParseModuleDeclaration(ZoneStringList* names, bool* ok); |
| 590 Module* ParseModule(bool* ok); | 590 Module* ParseModule(bool* ok); |
| 591 Module* ParseModuleLiteral(bool* ok); | 591 Module* ParseModuleLiteral(bool* ok); |
| 592 Module* ParseModulePath(bool* ok); | 592 Module* ParseModulePath(bool* ok); |
| 593 Module* ParseModuleVariable(bool* ok); | 593 Module* ParseModuleVariable(bool* ok); |
| 594 Module* ParseModuleUrl(bool* ok); | 594 Module* ParseModuleUrl(bool* ok); |
| 595 Module* ParseModuleSpecifier(bool* ok); | 595 Module* ParseModuleSpecifier(bool* ok); |
| 596 Block* ParseImportDeclaration(bool* ok); | 596 Block* ParseImportDeclaration(bool* ok); |
| 597 Statement* ParseExportDeclaration(bool* ok); | 597 Statement* ParseExportDeclaration(bool* ok); |
| 598 Statement* ParseBlockElement(ZoneStringList* labels, bool* ok); | 598 Statement* ParseBlockElement(ZoneStringList* labels, bool* ok); |
| 599 Statement* ParseStatement(ZoneStringList* labels, bool* ok); | 599 Statement* ParseStatement(ZoneStringList* labels, bool* ok); |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 private: | 871 private: |
| 872 static const int kTypeSlot = 0; | 872 static const int kTypeSlot = 0; |
| 873 static const int kElementsSlot = 1; | 873 static const int kElementsSlot = 1; |
| 874 | 874 |
| 875 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 875 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 876 }; | 876 }; |
| 877 | 877 |
| 878 } } // namespace v8::internal | 878 } } // namespace v8::internal |
| 879 | 879 |
| 880 #endif // V8_PARSER_H_ | 880 #endif // V8_PARSER_H_ |
| OLD | NEW |