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

Unified Diff: src/zone.h

Issue 12866: Fixed regexp zone issue (Closed)
Patch Set: Created 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/v8-counters.h ('k') | src/zone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone.h
diff --git a/src/zone.h b/src/zone.h
index 9721b0724b9324e6b9063753b58bb042d426bca3..612819e5425bc40b16f5666b62b019b9ce52b2c8 100644
--- a/src/zone.h
+++ b/src/zone.h
@@ -65,8 +65,9 @@ class Zone {
// the limit allows.
static inline bool excess_allocation();
+ static inline void adjust_segment_bytes_allocated(int delta);
+
private:
- friend class Segment;
// All pointers returned from New() have this alignment.
static const int kAlignment = kPointerSize;
@@ -183,6 +184,8 @@ class ZoneScope BASE_EMBEDDED {
mode_ = DELETE_ON_EXIT;
}
+ static int nesting() { return nesting_; }
+
private:
ZoneScopeMode mode_;
static int nesting_;
« no previous file with comments | « src/v8-counters.h ('k') | src/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698