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

Unified Diff: vm/object.h

Issue 9721006: Second set of changes for implementation of stack map support. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 9 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
« no previous file with comments | « vm/flow_graph_compiler_x64.cc ('k') | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 5572)
+++ vm/object.h (working copy)
@@ -26,6 +26,7 @@
CLASS_LIST(DEFINE_FORWARD_DECLARATION)
#undef DEFINE_FORWARD_DECLARATION
class Assembler;
+class Code;
class LocalScope;
#define OBJECT_IMPLEMENTATION(object, super) \
@@ -1996,8 +1997,18 @@
bool IsObject(intptr_t offset) const {
return InRange(offset) && GetBit(offset);
}
- uword pc() const { return raw_ptr()->pc_; }
+ uword PC() const { return raw_ptr()->pc_; }
+ void SetPC(uword value) const { raw_ptr()->pc_ = value; }
+ RawCode* GetCode() const { return raw_ptr()->code_; }
+ void SetCode(const Code& code) const;
+
+ // Return the offset of the highest stack slot that has an object.
+ intptr_t Maximum() const;
+
+ // Return the offset of the lowest stack slot that has an object.
+ intptr_t Minimum() const;
+
static intptr_t InstanceSize() {
ASSERT(sizeof(RawStackmap) == OFFSET_OF(RawStackmap, data_));
return 0;
@@ -2015,12 +2026,6 @@
bool GetBit(intptr_t bit_offset) const;
void SetBit(intptr_t bit_offset, bool value) const;
- // Return the offset of the highest stack slot that has an object.
- intptr_t Maximum() const;
-
- // Return the offset of the lowest stack slot that has an object.
- intptr_t Minimum() const;
-
void set_bitmap_size_in_bytes(intptr_t value) const;
void set_pc(uword value) const;
void set_code(const Code& code) const;
@@ -2115,6 +2120,11 @@
StorePointer(&raw_ptr()->pc_descriptors_, descriptors.raw());
}
+ RawArray* stackmaps() const {
+ return raw_ptr()->stackmaps_;
+ }
+ void set_stackmaps(const Array& maps) const;
+
RawLocalVarDescriptors* var_descriptors() const {
return raw_ptr()->var_descriptors_;
}
« no previous file with comments | « vm/flow_graph_compiler_x64.cc ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698