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
37 \ effects:<effect> decode-gc-maps
40 { 151 { { ?{ } ?{ t t t } ?{ } ?{ } ?{ f t t t t } } { } } }
43 { 124 { { ?{ } ?{ t t t } ?{ } ?{ } ?{ f f f f f t t t t } } { } } }
49 \ unix.process:fork-process decode-gc-maps
52 { 82 { { ?{ t f } ?{ t } ?{ f } ?{ f f } ?{ } } { } } }
53 { 244 { { ?{ f f } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
54 { 445 { { ?{ f f } ?{ f } ?{ t } ?{ t t } ?{ } } { } } }
55 { 522 { { ?{ t t } ?{ f } ?{ f } ?{ t f } ?{ } } { } } }
58 { 57 { { ?{ t f } ?{ t } ?{ f } ?{ f f } ?{ f f f f f f f } } { } } }
59 { 90 { { ?{ t f } ?{ t } ?{ f } ?{ f f } ?{ f f f f f f t } } { } } }
60 { 207 { { ?{ f f } ?{ f } ?{ f } ?{ t f } ?{ f f f f f f f } } { } } }
61 { 231 { { ?{ f f } ?{ f } ?{ f } ?{ t f } ?{ f f f f f f f } } { } } }
62 { 437 { { ?{ f f } ?{ f } ?{ t } ?{ t t } ?{ f f f f f f f } } { } } }
63 { 495 { { ?{ t t } ?{ f } ?{ f } ?{ t f } ?{ f f f f f f f } } { } } }
64 { 519 { { ?{ t t } ?{ f } ?{ f } ?{ t f } ?{ f f f f f f f } } { } } }
71 \ decode-gc-maps decode-gc-maps
76 \ llvm.types:resolve-types word>gc-info base-pointer-groups
79 { -1 -1 -1 -1 -1 -1 -1 }
80 { -1 -1 -1 -1 -1 -1 -1 }
81 { -1 -1 -1 -1 -1 -1 -1 }
82 { -1 -1 -1 -1 -1 -1 5 }
83 { -1 -1 -1 -1 -1 -1 5 }
84 { -1 -1 -1 -1 -1 -1 -1 }
87 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 }
88 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 }
89 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 }
90 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 9 }
91 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 9 }
92 { -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 }
98 ! One of the few words that has derived roots.
100 \ llvm.types:resolve-types word>gc-info
102 S{ gc-info f 0 2 2 1 6 7 6 } ! 64-bit
103 S{ gc-info f 0 2 2 1 10 11 6 } ! 32-bit