Commits on Source (2)
-
Rodrigo Mesquita authoredUnverified07d9215b
-
Rodrigo Mesquita authored
This commit makes the symbol cache that was used by the external interpreter available for the internal interpreter too. This follows from the analysis in #23415 that suggests the internal interpreter could benefit from this cache too, and that there is no good reason not to have the cache for it too. It also makes it a bit more uniform to have the symbol cache range over both the internal and external interpreter. This commit also refactors the cache into a function which is used by both `lookupSymbol` and also by `lookupSymbolInDLL`, extending the caching logic to `lookupSymbolInDLL` too.
Unverifiedf821f42c
Showing
- compiler/GHC.hs 5 additions, 3 deletionscompiler/GHC.hs
- compiler/GHC/Driver/Main.hs 1 addition, 1 deletioncompiler/GHC/Driver/Main.hs
- compiler/GHC/Runtime/Interpreter.hs 58 additions, 41 deletionscompiler/GHC/Runtime/Interpreter.hs
- compiler/GHC/Runtime/Interpreter/JS.hs 0 additions, 3 deletionscompiler/GHC/Runtime/Interpreter/JS.hs
- compiler/GHC/Runtime/Interpreter/Types.hs 3 additions, 3 deletionscompiler/GHC/Runtime/Interpreter/Types.hs
- rts/Linker.c 16 additions, 20 deletionsrts/Linker.c
- rts/linker/LoadNativeObjPosix.c 6 additions, 3 deletionsrts/linker/LoadNativeObjPosix.c
- rts/linker/PEi386.c 48 additions, 35 deletionsrts/linker/PEi386.c
- rts/linker/PEi386.h 1 addition, 0 deletionsrts/linker/PEi386.h