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

Unified Diff: runtime/vm/object.h

Issue 10882055: Put live register bits in stackmaps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 78ef1c46e80e35cfe23bf00a7480691b4275a4ad..9b8c1eac63a80d06fa8f94403495a9f33b657576 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -2360,6 +2360,11 @@ class Stackmap : public Object {
uword PC() const { return raw_ptr()->pc_; }
void SetPC(uword value) const { raw_ptr()->pc_ = value; }
+ intptr_t RegisterCount() const { return raw_ptr()->register_count_; }
+ void SetRegisterCount(intptr_t register_count) const {
+ raw_ptr()->register_count_ = register_count;
+ }
+
static const intptr_t kMaxLengthInBytes = kSmiMax;
static intptr_t InstanceSize() {
@@ -2373,7 +2378,9 @@ class Stackmap : public Object {
Utils::RoundUp(length, kBitsPerByte) / kBitsPerByte;
return RoundedAllocationSize(sizeof(RawStackmap) + payload_size);
}
- static RawStackmap* New(intptr_t pc_offset, BitmapBuilder* bmap);
+ static RawStackmap* New(intptr_t pc_offset,
+ BitmapBuilder* bmap,
+ intptr_t register_count);
private:
void SetLength(intptr_t length) const { raw_ptr()->length_ = length; }

Powered by Google App Engine
This is Rietveld 408576698