Chromium Code Reviews| Index: src/heap.h | 
| diff --git a/src/heap.h b/src/heap.h | 
| index f5b99d6e53dd28d794baac7b99807eeb90d8fb08..88e5180b24159fb96f447d0cc81e5ed27426e845 100644 | 
| --- a/src/heap.h | 
| +++ b/src/heap.h | 
| @@ -1660,6 +1660,14 @@ class Heap { | 
| total_regexp_code_generated_ += size; | 
| } | 
| + void IncrementCodeGeneratedBytes(bool is_crankshafted, int size) { | 
| + if (is_crankshafted) { | 
| + crankshaft_codegen_bytes_generated_ += size; | 
| + } else { | 
| + full_codegen_bytes_generated_ += size; | 
| + } | 
| + } | 
| + | 
| // Returns maximum GC pause. | 
| double get_max_gc_pause() { return max_gc_pause_; } | 
| @@ -2355,6 +2363,9 @@ class Heap { | 
| unsigned int gc_count_at_last_idle_gc_; | 
| int scavenges_since_last_idle_round_; | 
| + size_t full_codegen_bytes_generated_; | 
| 
 
Michael Starzinger
2013/10/14 13:12:57
Let's add a short one-liner comment here saying th
 
rmcilroy
2013/10/14 13:29:53
Done.
 
 | 
| + size_t crankshaft_codegen_bytes_generated_; | 
| + | 
| // 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. |