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

Unified Diff: src/heap/heap.h

Issue 2684233004: [heap] Remove dead counters and move regexp code counter to Isolate (Closed)
Patch Set: Fix compilation Created 3 years, 10 months 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/codegen.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 6bef83e248204b819df0074f3eab9b929b2658de..ff4dcdf0386a248f903f9b605e463eb3bf97dba4 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1424,19 +1424,6 @@ class Heap {
// Returns the size of objects residing in non new spaces.
size_t PromotedSpaceSizeOfObjects();
- double total_regexp_code_generated() { return total_regexp_code_generated_; }
- void IncreaseTotalRegexpCodeGenerated(int size) {
- 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;
- }
- }
-
// ===========================================================================
// Prologue/epilogue callback methods.========================================
// ===========================================================================
@@ -2255,9 +2242,6 @@ class Heap {
List<GCCallbackPair> gc_epilogue_callbacks_;
List<GCCallbackPair> gc_prologue_callbacks_;
- // Total RegExp code ever generated
- double total_regexp_code_generated_;
-
int deferred_counters_[v8::Isolate::kUseCounterFeatureCount];
GCTracer* tracer_;
@@ -2308,10 +2292,6 @@ class Heap {
AllocationObserver* idle_scavenge_observer_;
- // These two counters are monotomically increasing and never reset.
- size_t full_codegen_bytes_generated_;
- size_t crankshaft_codegen_bytes_generated_;
-
// This counter is increased before each GC and never reset.
// To account for the bytes allocated since the last GC, use the
// NewSpaceAllocationCounter() function.
« no previous file with comments | « src/codegen.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698