1 USING: bit-arrays classes.struct tools.gc-decode tools.test vm ;
4 QUALIFIED: unix.process
5 IN: tools.gc-decode.tests
14 B{ 239 1 } byte-array>bit-array
17 { ?{ t t t t t t t t } } [ B{ 255 } byte-array>bit-array ] unit-test
23 \ effects:<effect> word>gc-info scrub-bits
29 \ decode-gc-maps word>gc-info scrub-bits
35 { 151 { { ?{ } ?{ t t t } ?{ } ?{ } ?{ f t t t t } } { } } }
38 \ effects:<effect> decode-gc-maps
43 { 82 { { ?{ t f } ?{ t } ?{ f } ?{ f f } ?{ } } { } } }
44 { 244 { { ?{ f f } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
45 { 445 { { ?{ f f } ?{ f } ?{ t } ?{ t t } ?{ } } { } } }
46 { 522 { { ?{ t t } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
49 \ unix.process:fork-process decode-gc-maps
54 \ decode-gc-maps decode-gc-maps
60 { -1 -1 -1 -1 -1 -1 -1 }
61 { -1 -1 -1 -1 -1 -1 -1 }
62 { -1 -1 -1 -1 -1 -1 -1 }
63 { -1 -1 -1 -1 -1 -1 5 }
64 { -1 -1 -1 -1 -1 -1 5 }
65 { -1 -1 -1 -1 -1 -1 -1 }
68 \ llvm.types:resolve-types word>gc-info base-pointer-groups
72 ! One of the few words that has derived roots.
74 S{ gc-info f 0 2 2 2 6 7 6 }
76 \ llvm.types:resolve-types word>gc-info