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

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

Issue 419103003: Handle load errors in deferred code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 347 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
348 void set_pending_classes(const GrowableObjectArray& value) { 348 void set_pending_classes(const GrowableObjectArray& value) {
349 ASSERT(!value.IsNull()); 349 ASSERT(!value.IsNull());
350 pending_classes_ = value.raw(); 350 pending_classes_ = value.raw();
351 } 351 }
352 352
353 RawGrowableObjectArray* pending_functions() const { 353 RawGrowableObjectArray* pending_functions() const {
354 return pending_functions_; 354 return pending_functions_;
355 } 355 }
356 356
357 RawGrowableObjectArray* pending_deferred_loads() const {
358 return pending_deferred_loads_;
359 }
360
357 RawGrowableObjectArray* resume_capabilities() const { 361 RawGrowableObjectArray* resume_capabilities() const {
358 return resume_capabilities_; 362 return resume_capabilities_;
359 } 363 }
360 364
361 RawError* sticky_error() const { return sticky_error_; } 365 RawError* sticky_error() const { return sticky_error_; }
362 void set_sticky_error(const Error& value) { 366 void set_sticky_error(const Error& value) {
363 ASSERT(!value.IsNull()); 367 ASSERT(!value.IsNull());
364 sticky_error_ = value.raw(); 368 sticky_error_ = value.raw();
365 } 369 }
366 void clear_sticky_error() { sticky_error_ = Error::null(); } 370 void clear_sticky_error() { sticky_error_ = Error::null(); }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 RawLibrary* isolate_library_; 501 RawLibrary* isolate_library_;
498 RawLibrary* math_library_; 502 RawLibrary* math_library_;
499 RawLibrary* mirrors_library_; 503 RawLibrary* mirrors_library_;
500 RawLibrary* native_wrappers_library_; 504 RawLibrary* native_wrappers_library_;
501 RawLibrary* root_library_; 505 RawLibrary* root_library_;
502 RawLibrary* typed_data_library_; 506 RawLibrary* typed_data_library_;
503 RawLibrary* profiler_library_; 507 RawLibrary* profiler_library_;
504 RawGrowableObjectArray* libraries_; 508 RawGrowableObjectArray* libraries_;
505 RawGrowableObjectArray* pending_classes_; 509 RawGrowableObjectArray* pending_classes_;
506 RawGrowableObjectArray* pending_functions_; 510 RawGrowableObjectArray* pending_functions_;
511 RawGrowableObjectArray* pending_deferred_loads_;
507 RawGrowableObjectArray* resume_capabilities_; 512 RawGrowableObjectArray* resume_capabilities_;
508 RawError* sticky_error_; 513 RawError* sticky_error_;
509 RawString* unhandled_exception_handler_; 514 RawString* unhandled_exception_handler_;
510 RawContext* empty_context_; 515 RawContext* empty_context_;
511 RawInstance* stack_overflow_; 516 RawInstance* stack_overflow_;
512 RawInstance* out_of_memory_; 517 RawInstance* out_of_memory_;
513 RawUnhandledException* preallocated_unhandled_exception_; 518 RawUnhandledException* preallocated_unhandled_exception_;
514 RawStacktrace* preallocated_stack_trace_; 519 RawStacktrace* preallocated_stack_trace_;
515 RawFunction* lookup_port_handler_; 520 RawFunction* lookup_port_handler_;
516 RawFunction* handle_message_function_; 521 RawFunction* handle_message_function_;
517 RawUserTag* default_tag_; 522 RawUserTag* default_tag_;
518 RawObject** to() { 523 RawObject** to() {
519 return reinterpret_cast<RawObject**>(&handle_message_function_); 524 return reinterpret_cast<RawObject**>(&handle_message_function_);
520 } 525 }
521 526
522 friend class SnapshotReader; 527 friend class SnapshotReader;
523 528
524 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 529 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
525 }; 530 };
526 531
527 } // namespace dart 532 } // namespace dart
528 533
529 #endif // VM_OBJECT_STORE_H_ 534 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698