diff --git a/gen/main.go b/gen/main.go index f82c120..dcb1b80 100644 --- a/gen/main.go +++ b/gen/main.go @@ -134,7 +134,7 @@ func generate(typ *def.Class, opt options) string { res += generateBinding(typ, opt) if opt.cpool { - res += fmt.Sprintf("type %s uint32\n", refName(typ)) + res += fmt.Sprintf("type %s uint64\n", refName(typ)) res += fmt.Sprintf("type %s struct {\n", listName(typ)) if opt.doNotKeepData { diff --git a/parser/types/class.go b/parser/types/class.go index 72b2302..0f552b9 100644 --- a/parser/types/class.go +++ b/parser/types/class.go @@ -46,7 +46,7 @@ func NewBindClass(typ *def.Class, typeMap *def.TypeMap) *BindClass { return res } -type ClassRef uint32 +type ClassRef uint64 type ClassList struct { IDMap map[ClassRef]uint32 Class []Class diff --git a/parser/types/classloader.go b/parser/types/classloader.go index 0f5ee84..f453186 100644 --- a/parser/types/classloader.go +++ b/parser/types/classloader.go @@ -44,7 +44,7 @@ func NewBindClassLoader(typ *def.Class, typeMap *def.TypeMap) *BindClassLoader { return res } -type ClassLoaderRef uint32 +type ClassLoaderRef uint64 type ClassLoaderList struct { IDMap map[ClassLoaderRef]uint32 ClassLoader []ClassLoader diff --git a/parser/types/frametype.go b/parser/types/frametype.go index 9d1afda..59d1097 100644 --- a/parser/types/frametype.go +++ b/parser/types/frametype.go @@ -37,7 +37,7 @@ func NewBindFrameType(typ *def.Class, typeMap *def.TypeMap) *BindFrameType { return res } -type FrameTypeRef uint32 +type FrameTypeRef uint64 type FrameTypeList struct { IDMap map[FrameTypeRef]uint32 FrameType []FrameType diff --git a/parser/types/loglevel.go b/parser/types/loglevel.go index 3ba3149..b907653 100644 --- a/parser/types/loglevel.go +++ b/parser/types/loglevel.go @@ -37,7 +37,7 @@ func NewBindLogLevel(typ *def.Class, typeMap *def.TypeMap) *BindLogLevel { return res } -type LogLevelRef uint32 +type LogLevelRef uint64 type LogLevelList struct { IDMap map[LogLevelRef]uint32 LogLevel []LogLevel diff --git a/parser/types/method.go b/parser/types/method.go index 4706f62..6c0464d 100644 --- a/parser/types/method.go +++ b/parser/types/method.go @@ -52,7 +52,7 @@ func NewBindMethod(typ *def.Class, typeMap *def.TypeMap) *BindMethod { return res } -type MethodRef uint32 +type MethodRef uint64 type MethodList struct { IDMap IDMap[MethodRef] Method []Method diff --git a/parser/types/package.go b/parser/types/package.go index b78b2ae..4feaa18 100644 --- a/parser/types/package.go +++ b/parser/types/package.go @@ -37,7 +37,7 @@ func NewBindPackage(typ *def.Class, typeMap *def.TypeMap) *BindPackage { return res } -type PackageRef uint32 +type PackageRef uint64 type PackageList struct { IDMap map[PackageRef]uint32 Package []Package diff --git a/parser/types/skipper.go b/parser/types/skipper.go index 3651e3d..9fd3169 100644 --- a/parser/types/skipper.go +++ b/parser/types/skipper.go @@ -30,7 +30,7 @@ func NewBindSkipConstantPool(typ *def.Class, typeMap *def.TypeMap) *BindSkipCons return res } -type SkipConstantPoolRef uint32 +type SkipConstantPoolRef uint64 type SkipConstantPoolList struct { } diff --git a/parser/types/stacktrace.go b/parser/types/stacktrace.go index 3b7cd42..c9ca6de 100644 --- a/parser/types/stacktrace.go +++ b/parser/types/stacktrace.go @@ -44,7 +44,7 @@ func NewBindStackTrace(typ *def.Class, typeMap *def.TypeMap) *BindStackTrace { return res } -type StackTraceRef uint32 +type StackTraceRef uint64 type StackTraceList struct { IDMap map[StackTraceRef]uint32 StackTrace []StackTrace diff --git a/parser/types/symbol.go b/parser/types/symbol.go index cc69892..6ef4bc2 100644 --- a/parser/types/symbol.go +++ b/parser/types/symbol.go @@ -37,7 +37,7 @@ func NewBindSymbol(typ *def.Class, typeMap *def.TypeMap) *BindSymbol { return res } -type SymbolRef uint32 +type SymbolRef uint64 type SymbolList struct { IDMap map[SymbolRef]uint32 Symbol []Symbol diff --git a/parser/types/threadstate.go b/parser/types/threadstate.go index 7d46519..c10e411 100644 --- a/parser/types/threadstate.go +++ b/parser/types/threadstate.go @@ -37,7 +37,7 @@ func NewBindThreadState(typ *def.Class, typeMap *def.TypeMap) *BindThreadState { return res } -type ThreadStateRef uint32 +type ThreadStateRef uint64 type ThreadStateList struct { IDMap map[ThreadStateRef]uint32 ThreadState []ThreadState