[Git][ghc/ghc][master] JS: remove dead code for old integer-gmp
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Fri Mar 10 15:19:51 UTC 2023
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
5b4628ae by Sylvain Henry at 2023-03-10T10:19:34-05:00
JS: remove dead code for old integer-gmp
- - - - -
1 changed file:
- rts/js/rts.js
Changes:
=====================================
rts/js/rts.js
=====================================
@@ -365,14 +365,7 @@ function h$printReg(r) {
} else if(r.f.t === h$ct_blackhole && r.x) {
return ("blackhole: -> " + h$printReg({ f: r.x.x1, d: r.d1.x2 }) + ")");
} else {
- var iv = "";
- if(r.f.n === "integer-gmp:GHC.Integer.Type.Jp#" ||
- r.f.n === "integer-gmp:GHC.Integer.Type.Jn#") {
- iv = ' [' + r.d1.join(',') + '](' + h$ghcjsbn_showBase(r.d1, 10) + ')'
- } else if(r.f.n === "integer-gmp:GHC.Integer.Type.S#") {
- iv = ' (S: ' + r.d1 + ')';
- }
- return ((r.alloc ? r.alloc + ': ' : '') + r.f.n + " (" + h$closureTypeName(r.f.t) + ", " + r.f.a + ")" + iv);
+ return ((r.alloc ? r.alloc + ': ' : '') + r.f.n + " (" + h$closureTypeName(r.f.t) + ", " + r.f.a + ")");
}
} else if(typeof r === 'object') {
var res = h$collectProps(r);
@@ -536,14 +529,7 @@ function h$dumpStackTop(stack, start, sp) {
if(s.f.t === h$ct_blackhole && s.d1 && s.d1.x1 && s.d1.x1.n) {
h$log("stack[" + i + "] = blackhole -> " + s.d1.x1.n);
} else {
- var iv = "";
- if(s.f.n === "integer-gmp:GHC.Integer.Type.Jp#" ||
- s.f.n === "integer-gmp:GHC.Integer.Type.Jn#") {
- iv = ' [' + s.d1.join(',') + '](' + h$ghcjsbn_showBase(s.d1, 10) + ')'
- } else if(s.f.n === "integer-gmp:GHC.Integer.Type.S#") {
- iv = ' (S: ' + s.d1 + ')';
- }
- h$log("stack[" + i + "] = -> " + (s.alloc ? s.alloc + ': ' : '') + s.f.n + " (" + h$closureTypeName(s.f.t) + ", a: " + s.f.a + ")" + iv);
+ h$log("stack[" + i + "] = -> " + (s.alloc ? s.alloc + ': ' : '') + s.f.n + " (" + h$closureTypeName(s.f.t) + ", a: " + s.f.a + ")");
}
}
} else if(h$isInstanceOf(s,h$MVar)) {
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5b4628aeeca9b7ae0665378f0ce1b1d967c6a1c9
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5b4628aeeca9b7ae0665378f0ce1b1d967c6a1c9
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230310/8d46c0b7/attachment-0001.html>
More information about the ghc-commits
mailing list