Browse Source

Added index field to jit_value struct. Included CFG code into build.

cache-refactoring
Aleksey Demakov 19 years ago
parent
commit
3c830819e2
  1. 6
      ChangeLog
  2. 2
      jit/Makefile.am
  3. 4
      jit/jit-cfg.h
  4. 1
      jit/jit-internal.h
  5. 1
      jit/jit-value.c

6
ChangeLog

@ -1,3 +1,9 @@
2006-02-13 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-internal.h (struct _jit_value): add index field.
* jit/jit-value.c (alloc_value): initialize index field;
* jit/Makefile.am (libjit_la_SOURCES): add jit-bitset.c and jit-cfg.c.
2006-02-12 Aleksey Demakov <ademakov@gmail.com>
* jit/jit-rules-x86.sel: fix JIT_OP_CALL_FINALLY.

2
jit/Makefile.am

@ -9,8 +9,10 @@ libjit_la_SOURCES = \
jit-apply-arm.c \
jit-apply-x86.h \
jit-apply-x86.c \
jit-bitset.c \
jit-block.c \
jit-cache.c \
jit-cfg.c \
jit-context.c \
jit-cpuid-x86.h \
jit-cpuid-x86.c \

4
jit/jit-cfg.h

@ -77,7 +77,7 @@ struct _jit_node
_jit_edge_t *preds;
int num_preds;
/* liveness analyses data */
/* liveness analysis data */
_jit_bitset_t live_in;
_jit_bitset_t live_out;
_jit_bitset_t live_use;
@ -98,7 +98,7 @@ struct _jit_edge
};
/*
* Value entry that contains information for data flow analyses
* Value entry that contains information for data flow analysis
* and register allocation.
*/
struct _jit_value_entry

1
jit/jit-internal.h

@ -219,6 +219,7 @@ struct _jit_value
jit_nint address;
jit_nint frame_offset;
jit_nuint usage_count;
int index;
};
#define JIT_INVALID_FRAME_OFFSET ((jit_nint)0x7FFFFFFF)

1
jit/jit-value.c

@ -202,6 +202,7 @@ static jit_value_t alloc_value(jit_function_t func, jit_type_t type)
value->type = jit_type_copy(type);
value->reg = -1;
value->frame_offset = JIT_INVALID_FRAME_OFFSET;
value->index = -1;
return value;
}

Loading…
Cancel
Save