summaryrefslogtreecommitdiff
path: root/insns.def
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 07:40:24 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 07:40:24 +0000
commitbd8da69e9b5df785cc3fa0871332257e09335a78 (patch)
tree466707aea201a1aa3c26e697156932bd38f325d4 /insns.def
parent33ff31149464168cfe1d137bff436b6a7d19c357 (diff)
downloadruby-bd8da69e9b5df785cc3fa0871332257e09335a78.tar.gz
* insns.def (setinstancevariable), vm_insnhelper.c (vm_setivar):
fix to use inline cache (trivial optimization). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 1c2e9d5752..98febf89b8 100644
--- a/insns.def
+++ b/insns.def
@@ -165,11 +165,11 @@ getinstancevariable
*/
DEFINE_INSN
setinstancevariable
-(ID id)
+(ID id, IC ic)
(VALUE val)
()
{
- rb_ivar_set(GET_SELF(), id, val);
+ vm_setivar(GET_SELF(), id, val, ic);
}
/**