| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 | 148 |
| 149 class PreParserApi { | 149 class PreParserApi { |
| 150 public: | 150 public: |
| 151 // Pre-parse a character stream and return full preparse data. | 151 // Pre-parse a character stream and return full preparse data. |
| 152 // | 152 // |
| 153 // This interface is here instead of in preparser.h because it instantiates a | 153 // This interface is here instead of in preparser.h because it instantiates a |
| 154 // preparser recorder object that is suited to the parser's purposes. Also, | 154 // preparser recorder object that is suited to the parser's purposes. Also, |
| 155 // the preparser doesn't know about ScriptDataImpl. | 155 // the preparser doesn't know about ScriptDataImpl. |
| 156 static ScriptDataImpl* PreParse(Isolate* isolate, | 156 static ScriptDataImpl* PreParse(Isolate* isolate, |
| 157 Utf16CharacterStream* source); | 157 Handle<String> source); |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 | 160 |
| 161 // ---------------------------------------------------------------------------- | 161 // ---------------------------------------------------------------------------- |
| 162 // REGEXP PARSING | 162 // REGEXP PARSING |
| 163 | 163 |
| 164 // A BufferedZoneList is an automatically growing list, just like (and backed | 164 // A BufferedZoneList is an automatically growing list, just like (and backed |
| 165 // by) a ZoneList, that is optimized for the case of adding and removing | 165 // by) a ZoneList, that is optimized for the case of adding and removing |
| 166 // a single element. The last element added is stored outside the backing list, | 166 // a single element. The last element added is stored outside the backing list, |
| 167 // and if no more than one element is ever added, the ZoneList isn't even | 167 // and if no more than one element is ever added, the ZoneList isn't even |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 private: | 814 private: |
| 815 static const int kLiteralTypeSlot = 0; | 815 static const int kLiteralTypeSlot = 0; |
| 816 static const int kElementsSlot = 1; | 816 static const int kElementsSlot = 1; |
| 817 | 817 |
| 818 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 818 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 819 }; | 819 }; |
| 820 | 820 |
| 821 } } // namespace v8::internal | 821 } } // namespace v8::internal |
| 822 | 822 |
| 823 #endif // V8_PARSER_H_ | 823 #endif // V8_PARSER_H_ |
| OLD | NEW |