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

Unified Diff: runtime/vm/object_store.h

Issue 11440035: Optimize the message queue for many active ports with few messages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge with caching changes. Created 8 years 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/message_test.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 c46e5271d4ffa3c50e5324ff70d950803364030d..c216a90ede68bf2bb613c563dc7c852638092536 100644
--- a/runtime/vm/object_store.h
+++ b/runtime/vm/object_store.h
@@ -476,6 +476,13 @@ class ObjectStore {
receive_port_create_function_ = function.raw();
}
+ RawFunction* lookup_receive_port_function() const {
+ return lookup_receive_port_function_;
+ }
+ void set_lookup_receive_port_function(const Function& function) {
+ lookup_receive_port_function_ = function.raw();
+ }
+
RawFunction* handle_message_function() const {
return handle_message_function_;
}
@@ -575,6 +582,7 @@ class ObjectStore {
RawInstance* out_of_memory_;
RawArray* keyword_symbols_;
RawFunction* receive_port_create_function_;
+ RawFunction* lookup_receive_port_function_;
RawFunction* handle_message_function_;
RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
« no previous file with comments | « runtime/vm/message_test.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698