Index: runtime/vm/object.h |
diff --git a/runtime/vm/object.h b/runtime/vm/object.h |
index 3e1083a052844c4b8da2f8dd2e5e1d5e35cf4ce0..9b5a28c0fdad870521a3ccb3c02e4d8c53e2f96a 100644 |
--- a/runtime/vm/object.h |
+++ b/runtime/vm/object.h |
@@ -3714,6 +3714,8 @@ class Instructions : public Object { |
public: |
intptr_t size() const { return raw_ptr()->size_; } // Excludes HeaderSize(). |
+ RawCode* code() const { return raw_ptr()->code_; } |
rmacnak
2015/09/29 16:50:12
ASSERT(!Dart::IsRunningPrecompiledCode());
Cutch
2015/09/29 23:24:29
Done.
|
+ |
uword EntryPoint() const { |
return reinterpret_cast<uword>(raw_ptr()) + HeaderSize(); |
} |
@@ -3752,6 +3754,10 @@ class Instructions : public Object { |
StoreNonPointer(&raw_ptr()->size_, size); |
} |
+ void set_code(RawCode* code) const { |
+ StorePointer(&raw_ptr()->code_, code); |
+ } |
+ |
// New is a private method as RawInstruction and RawCode objects should |
// only be created using the Code::FinalizeCode method. This method creates |
// the RawInstruction and RawCode objects, sets up the pointer offsets |