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

Unified Diff: runtime/vm/assembler_arm.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
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/class_table.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm.h
diff --git a/runtime/vm/assembler_arm.h b/runtime/vm/assembler_arm.h
index d2b51b8bc5bb66fa7cbe0a3c1d489fc24e0e918a..997aea0ffd47b6e1ee10345aa4b358d26942826a 100644
--- a/runtime/vm/assembler_arm.h
+++ b/runtime/vm/assembler_arm.h
@@ -734,13 +734,23 @@ class Assembler : public ValueObject {
// RawInstruction object corresponding to the code running in the frame.
static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset;
+ 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);
// Emit data (e.g encoded instruction or immediate) in instruction stream.
void Emit(int32_t value);
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/class_table.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698