Filled ClassId enum

This commit is contained in:
Selim Mustafaev 2022-11-30 00:06:19 +03:00
parent 59e8789455
commit 24917a40ab
2 changed files with 116 additions and 34 deletions

View File

@ -51,40 +51,118 @@ namespace Dart {
LanguageError = 40,
UnhandledException = 41,
UnwindError = 42,
Instance
LibraryPrefix
TypeArguments
AbstractType
Type
FunctionType
TypeRef
TypeParameter
Closure
Number
Integer
Smi
Mint
Double
Bool
Float32x4
Int32x4
Float64x2
TypedDataBase
TypedData
ExternalTypedData
TypedDataView
Pointer
DynamicLibrary
Capability
ReceivePort
SendPort
StackTrace
RegExp
WeakProperty
MirrorReference
FutureOr
UserTag
TransferableTypedData
Instance = 43,
LibraryPrefix = 44,
TypeArguments = 45,
AbstractType = 46,
Type = 47,
FunctionType = 48,
TypeRef = 49,
TypeParameter = 50,
Closure = 51,
Number = 52,
Integer = 53,
Smi = 54,
Mint = 55,
Double = 56,
Bool = 57,
Float32x4 = 58,
Int32x4 = 59,
Float64x2 = 60,
TypedDataBase = 61,
TypedData = 62,
ExternalTypedData = 63,
TypedDataView = 64,
Pointer = 65,
DynamicLibrary = 66,
Capability = 67,
ReceivePort = 68,
SendPort = 69,
StackTrace = 70,
RegExp = 71,
WeakProperty = 72,
MirrorReference = 73,
FutureOr = 74,
UserTag = 75,
TransferableTypedData = 76,
LinkedHashMap = 77,
ImmutableLinkedHashMap = 78,
LinkedHashSet = 79,
ImmutableLinkedHashSet = 80,
Array = 81,
ImmutableArray = 82,
GrowableObjectArray = 83,
String = 84,
OneByteString = 85,
TwoByteString = 86,
ExternalOneByteString = 87,
ExternalTwoByteString = 88,
kFfiNativeFunctionCid = 89,
FfiInt8 = 90,
FfiInt16 = 91,
FfiInt32 = 92,
FfiInt64 = 93,
FfiUint8 = 94,
FfiUint16 = 95,
FfiUint32 = 96,
FfiUint64 = 97,
FfiIntPtr = 98,
FfiFloat = 99,
FfiDouble = 100,
FfiVoid = 101,
FfiHandle = 102,
FfiBool = 103,
FfiNativeType = 104,
FfiStruct = 105,
TypedDataInt8Array = 106,
TypedDataInt8ArrayView = 107,
ExternalTypedDataInt8Array = 108,
TypedDataUint8Array = 109,
TypedDataUint8ArrayView = 110,
ExternalTypedDataUint8Array = 111,
TypedDataUint8ClampedArray = 112,
TypedDataUint8ClampedArrayView = 113,
ExternalTypedDataUint8ClampedArray = 114,
TypedDataInt16Array = 115,
TypedDataInt16ArrayView = 116,
ExternalTypedDataInt16Array = 117,
TypedDataUint16Array = 118,
TypedDataUint16ArrayView = 119,
ExternalTypedDataUint16Array = 120,
TypedDataInt32Array = 121,
TypedDataInt32ArrayView = 122,
ExternalTypedDataInt32Array = 123,
TypedDataUint32Array = 124,
TypedDataUint32ArrayView = 125,
ExternalTypedDataUint32Array = 126,
TypedDataInt64Array = 127,
TypedDataInt64ArrayView = 128,
ExternalTypedDataInt64Array = 129,
TypedDataUint64Array = 130,
TypedDataUint64ArrayView = 131,
ExternalTypedDataUint64Array = 132,
TypedDataFloat32Array = 133,
TypedDataFloat32ArrayView = 134,
ExternalTypedDataFloat32Array = 135,
TypedDataFloat64Array = 136,
TypedDataFloat64ArrayView = 137,
ExternalTypedDataFloat64Array = 138,
TypedDataFloat32x4Array = 139,
TypedDataFloat32x4ArrayView = 140,
ExternalTypedDataFloat32x4Array = 141,
TypedDataInt32x4Array = 142,
TypedDataInt32x4ArrayView = 143,
ExternalTypedDataInt32x4Array = 144,
TypedDataFloat64x2Array = 145,
TypedDataFloat64x2ArrayView = 146,
ExternalTypedDataFloat64x2Array = 147,
ByteDataView = 148,
ByteBuffer = 149,
Null = 150,
Dynamic = 151,
Void = 152,
Never = 153,
NumPredefined = 154
};
}

View File

@ -41,6 +41,10 @@ namespace Dart {
_fieldTableLength = Leb128Int(data);
data += _fieldTableLength.size();
auto nextInt = Leb128Int(data);
auto val = nextInt.value();
auto size = nextInt.size();
}
uint64_t Snapshot::size() const {