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

Unified Diff: runtime/vm/object.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/dart_api_message.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 28926e56734267fd11f6a653c2fbda04450b7a21..f01021c318fd108757728156a4669024fb61f485 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -180,7 +180,8 @@ class Symbols;
static Raw##object* ReadFrom(SnapshotReader* reader, \
intptr_t object_id, \
intptr_t tags, \
- Snapshot::Kind); \
+ Snapshot::Kind, \
+ bool as_reference); \
friend class SnapshotReader; \
#define OBJECT_IMPLEMENTATION(object, super) \
@@ -6391,7 +6392,8 @@ class OneByteString : public AllStatic {
static RawOneByteString* ReadFrom(SnapshotReader* reader,
intptr_t object_id,
intptr_t tags,
- Snapshot::Kind kind);
+ Snapshot::Kind kind,
+ bool as_reference);
friend class Class;
friend class String;
@@ -6506,7 +6508,8 @@ class TwoByteString : public AllStatic {
static RawTwoByteString* ReadFrom(SnapshotReader* reader,
intptr_t object_id,
intptr_t tags,
- Snapshot::Kind kind);
+ Snapshot::Kind kind,
+ bool as_reference);
friend class Class;
friend class String;
@@ -6584,7 +6587,8 @@ class ExternalOneByteString : public AllStatic {
static RawExternalOneByteString* ReadFrom(SnapshotReader* reader,
intptr_t object_id,
intptr_t tags,
- Snapshot::Kind kind);
+ Snapshot::Kind kind,
+ bool as_reference);
static intptr_t NextFieldOffset() {
// Indicates this class cannot be extended by dart code.
@@ -6663,7 +6667,8 @@ class ExternalTwoByteString : public AllStatic {
static RawExternalTwoByteString* ReadFrom(SnapshotReader* reader,
intptr_t object_id,
intptr_t tags,
- Snapshot::Kind kind);
+ Snapshot::Kind kind,
+ bool as_reference);
static intptr_t NextFieldOffset() {
// Indicates this class cannot be extended by dart code.
@@ -6835,7 +6840,8 @@ class ImmutableArray : public AllStatic {
static RawImmutableArray* ReadFrom(SnapshotReader* reader,
intptr_t object_id,
intptr_t tags,
- Snapshot::Kind kind);
+ Snapshot::Kind kind,
+ bool as_reference);
static const ClassId kClassId = kImmutableArrayCid;
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698