mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* id.c (Init_id): remove several unused symbols. [ruby-core:14362]
* compile.c (iseq_specialized_instruction): do not use VM_CALL_SEND_BANG flag any longer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8db7c837f9
commit
fda0ef6f04
5 changed files with 8 additions and 11 deletions
|
|
@ -1,3 +1,10 @@
|
||||||
|
Tue Dec 25 01:54:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* id.c (Init_id): remove several unused symbols. [ruby-core:14362]
|
||||||
|
|
||||||
|
* compile.c (iseq_specialized_instruction): do not use
|
||||||
|
VM_CALL_SEND_BANG flag any longer.
|
||||||
|
|
||||||
Tue Dec 25 01:42:41 2007 Tanaka Akira <akr@fsij.org>
|
Tue Dec 25 01:42:41 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/rdoc/rdoc.rb (parse_files): interpret coding cookie.
|
* lib/rdoc/rdoc.rb (parse_files): interpret coding cookie.
|
||||||
|
|
|
||||||
|
|
@ -1501,14 +1501,9 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 0) {
|
if (argc > 0) {
|
||||||
if (mid == idSend || mid == id__send ||
|
if (mid == idSend || mid == id__send__ ) {
|
||||||
mid == idSendBang ||
|
|
||||||
mid == id__send__ ) {
|
|
||||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
|
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
|
||||||
}
|
}
|
||||||
if (mid == idSendBang) {
|
|
||||||
OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BANG_BIT);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return COMPILE_OK;
|
return COMPILE_OK;
|
||||||
|
|
|
||||||
1
id.c
1
id.c
|
|
@ -63,6 +63,5 @@ Init_id(void)
|
||||||
idAnswer = rb_intern("the_answer_to_life_the_universe_and_everything");
|
idAnswer = rb_intern("the_answer_to_life_the_universe_and_everything");
|
||||||
|
|
||||||
idSend = rb_intern("send");
|
idSend = rb_intern("send");
|
||||||
idSendBang = rb_intern("send!");
|
|
||||||
id__send__ = rb_intern("__send__");
|
id__send__ = rb_intern("__send__");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
3
id.h
3
id.h
|
|
@ -47,9 +47,6 @@ extern ID idEnd;
|
||||||
extern ID idBitblt;
|
extern ID idBitblt;
|
||||||
extern ID idAnswer;
|
extern ID idAnswer;
|
||||||
extern ID idSend;
|
extern ID idSend;
|
||||||
extern ID idSendBang;
|
|
||||||
extern ID id__send;
|
|
||||||
extern ID id__send_bang;
|
|
||||||
extern ID id__send__;
|
extern ID id__send__;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -521,7 +521,6 @@ typedef struct {
|
||||||
#define VM_CALL_TAILRECURSION_BIT (0x01 << 6)
|
#define VM_CALL_TAILRECURSION_BIT (0x01 << 6)
|
||||||
#define VM_CALL_SUPER_BIT (0x01 << 7)
|
#define VM_CALL_SUPER_BIT (0x01 << 7)
|
||||||
#define VM_CALL_SEND_BIT (0x01 << 8)
|
#define VM_CALL_SEND_BIT (0x01 << 8)
|
||||||
#define VM_CALL_SEND_BANG_BIT (0x01 << 9)
|
|
||||||
|
|
||||||
/* inline (method|const) cache */
|
/* inline (method|const) cache */
|
||||||
#define NEW_INLINE_CACHE_ENTRY() NEW_WHILE(Qundef, 0, 0)
|
#define NEW_INLINE_CACHE_ENTRY() NEW_WHILE(Qundef, 0, 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue