OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 return true; | 623 return true; |
624 } | 624 } |
625 return false; | 625 return false; |
626 } | 626 } |
627 void ExpectSemicolon(bool* ok); | 627 void ExpectSemicolon(bool* ok); |
628 | 628 |
629 static int Precedence(i::Token::Value tok, bool accept_IN); | 629 static int Precedence(i::Token::Value tok, bool accept_IN); |
630 | 630 |
631 void SetStrictModeViolation(i::Scanner::Location, | 631 void SetStrictModeViolation(i::Scanner::Location, |
632 const char* type, | 632 const char* type, |
633 bool *ok); | 633 bool* ok); |
634 | 634 |
635 void CheckDelayedStrictModeViolation(int beg_pos, int end_pos, bool* ok); | 635 void CheckDelayedStrictModeViolation(int beg_pos, int end_pos, bool* ok); |
636 | 636 |
637 void StrictModeIdentifierViolation(i::Scanner::Location, | 637 void StrictModeIdentifierViolation(i::Scanner::Location, |
638 const char* eval_args_type, | 638 const char* eval_args_type, |
639 Identifier identifier, | 639 Identifier identifier, |
640 bool* ok); | 640 bool* ok); |
641 | 641 |
642 i::Scanner* scanner_; | 642 i::Scanner* scanner_; |
643 i::ParserRecorder* log_; | 643 i::ParserRecorder* log_; |
644 Scope* scope_; | 644 Scope* scope_; |
645 uintptr_t stack_limit_; | 645 uintptr_t stack_limit_; |
646 i::Scanner::Location strict_mode_violation_location_; | 646 i::Scanner::Location strict_mode_violation_location_; |
647 const char* strict_mode_violation_type_; | 647 const char* strict_mode_violation_type_; |
648 bool stack_overflow_; | 648 bool stack_overflow_; |
649 bool allow_lazy_; | 649 bool allow_lazy_; |
650 bool allow_natives_syntax_; | 650 bool allow_natives_syntax_; |
651 bool parenthesized_function_; | 651 bool parenthesized_function_; |
652 bool harmony_scoping_; | 652 bool harmony_scoping_; |
653 }; | 653 }; |
654 } } // v8::preparser | 654 } } // v8::preparser |
655 | 655 |
656 #endif // V8_PREPARSER_H | 656 #endif // V8_PREPARSER_H |
OLD | NEW |