diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-01 18:16:02 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-01 18:16:02 +0000 |
commit | f6ac2474c481fc487b2922eb9f76f050bdd25624 (patch) | |
tree | 30f11165b8862cc8eb176a6e33c29442ae8d4b0b /insnhelper.h | |
parent | 9e933b09c11b1d7eed85b041deab85a6c55d23d6 (diff) | |
download | ruby-f6ac2474c481fc487b2922eb9f76f050bdd25624.tar.gz ruby-f6ac2474c481fc487b2922eb9f76f050bdd25624.tar.xz ruby-f6ac2474c481fc487b2922eb9f76f050bdd25624.zip |
* yarvcore.h, compile.c, insnhelper.ci, iseq.c, vm.c:
rename structure names and field names.
* insnhelper.h, insns.def: add GET_CONST_INLINE_CACHE().
* iseq.c: add rb_iseq_build_for_ruby2cext().
* yarvcore.h, vm.h: move declaration of rb_insn_func_t
to yarvcore.h.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.h')
-rw-r--r-- | insnhelper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/insnhelper.h b/insnhelper.h index 3c17bbf7f..8ae959942 100644 --- a/insnhelper.h +++ b/insnhelper.h @@ -96,6 +96,8 @@ #define GET_GLOBAL(entry) rb_gvar_get((struct global_entry*)entry) #define SET_GLOBAL(entry, val) rb_gvar_set((struct global_entry*)entry, val) +#define GET_CONST_INLINE_CACHE(dst) ((IC) * (GET_PC() + (dst) + 1)) + /**********************************************************/ /* deal with values */ /**********************************************************/ |