diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-29 11:37:13 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-29 11:37:13 (GMT) |
commit | 38e455ebbbbf90ddbf552f95a1dfb3c544907587 (patch) | |
tree | c6e2a4763baef01c87dd0954116fb2c457e10c23 /src/arch/dalvik | |
parent | 8c71b36d401b2473342daddcb9b7eb4b83ba3295 (diff) |
Reduced once again the size of the main instruction structure.
Diffstat (limited to 'src/arch/dalvik')
-rw-r--r-- | src/arch/dalvik/instruction.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/arch/dalvik/instruction.c b/src/arch/dalvik/instruction.c index 3735bd7..ca43dbd 100644 --- a/src/arch/dalvik/instruction.c +++ b/src/arch/dalvik/instruction.c @@ -332,8 +332,8 @@ static dalvik_instruction _instructions[DOP_COUNT] = { }; -/* Reconstruit le cache complet d'une désignation d'instruction. */ -static void dalvik_build_instruction_keyword(const GDalvikInstruction *, AsmSyntax); +/* Fournit le nom humain de l'instruction manipulée. */ +static const char *dalvik_instruction_get_keyword(const GDalvikInstruction *, AsmSyntax); /* Décompile une instruction de la machine virtuelle Dalvik. */ GDecInstruction *dalvik_instruction_decompile(const GDalvikInstruction *, GDecContext *); @@ -370,7 +370,7 @@ static void g_dalvik_instruction_class_init(GDalvikInstructionClass *klass) instr = G_ARCH_INSTRUCTION_CLASS(klass); instr->get_encoding = (get_instruction_encoding_fc)g_dalvik_instruction_get_encoding; - instr->build_key = (build_instruction_keyword_fc)dalvik_build_instruction_keyword; + instr->get_keyword = (get_instruction_keyword_fc)dalvik_instruction_get_keyword; } @@ -562,10 +562,10 @@ static void g_dalvik_instruction_get_rw_registers(const GDalvikInstruction *inst /****************************************************************************** * * -* Paramètres : instr = instruction à traiter. * +* Paramètres : instr = instruction d'assemblage à consulter. * * syntax = type de représentation demandée. * * * -* Description : Reconstruit le cache complet d'une désignation d'instruction.* +* Description : Fournit le nom humain de l'instruction manipulée. * * * * Retour : Mot clef de bas niveau. * * * @@ -573,9 +573,9 @@ static void g_dalvik_instruction_get_rw_registers(const GDalvikInstruction *inst * * ******************************************************************************/ -static void dalvik_build_instruction_keyword(const GDalvikInstruction *instr, AsmSyntax syntax) +static const char *dalvik_instruction_get_keyword(const GDalvikInstruction *instr, AsmSyntax syntax) { - G_ARCH_INSTRUCTION(instr)->cached_keyword = strdup(instr->keyword); + return instr->keyword; } |