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

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

Issue 1436243005: Collect closure functions in isolate (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 RawLibrary* root_library() const { return root_library_; } 325 RawLibrary* root_library() const { return root_library_; }
326 void set_root_library(const Library& value) { 326 void set_root_library(const Library& value) {
327 root_library_ = value.raw(); 327 root_library_ = value.raw();
328 } 328 }
329 329
330 RawGrowableObjectArray* libraries() const { return libraries_; } 330 RawGrowableObjectArray* libraries() const { return libraries_; }
331 void set_libraries(const GrowableObjectArray& value) { 331 void set_libraries(const GrowableObjectArray& value) {
332 libraries_ = value.raw(); 332 libraries_ = value.raw();
333 } 333 }
334 334
335 RawGrowableObjectArray* closure_functions() const {
336 return closure_functions_;
337 }
338 void set_closure_functions(const GrowableObjectArray& value) {
339 ASSERT(!value.IsNull());
340 closure_functions_ = value.raw();
341 }
342
335 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 343 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
336 void set_pending_classes(const GrowableObjectArray& value) { 344 void set_pending_classes(const GrowableObjectArray& value) {
337 ASSERT(!value.IsNull()); 345 ASSERT(!value.IsNull());
338 pending_classes_ = value.raw(); 346 pending_classes_ = value.raw();
339 } 347 }
340 348
341 RawGrowableObjectArray* pending_deferred_loads() const { 349 RawGrowableObjectArray* pending_deferred_loads() const {
342 return pending_deferred_loads_; 350 return pending_deferred_loads_;
343 } 351 }
344 void clear_pending_deferred_loads() { 352 void clear_pending_deferred_loads() {
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 RawLibrary* internal_library_; 541 RawLibrary* internal_library_;
534 RawLibrary* isolate_library_; 542 RawLibrary* isolate_library_;
535 RawLibrary* math_library_; 543 RawLibrary* math_library_;
536 RawLibrary* mirrors_library_; 544 RawLibrary* mirrors_library_;
537 RawLibrary* native_wrappers_library_; 545 RawLibrary* native_wrappers_library_;
538 RawLibrary* profiler_library_; 546 RawLibrary* profiler_library_;
539 RawLibrary* root_library_; 547 RawLibrary* root_library_;
540 RawLibrary* typed_data_library_; 548 RawLibrary* typed_data_library_;
541 RawLibrary* vmservice_library_; 549 RawLibrary* vmservice_library_;
542 RawGrowableObjectArray* libraries_; 550 RawGrowableObjectArray* libraries_;
551 RawGrowableObjectArray* closure_functions_;
543 RawGrowableObjectArray* pending_classes_; 552 RawGrowableObjectArray* pending_classes_;
544 RawGrowableObjectArray* pending_deferred_loads_; 553 RawGrowableObjectArray* pending_deferred_loads_;
545 RawGrowableObjectArray* resume_capabilities_; 554 RawGrowableObjectArray* resume_capabilities_;
546 RawGrowableObjectArray* exit_listeners_; 555 RawGrowableObjectArray* exit_listeners_;
547 RawGrowableObjectArray* error_listeners_; 556 RawGrowableObjectArray* error_listeners_;
548 RawError* sticky_error_; 557 RawError* sticky_error_;
549 RawContext* empty_context_; 558 RawContext* empty_context_;
550 RawInstance* stack_overflow_; 559 RawInstance* stack_overflow_;
551 RawInstance* out_of_memory_; 560 RawInstance* out_of_memory_;
552 RawUnhandledException* preallocated_unhandled_exception_; 561 RawUnhandledException* preallocated_unhandled_exception_;
(...skipping 18 matching lines...) Expand all
571 friend class FullSnapshotWriter; 580 friend class FullSnapshotWriter;
572 friend class SnapshotReader; 581 friend class SnapshotReader;
573 friend class VmIsolateSnapshotReader; 582 friend class VmIsolateSnapshotReader;
574 583
575 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 584 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
576 }; 585 };
577 586
578 } // namespace dart 587 } // namespace dart
579 588
580 #endif // VM_OBJECT_STORE_H_ 589 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698