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

Unified Diff: runtime/vm/snapshot.h

Issue 1388543008: 1. Write the backing data array of a GrowableObjectArray as a reference (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync-to-tot 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
diff --git a/runtime/vm/snapshot.h b/runtime/vm/snapshot.h
index 29671b4f89de13f60133d053f49d539184ab4d05..015a6fddb37af45a8c1c1c932a3a73ae9d212e23 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -793,6 +793,9 @@ class ForwardList {
// Restores the tags of all objects in this list.
void UnmarkAll() const;
+ // Set state of object in forward list.
+ void SetState(RawObject* raw, SerializeState state);
+
private:
intptr_t first_object_id() const { return first_object_id_; }
intptr_t next_object_id() const { return nodes_.length() + first_object_id_; }
@@ -888,6 +891,8 @@ class SnapshotWriter : public BaseWriter {
uword GetObjectTags(RawObject* raw);
+ intptr_t GetObjectId(RawObject* raw);
+
Exceptions::ExceptionType exception_type() const {
return exception_type_;
}
@@ -934,24 +939,27 @@ class SnapshotWriter : public BaseWriter {
RawFunction* func,
intptr_t tags);
void WriteObjectImpl(RawObject* raw, bool as_reference);
- void WriteObjectRef(RawObject* raw);
- void WriteInlinedObject(RawObject* raw);
+ void WriteMarkedObjectImpl(RawObject* raw,
+ intptr_t tags,
+ intptr_t object_id,
+ bool as_reference);
void WriteForwardedObjects();
void ArrayWriteTo(intptr_t object_id,
intptr_t array_kind,
intptr_t tags,
RawSmi* length,
RawTypeArguments* type_arguments,
- RawObject* data[]);
+ RawObject* data[],
+ bool as_reference);
RawFunction* IsSerializableClosure(RawClass* cls, RawObject* obj);
RawClass* GetFunctionOwner(RawFunction* func);
void CheckForNativeFields(RawClass* cls);
void SetWriteException(Exceptions::ExceptionType type, const char* msg);
- void WriteInstance(intptr_t object_id,
- RawObject* raw,
+ void WriteInstance(RawObject* raw,
RawClass* cls,
- intptr_t tags);
- void WriteInstanceRef(RawObject* raw, RawClass* cls);
+ intptr_t tags,
+ intptr_t object_id,
+ bool as_reference);
bool AllowObjectsInDartLibrary(RawLibrary* library);
intptr_t FindVmSnapshotObject(RawObject* rawobj);
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698