diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 15:32:27 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-18 15:32:27 (GMT) |
commit | b0bcf250999b2242019f137e38f52390a86e71cd (patch) | |
tree | f3436a3ddbbd4773005ecb891630a815ed001341 /src/arch/dalvik/core.c | |
parent | 6bde4016160057a22234d4ed698903dca52ce162 (diff) |
Shared all Dalvik operands between all their users.
Diffstat (limited to 'src/arch/dalvik/core.c')
-rw-r--r-- | src/arch/dalvik/core.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/arch/dalvik/core.c b/src/arch/dalvik/core.c index ba07c97..9438d17 100644 --- a/src/arch/dalvik/core.c +++ b/src/arch/dalvik/core.c @@ -25,6 +25,9 @@ #include "register.h" +#include "operands/args.h" +#include "operands/pool.h" +#include "operands/register.h" @@ -48,6 +51,10 @@ bool init_dalvik_core(void) result &= init_dalvik_register_sharing(); + result &= init_dalvik_args_operand_sharing(); + result &= init_dalvik_pool_operand_sharing(); + result &= init_dalvik_register_operand_sharing(); + return result; } @@ -57,6 +64,30 @@ bool init_dalvik_core(void) * * * Paramètres : - * * * +* Description : Imprime des statistiques quant aux partages dans l'archi. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ +#ifdef DEBUG_DUMP_STATS +void dump_dalvik_share_stats(void) +{ + dump_dalvik_register_share_stats(); + + dump_dalvik_args_operand_share_stats(); + dump_dalvik_pool_operand_share_stats(); + dump_dalvik_register_operand_share_stats(); + +} +#endif + + +/****************************************************************************** +* * +* Paramètres : - * +* * * Description : Supprime les mécanismes internes de l'architecture Dalvik. * * * * Retour : - * @@ -69,4 +100,8 @@ void exit_dalvik_core(void) { exit_dalvik_register_sharing(); + exit_dalvik_args_operand_sharing(); + exit_dalvik_pool_operand_sharing(); + exit_dalvik_register_operand_sharing(); + } |