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

Unified Diff: runtime/vm/pages.cc

Issue 11299247: Increment CompilerStats::code_allocated when allocating in executable pages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « runtime/vm/heap.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.cc
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc
index e6c4b378145fa7f96fe5a9423f9d279ab6a834e6..68a0530a83b9ad1cfe4b2f20118e576c574cfd32 100644
--- a/runtime/vm/pages.cc
+++ b/runtime/vm/pages.cc
@@ -5,6 +5,7 @@
#include "vm/pages.h"
#include "platform/assert.h"
+#include "vm/compiler_stats.h"
#include "vm/gc_marker.h"
#include "vm/gc_sweeper.h"
#include "vm/object.h"
@@ -237,6 +238,9 @@ uword PageSpace::TryAllocate(intptr_t size,
}
if (result != 0) {
in_use_ += size;
+ if (FLAG_compiler_stats && (type == HeapPage::kExecutable)) {
+ CompilerStats::code_allocated += size;
+ }
}
ASSERT((result & kObjectAlignmentMask) == kOldObjectAlignmentOffset);
return result;
« no previous file with comments | « runtime/vm/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698