Add basic support for GHCJS
This patch encompasses most of the basic infrastructure for GHCJS. It includes: * A new extension, -XJavaScriptFFI * A new architecture, ArchJavaScript * Parser and lexer support for 'foreign import javascript', only available under -XJavaScriptFFI, using ArchJavaScript. * As a knock-on, there is also a new 'WayCustom' constructor in DynFlags, so clients of the GHC API can add custom 'tags' to their built files. This should be useful for other users as well. The remaining changes are really just the resulting fallout, making sure all the cases are handled appropriately for DynFlags and Platform. Authored-by:Luite Stegeman <stegeman@gmail.com> Signed-off-by:
Austin Seipp <aseipp@pobox.com>
Showing
- compiler/cmm/PprC.hs 1 addition, 0 deletionscompiler/cmm/PprC.hs
- compiler/llvmGen/LlvmCodeGen/CodeGen.hs 1 addition, 0 deletionscompiler/llvmGen/LlvmCodeGen/CodeGen.hs
- compiler/main/DynFlags.hs 16 additions, 1 deletioncompiler/main/DynFlags.hs
- compiler/nativeGen/AsmCodeGen.lhs 1 addition, 0 deletionscompiler/nativeGen/AsmCodeGen.lhs
- compiler/nativeGen/RegAlloc/Graph/TrivColorable.hs 4 additions, 0 deletionscompiler/nativeGen/RegAlloc/Graph/TrivColorable.hs
- compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs 1 addition, 0 deletionscompiler/nativeGen/RegAlloc/Linear/FreeRegs.hs
- compiler/nativeGen/RegAlloc/Linear/Main.hs 1 addition, 0 deletionscompiler/nativeGen/RegAlloc/Linear/Main.hs
- compiler/nativeGen/TargetReg.hs 6 additions, 0 deletionscompiler/nativeGen/TargetReg.hs
- compiler/parser/Lexer.x 2 additions, 0 deletionscompiler/parser/Lexer.x
- compiler/parser/Parser.y.pp 3 additions, 0 deletionscompiler/parser/Parser.y.pp
- compiler/parser/RdrHsSyn.lhs 4 additions, 1 deletioncompiler/parser/RdrHsSyn.lhs
- compiler/prelude/ForeignCall.lhs 8 additions, 2 deletionscompiler/prelude/ForeignCall.lhs
- compiler/typecheck/TcForeign.lhs 5 additions, 0 deletionscompiler/typecheck/TcForeign.lhs
- compiler/utils/Platform.hs 1 addition, 0 deletionscompiler/utils/Platform.hs
Loading
Please register or sign in to comment