1 USING: accessors compiler.cfg.instructions compiler.cfg.registers
2 compiler.cfg.save-contexts compiler.test cpu.architecture kernel
3 namespaces tools.test ;
4 IN: compiler.cfg.save-contexts.tests
6 ! insns-needs-save-context?
10 } insns-needs-save-context?
14 } insns-needs-save-context?
15 { T{ ##alien-invoke } } insns-needs-save-context?
18 H{ } clone representations set
25 0 get [ insert-save-context ] change-instructions drop
36 4 vreg-counter set-global
40 T{ ##box f 4 3 "from_signed_4" int-rep
41 T{ gc-map { gc-roots { } } }
45 0 get [ insert-save-context ] change-instructions drop
50 T{ ##save-context f 5 6 }
51 T{ ##box f 4 3 "from_signed_4" int-rep
52 T{ gc-map { gc-roots { } } }
64 0 get [ insert-save-context ] change-instructions drop
69 T{ ##save-context f 7 8 }