Allow JIT primitive stubs to handle a CallFrame

This makes generating JIT stubs a little bit smarter, so it can also
create stubs for primitives taking a CallFrame as the last argument.