mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
name the result of calccall
This is a pure refactoring for better understanding of what is happening here. Should change nothing but readability.
This commit is contained in:
parent
d4da74ea78
commit
90fc555258
1 changed files with 3 additions and 2 deletions
|
@ -1422,14 +1422,15 @@ rb_vm_search_method_slowpath(struct rb_call_data *cd, VALUE klass)
|
||||||
struct rb_call_cache *cc = &cd->cc;
|
struct rb_call_cache *cc = &cd->cc;
|
||||||
const rb_callable_method_entry_t *me =
|
const rb_callable_method_entry_t *me =
|
||||||
rb_callable_method_entry(klass, ci->mid);
|
rb_callable_method_entry(klass, ci->mid);
|
||||||
|
const vm_call_handler call = calccall(cd, me);
|
||||||
struct rb_call_cache buf = {
|
struct rb_call_cache buf = {
|
||||||
GET_GLOBAL_METHOD_STATE(),
|
GET_GLOBAL_METHOD_STATE(),
|
||||||
{ RCLASS_SERIAL(klass) },
|
{ RCLASS_SERIAL(klass) },
|
||||||
me,
|
me,
|
||||||
me ? me->def : NULL,
|
me ? me->def : NULL,
|
||||||
calccall(cd, me),
|
call,
|
||||||
};
|
};
|
||||||
if (buf.call != vm_call_general) {
|
if (call != vm_call_general) {
|
||||||
for (int i = 0; i < numberof(cc->class_serial) - 1; i++) {
|
for (int i = 0; i < numberof(cc->class_serial) - 1; i++) {
|
||||||
buf.class_serial[i + 1] = cc->class_serial[i];
|
buf.class_serial[i + 1] = cc->class_serial[i];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue