mkfunc.spad line 302 [edit on github]
transforms top-level objects into compiled functions.
binaryFunction(s) is a local function
compiledFunction(expr, x, y) returns a function f: (D1, D2) -> I defined by f(x, y) == expr. Function f is compiled and directly applicable to objects of type (D1, D2)