summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 04:44:20 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-13 04:44:20 +0000
commit0ac93a1a405d3642a1e73294c04f428c79f5f947 (patch)
treea69d80efd9c14750358fe223f9c6ff254df5eb3f /insns.def
parent405452b5bb8ea4e64735bf22a2070ffc75963434 (diff)
* insns.def, vm_insnhelper.c (getinstancevariable):
fix to use inline cache. * compile.c: fix to skip inline cache entry (IC). IC is added automatically by compiler. * insns.def, vm_insnhelper.h: fix IC positions. * iseq.c: increment minor_version of ISeq because of above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def8
1 files changed, 4 insertions, 4 deletions
diff --git a/insns.def b/insns.def
index 363a8ed8c0..d7a06f6a12 100644
--- a/insns.def
+++ b/insns.def
@@ -150,11 +150,11 @@ setdynamic
*/
DEFINE_INSN
getinstancevariable
-(ID id)
+(ID id, IC ic)
()
(VALUE val)
{
- val = rb_ivar_get(GET_SELF(), id);
+ val = vm_getivar(GET_SELF(), id, ic);
}
/**
@@ -1175,7 +1175,7 @@ branchunless
*/
DEFINE_INSN
getinlinecache
-(IC ic, OFFSET dst)
+(OFFSET dst, IC ic)
()
(VALUE val)
{
@@ -1196,7 +1196,7 @@ getinlinecache
*/
DEFINE_INSN
onceinlinecache
-(IC ic, OFFSET dst)
+(OFFSET dst, IC ic)
()
(VALUE val)
{