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

Unified Diff: runtime/vm/assembler_mips.h

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 6 years, 11 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 | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.h
diff --git a/runtime/vm/assembler_mips.h b/runtime/vm/assembler_mips.h
index d30e8eeaa14ee930390bb947e1686f35ce4c9209..8a3e02c88a883e7dba0dd5bbf4151df413499e42 100644
--- a/runtime/vm/assembler_mips.h
+++ b/runtime/vm/assembler_mips.h
@@ -197,13 +197,24 @@ class Assembler : public ValueObject {
// See EnterDartFrame. There are 6 instructions before we know the PC.
static const intptr_t kEntryPointToPcMarkerOffset = 6 * Instr::kInstrSize;
+ void UpdateAllocationStats(intptr_t cid,
+ Register temp_reg,
+ Heap::Space space = Heap::kNew);
+
+ void UpdateAllocationStatsWithSize(intptr_t cid,
+ Register size_reg,
+ Register temp_reg,
+ Heap::Space space = Heap::kNew);
+
+
// Inlined allocation of an instance of class 'cls', code has no runtime
// calls. Jump to 'failure' if the instance cannot be allocated here.
// Allocated instance is returned in 'instance_reg'.
// Only the tags field of the object is initialized.
void TryAllocate(const Class& cls,
Label* failure,
- Register instance_reg);
+ Register instance_reg,
+ Register temp_reg);
// Debugging and bringup support.
void Stop(const char* message);
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698