mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Commit before merge
This commit is contained in:
parent
2cb376a53f
commit
ef9eb83cbe
1 changed files with 9 additions and 9 deletions
|
@ -493,21 +493,21 @@ gen_opt_send_without_block(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx)
|
|||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
// Don't JIT if this is not a C call
|
||||
if (cd->cc->call_ != vm_call_cfunc_with_frame)
|
||||
if (vm_cc_cme(cd->cc)->def->type != VM_METHOD_TYPE_CFUNC)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// TODO: stop if the inline cache isn't filled
|
||||
|
||||
// TODO: stop if this isn't a C call
|
||||
|
||||
|
||||
// Things we need to do at run-time:
|
||||
// - Check that the cached klass matches
|
||||
// - Check that method entry is not invalidated
|
||||
// - ???
|
||||
// - Create a new frame
|
||||
// - copy function arguments?
|
||||
// - Call the C function
|
||||
// - Remove the frame
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue