* compile.c: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
35eb542588
commit
194a01a484
24
compile.c
24
compile.c
@ -1106,7 +1106,8 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
||||
char type = types[j];
|
||||
/* printf("--> [%c - (%d-%d)]\n", type, k, j); */
|
||||
switch (type) {
|
||||
case TS_OFFSET:{
|
||||
case TS_OFFSET:
|
||||
{
|
||||
/* label(destination position) */
|
||||
lobj = (LABEL *)operands[j];
|
||||
if (lobj->set != Qtrue) {
|
||||
@ -1119,7 +1120,8 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
||||
lobj->position - (pos + len);
|
||||
break;
|
||||
}
|
||||
case TS_CDHASH:{
|
||||
case TS_CDHASH:
|
||||
{
|
||||
/*
|
||||
* [obj, label, ...]
|
||||
*/
|
||||
@ -1142,12 +1144,12 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
||||
iseq_add_mark_object(iseq, map);
|
||||
break;
|
||||
}
|
||||
case TS_LINDEX:
|
||||
case TS_DINDEX:
|
||||
case TS_NUM: /* ulong */
|
||||
case TS_LINDEX:
|
||||
case TS_DINDEX:
|
||||
case TS_NUM: /* ulong */
|
||||
generated_iseq[pos + 1 + j] = FIX2INT(operands[j]);
|
||||
break;
|
||||
case TS_ISEQ: /* iseq */
|
||||
case TS_ISEQ: /* iseq */
|
||||
{
|
||||
VALUE v = operands[j];
|
||||
rb_iseq_t *block = 0;
|
||||
@ -1157,7 +1159,7 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
||||
generated_iseq[pos + 1 + j] = (VALUE)block;
|
||||
break;
|
||||
}
|
||||
case TS_VALUE: /* VALUE */
|
||||
case TS_VALUE: /* VALUE */
|
||||
{
|
||||
VALUE v = operands[j];
|
||||
generated_iseq[pos + 1 + j] = v;
|
||||
@ -1167,24 +1169,24 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
|
||||
}
|
||||
break;
|
||||
}
|
||||
case TS_IC: /* inline cache */
|
||||
case TS_IC: /* inline cache */
|
||||
{
|
||||
VALUE v = (VALUE)NEW_INLINE_CACHE_ENTRY();
|
||||
generated_iseq[pos + 1 + j] = v;
|
||||
iseq_add_mark_object(iseq, v);
|
||||
break;
|
||||
}
|
||||
case TS_ID: /* ID */
|
||||
case TS_ID: /* ID */
|
||||
generated_iseq[pos + 1 + j] = SYM2ID(operands[j]);
|
||||
break;
|
||||
case TS_GENTRY:
|
||||
case TS_GENTRY:
|
||||
{
|
||||
struct global_entry *entry =
|
||||
(struct global_entry *)(operands[j] & (~1));
|
||||
generated_iseq[pos + 1 + j] = (VALUE)entry;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
rb_bug("unknown operand type: %c", type);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user