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

Unified Diff: runtime/vm/object_store.h

Issue 2781553004: Teach treeshaker about new cached functions and classes. (Closed)
Patch Set: Created 3 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 | « runtime/vm/clustered_snapshot.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 41076fe5c64c5447b0ce9a70851caf4e18f00b1c..c303c6c91836a1d8c3bd45ae6dd0ea402331a639 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -432,12 +432,21 @@ class ObjectStore {
RawFunction* simple_instance_of_function() const {
return simple_instance_of_function_;
}
+ void set_simple_instance_of_function(const Function& value) {
+ simple_instance_of_function_ = value.raw();
+ }
RawFunction* simple_instance_of_true_function() const {
return simple_instance_of_true_function_;
}
+ void set_simple_instance_of_true_function(const Function& value) {
+ simple_instance_of_true_function_ = value.raw();
+ }
RawFunction* simple_instance_of_false_function() const {
return simple_instance_of_false_function_;
}
+ void set_simple_instance_of_false_function(const Function& value) {
+ simple_instance_of_false_function_ = value.raw();
+ }
RawFunction* async_clear_thread_stack_trace() const {
return async_clear_thread_stack_trace_;
}
@@ -450,28 +459,24 @@ class ObjectStore {
}
void set_async_set_thread_stack_trace(const Function& func) {
async_set_thread_stack_trace_ = func.raw();
- ASSERT(async_set_thread_stack_trace_ != Object::null());
}
RawFunction* async_star_move_next_helper() const {
return async_star_move_next_helper_;
}
void set_async_star_move_next_helper(const Function& func) {
async_star_move_next_helper_ = func.raw();
- ASSERT(async_star_move_next_helper_ != Object::null());
}
RawFunction* complete_on_async_return() const {
return complete_on_async_return_;
}
void set_complete_on_async_return(const Function& func) {
complete_on_async_return_ = func.raw();
- ASSERT(complete_on_async_return_ != Object::null());
}
RawClass* async_star_stream_controller() const {
return async_star_stream_controller_;
}
void set_async_star_stream_controller(const Class& cls) {
async_star_stream_controller_ = cls.raw();
- ASSERT(async_star_stream_controller_ != Object::null());
}
// Visit all object pointers.
« no previous file with comments | « runtime/vm/clustered_snapshot.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698