2009-09-08 22:56:28 -04:00
|
|
|
USING: accessors compiler.cfg.debugger
|
2009-09-09 14:44:54 -04:00
|
|
|
compiler.cfg.instructions compiler.cfg.registers
|
|
|
|
compiler.cfg.save-contexts kernel namespaces tools.test ;
|
2009-09-08 22:56:28 -04:00
|
|
|
IN: compiler.cfg.save-contexts.tests
|
|
|
|
|
2009-09-09 14:44:54 -04:00
|
|
|
0 vreg-counter set-global
|
|
|
|
H{ } clone representations set
|
|
|
|
|
2009-09-08 22:56:28 -04:00
|
|
|
V{
|
2009-09-09 14:44:54 -04:00
|
|
|
T{ ##unary-float-function f 2 3 "sqrt" }
|
2009-09-08 22:56:28 -04:00
|
|
|
T{ ##branch }
|
|
|
|
} 0 test-bb
|
|
|
|
|
2009-09-09 14:44:54 -04:00
|
|
|
0 get insert-save-context
|
2009-09-08 22:56:28 -04:00
|
|
|
|
|
|
|
[
|
|
|
|
V{
|
2009-12-21 21:42:49 -05:00
|
|
|
T{ ##save-context f 1 2 }
|
2009-09-09 14:44:54 -04:00
|
|
|
T{ ##unary-float-function f 2 3 "sqrt" }
|
2009-09-08 22:56:28 -04:00
|
|
|
T{ ##branch }
|
|
|
|
}
|
|
|
|
] [
|
|
|
|
0 get instructions>>
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
V{
|
|
|
|
T{ ##add f 1 2 3 }
|
|
|
|
T{ ##branch }
|
|
|
|
} 0 test-bb
|
|
|
|
|
2009-09-09 14:44:54 -04:00
|
|
|
0 get insert-save-context
|
2009-09-08 22:56:28 -04:00
|
|
|
|
|
|
|
[
|
|
|
|
V{
|
|
|
|
T{ ##add f 1 2 3 }
|
|
|
|
T{ ##branch }
|
|
|
|
}
|
|
|
|
] [
|
|
|
|
0 get instructions>>
|
|
|
|
] unit-test
|