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

Unified Diff: runtime/vm/object_store.h

Issue 11636017: Cache resolution of two static functions frequently used in I/O. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/dart_entry.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
===================================================================
--- runtime/vm/object_store.h (revision 16317)
+++ runtime/vm/object_store.h (working copy)
@@ -469,6 +469,20 @@
}
void InitKeywordTable();
+ RawFunction* receive_port_create_function() const {
+ return receive_port_create_function_;
+ }
+ void set_receive_port_create_function(const Function& function) {
+ receive_port_create_function_ = function.raw();
+ }
+
+ RawFunction* handle_message_function() const {
+ return handle_message_function_;
+ }
+ void set_handle_message_function(const Function& function) {
+ handle_message_function_ = function.raw();
+ }
+
// Visit all object pointers.
void VisitObjectPointers(ObjectPointerVisitor* visitor);
@@ -560,6 +574,8 @@
RawInstance* stack_overflow_;
RawInstance* out_of_memory_;
RawArray* keyword_symbols_;
+ RawFunction* receive_port_create_function_;
+ RawFunction* handle_message_function_;
RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
friend class SnapshotReader;
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698