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

Unified Diff: runtime/vm/raw_object.h

Issue 1329503002: Changes to prepare for allowing script snapshots to be taken after running the main application (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-code-review-comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 19a1de512c72ebba6ecb0fe39c6add1bd4ca33ff..514f9c62fd96b7463d49b15e6d8778c03bcf6d52 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -929,16 +929,19 @@ class RawLibrary : public RawObject {
RawScript* script_;
RawString* private_key_;
RawArray* dictionary_; // Top-level names in this library.
- RawArray* resolved_names_; // Cache of resolved names in library scope.
RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc.
RawArray* anonymous_classes_; // Classes containing top-level elements.
RawArray* imports_; // List of Namespaces imported without prefix.
RawArray* exports_; // List of re-exported Namespaces.
- RawArray* loaded_scripts_; // Array of scripts loaded in this library.
RawInstance* load_error_; // Error iff load_state_ == kLoadError.
- RawObject** to() {
+ RawObject** to_snapshot() {
return reinterpret_cast<RawObject**>(&ptr()->load_error_);
}
+ RawArray* resolved_names_; // Cache of resolved names in library scope.
+ RawArray* loaded_scripts_; // Array of scripts loaded in this library.
+ RawObject** to() {
+ return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
+ }
Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
Dart_NativeEntrySymbol native_entry_symbol_resolver_;

Powered by Google App Engine
This is Rietveld 408576698