This commit is contained in:
Selim Mustafaev 2022-11-29 23:36:44 +03:00
commit 59e8789455
2 changed files with 93 additions and 1 deletions

View File

@ -3,6 +3,6 @@ project(unflutter)
set(CMAKE_CXX_STANDARD 20)
add_executable(unflutter main.cpp dart/Reader.cpp dart/Reader.h dart/Snapshot.cpp dart/Snapshot.h dart/Leb128Int.cpp dart/Leb128Int.h)
add_executable(unflutter main.cpp dart/Reader.cpp dart/Reader.h dart/Snapshot.cpp dart/Snapshot.h dart/Leb128Int.cpp dart/Leb128Int.h dart/ClassId.h)
target_include_directories(unflutter PRIVATE ${CMAKE_SOURCE_DIR}/ThirdParty)

92
dart/ClassId.h Normal file
View File

@ -0,0 +1,92 @@
//
// Created by Selim Mustafaev on 29.11.2022.
//
#ifndef UNFLUTTER_CLASSID_H
#define UNFLUTTER_CLASSID_H
namespace Dart {
enum class ClassId {
Illegal = 0,
NativePointer = 1,
FreeListElement = 2,
ForwardingCorpse = 3,
Object = 4,
Class = 5,
PatchClass = 6,
Function = 7,
TypeParameters = 8,
ClosureData = 9,
FfiTrampolineData = 10,
Field = 11,
Script = 12,
Library = 13,
Namespace = 14,
KernelProgramInfo = 15,
WeakSerializationReference = 16,
Code = 17,
Instructions = 18,
InstructionsSection = 19,
InstructionsTable = 20,
ObjectPool = 21,
PcDescriptors = 22,
CodeSourceMap = 23,
CompressedStackMaps = 24,
LocalVarDescriptors = 25,
ExceptionHandlers = 26,
Context = 27,
ContextScope = 28,
Sentinel = 29,
SingleTargetCache = 30,
UnlinkedCall = 31,
MonomorphicSmiableCall = 32,
CallSiteData = 33,
ICData = 34,
MegamorphicCache = 35,
SubtypeTestCache = 36,
LoadingUnit = 37,
Error = 38,
ApiError = 39,
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
};
}
#endif //UNFLUTTER_CLASSID_H