Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: src/parser.h

Issue 8725001: Reapply "Fix the ScopeIterator reimplementation". (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use BreakLocationIterator to discover break at return. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // nodes) if parsing failed. 171 // nodes) if parsing failed.
172 static bool Parse(CompilationInfo* info, int flags); 172 static bool Parse(CompilationInfo* info, int flags);
173 173
174 // Generic preparser generating full preparse data. 174 // Generic preparser generating full preparse data.
175 static ScriptDataImpl* PreParse(UC16CharacterStream* source, 175 static ScriptDataImpl* PreParse(UC16CharacterStream* source,
176 v8::Extension* extension, 176 v8::Extension* extension,
177 int flags); 177 int flags);
178 178
179 // Preparser that only does preprocessing that makes sense if only used 179 // Preparser that only does preprocessing that makes sense if only used
180 // immediately after. 180 // immediately after.
181 static ScriptDataImpl* PartialPreParse(UC16CharacterStream* source, 181 static ScriptDataImpl* PartialPreParse(Handle<String> source,
182 v8::Extension* extension, 182 v8::Extension* extension,
183 int flags); 183 int flags);
184 }; 184 };
185 185
186 // ---------------------------------------------------------------------------- 186 // ----------------------------------------------------------------------------
187 // REGEXP PARSING 187 // REGEXP PARSING
188 188
189 // A BuffferedZoneList is an automatically growing list, just like (and backed 189 // A BuffferedZoneList is an automatically growing list, just like (and backed
190 // by) a ZoneList, that is optimized for the case of adding and removing 190 // by) a ZoneList, that is optimized for the case of adding and removing
191 // a single element. The last element added is stored outside the backing list, 191 // a single element. The last element added is stored outside the backing list,
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 private: 795 private:
796 static const int kTypeSlot = 0; 796 static const int kTypeSlot = 0;
797 static const int kElementsSlot = 1; 797 static const int kElementsSlot = 1;
798 798
799 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); 799 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue);
800 }; 800 };
801 801
802 } } // namespace v8::internal 802 } } // namespace v8::internal
803 803
804 #endif // V8_PARSER_H_ 804 #endif // V8_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698