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

Side by Side Diff: runtime/vm/raw_object.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
« no previous file with comments | « runtime/vm/object_store.cc ('k') | tests/standalone/issue14236_test.dart » ('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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 RawString* url_; 796 RawString* url_;
797 RawScript* script_; 797 RawScript* script_;
798 RawString* private_key_; 798 RawString* private_key_;
799 RawArray* dictionary_; // Top-level names in this library. 799 RawArray* dictionary_; // Top-level names in this library.
800 RawArray* resolved_names_; // Cache of resolved names in library scope. 800 RawArray* resolved_names_; // Cache of resolved names in library scope.
801 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. 801 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc.
802 RawArray* anonymous_classes_; // Classes containing top-level elements. 802 RawArray* anonymous_classes_; // Classes containing top-level elements.
803 RawArray* imports_; // List of Namespaces imported without prefix. 803 RawArray* imports_; // List of Namespaces imported without prefix.
804 RawArray* exports_; // List of re-exported Namespaces. 804 RawArray* exports_; // List of re-exported Namespaces.
805 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 805 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
806 RawInstance* load_error_; // Error iff load_state_ == kLoadError.
806 RawObject** to() { 807 RawObject** to() {
807 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 808 return reinterpret_cast<RawObject**>(&ptr()->load_error_);
808 } 809 }
809 810
810 int32_t index_; // Library id number. 811 int32_t index_; // Library id number.
811 int32_t num_imports_; // Number of entries in imports_. 812 int32_t num_imports_; // Number of entries in imports_.
812 int32_t num_anonymous_; // Number of entries in anonymous_classes_. 813 int32_t num_anonymous_; // Number of entries in anonymous_classes_.
813 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. 814 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
814 Dart_NativeEntrySymbol native_entry_symbol_resolver_; 815 Dart_NativeEntrySymbol native_entry_symbol_resolver_;
815 bool corelib_imported_; 816 bool corelib_imported_;
816 bool is_dart_scheme_; 817 bool is_dart_scheme_;
817 bool debuggable_; // True if debugger can stop in library. 818 bool debuggable_; // True if debugger can stop in library.
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 1976 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
1976 kTypedDataInt8ArrayViewCid + 15); 1977 kTypedDataInt8ArrayViewCid + 15);
1977 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 1978 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
1978 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 1979 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
1979 return (kNullCid - kTypedDataInt8ArrayCid); 1980 return (kNullCid - kTypedDataInt8ArrayCid);
1980 } 1981 }
1981 1982
1982 } // namespace dart 1983 } // namespace dart
1983 1984
1984 #endif // VM_RAW_OBJECT_H_ 1985 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_store.cc ('k') | tests/standalone/issue14236_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698