Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index f5b99d6e53dd28d794baac7b99807eeb90d8fb08..850c1327a1fa8f183d50ce364f9089c2d10061b3 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -1660,6 +1660,22 @@ class Heap { |
total_regexp_code_generated_ += size; |
} |
+ void IncrementCodeGeneratedBytes(bool is_crankshafted, int size) { |
+ if (is_crankshafted) { |
+ crankshaft_codegen_bytes_ += size; |
+ } else { |
+ full_codegen_bytes_ += size; |
+ } |
+ } |
+ |
+ void DecrementCodeGeneratedBytes(bool is_crankshafted, int size) { |
+ if (is_crankshafted) { |
+ crankshaft_codegen_bytes_ -= size; |
+ } else { |
+ full_codegen_bytes_ -= size; |
+ } |
+ } |
+ |
// Returns maximum GC pause. |
double get_max_gc_pause() { return max_gc_pause_; } |
@@ -2355,6 +2371,9 @@ class Heap { |
unsigned int gc_count_at_last_idle_gc_; |
int scavenges_since_last_idle_round_; |
+ intptr_t full_codegen_bytes_; |
Michael Starzinger
2013/10/14 09:18:37
nit: I know the existing code is not consistent ab
rmcilroy
2013/10/14 13:29:53
Done.
|
+ intptr_t crankshaft_codegen_bytes_; |
+ |
// If the --deopt_every_n_garbage_collections flag is set to a positive value, |
// this variable holds the number of garbage collections since the last |
// deoptimization triggered by garbage collection. |