mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* method.h: IMEMO_FL_USER3 and IMEMO_FL_USER4 is not needed any more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
72cf24c813
commit
2d855b08d0
2 changed files with 7 additions and 3 deletions
|
|
@ -1,3 +1,7 @@
|
|||
Tue Oct 6 18:51:51 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* method.h: IMEMO_FL_USER3 and IMEMO_FL_USER4 is not needed any more.
|
||||
|
||||
Tue Oct 6 18:47:45 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* method.h: remove METHOD_ENTRY_SAFE(me) and related code
|
||||
|
|
|
|||
6
method.h
6
method.h
|
|
@ -82,15 +82,15 @@ METHOD_ENTRY_FLAGS_SET(rb_method_entry_t *me, rb_method_visibility_t visi, unsig
|
|||
VM_ASSERT((int)visi >= 0 && visi <= 3);
|
||||
VM_ASSERT(basic <= 1);
|
||||
me->flags =
|
||||
(me->flags & ~(IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2|IMEMO_FL_USER3|IMEMO_FL_USER4)) |
|
||||
(me->flags & ~(IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2)) |
|
||||
((visi << IMEMO_FL_USHIFT+0) | (basic << (IMEMO_FL_USHIFT+2)));
|
||||
}
|
||||
static inline void
|
||||
METHOD_ENTRY_FLAGS_COPY(rb_method_entry_t *dst, const rb_method_entry_t *src)
|
||||
{
|
||||
dst->flags =
|
||||
(dst->flags & ~(IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2|IMEMO_FL_USER3|IMEMO_FL_USER4)) |
|
||||
(src->flags & (IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2|IMEMO_FL_USER3|IMEMO_FL_USER4));
|
||||
(dst->flags & ~(IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2)) |
|
||||
(src->flags & (IMEMO_FL_USER0|IMEMO_FL_USER1|IMEMO_FL_USER2));
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue