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

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, 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
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/assembler_arm.cc » ('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 c5971e5b2c14db0c4a275decd4a43c7f3d1ca52c..ecf7899a3692135cd2330c59cc9b48c7c10d097f 100644
--- a/runtime/vm/assembler_arm.h
+++ b/runtime/vm/assembler_arm.h
@@ -729,13 +729,23 @@ class Assembler : public ValueObject {
// RawInstruction object corresponding to the code running in the frame.
static const intptr_t kEntryPointToPcMarkerOffset = Instr::kPCReadOffset;
+ void BumpAllocationCount(Heap::Space space,
+ intptr_t cid,
+ Register temp_reg);
+
+ void BumpAllocationCount(Heap::Space space,
+ intptr_t cid,
+ Register size_reg,
+ Register temp_reg);
srdjan 2013/12/12 15:52:32 I find method overloading leads easily to typos, a
Cutch 2013/12/13 01:31:09 Done.
+
// 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/assembler_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698