Index: vm/object.h |
=================================================================== |
--- vm/object.h (revision 5921) |
+++ vm/object.h (working copy) |
@@ -2019,10 +2019,10 @@ |
void SetCode(const Code& code) const; |
// Return the offset of the highest stack slot that has an object. |
- intptr_t Maximum() const; |
+ intptr_t MaximumBitOffset() const { return raw_ptr()->max_set_bit_offset_; } |
// Return the offset of the lowest stack slot that has an object. |
- intptr_t Minimum() const; |
+ intptr_t MinimumBitOffset() const { return raw_ptr()->min_set_bit_offset_; } |
static intptr_t InstanceSize() { |
ASSERT(sizeof(RawStackmap) == OFFSET_OF(RawStackmap, data_)); |
@@ -2031,19 +2031,24 @@ |
static intptr_t InstanceSize(intptr_t size) { |
return RoundedAllocationSize(sizeof(RawStackmap) + (size * kWordSize)); |
} |
- static RawStackmap* New(uword pc, const Code& code, BitmapBuilder* bmap); |
+ static RawStackmap* New(uword pc, BitmapBuilder* bmap); |
private: |
inline intptr_t SizeInBits() const; |
+ void SetMinBitOffset(intptr_t value) const { |
+ raw_ptr()->min_set_bit_offset_ = value; |
+ } |
+ void SetMaxBitOffset(intptr_t value) const { |
+ raw_ptr()->max_set_bit_offset_ = value; |
+ } |
+ |
bool InRange(intptr_t offset) const { return offset < SizeInBits(); } |
bool GetBit(intptr_t bit_offset) const; |
void SetBit(intptr_t bit_offset, bool value) const; |
void set_bitmap_size_in_bytes(intptr_t value) const; |
- void set_pc(uword value) const; |
- void set_code(const Code& code) const; |
HEAP_OBJECT_IMPLEMENTATION(Stackmap, Object); |
friend class Class; |