Index: src/jsregexp.h |
diff --git a/src/jsregexp.h b/src/jsregexp.h |
index c65adea4c5cf04d6e92f02642b4eb7ee44fa36df..c81ccb21d8f845935fedbd7cd0ff7a5fdf01790a 100644 |
--- a/src/jsregexp.h |
+++ b/src/jsregexp.h |
@@ -213,7 +213,8 @@ class RegExpImpl { |
// total regexp code compiled including code that has subsequently been freed |
// and the total executable memory at any point. |
static const int kRegExpExecutableMemoryLimit = 16 * MB; |
- static const int kRegWxpCompiledLimit = 1 * MB; |
+ static const int kRegExpCompiledLimit = 1 * MB; |
+ static const int kRegExpTooLargeToOptimize = 10 * KB; |
private: |
static bool CompileIrregexp(Handle<JSRegExp> re, |
@@ -1666,6 +1667,8 @@ class RegExpEngine: public AllStatic { |
Handle<String> sample_subject, |
bool is_one_byte, Zone* zone); |
+ static bool TooMuchRegExpCode(Handle<String> pattern); |
+ |
static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
}; |