| Index: vm/object.cc
|
| ===================================================================
|
| --- vm/object.cc (revision 5572)
|
| +++ vm/object.cc (working copy)
|
| @@ -5388,6 +5388,11 @@
|
| }
|
|
|
|
|
| +void Stackmap::SetCode(const Code& code) const {
|
| + StorePointer(&raw_ptr()->code_, code.raw());
|
| +}
|
| +
|
| +
|
| // Return the bit offset of the highest bit set.
|
| intptr_t Stackmap::Maximum() const {
|
| intptr_t bound = SizeInBits();
|
| @@ -5478,12 +5483,12 @@
|
| if (IsNull()) {
|
| return "{null}";
|
| } else {
|
| - intptr_t index = OS::SNPrint(NULL, 0, "0x%lx { ", pc());
|
| + intptr_t index = OS::SNPrint(NULL, 0, "0x%lx { ", PC());
|
| intptr_t alloc_size = index + ((Maximum() + 1) * 2) + 2; // "{ 1 0 .... }".
|
| Isolate* isolate = Isolate::Current();
|
| char* chars = reinterpret_cast<char*>(
|
| isolate->current_zone()->Allocate(alloc_size));
|
| - index = OS::SNPrint(chars, alloc_size, "0x%lx { ", pc());
|
| + index = OS::SNPrint(chars, alloc_size, "0x%lx { ", PC());
|
| for (intptr_t i = 0; i <= Maximum(); i++) {
|
| index += OS::SNPrint((chars + index),
|
| (alloc_size - index),
|
| @@ -5643,6 +5648,11 @@
|
| }
|
|
|
|
|
| +void Code::set_stackmaps(const Array& maps) const {
|
| + StorePointer(&raw_ptr()->stackmaps_, maps.raw());
|
| +}
|
| +
|
| +
|
| RawCode* Code::New(int pointer_offsets_length) {
|
| const Class& cls = Class::Handle(Object::code_class());
|
| Code& result = Code::Handle();
|
|
|