core/x86/arch.c
/* Convert FRAG_TABLE_* flags to FRAG_* flags */
/* FIXME This seems more appropriate in fragment.c but since there's no
 * need for the functionality there, we place it here and inline it. We
 * can move it if other pieces need the functionality later.
 */
Convert FRAG_TABLE_* flags to FRAG_* flags
FIXME This seems more appropriate in fragment.c but since there's no
need for the functionality there, we place it here and inline it. We
can move it if other pieces need the functionality later.
Convert FRAG_TABLE_ * flags to FRAG_ * flags FIXME This seems more appropriate in fragment . c but since there ' s no need for the functionality there we place it here and inline it . We can move it if other pieces need the functionality later .
static inline uint
table_flags_to_frag_flags(dcontext_t *dcontext, ibl_table_t *table)
{
    uint flags = 0;
    if (TEST(FRAG_TABLE_TARGET_SHARED, table->table_flags))
        flags |= FRAG_SHARED;
    if (TEST(FRAG_TABLE_TRACE, table->table_flags))
        flags |= FRAG_IS_TRACE;
    ASSERT_NOT_IMPLEMENTED(!TESTANY(~(FRAG_TABLE_INCLUSIVE_HIERARCHY |
                                      FRAG_TABLE_IBL_TARGETED |
                                      FRAG_TABLE_TARGET_SHARED |
                                      FRAG_TABLE_SHARED |
                                      FRAG_TABLE_TRACE |
                                      FRAG_TABLE_PERSISTENT |
                                      HASHTABLE_USE_ENTRY_STATS |
                                      HASHTABLE_ALIGN_TABLE),
                                    table->table_flags));
    return flags;
}
static inline uint table_flags_to_frag_flags ( dcontext_t * dcontext , ibl_table_t * table ) { uint flags = 0 ; if ( TEST ( FRAG_TABLE_TARGET_SHARED , table -> table_flags ) ) flags |= FRAG_SHARED ; if ( TEST ( FRAG_TABLE_TRACE , table -> table_flags ) ) flags |= FRAG_IS_TRACE ; ASSERT_NOT_IMPLEMENTED ( ! TESTANY ( ~ ( FRAG_TABLE_INCLUSIVE_HIERARCHY | FRAG_TABLE_IBL_TARGETED | FRAG_TABLE_TARGET_SHARED | FRAG_TABLE_SHARED | FRAG_TABLE_TRACE | FRAG_TABLE_PERSISTENT | HASHTABLE_USE_ENTRY_STATS | HASHTABLE_ALIGN_TABLE ) , table -> table_flags ) ) ; return flags ; }
Convert FRAG_TABLE_* flags to FRAG_* flags
FIXME This seems more appropriate in fragment.c but since there's no
 need for the functionality there, we place it here and inline it.
Convert FRAG_TABLE_ * flags to FRAG_ * flags FIXME This seems more appropriate in fragment . c but since there ' s no need for the functionality there we place it here and inline it .
/* We want to make sure that any updates to FRAG_TABLE_* flags
     * are reflected in this routine. */