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

Unified Diff: runtime/vm/stub_code_mips.cc

Issue 51653006: Track live instance and allocation counts for classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: runtime/vm/stub_code_mips.cc
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc
index ed6a0f3745be69376659dae3e5901a1b85b5c5d9..87f5c486a6c84bcd395ad64e4d67ab04a9d9fd58 100644
--- a/runtime/vm/stub_code_mips.cc
+++ b/runtime/vm/stub_code_mips.cc
@@ -1361,6 +1361,7 @@ void StubCode::GenerateAllocationStubForClass(Assembler* assembler,
// Set the type arguments in the new object.
__ sw(T1, Address(T2, cls.type_arguments_field_offset()));
}
+ __ BumpAllocationCount(Heap::kNew, cls.id(), T5);
// Done allocating and initializing the instance.
// T2: new object still missing its heap tag.
__ Ret();

Powered by Google App Engine
This is Rietveld 408576698