| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 i::UnicodeCache* unicode_constants_; | 98 i::UnicodeCache* unicode_constants_; |
| 99 // Backing store used to store strings used as hashmap keys. | 99 // Backing store used to store strings used as hashmap keys. |
| 100 i::SequenceCollector<unsigned char> backing_store_; | 100 i::SequenceCollector<unsigned char> backing_store_; |
| 101 i::HashMap map_; | 101 i::HashMap map_; |
| 102 // Buffer used for string->number->canonical string conversions. | 102 // Buffer used for string->number->canonical string conversions. |
| 103 char number_buffer_[kBufferSize]; | 103 char number_buffer_[kBufferSize]; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 | 106 |
| 107 #ifdef WIN32 | |
| 108 #undef Yield | |
| 109 #endif | |
| 110 | |
| 111 | |
| 112 class PreParser { | 107 class PreParser { |
| 113 public: | 108 public: |
| 114 enum PreParseResult { | 109 enum PreParseResult { |
| 115 kPreParseStackOverflow, | 110 kPreParseStackOverflow, |
| 116 kPreParseSuccess | 111 kPreParseSuccess |
| 117 }; | 112 }; |
| 118 | 113 |
| 119 | 114 |
| 120 PreParser(i::Scanner* scanner, | 115 PreParser(i::Scanner* scanner, |
| 121 i::ParserRecorder* log, | 116 i::ParserRecorder* log, |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 bool stack_overflow_; | 683 bool stack_overflow_; |
| 689 bool allow_lazy_; | 684 bool allow_lazy_; |
| 690 bool allow_natives_syntax_; | 685 bool allow_natives_syntax_; |
| 691 bool allow_generators_; | 686 bool allow_generators_; |
| 692 bool allow_for_of_; | 687 bool allow_for_of_; |
| 693 bool parenthesized_function_; | 688 bool parenthesized_function_; |
| 694 }; | 689 }; |
| 695 } } // v8::preparser | 690 } } // v8::preparser |
| 696 | 691 |
| 697 #endif // V8_PREPARSER_H | 692 #endif // V8_PREPARSER_H |
| OLD | NEW |