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

Unified Diff: runtime/vm/object_store.h

Issue 2126393003: Cache compile-time constants on the script object, sometimes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 5 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 6ab93de63091ffa1c0ad4ab93726be02a9756a30..4e0fe885b3b46dfe1e1852f0391b9a581914d740 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -440,11 +440,11 @@ class ObjectStore {
return OFFSET_OF(ObjectStore, library_load_error_table_);
}
- RawArray* compile_time_constants() const {
- return compile_time_constants_;
+ RawArray* vm_compile_time_constants() const {
+ return vm_compile_time_constants_;
}
- void set_compile_time_constants(const Array& value) {
- compile_time_constants_ = value.raw();
+ void set_vm_compile_time_constants(const Array& value) {
+ vm_compile_time_constants_ = value.raw();
}
RawArray* unique_dynamic_targets() const {
@@ -579,7 +579,7 @@ class ObjectStore {
V(RawTypedData*, empty_uint32_array_) \
V(RawFunction*, handle_message_function_) \
V(RawArray*, library_load_error_table_) \
- V(RawArray*, compile_time_constants_) \
+ V(RawArray*, vm_compile_time_constants_) \
V(RawArray*, unique_dynamic_targets_) \
V(RawGrowableObjectArray*, token_objects_) \
V(RawArray*, token_objects_map_) \
@@ -598,7 +598,7 @@ OBJECT_STORE_FIELD_LIST(DECLARE_OBJECT_STORE_FIELD)
RawObject** to_snapshot(Snapshot::Kind kind) {
switch (kind) {
case Snapshot::kCore:
- return reinterpret_cast<RawObject**>(&compile_time_constants_);
+ return reinterpret_cast<RawObject**>(&vm_compile_time_constants_);
case Snapshot::kAppWithJIT:
case Snapshot::kAppNoJIT:
return to();
« 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