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

Unified Diff: src/top.cc

Issue 12826: RegExp stack and zone limits. (Closed)
Patch Set: Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« src/parser.cc ('K') | « src/top.h ('k') | src/zone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/top.cc
diff --git a/src/top.cc b/src/top.cc
index ace79a960ab55c5ee8536caf5bcbaa50af98cbd1..7e239ec83fd2233655f0d92c412a0f0a95d3e388 100644
--- a/src/top.cc
+++ b/src/top.cc
@@ -603,6 +603,10 @@ bool Top::MayIndexedAccess(JSObject* receiver,
}
+const char* Top::kStackOverflowMessage =
+ "Uncaught RangeError: Maximum call stack size exceeded";
+
+
Failure* Top::StackOverflow() {
HandleScope scope;
Handle<String> key = Factory::stack_overflow_symbol();
@@ -616,9 +620,7 @@ Failure* Top::StackOverflow() {
// doesn't use ReportUncaughtException to determine the location
// from where the exception occurred. It should probably be
// reworked.
- static const char* kMessage =
- "Uncaught RangeError: Maximum call stack size exceeded";
- DoThrow(*exception, NULL, kMessage);
+ DoThrow(*exception, NULL, kStackOverflowMessage);
return Failure::Exception();
}
« src/parser.cc ('K') | « src/top.h ('k') | src/zone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698