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

Unified Diff: runtime/vm/object_store.h

Issue 1308073005: Introduce per-isolate cache for compile time constants (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Addressing review comments Created 5 years, 4 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 | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_store.h
diff --git a/runtime/vm/object_store.h b/runtime/vm/object_store.h
index 5e220e9f03d5fcaebc98c7f78abb457e0f342db3..e22a096a312ae6ee35ce8dd8f7b2b14094c7baad 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -426,6 +426,13 @@ class ObjectStore {
return OFFSET_OF(ObjectStore, library_load_error_table_);
}
+ RawArray* compile_time_constants() const {
+ return compile_time_constants_;
+ }
+ void set_compile_time_constants(const Array& value) {
+ compile_time_constants_ = value.raw();
+ }
+
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor);
@@ -515,8 +522,9 @@ class ObjectStore {
RawTypedData* empty_uint32_array_;
RawFunction* handle_message_function_;
RawArray* library_load_error_table_;
+ RawArray* compile_time_constants_;
RawObject** to() {
- return reinterpret_cast<RawObject**>(&library_load_error_table_);
+ return reinterpret_cast<RawObject**>(&compile_time_constants_);
}
friend class SnapshotReader;
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698