[commit: ghc] master: Add basic support for GHCJS (b372e8e)
git at git.haskell.org
git at git.haskell.org
Fri Sep 6 21:15:13 CEST 2013
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/b372e8eadcbb6abe00d7a7b1198b656a29dcb1ce/ghc
>---------------------------------------------------------------
commit b372e8eadcbb6abe00d7a7b1198b656a29dcb1ce
Author: Austin Seipp <aseipp at pobox.com>
Date: Fri Sep 6 13:18:11 2013 -0500
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 at gmail.com>
Signed-off-by: Austin Seipp <aseipp at pobox.com>
>---------------------------------------------------------------
b372e8eadcbb6abe00d7a7b1198b656a29dcb1ce
compiler/cmm/PprC.hs | 1 +
compiler/llvmGen/LlvmCodeGen/CodeGen.hs | 1 +
compiler/main/DynFlags.hs | 17 ++++++++++++++++-
compiler/nativeGen/AsmCodeGen.lhs | 1 +
compiler/nativeGen/RegAlloc/Graph/TrivColorable.hs | 4 ++++
compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs | 1 +
compiler/nativeGen/RegAlloc/Linear/Main.hs | 1 +
compiler/nativeGen/TargetReg.hs | 6 ++++++
compiler/parser/Lexer.x | 2 ++
compiler/parser/Parser.y.pp | 3 +++
compiler/parser/RdrHsSyn.lhs | 5 ++++-
compiler/prelude/ForeignCall.lhs | 10 ++++++++--
compiler/typecheck/TcForeign.lhs | 5 +++++
compiler/utils/Platform.hs | 1 +
14 files changed, 54 insertions(+), 4 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc b372e8eadcbb6abe00d7a7b1198b656a29dcb1ce
More information about the ghc-commits
mailing list