@@ -15,8 +15,10 @@ import qualified Data.Text as T
1515merge :: Text -> Text -> Text
1616merge x y = T. append x . T. cons ' /' $ y
1717
18- rts , apply , thunk , stg , exception , io , util , stm , par , interp , conc :: Text -> Text
18+ rts , eta , etaex , apply , thunk , stg , exception , io , util , stm , par , interp , conc :: Text -> Text
1919rts = merge " eta/runtime"
20+ eta = merge " eta"
21+ etaex = merge " eta/exception"
2022apply = merge (rts " apply" )
2123thunk = merge (rts " thunk" )
2224stg = merge (rts " stg" )
@@ -32,16 +34,16 @@ closureType, indStaticType, contextType, capabilityType, taskType, funType, tsoT
3234 frameType, conType, thunkType, rtsConfigType, exitCodeType,
3335 rtsOptsEnbledType, stgArrayType, stgByteArrayType, stgMutVarType, stgMVarType,
3436 hsResultType , stgTVarType , stgBCOType , stgWeakType :: FieldType
35- closureType = obj stgClosure
37+ closureType = obj etaClosure
3638indStaticType = obj stgIndStatic
3739contextType = obj stgContext
3840capabilityType = obj capability
3941taskType = obj task
40- funType = obj stgFun
42+ funType = obj etaFun
4143tsoType = obj stgTSO
4244frameType = obj stackFrame
43- conType = obj stgConstr
44- thunkType = obj stgThunk
45+ conType = obj etaDataCon
46+ thunkType = obj etaThunk
4547rtsConfigType = obj rtsConfig
4648rtsOptsEnbledType = obj rtsOptsEnbled
4749exitCodeType = obj exitCode
@@ -54,19 +56,19 @@ hsResultType = obj hsResult
5456stgBCOType = obj stgBCO
5557stgWeakType = obj stgWeak
5658
57- stgConstr, stgClosure , stgContext, capability, task, stgInd, stgIndStatic, stgThunk ,
58- stgFun , stgTSO, stackFrame, rtsConfig, rtsOptsEnbled, exitCode, stgArray,
59+ etaDataCon, etaClosure , stgContext, capability, task, stgInd, stgIndStatic, etaThunk ,
60+ etaFun , stgTSO, stackFrame, rtsConfig, rtsOptsEnbled, exitCode, stgArray,
5961 stgByteArray, rtsUnsigned, stgMutVar, stgMVar, stgTVar, rtsGroup, hsResult,
6062 stgBCO , stgWeak :: Text
61- stgConstr = stg " DataCon"
62- stgClosure = stg " Closure"
63+ etaDataCon = eta " DataCon"
64+ etaClosure = eta " Closure"
6365stgContext = stg " StgContext"
64- capability = stg " Capability"
66+ capability = rts " Capability"
6567task = stg " Task"
66- stgInd = thunk " UpdatableThunk"
68+ stgInd = eta " UpdatableThunk"
6769stgIndStatic = thunk " CAF"
68- stgThunk = thunk " Thunk"
69- stgFun = apply " Function"
70+ etaThunk = eta " Thunk"
71+ etaFun = eta " Function"
7072stgTSO = stg " TSO"
7173stackFrame = stg " StackFrame"
7274rtsConfig = rts " RtsConfig"
@@ -206,14 +208,15 @@ resumeInterruptsMethod :: Code
206208resumeInterruptsMethod =
207209 invokevirtual $ mkMethodRef stgTSO " resumeInterrupts" [jbool] void
208210
209- stgExceptionGroup , ioGroup , stmGroup , concGroup , parGroup , interpGroup , stgGroup :: Text
211+ stgExceptionGroup , ioGroup , stmGroup , concGroup , parGroup , interpGroup , stgGroup , applyGroup :: Text
210212stgExceptionGroup = exception " Exception"
211213ioGroup = io " IO"
212214stmGroup = stm " STM"
213215concGroup = conc " Concurrent"
214216stgGroup = stg " Stg"
215217parGroup = par " Parallel"
216218interpGroup = interp " Interpreter"
219+ applyGroup = apply " Apply"
217220
218221-- Types
219222byteArrayBuf :: Code
@@ -275,7 +278,7 @@ getTagMethod :: Code -> Code
275278getTagMethod code
276279 = code
277280 <> gconv closureType conType
278- <> invokevirtual (mkMethodRef stgConstr " getTag" [] (ret jint))
281+ <> invokevirtual (mkMethodRef etaDataCon " getTag" [] (ret jint))
279282
280283printStream :: Text
281284printStream = " java/io/PrintStream"
0 commit comments