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

Unified Diff: src/zone-inl.h

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/zone.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone-inl.h
diff --git a/src/zone-inl.h b/src/zone-inl.h
index 7ed4e6b3d4ce2ea7cfcd136868fe4fc95299605e..6e64c42cc2ae7e883e2ec16a3a58b05043d66b2f 100644
--- a/src/zone-inl.h
+++ b/src/zone-inl.h
@@ -48,6 +48,11 @@ inline void* Zone::New(int size) {
}
+bool Zone::excess_allocation() {
+ return segment_bytes_allocated_ > zone_excess_limit_;
+}
+
+
} } // namespace v8::internal
#endif // V8_ZONE_INL_H_
« src/parser.cc ('K') | « src/zone.cc ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698