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

Unified Diff: runtime/vm/snapshot.h

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 11 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 8570a068ae08490001deac368d721e7334a966d4..b095eaadc95c51bb2c1ef3b016215540e1fd84e4 100644
--- a/runtime/vm/snapshot.h
+++ b/runtime/vm/snapshot.h
@@ -22,6 +22,7 @@ class AbstractType;
class Array;
class Class;
class ClassTable;
+class Closure;
class Code;
class ExternalTypedData;
class GrowableObjectArray;
@@ -40,6 +41,7 @@ class RawBigint;
class RawBoundedType;
class RawCapability;
class RawClass;
+class RawClosure;
class RawClosureData;
class RawContext;
class RawContextScope;
@@ -49,6 +51,7 @@ class RawField;
class RawFloat32x4;
class RawFloat64x2;
class RawFunction;
+class RawFunctionType;
class RawGrowableObjectArray;
class RawICData;
class RawImmutableArray;
@@ -412,11 +415,13 @@ class SnapshotReader : public BaseReader {
RawDouble* NewDouble(double value);
RawUnresolvedClass* NewUnresolvedClass();
RawType* NewType();
+ RawFunctionType* NewFunctionType();
RawTypeRef* NewTypeRef();
RawTypeParameter* NewTypeParameter();
RawBoundedType* NewBoundedType();
RawMixinAppType* NewMixinAppType();
RawPatchClass* NewPatchClass();
+ RawClosure* NewClosure();
RawClosureData* NewClosureData();
RawRedirectionData* NewRedirectionData();
RawFunction* NewFunction();
@@ -558,6 +563,7 @@ class SnapshotReader : public BaseReader {
friend class Bigint;
friend class BoundedType;
friend class Class;
+ friend class Closure;
friend class ClosureData;
friend class Code;
friend class Context;
@@ -588,6 +594,7 @@ class SnapshotReader : public BaseReader {
friend class SubtypeTestCache;
friend class TokenStream;
friend class Type;
+ friend class FunctionType;
friend class TypeArguments;
friend class TypeParameter;
friend class TypeRef;
@@ -921,14 +928,17 @@ class SnapshotWriter : public BaseWriter {
void WriteFunctionId(RawFunction* func, bool owner_is_class);
+ RawFunction* IsSerializableClosure(RawClosure* closure);
+
+ void WriteStaticImplicitClosure(intptr_t object_id,
+ RawFunction* func,
+ intptr_t tags);
+
protected:
bool CheckAndWritePredefinedObject(RawObject* raw);
bool HandleVMIsolateObject(RawObject* raw);
void WriteClassId(RawClass* cls);
- void WriteStaticImplicitClosure(intptr_t object_id,
- RawFunction* func,
- intptr_t tags);
void WriteObjectImpl(RawObject* raw, bool as_reference);
void WriteMarkedObjectImpl(RawObject* raw,
intptr_t tags,
@@ -942,7 +952,6 @@ class SnapshotWriter : public BaseWriter {
RawTypeArguments* type_arguments,
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);
« 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