2006-08-17 Zoltan Varga <vargaz@gmail.com>
+ * aot-compiler.c: Fix computation of GOT slot statistics.
+
* aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
Also remove support for not PIC AOT.
res = acfg->got_offset;
acfg->got_offset ++;
+ acfg->stats.got_slots ++;
+ acfg->stats.got_slot_types [ji->type] ++;
+
return res;
}
/* Only the type is needed */
*p = patch_info->type;
p++;
-
- acfg->stats.got_slots ++;
- acfg->stats.got_slot_types [patch_info->type] ++;
}
/*
}
}
-/* FIXME: Move this to mini.c */
-
static void
compile_method (MonoAotCompile *acfg, int index)
{
* - optimize offsets table.
* - reduce number of exported symbols.
* - emit info for a klass only once.
+ * - determine when a method uses a GOT slot which is guaranteed to be already
+ * initialized.
+ * - clean up and document the code.
+ * - use String.Empty in class libs.
+ * - type_from_handle.
*/
/* Encode info required to decode shared GOT entries */