1 USING: bit-arrays classes.struct sequences
2 tools.gc-decode tools.test vm ;
5 QUALIFIED: unix.process
6 IN: tools.gc-decode.tests
15 B{ 239 1 } byte-array>bit-array
18 { ?{ t t t t t t t t } } [ B{ 255 } byte-array>bit-array ] unit-test
22 \ effects:<effect> word>gc-info scrub-bits
24 ?{ t t t f t t t t } ! 64-bit
25 ?{ t t t f f f f f t t t t } ! 32-bit
32 \ decode-gc-maps word>gc-info scrub-bits
38 { 151 { { ?{ } ?{ t t t } ?{ } ?{ } ?{ f t t t t } } { } } }
41 \ effects:<effect> decode-gc-maps
46 { 82 { { ?{ t f } ?{ t } ?{ f } ?{ f f } ?{ } } { } } }
47 { 244 { { ?{ f f } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
48 { 445 { { ?{ f f } ?{ f } ?{ t } ?{ t t } ?{ } } { } } }
49 { 522 { { ?{ t t } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
52 \ unix.process:fork-process decode-gc-maps
57 \ decode-gc-maps decode-gc-maps
63 { -1 -1 -1 -1 -1 -1 -1 }
64 { -1 -1 -1 -1 -1 -1 -1 }
65 { -1 -1 -1 -1 -1 -1 -1 }
66 { -1 -1 -1 -1 -1 -1 5 }
67 { -1 -1 -1 -1 -1 -1 5 }
68 { -1 -1 -1 -1 -1 -1 -1 }
71 \ llvm.types:resolve-types word>gc-info base-pointer-groups
75 ! One of the few words that has derived roots.
77 \ llvm.types:resolve-types word>gc-info
79 S{ gc-info f 0 2 2 1 6 7 6 } ! 64-bit
80 S{ gc-info f 0 2 2 1 10 11 6 } ! 32-bit