-USING: accessors arrays assocs combinators.extras compiler.cfg
+USING: accessors assocs combinators.extras compiler.cfg
compiler.cfg.instructions compiler.cfg.linear-scan.allocation
compiler.cfg.linear-scan.allocation.state
-compiler.cfg.linear-scan.live-intervals compiler.cfg.utilities cpu.architecture
-cpu.x86.assembler.operands heaps kernel layouts namespaces sequences system
-tools.test ;
+compiler.cfg.linear-scan.live-intervals compiler.cfg.utilities
+cpu.architecture cpu.x86.assembler.operands heaps kernel layouts
+literals namespaces sequences system tools.test ;
IN: compiler.cfg.linear-scan.allocation.state.tests
! active-intervals-for
] unit-test
! assign-spill-slot
-cpu x86.32?
-H{
- { { 3 4 } T{ spill-slot { n 32 } } }
- { { 1234 4 } T{ spill-slot } }
- { { 45 16 } T{ spill-slot { n 16 } } }
-}
-H{
- { { 3 8 } T{ spill-slot { n 32 } } }
- { { 1234 8 } T{ spill-slot } }
- { { 45 16 } T{ spill-slot { n 16 } } }
-} ? 1array
-[
+${
+ cpu x86.32?
+ H{
+ { { 3 4 } T{ spill-slot { n 32 } } }
+ { { 1234 4 } T{ spill-slot } }
+ { { 45 16 } T{ spill-slot { n 16 } } }
+ }
+ H{
+ { { 3 8 } T{ spill-slot { n 32 } } }
+ { { 1234 8 } T{ spill-slot } }
+ { { 45 16 } T{ spill-slot { n 16 } } }
+ } ?
+} [
H{ } clone spill-slots set
f f <basic-block> <cfg> cfg set
{ 1234 45 3 } { int-rep double-2-rep tagged-rep }
-USING: compiler.cfg.value-numbering compiler.cfg.instructions
-compiler.cfg.registers compiler.cfg.debugger compiler.cfg.comparisons
-cpu.architecture tools.test kernel math combinators.short-circuit
-accessors sequences compiler.cfg.predecessors locals compiler.cfg.dce
-compiler.cfg.ssa.destruction compiler.cfg.loop-detection
-compiler.cfg.representations compiler.cfg compiler.cfg.utilities assocs vectors
-arrays layouts literals namespaces alien compiler.cfg.value-numbering.simd
-system ;
+USING: accessors alien assocs combinators.short-circuit
+compiler.cfg compiler.cfg.comparisons compiler.cfg.dce
+compiler.cfg.debugger compiler.cfg.instructions
+compiler.cfg.registers compiler.cfg.representations
+compiler.cfg.ssa.destruction compiler.cfg.utilities
+compiler.cfg.value-numbering cpu.architecture kernel layouts
+literals math namespaces sequences system tools.test ;
QUALIFIED-WITH: alien.c-types c
IN: compiler.cfg.value-numbering.tests
] unit-test
! Scale fusion on ##load/store-memory
-cpu x86?
-[
+${
+ cpu x86?
V{
T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 }
T{ ##shl-imm f 4 3 2 }
T{ ##load-memory f 5 2 3 2 0 int-rep c:uchar }
}
-]
-[
V{
T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 }
T{ ##tagged>integer f 3 1 }
T{ ##shl-imm f 4 3 2 }
T{ ##load-memory f 5 2 4 0 0 int-rep c:uchar }
- }
-] ?
-[
+ } ?
+} [
V{
T{ ##peek f 0 D 0 }
T{ ##peek f 1 D 1 }
-USING: arrays tools.test globs io.pathnames sequences ;
+USING: globs io.pathnames literals sequences tools.test ;
IN: globs.tests
[ f ] [ "abd" "fdf" glob-matches? ] unit-test
[ t ] [ "fo\\*" glob-pattern? ] unit-test
[ t ] [ "fo{o,bro}" glob-pattern? ] unit-test
-{ "foo" "bar" } path-separator join 1array
+${ { "foo" "bar" } path-separator join }
[ { "foo" "bar" "ba?" } path-separator join glob-parent-directory ] unit-test
[ "foo" ]
blah
;
-read-request-test-1' 1array [
+${ read-request-test-1' } [
read-request-test-1 lf>crlf
[ read-request ] with-string-reader
[ write-request ] with-string-writer
;
-read-response-test-1' 1array [
+${ read-response-test-1' } [
URL" http://localhost/" url set
read-response-test-1 lf>crlf
[ read-response ] with-string-reader
-USING: assocs arrays json.reader kernel strings tools.test
-hashtables json io.streams.string math ;
+USING: hashtables io.streams.string json json.reader kernel
+literals math strings tools.test ;
IN: json.reader.tests
{ f } [ "false" json> ] unit-test
{ "while 1:\n\tpass" } [ """ "while 1:\n\tpass" """ json> ] unit-test
! unicode is allowed in json
{ "ß∂¬ƒ˚∆" } [ """ "ß∂¬ƒ˚∆"""" json> ] unit-test
-{ 8 9 10 12 13 34 47 92 } >string 1array [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test
-{ 0xabcd } >string 1array [ """ "\\uaBCd" """ json> ] unit-test
+${ { 8 9 10 12 13 34 47 92 } >string } [ """ "\\b\\t\\n\\f\\r\\"\\/\\\\" """ json> ] unit-test
+${ { 0xabcd } >string } [ """ "\\uaBCd" """ json> ] unit-test
{ "𝄞" } [ "\"\\ud834\\udd1e\"" json> ] unit-test
{ H{ { "a" { } } { "b" 123 } } } [ "{\"a\":[],\"b\":123}" json> ] unit-test