Skip to content

Commit

Permalink
Remove unnecessary ifdefed code
Browse files Browse the repository at this point in the history
Commit migrated from mono/mono@c007d6e
  • Loading branch information
nealef authored and akoeplinger committed Aug 23, 2017
1 parent 14af1f9 commit 3399450
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/mono/mono/mini/mini-s390x.c
Original file line number Diff line number Diff line change
Expand Up @@ -2216,14 +2216,6 @@ mono_arch_allocate_vars (MonoCompile *cfg)
}
break;
}
#if 0
if ((sig->call_convention == MONO_CALL_VARARG) &&
(cinfo->args[iParm].regtype != RegTypeGeneral) &&
(iParm < sig->sentinelpos))
cfg->sig_cookie += size;
printf("%s %4d cookine %x\n",__FUNCTION__,__LINE__,cfg->sig_cookie);
#endif

offset += MAX(size, 8);
}
curinst++;
Expand Down Expand Up @@ -2554,27 +2546,6 @@ mono_arch_emit_call (MonoCompile *cfg, MonoCallInst *call)
ins->inst_destbasereg = STK_BASE;
ins->inst_offset = ainfo->offset;
ins->sreg1 = in->dreg;

#if 0
/* This is needed by MonoTypedRef->value to point to the correct data */
if ((sig->call_convention == MONO_CALL_VARARG) &&
(i >= sig->sentinelpos)) {
switch (ainfo->size) {
case 1:
ins->opcode = OP_STOREI1_MEMBASE_REG;
break;
case 2:
ins->opcode = OP_STOREI2_MEMBASE_REG;
break;
case 4:
ins->opcode = OP_STOREI4_MEMBASE_REG;
break;
default:
break;
}
}
#endif

MONO_ADD_INS (cfg->cbb, ins);
}
break;
Expand Down Expand Up @@ -5999,14 +5970,6 @@ mono_arch_emit_prolog (MonoCompile *cfg)
mono_emit_unwind_op_offset (cfg, code, s390_r14, S390_RET_ADDR_OFFSET);
mini_gc_set_slot_type_from_cfa (cfg, S390_RET_ADDR_OFFSET, SLOT_NOREF);

#if 0
if ((strcmp(method->klass->name, "Tests") == 0) &&
(strcmp(method->name,"test_5_jmp") == 0)) {
printf("Found!\n"); fflush(stdout);
s390_j (code, 0);
}
#endif

if (cfg->arch.bkchain_reg != -1)
s390_lgr (code, cfg->arch.bkchain_reg, STK_BASE);

Expand Down

0 comments on commit 3399450

Please sign in to comment.