| 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;
|
|
|