Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 7820) |
+++ src/heap.h (working copy) |
@@ -1214,6 +1214,11 @@ |
GCTracer* tracer() { return tracer_; } |
+ double total_regexp_code_generated() { return total_regexp_code_generated_; } |
+ void IncreaseTotalRegexpCodeGenerated(int size) { |
+ total_regexp_code_generated_ += size; |
+ } |
+ |
// Returns maximum GC pause. |
int get_max_gc_pause() { return max_gc_pause_; } |
@@ -1497,6 +1502,9 @@ |
SharedFunctionInfo* shared, |
Object* prototype); |
+ // Total RegExp code ever generated |
+ double total_regexp_code_generated_; |
+ |
GCTracer* tracer_; |