Index: runtime/vm/stub_code_arm.cc |
diff --git a/runtime/vm/stub_code_arm.cc b/runtime/vm/stub_code_arm.cc |
index 06e9353de914f802dfa78413ad9a9b8fdd1a6146..67b055fe8ef2098f9731cc9ed9551884054090c9 100644 |
--- a/runtime/vm/stub_code_arm.cc |
+++ b/runtime/vm/stub_code_arm.cc |
@@ -1116,6 +1116,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler, |
// Successfully allocated the object(s), now update top to point to |
// next object start and initialize the object. |
__ str(R3, Address(R5, 0)); |
+ __ BumpAllocationCount(Heap::kNew, cls.id(), R5); |
if (is_cls_parameterized) { |
// Initialize the type arguments field in the object. |