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

Side by Side Diff: src/parser.cc

Issue 2493002: - Remove [static] from methods in Zone and associated helpers. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 6 months 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 4275 matching lines...) Expand 10 before | Expand all | Expand 10 after
4286 return kEndMarker; 4286 return kEndMarker;
4287 } 4287 }
4288 } 4288 }
4289 4289
4290 4290
4291 void RegExpParser::Advance() { 4291 void RegExpParser::Advance() {
4292 if (next_pos_ < in()->length()) { 4292 if (next_pos_ < in()->length()) {
4293 StackLimitCheck check; 4293 StackLimitCheck check;
4294 if (check.HasOverflowed()) { 4294 if (check.HasOverflowed()) {
4295 ReportError(CStrVector(Top::kStackOverflowMessage)); 4295 ReportError(CStrVector(Top::kStackOverflowMessage));
4296 } else if (Zone::excess_allocation()) { 4296 } else if (ZONE->excess_allocation()) {
4297 ReportError(CStrVector("Regular expression too large")); 4297 ReportError(CStrVector("Regular expression too large"));
4298 } else { 4298 } else {
4299 current_ = in()->Get(next_pos_); 4299 current_ = in()->Get(next_pos_);
4300 next_pos_++; 4300 next_pos_++;
4301 } 4301 }
4302 } else { 4302 } else {
4303 current_ = kEndMarker; 4303 current_ = kEndMarker;
4304 has_more_ = false; 4304 has_more_ = false;
4305 } 4305 }
4306 } 4306 }
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
5176 parser.ParseLazy(script_source, name, 5176 parser.ParseLazy(script_source, name,
5177 start_position, end_position, is_expression); 5177 start_position, end_position, is_expression);
5178 return result; 5178 return result;
5179 } 5179 }
5180 5180
5181 5181
5182 #undef NEW 5182 #undef NEW
5183 5183
5184 5184
5185 } } // namespace v8::internal 5185 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698