1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm.c, vm_dump.c: fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-12-21 02:48:14 +00:00
parent 4cf437519f
commit 2a564dfb94
3 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,7 @@
Fri Dec 21 11:35:10 2007 Koichi Sasada <ko1@atdot.net>
* vm.c, vm_dump.c: fix typo.
Fri Dec 21 11:28:00 2007 Tanaka Akira <akr@fsij.org>
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,

8
vm.c
View file

@ -1777,10 +1777,10 @@ Init_VM(void)
rb_undef_alloc_func(rb_cThread);
rb_define_method(rb_cThread, "initialize", ruby_thread_init, 0);
/* ::VM::USAGE_ANALISYS_* */
rb_define_const(rb_cVM, "USAGE_ANALISYS_INSN", rb_hash_new());
rb_define_const(rb_cVM, "USAGE_ANALISYS_REGS", rb_hash_new());
rb_define_const(rb_cVM, "USAGE_ANALISYS_INSN_BIGRAM", rb_hash_new());
/* ::VM::USAGE_ANALYSIS_* */
rb_define_const(rb_cVM, "USAGE_ANALYSIS_INSN", rb_hash_new());
rb_define_const(rb_cVM, "USAGE_ANALYSIS_REGS", rb_hash_new());
rb_define_const(rb_cVM, "USAGE_ANALYSIS_INSN_BIGRAM", rb_hash_new());
rb_define_const(rb_cVM, "OPTS", opts = rb_ary_new());
#if OPT_DIRECT_THREADED_CODE

View file

@ -426,8 +426,8 @@ vm_analysis_insn(int insn)
VALUE cv;
if (usage_hash == 0) {
usage_hash = rb_intern("USAGE_ANALISYS_INSN");
bigram_hash = rb_intern("USAGE_ANALISYS_INSN_BIGRAM");
usage_hash = rb_intern("USAGE_ANALYSIS_INSN");
bigram_hash = rb_intern("USAGE_ANALYSIS_INSN_BIGRAM");
}
uh = rb_const_get(rb_cVM, usage_hash);
if ((ihash = rb_hash_aref(uh, INT2FIX(insn))) == Qnil) {
@ -474,7 +474,7 @@ vm_analysis_operand(int insn, int n, VALUE op)
VALUE cv;
if (usage_hash == 0) {
usage_hash = rb_intern("USAGE_ANALISYS_INSN");
usage_hash = rb_intern("USAGE_ANALYSIS_INSN");
}
uh = rb_const_get(rb_cVM, usage_hash);
@ -524,7 +524,7 @@ vm_analysis_register(int reg, int isset)
char buff[0x10];
int i;
usage_hash = rb_intern("USAGE_ANALISYS_REGS");
usage_hash = rb_intern("USAGE_ANALYSIS_REGS");
for (i = 0; i < sizeof(regstrs) / sizeof(regstrs[0]); i++) {
int j;