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

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

Issue 1409173002: More work for background compilation; move pending_functions_ from ObjectStore to Thread. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Better code. Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/isolate.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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 void set_libraries(const GrowableObjectArray& value) { 326 void set_libraries(const GrowableObjectArray& value) {
327 libraries_ = value.raw(); 327 libraries_ = value.raw();
328 } 328 }
329 329
330 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 330 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
331 void set_pending_classes(const GrowableObjectArray& value) { 331 void set_pending_classes(const GrowableObjectArray& value) {
332 ASSERT(!value.IsNull()); 332 ASSERT(!value.IsNull());
333 pending_classes_ = value.raw(); 333 pending_classes_ = value.raw();
334 } 334 }
335 335
336 RawGrowableObjectArray* pending_functions() const {
337 return pending_functions_;
338 }
339
340 RawGrowableObjectArray* pending_deferred_loads() const { 336 RawGrowableObjectArray* pending_deferred_loads() const {
341 return pending_deferred_loads_; 337 return pending_deferred_loads_;
342 } 338 }
343 void clear_pending_deferred_loads() { 339 void clear_pending_deferred_loads() {
344 pending_deferred_loads_ = GrowableObjectArray::New(); 340 pending_deferred_loads_ = GrowableObjectArray::New();
345 } 341 }
346 342
347 RawGrowableObjectArray* resume_capabilities() const { 343 RawGrowableObjectArray* resume_capabilities() const {
348 return resume_capabilities_; 344 return resume_capabilities_;
349 } 345 }
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 RawLibrary* internal_library_; 511 RawLibrary* internal_library_;
516 RawLibrary* isolate_library_; 512 RawLibrary* isolate_library_;
517 RawLibrary* math_library_; 513 RawLibrary* math_library_;
518 RawLibrary* mirrors_library_; 514 RawLibrary* mirrors_library_;
519 RawLibrary* native_wrappers_library_; 515 RawLibrary* native_wrappers_library_;
520 RawLibrary* root_library_; 516 RawLibrary* root_library_;
521 RawLibrary* typed_data_library_; 517 RawLibrary* typed_data_library_;
522 RawLibrary* vmservice_library_; 518 RawLibrary* vmservice_library_;
523 RawGrowableObjectArray* libraries_; 519 RawGrowableObjectArray* libraries_;
524 RawGrowableObjectArray* pending_classes_; 520 RawGrowableObjectArray* pending_classes_;
525 RawGrowableObjectArray* pending_functions_;
526 RawGrowableObjectArray* pending_deferred_loads_; 521 RawGrowableObjectArray* pending_deferred_loads_;
527 RawGrowableObjectArray* resume_capabilities_; 522 RawGrowableObjectArray* resume_capabilities_;
528 RawGrowableObjectArray* exit_listeners_; 523 RawGrowableObjectArray* exit_listeners_;
529 RawGrowableObjectArray* error_listeners_; 524 RawGrowableObjectArray* error_listeners_;
530 RawError* sticky_error_; 525 RawError* sticky_error_;
531 RawContext* empty_context_; 526 RawContext* empty_context_;
532 RawInstance* stack_overflow_; 527 RawInstance* stack_overflow_;
533 RawInstance* out_of_memory_; 528 RawInstance* out_of_memory_;
534 RawUnhandledException* preallocated_unhandled_exception_; 529 RawUnhandledException* preallocated_unhandled_exception_;
535 RawStacktrace* preallocated_stack_trace_; 530 RawStacktrace* preallocated_stack_trace_;
(...skipping 15 matching lines...) Expand all
551 friend class FullSnapshotWriter; 546 friend class FullSnapshotWriter;
552 friend class SnapshotReader; 547 friend class SnapshotReader;
553 friend class VmIsolateSnapshotReader; 548 friend class VmIsolateSnapshotReader;
554 549
555 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 550 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
556 }; 551 };
557 552
558 } // namespace dart 553 } // namespace dart
559 554
560 #endif // VM_OBJECT_STORE_H_ 555 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698