Use symbol cache in internal interpreter too
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.
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
Loading
Please register or sign in to comment