* 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:
nobu 2007-06-05 04:49:54 +00:00
parent 35eb542588
commit 194a01a484
8 changed files with 36 additions and 34 deletions

View File

@ -1106,7 +1106,8 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
char type = types[j]; char type = types[j];
/* printf("--> [%c - (%d-%d)]\n", type, k, j); */ /* printf("--> [%c - (%d-%d)]\n", type, k, j); */
switch (type) { switch (type) {
case TS_OFFSET:{ case TS_OFFSET:
{
/* label(destination position) */ /* label(destination position) */
lobj = (LABEL *)operands[j]; lobj = (LABEL *)operands[j];
if (lobj->set != Qtrue) { if (lobj->set != Qtrue) {
@ -1119,7 +1120,8 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
lobj->position - (pos + len); lobj->position - (pos + len);
break; break;
} }
case TS_CDHASH:{ case TS_CDHASH:
{
/* /*
* [obj, label, ...] * [obj, label, ...]
*/ */
@ -1142,12 +1144,12 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
iseq_add_mark_object(iseq, map); iseq_add_mark_object(iseq, map);
break; break;
} }
case TS_LINDEX: case TS_LINDEX:
case TS_DINDEX: case TS_DINDEX:
case TS_NUM: /* ulong */ case TS_NUM: /* ulong */
generated_iseq[pos + 1 + j] = FIX2INT(operands[j]); generated_iseq[pos + 1 + j] = FIX2INT(operands[j]);
break; break;
case TS_ISEQ: /* iseq */ case TS_ISEQ: /* iseq */
{ {
VALUE v = operands[j]; VALUE v = operands[j];
rb_iseq_t *block = 0; 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; generated_iseq[pos + 1 + j] = (VALUE)block;
break; break;
} }
case TS_VALUE: /* VALUE */ case TS_VALUE: /* VALUE */
{ {
VALUE v = operands[j]; VALUE v = operands[j];
generated_iseq[pos + 1 + j] = v; generated_iseq[pos + 1 + j] = v;
@ -1167,24 +1169,24 @@ set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
} }
break; break;
} }
case TS_IC: /* inline cache */ case TS_IC: /* inline cache */
{ {
VALUE v = (VALUE)NEW_INLINE_CACHE_ENTRY(); VALUE v = (VALUE)NEW_INLINE_CACHE_ENTRY();
generated_iseq[pos + 1 + j] = v; generated_iseq[pos + 1 + j] = v;
iseq_add_mark_object(iseq, v); iseq_add_mark_object(iseq, v);
break; break;
} }
case TS_ID: /* ID */ case TS_ID: /* ID */
generated_iseq[pos + 1 + j] = SYM2ID(operands[j]); generated_iseq[pos + 1 + j] = SYM2ID(operands[j]);
break; break;
case TS_GENTRY: case TS_GENTRY:
{ {
struct global_entry *entry = struct global_entry *entry =
(struct global_entry *)(operands[j] & (~1)); (struct global_entry *)(operands[j] & (~1));
generated_iseq[pos + 1 + j] = (VALUE)entry; generated_iseq[pos + 1 + j] = (VALUE)entry;
} }
break; break;
default: default:
rb_bug("unknown operand type: %c", type); rb_bug("unknown operand type: %c", type);
return 0; return 0;
} }