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

Unified Diff: runtime/vm/object.h

Issue 12260026: Add support for object pool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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
===================================================================
--- runtime/vm/object.h (revision 18597)
+++ runtime/vm/object.h (working copy)
@@ -2226,6 +2226,7 @@
public:
intptr_t size() const { return raw_ptr()->size_; }
RawCode* code() const { return raw_ptr()->code_; }
+ RawArray* object_pool() const { return raw_ptr()->object_pool_; }
uword EntryPoint() const {
return reinterpret_cast<uword>(raw_ptr()) + HeaderSize();
@@ -2263,9 +2264,12 @@
void set_size(intptr_t size) const {
raw_ptr()->size_ = size;
}
- void set_code(RawCode* code) {
+ void set_code(RawCode* code) const {
raw_ptr()->code_ = code;
}
+ void set_object_pool(RawArray* object_pool) const {
+ raw_ptr()->object_pool_ = object_pool;
+ }
// New is a private method as RawInstruction and RawCode objects should
// only be created using the Code::FinalizeCode method. This method creates

Powered by Google App Engine
This is Rietveld 408576698