| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 Literal* GetLiteralUndefined(); | 606 Literal* GetLiteralUndefined(); |
| 607 Literal* GetLiteralTheHole(); | 607 Literal* GetLiteralTheHole(); |
| 608 Literal* GetLiteralNumber(double value); | 608 Literal* GetLiteralNumber(double value); |
| 609 | 609 |
| 610 Handle<String> ParseIdentifier(bool* ok); | 610 Handle<String> ParseIdentifier(bool* ok); |
| 611 Handle<String> ParseIdentifierName(bool* ok); | 611 Handle<String> ParseIdentifierName(bool* ok); |
| 612 Handle<String> ParseIdentifierOrGetOrSet(bool* is_get, | 612 Handle<String> ParseIdentifierOrGetOrSet(bool* is_get, |
| 613 bool* is_set, | 613 bool* is_set, |
| 614 bool* ok); | 614 bool* ok); |
| 615 | 615 |
| 616 // Strict mode octal literal validation. |
| 617 void CheckOctalLiteral(int beg_pos, int end_pos, bool* ok); |
| 618 |
| 616 // Parser support | 619 // Parser support |
| 617 VariableProxy* Declare(Handle<String> name, Variable::Mode mode, | 620 VariableProxy* Declare(Handle<String> name, Variable::Mode mode, |
| 618 FunctionLiteral* fun, | 621 FunctionLiteral* fun, |
| 619 bool resolve, | 622 bool resolve, |
| 620 bool* ok); | 623 bool* ok); |
| 621 | 624 |
| 622 bool TargetStackContainsLabel(Handle<String> label); | 625 bool TargetStackContainsLabel(Handle<String> label); |
| 623 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); | 626 BreakableStatement* LookupBreakTarget(Handle<String> label, bool* ok); |
| 624 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); | 627 IterationStatement* LookupContinueTarget(Handle<String> label, bool* ok); |
| 625 | 628 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); } | 777 Handle<Object> ReportUnexpectedToken() { return Handle<Object>::null(); } |
| 775 // Converts the currently parsed literal to a JavaScript String. | 778 // Converts the currently parsed literal to a JavaScript String. |
| 776 Handle<String> GetString(); | 779 Handle<String> GetString(); |
| 777 | 780 |
| 778 JsonScanner scanner_; | 781 JsonScanner scanner_; |
| 779 bool stack_overflow_; | 782 bool stack_overflow_; |
| 780 }; | 783 }; |
| 781 } } // namespace v8::internal | 784 } } // namespace v8::internal |
| 782 | 785 |
| 783 #endif // V8_PARSER_H_ | 786 #endif // V8_PARSER_H_ |
| OLD | NEW |