diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-11-27 23:35:47 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-11-27 23:35:47 (GMT) |
commit | 7d6d3acb65586ad9512a38b58c16b9a21cdf98e0 (patch) | |
tree | 9ae21078e24c997b80a24d8d71ed5ad1be74c850 /src/arch/register-int.h | |
parent | 3eacf14cc395e7fd0ab5dd5e9d22bb93a6a02979 (diff) |
Saved memory space by sharing arch GObjects.
Diffstat (limited to 'src/arch/register-int.h')
-rw-r--r-- | src/arch/register-int.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/register-int.h b/src/arch/register-int.h index f9b19b0..72c1f84 100644 --- a/src/arch/register-int.h +++ b/src/arch/register-int.h @@ -29,6 +29,7 @@ #include "operand-int.h" +#include "sharing/instance-int.h" @@ -57,6 +58,8 @@ struct _GArchRegister { GObject parent; /* A laisser en premier */ + unsigned int shared_count; /* Compteur de partages */ + }; @@ -65,6 +68,9 @@ struct _GArchRegisterClass { GObjectClass parent; /* A laisser en premier */ + init_shared_fc init; /* Mise en place via interface */ + compare_shared_info_fc cmp_info; /* Comparaison des détails */ + reg_hash_fc hash; /* Production d'empreinte */ reg_compare_fc compare; /* Comparaison de registres */ reg_print_fc print; /* Impression du registre */ |