summaryrefslogtreecommitdiff
path: root/id.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 12:07:51 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-18 12:07:51 +0000
commitcd843108646b999e13cfbf04e51eca30b68850b3 (patch)
treeeb87ffe59f0f71747be4fc76d84244c414e3e3da /id.c
parent1f75a4e700883da8d15048fc3da6528ba53ec1e4 (diff)
downloadruby-cd843108646b999e13cfbf04e51eca30b68850b3.tar.gz
* compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
optimize !@, != method invocation. * id.c, id.h: ditto. * bootstraptest/test_syntax.rb: add tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'id.c')
-rw-r--r--id.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/id.c b/id.c
index 6fa00a66b3..84499ace34 100644
--- a/id.c
+++ b/id.c
@@ -38,6 +38,8 @@ Init_id(void)
idEqq = rb_intern("===");
idBackquote = rb_intern("`");
idEqTilde = rb_intern("=~");
+ idNot = rb_intern("!");
+ idNeq = rb_intern("!=");
idAREF = rb_intern("[]");
idASET = rb_intern("[]=");