projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cast switch scrutinees to W_ in AutoApply.cmm
[ghc-hetmet.git]
/
utils
/
genapply
/
GenApply.hs
diff --git
a/utils/genapply/GenApply.hs
b/utils/genapply/GenApply.hs
index
cdde66f
..
6827703
100644
(file)
--- a/
utils/genapply/GenApply.hs
+++ b/
utils/genapply/GenApply.hs
@@
-414,7
+414,7
@@
genApply regstatus args =
-- if fast == 1:
-- print " goto *lbls[info->type];";
-- else:
-- if fast == 1:
-- print " goto *lbls[info->type];";
-- else:
- text "switch [INVALID_OBJECT .. N_CLOSURE_TYPES] (%INFO_TYPE(%STD_INFO(info))) {",
+ text "switch [INVALID_OBJECT .. N_CLOSURE_TYPES] (TO_W_(%INFO_TYPE(%STD_INFO(info)))) {",
nest 4 (vcat [
-- if fast == 1:
nest 4 (vcat [
-- if fast == 1:
@@
-540,7
+540,7
@@
genApplyFast regstatus args =
text "W_ info;",
text "W_ arity;",
text "info = %GET_STD_INFO(R1);",
text "W_ info;",
text "W_ arity;",
text "info = %GET_STD_INFO(R1);",
- text "switch [INVALID_OBJECT .. N_CLOSURE_TYPES] (%INFO_TYPE(info)) {",
+ text "switch [INVALID_OBJECT .. N_CLOSURE_TYPES] (TO_W_(%INFO_TYPE(info))) {",
nest 4 (vcat [
text "case FUN,",
text " FUN_1_0,",
nest 4 (vcat [
text "case FUN,",
text " FUN_1_0,",