#pragma once
namespace JSC {
enum JSType : uint8_t {
UnspecifiedType,
UndefinedType,
BooleanType,
NumberType,
NullType,
CellType,
StringType,
SymbolType,
CustomGetterSetterType,
APIValueWrapperType,
EvalExecutableType,
ProgramExecutableType,
ModuleProgramExecutableType,
FunctionExecutableType,
WebAssemblyExecutableType,
UnlinkedFunctionExecutableType,
UnlinkedProgramCodeBlockType,
UnlinkedModuleProgramCodeBlockType,
UnlinkedEvalCodeBlockType,
UnlinkedFunctionCodeBlockType,
JSFixedArrayType,
JSSourceCodeType,
JSScriptFetcherType,
ObjectType,
FinalObjectType,
JSCalleeType,
JSFunctionType,
NumberObjectType,
ErrorInstanceType,
PureForwardingProxyType,
ImpureProxyType,
WithScopeType,
DirectArgumentsType,
ScopedArgumentsType,
ArrayType,
DerivedArrayType,
Int8ArrayType,
Int16ArrayType,
Int32ArrayType,
Uint8ArrayType,
Uint8ClampedArrayType,
Uint16ArrayType,
Uint32ArrayType,
Float32ArrayType,
Float64ArrayType,
DataViewType,
GetterSetterType,
GlobalObjectType,
LexicalEnvironmentType,
GlobalLexicalEnvironmentType,
ModuleEnvironmentType,
StrictEvalActivationType,
RegExpObjectType,
ProxyObjectType,
JSMapType,
JSSetType,
WebAssemblyFunctionType,
ClonedArgumentsType,
WebAssemblyToJSCalleeType,
LastJSCObjectType = WebAssemblyToJSCalleeType,
MaxJSType = 0b11111111,
};
static_assert(sizeof(JSType) == sizeof(uint8_t), "sizeof(JSType) is one byte.");
static_assert(LastJSCObjectType < 128, "The highest bit is reserved for embedder's extension.");
}