| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // nodes) if parsing failed. | 167 // nodes) if parsing failed. |
| 168 static bool Parse(CompilationInfo* info); | 168 static bool Parse(CompilationInfo* info); |
| 169 | 169 |
| 170 // Generic preparser generating full preparse data. | 170 // Generic preparser generating full preparse data. |
| 171 static ScriptDataImpl* PreParse(UC16CharacterStream* source, | 171 static ScriptDataImpl* PreParse(UC16CharacterStream* source, |
| 172 v8::Extension* extension, | 172 v8::Extension* extension, |
| 173 int flags); | 173 int flags); |
| 174 | 174 |
| 175 // Preparser that only does preprocessing that makes sense if only used | 175 // Preparser that only does preprocessing that makes sense if only used |
| 176 // immediately after. | 176 // immediately after. |
| 177 static ScriptDataImpl* PartialPreParse(UC16CharacterStream* source, | 177 static ScriptDataImpl* PartialPreParse(Handle<String> source, |
| 178 v8::Extension* extension, | 178 v8::Extension* extension, |
| 179 int flags); | 179 int flags); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 // ---------------------------------------------------------------------------- | 182 // ---------------------------------------------------------------------------- |
| 183 // REGEXP PARSING | 183 // REGEXP PARSING |
| 184 | 184 |
| 185 // A BuffferedZoneList is an automatically growing list, just like (and backed | 185 // A BuffferedZoneList is an automatically growing list, just like (and backed |
| 186 // by) a ZoneList, that is optimized for the case of adding and removing | 186 // by) a ZoneList, that is optimized for the case of adding and removing |
| 187 // a single element. The last element added is stored outside the backing list, | 187 // a single element. The last element added is stored outside the backing list, |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 private: | 778 private: |
| 779 static const int kTypeSlot = 0; | 779 static const int kTypeSlot = 0; |
| 780 static const int kElementsSlot = 1; | 780 static const int kElementsSlot = 1; |
| 781 | 781 |
| 782 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 782 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 783 }; | 783 }; |
| 784 | 784 |
| 785 } } // namespace v8::internal | 785 } } // namespace v8::internal |
| 786 | 786 |
| 787 #endif // V8_PARSER_H_ | 787 #endif // V8_PARSER_H_ |
| OLD | NEW |