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

Side by Side Diff: runtime/vm/object_store.h

Issue 11642048: Revert "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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/message_test.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_OBJECT_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 } 469 }
470 void InitKeywordTable(); 470 void InitKeywordTable();
471 471
472 RawFunction* receive_port_create_function() const { 472 RawFunction* receive_port_create_function() const {
473 return receive_port_create_function_; 473 return receive_port_create_function_;
474 } 474 }
475 void set_receive_port_create_function(const Function& function) { 475 void set_receive_port_create_function(const Function& function) {
476 receive_port_create_function_ = function.raw(); 476 receive_port_create_function_ = function.raw();
477 } 477 }
478 478
479 RawFunction* lookup_receive_port_function() const {
480 return lookup_receive_port_function_;
481 }
482 void set_lookup_receive_port_function(const Function& function) {
483 lookup_receive_port_function_ = function.raw();
484 }
485
486 RawFunction* handle_message_function() const { 479 RawFunction* handle_message_function() const {
487 return handle_message_function_; 480 return handle_message_function_;
488 } 481 }
489 void set_handle_message_function(const Function& function) { 482 void set_handle_message_function(const Function& function) {
490 handle_message_function_ = function.raw(); 483 handle_message_function_ = function.raw();
491 } 484 }
492 485
493 // Visit all object pointers. 486 // Visit all object pointers.
494 void VisitObjectPointers(ObjectPointerVisitor* visitor); 487 void VisitObjectPointers(ObjectPointerVisitor* visitor);
495 488
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 RawLibrary* root_library_; 568 RawLibrary* root_library_;
576 RawGrowableObjectArray* libraries_; 569 RawGrowableObjectArray* libraries_;
577 RawGrowableObjectArray* pending_classes_; 570 RawGrowableObjectArray* pending_classes_;
578 RawError* sticky_error_; 571 RawError* sticky_error_;
579 RawString* unhandled_exception_handler_; 572 RawString* unhandled_exception_handler_;
580 RawContext* empty_context_; 573 RawContext* empty_context_;
581 RawInstance* stack_overflow_; 574 RawInstance* stack_overflow_;
582 RawInstance* out_of_memory_; 575 RawInstance* out_of_memory_;
583 RawArray* keyword_symbols_; 576 RawArray* keyword_symbols_;
584 RawFunction* receive_port_create_function_; 577 RawFunction* receive_port_create_function_;
585 RawFunction* lookup_receive_port_function_;
586 RawFunction* handle_message_function_; 578 RawFunction* handle_message_function_;
587 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 579 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
588 580
589 friend class SnapshotReader; 581 friend class SnapshotReader;
590 582
591 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 583 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
592 }; 584 };
593 585
594 } // namespace dart 586 } // namespace dart
595 587
596 #endif // VM_OBJECT_STORE_H_ 588 #endif // VM_OBJECT_STORE_H_
OLDNEW
« 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