Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 8431) |
+++ src/heap.h (working copy) |
@@ -1254,6 +1254,11 @@ |
return &external_string_table_; |
} |
+ // Returns the current sweep generation. |
+ int sweep_generation() { |
+ return sweep_generation_; |
+ } |
+ |
inline Isolate* isolate(); |
bool is_safe_to_read_maps() { return is_safe_to_read_maps_; } |
@@ -1283,6 +1288,9 @@ |
// scavenge since last new space expansion. |
int survived_since_last_expansion_; |
+ // For keeping track on when to flush RegExp code. |
+ int sweep_generation_; |
+ |
int always_allocate_scope_depth_; |
int linear_allocation_scope_depth_; |