}
static const char*
-slot_type_to_string (StackSlotType type)
+slot_type_to_string (GCSlotType type)
{
switch (type) {
case SLOT_REF:
* need to call this function for those slots.
*/
void
-mini_gc_set_slot_type_from_fp (MonoCompile *cfg, int slot_offset, StackSlotType type)
+mini_gc_set_slot_type_from_fp (MonoCompile *cfg, int slot_offset, GCSlotType type)
{
MonoCompileGC *gcfg = (MonoCompileGC*)cfg->gc_info;
* call this function for those slots.
*/
void
-mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, StackSlotType type)
+mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, GCSlotType type)
{
MonoCompileGC *gcfg = (MonoCompileGC*)cfg->gc_info;
int slot = - (slot_offset / sizeof (mgreg_t));
}
static inline void
-set_slot (MonoCompileGC *gcfg, int slot, int callsite_index, StackSlotType type)
+set_slot (MonoCompileGC *gcfg, int slot, int callsite_index, GCSlotType type)
{
g_assert (slot >= 0 && slot < gcfg->nslots);
}
static inline void
-set_slot_everywhere (MonoCompileGC *gcfg, int slot, StackSlotType type)
+set_slot_everywhere (MonoCompileGC *gcfg, int slot, GCSlotType type)
{
int cindex;
}
static inline void
-set_slot_in_range (MonoCompileGC *gcfg, int slot, int from, int to, StackSlotType type)
+set_slot_in_range (MonoCompileGC *gcfg, int slot, int from, int to, GCSlotType type)
{
int cindex;
}
static inline void
-set_reg_slot (MonoCompileGC *gcfg, int slot, int callsite_index, StackSlotType type)
+set_reg_slot (MonoCompileGC *gcfg, int slot, int callsite_index, GCSlotType type)
{
g_assert (slot >= 0 && slot < gcfg->nregs);
}
static inline void
-set_reg_slot_everywhere (MonoCompileGC *gcfg, int slot, StackSlotType type)
+set_reg_slot_everywhere (MonoCompileGC *gcfg, int slot, GCSlotType type)
{
int cindex;
}
static inline void
-set_reg_slot_in_range (MonoCompileGC *gcfg, int slot, int from, int to, StackSlotType type)
+set_reg_slot_in_range (MonoCompileGC *gcfg, int slot, int from, int to, GCSlotType type)
{
int cindex;
int bank = def->inst_c1;
int offset = cfg->spill_info [bank][spill_slot].offset;
int slot = fp_offset_to_slot (cfg, offset);
- StackSlotType type;
+ GCSlotType type;
if (bank == MONO_REG_INT_MP)
type = SLOT_PIN;
for (l = gcfg->stack_slots_from_cfa; l; l = l->next) {
guint data = GPOINTER_TO_UINT (l->data);
int cfa_slot = data >> 16;
- StackSlotType type = data & 0xff;
+ GCSlotType type = data & 0xff;
int slot;
/*
for (l = gcfg->stack_slots_from_fp; l; l = l->next) {
gint data = GPOINTER_TO_INT (l->data);
int offset = data >> 16;
- StackSlotType type = data & 0xff;
+ GCSlotType type = data & 0xff;
int slot;
slot = fp_offset_to_slot (cfg, offset);
if (ins->opcode == OP_REGVAR) {
int hreg;
- StackSlotType slot_type;
+ GCSlotType slot_type;
t = mini_type_get_underlying_type (NULL, t);
#endif
}
-static StackSlotType
+static GCSlotType
type_to_gc_slot_type (MonoType *t)
{
if (t->byref)
int sp_offset = def->inst_offset;
int fp_offset = sp_offset_to_fp_offset (cfg, sp_offset);
int slot = fp_offset_to_slot (cfg, fp_offset);
- StackSlotType type = type_to_gc_slot_type (t);
+ GCSlotType type = type_to_gc_slot_type (t);
/* The slot is live between the def instruction and the call */
set_slot_in_range (gcfg, slot, def->backend.pc_offset, callsite->pc_offset + 1, type);
}
void
-mini_gc_set_slot_type_from_fp (MonoCompile *cfg, int slot_offset, StackSlotType type)
+mini_gc_set_slot_type_from_fp (MonoCompile *cfg, int slot_offset, GCSlotType type)
{
}
void
-mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, StackSlotType type)
+mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, GCSlotType type)
{
}