* vm_method.c: check definition of

GLOBAL_METHOD_CACHE_SIZE and GLOBAL_METHOD_CACHE_MASK.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2013-12-20 08:57:24 +00:00
parent c702005a7b
commit f11b54213a
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Dec 20 17:52:50 2013 Koichi Sasada <ko1@atdot.net>
* vm_method.c: check definition of
GLOBAL_METHOD_CACHE_SIZE and GLOBAL_METHOD_CACHE_MASK.
Fri Dec 20 17:03:10 2013 Koichi Sasada <ko1@atdot.net>
* include/ruby/ruby.h: rename OBJ_WRITE and OBJ_WRITTEN into

View File

@ -2,8 +2,13 @@
* This file is included by vm.c
*/
#ifndef GLOBAL_METHOD_CACHE_SIZE
#define GLOBAL_METHOD_CACHE_SIZE 0x800
#endif
#ifndef GLOBAL_METHOD_CACHE_MASK
#define GLOBAL_METHOD_CACHE_MASK 0x7ff
#endif
#define GLOBAL_METHOD_CACHE_KEY(c,m) ((((c)>>3)^(m))&GLOBAL_METHOD_CACHE_MASK)
#define GLOBAL_METHOD_CACHE(c,m) (global_method_cache + GLOBAL_METHOD_CACHE_KEY(c,m))
#include "method.h"