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

Unified Diff: runtime/vm/assembler_ia32.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 7 years 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/assembler_ia32.h
diff --git a/runtime/vm/assembler_ia32.h b/runtime/vm/assembler_ia32.h
index 37d4b9c0ebf51a2be023a7e7bb4f82d719086a20..04902abe3314dda05ad959c6cc4b9ce9d201e596 100644
--- a/runtime/vm/assembler_ia32.h
+++ b/runtime/vm/assembler_ia32.h
@@ -765,14 +765,24 @@ class Assembler : public ValueObject {
// L:
static const intptr_t kEntryPointToPcMarkerOffset = 8;
+ 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,
- bool near_jump,
- Register instance_reg);
+ Label* failure,
+ bool near_jump,
+ Register instance_reg,
+ Register temp_reg);
// Debugging and bringup support.
void Stop(const char* message);

Powered by Google App Engine
This is Rietveld 408576698