1 2001-12-16 Dietmar Maurer <dietmar@ximian.com>
3 * emit-x86.c (arch_handle_exception): new code to handle
4 exceptions inside unmanaged code.
6 * x86.brg: impl. SAVE_LMF, RESTORE_LMF, pass implizit valuetype
7 address as first argument.
9 2001-12-15 Dietmar Maurer <dietmar@ximian.com>
11 * x86.brg: pass exceptions on the stack
13 * jit.h (ISSTRUCT): new macro to check for real value types
14 (return false for enum types).
16 2001-12-11 Dietmar Maurer <dietmar@ximian.com>
18 * x86.brg: use position indepentent code if possible.
20 * x86.brg (EMIT_COND_EXCEPTION): new macro.
22 * emit-x86.c (mono_emit_cfg): impl. variable code buffer size
24 2001-12-10 Dietmar Maurer <dietmar@ximian.com>
26 * jit.c (mono_analyze_flow): use g_malloc0 o allocate large bcinfo
28 (mono_analyze_flow): use g_malloc0 o allocate large bblocks array.
30 * x86.brg (stmt): added opt. for STIND_R4/STIND_R8
32 2001-12-07 Dietmar Maurer <dietmar@ximian.com>
34 * jit.c (mono_allocate_intvar): bug fix.
36 * emit-x86.c (get_unbox_trampoline): impl.
38 * jit.c (mono_analyze_stack): impl STOBJ, LEAVE
40 2001-12-06 Dietmar Maurer <dietmar@ximian.com>
42 * x86.brg: raise exceptions.
44 2001-12-05 Dietmar Maurer <dietmar@ximian.com>
46 * x86.brg: impl. CEQ for freg, NEWSTRUCT now allocates valuetypes on
49 2001-12-06 Miguel de Icaza <miguel@ximian.com>
51 * jit.c (mono_analyze_stack), x86.brg: Implement CONV.OVF.I1,
52 CONV.OVF.I4, CONV.OVF.I1.UN, CONV.OVF.U1, CONV.OVF.U1.UN,
53 CONV.OVF.I2.UN, CONV.OVF.I8.UN
55 2001-12-04 Dietmar Maurer <dietmar@ximian.com>
57 * x86.brg: impl. UNBOX, NEWSTRUCT, removed VTYPE, bug fixes,
58 removed the locaddr nonterminal, reimplemented value types
60 * jit.c: reimplemented value type support, better support for
63 2001-12-03 Miguel de Icaza <miguel@ximian.com>
65 * x86.brg, jit.c: Implement conv.ovf.u4, conv.ovf.u2, conv.ovf.i2,
68 Mon Dec 3 17:16:36 CET 2001 Paolo Molaro <lupus@ximian.com>
70 * jit.c: call mono_init() after registering internal calls.
72 2001-11-30 Dietmar Maurer <dietmar@ximian.com>
74 * emit-x86.c (tree_preallocate_regs): improved register allocation
76 * x86.brg: impl. ISINST, CASTCLASS
78 Fri Nov 30 12:02:24 CET 2001 Paolo Molaro <lupus@ximian.com>
80 * x86.brg: rearrange fields to reduce struct size.
81 * jit.c: use signature->param_count, not signature->params_size.
82 * debug.c: off-by-one error fix.
84 2001-11-29 Radek Doulik <rodo@ximian.com>
86 * Makefile.am: build mono only for X86 architecture, compilation
87 fails for ppc now because of accessing registers in sigcontext
90 2001-11-29 Dietmar Maurer <dietmar@ximian.com>
92 * jit.c (mono_analyze_stack): bug fix in DUP
94 Thu Nov 29 12:32:01 CET 2001 Paolo Molaro <lupus@ximian.com>
96 * debug.c: fix type handling. Position function position at start of
97 IL code. Output more fine-grained stepping information.
99 2001-11-28 Dietmar Maurer <dietmar@ximian.com>
101 * x86.brg (LDIND_I1, LDIND_I2): use x86_widen_ instead of x86_mov_
103 * jit.c (mono_analyze_stack): record the cli_address for later use
105 (sigsegv_signal_handler): translate sigsegv into "Internal error"
108 Tue Nov 27 16:32:41 CET 2001 Paolo Molaro <lupus@ximian.com>
110 * debug.c, debug.h: added support for generating stabs.
111 Stabs can be compiled with as and the resulting object file can be
112 loaded in a gdb session with add-symbol-file object.o.
113 * jit.c, jit.h: add --stabs and --debug command line arguments. Keep track
114 where locals and arguments are stored in the stack. Add support for
115 passing command line arguments to CLR programs.
116 * emit-x86.c: insert a breakpoint at method invocation if needed.
118 2001-11-27 Dietmar Maurer <dietmar@ximian.com>
120 * jit.c: exception support
122 * emit-x86.c (arch_emit_epilogue): bug fix: restore the regs in
125 2001-11-26 Dick Porter <dick@ximian.com>
127 * Makefile.am (mono_LDADD): Add io-layer library
129 2001-11-19 Dietmar Maurer <dietmar@ximian.com>
131 * jit.c (mono_analyze_stack): impl. LDFTN
132 (MAKE_SPILLED_BI_ALU): always spill DIV/REM results to memory to
133 make register allocation easier on x86
135 * emit-x86.c (enter_method): more debugging output for Strings
136 (arch_compile_method): added delegate support
137 (arch_compile_method): align EBP to 8 byte boundary
139 Mon Nov 19 11:36:22 CET 2001 Paolo Molaro <lupus@ximian.com>
141 * jit.c: use mono_install_trampoline (), instead of exporting
142 a function to a lower-level library.
144 2001-11-16 Dietmar Maurer <dietmar@ximian.com>
146 * x86.brg (STRING_ARG): impl. a way to marshal strings. This
147 will be extensible to handle all possible kinds of marshalling
150 * jit.c (map_call_type): added MB_TERM_CALL_VOID
151 (mono_analyze_stack): impl. LDELEMA, reimplemented CALL
152 instructions to handle this arguments more effectively.
154 2001-11-15 Dietmar Maurer <dietmar@ximian.com>
156 * Makefile.am (mono_SOURCES): renamed testjit to mono
158 * x86.brg: added debugging support
160 * testjit.c: added support for value types, CFG improvements
162 * emit-x86.c (enter_method): handle value types
163 (tree_allocate_regs): impl. a better way to handle chain rules
165 2001-11-10 Dietmar Maurer <dietmar@ximian.com>
167 * x86.brg (INITOBJ): bug fix: initialize data before use,
170 2001-11-09 Miguel de Icaza <miguel@ximian.com>
172 * testjit.c (mono_analyze_stack): Remove compiler warning by
173 testing against NULL.
175 2001-11-09 Dick Porter <dick@ximian.com>
177 * Makefile.am (testjit_LDADD): Don't need THREAD_LIBS any more
179 2001-11-09 Dietmar Maurer <dietmar@ximian.com>
181 * testjit.c (mono_analyze_stack): new BOX impl.
183 * x86.brg: implemented INITOBJ
185 * testjit.c (mono_analyze_stack): finished array support
186 (mono_analyze_stack): reimplemented DUP instruction
188 2001-11-08 Dietmar Maurer <dietmar@ximian.com>
190 * testjit.c (MAKE_STELEM, MAKE_LDELEM): we build a tree which
191 represents the address of the element. This way we can emit highly
192 optimized x86 instructions to access elements (using base+index+offset
195 2001-11-07 Miguel de Icaza <miguel@ximian.com>
197 * mempool.c: Include string.h to kill warning.
199 * testjit.c: Add typecast to kill warning.
201 * x86.brg: Include string.h to eliminate warning.
203 * emit-x86.c (tree_allocate_regs): Fix arguments to g_warning to
206 2001-11-07 Dietmar Maurer <dietmar@ximian.com>
208 * emit-x86.c (enter_method): print out all method arguments
209 (x86_magic_trampoline): impl.
210 (arch_create_simple_jit_trampoline): we use different trampolines
211 for static methods (no need to write the address back into to
214 2001-11-06 Dietmar Maurer <dietmar@ximian.com>
216 * emit-x86.c (arch_create_jit_trampoline): optimised trampoline to
217 use less the 16 bytes.
219 * x86.brg: code cleanup
221 2001-11-05 Dietmar Maurer <dietmar@ximian.com>
223 * testjit.c: bug fixes.
225 * emit-x86.c (leave_method): print result values
227 2001-11-03 Dietmar Maurer <dietmar@ximian.com>
229 * emit-x86.c (enter_method): new debugging code
230 (leave_method): new debbuging code, this functions are called
231 when you use the new option --trace-calls
233 2001-11-02 Dietmar Maurer <dietmar@ximian.com>
235 * testjit.c: impl. STELEM_XX, STELEM_XX
237 * x86.brg: impl. LDLEN, LDELEMA
240 2001-10-15 Dietmar Maurer <dietmar@ximian.com>
242 * x86.brg: added some experimental code for CALL
243 instructions - still not found the optimal way to do it.
245 * testjit.c (map_stind_type): add support for value types with
246 a size of 1, 2 or 4 bytes, implemented CEE_UNBOX, CEE_LDOBJ,
247 CEE_LDSTR, CEE_LDFLD, CEE_LDFLDA, CEE_STFLD, CEE_NEWOBJ, CEE_CEQ
248 (ctree_create_newobj): impl.
251 * emit-x86.c (tree_allocate_regs): removed allocation code for
253 (get_address): use a simple, but bug free search instead of the
256 2001-10-12 Dietmar Maurer <dietmar@ximian.com>
258 * testjit.c: support virtual functions
260 * x86.brg: support different addressing modes for calls
262 2001-10-11 Dietmar Maurer <dietmar@ximian.com>
264 * testjit.c: impl. STFLD
266 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
270 2001-10-04 Dick Porter <dick@ximian.com>
273 * emit-x86.c: include mono-endian.h not endian.h
275 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
277 * testjit.c (ctree_create_dup): really duplicate the tree.
278 attach the arguments to the CALL node. Added a new macro to
279 make argument order configurable (ARCH_ARGS_RIGHT_TO_LEFT).
281 2001-10-01 Dietmar Maurer <dietmar@ximian.com>
283 * interp.brg: the burm based interpreter: added the file as example.
285 2001-09-27 Dietmar Maurer <dietmar@ximian.com>
289 * testjit.c: impl. LDIND/STIND/LDLOCA, use g_malloc to alloc static
291 (map_stind_type): support enum types
292 (map_ldind_type): support enum types
294 * emit-x86.c (tree_allocate_regs): added code to support
295 register allocation for addressing modes trees.
296 (tree_emit): bug fix: we have to emit all mono_burg_functins. The
297 previous impl. did not work for chain rules.
298 (compute_branches): support for SWITCH statements
300 * x86.brg: added rules to model x86 addressing modes
302 2001-09-26 Dietmar Maurer <dietmar@ximian.com>
304 * emit-x86.c (compute_branches): implemented SWITCH
306 * testjit.c (mono_create_forest): implemented LDIND/STIND opcodes
307 (map_ldind_type): add enumeration types.
308 (map_stind_type): add enumeration types.
310 * emit-x86.c (arch_compile_method): more documentation.
312 * testjit.c: moved the architecture specific things to emit-x86.c
313 and x86.brg. Added more documentation. code cleanup.
315 2001-09-25 Dietmar Maurer <dietmar@ximian.com>
317 * x86.brg: we now have different types of addresses: ADDR_L for local
318 values, ADDR_A for arguments and ADDR_G for global addresses. We
319 also use LDIND_XX token to load values from a specific address
320 instead of LDLOC/STLOC.
322 * testjit.c: use the new adressing scheme everywhere:
323 LDIND _XX (ADDR_X), and STIND_XX (ADDR_X, tree)
325 2001-09-24 Dietmar Maurer <dietmar@ximian.com>
327 * testjit.c (main): fix bug in parameter parsing
329 * x86.brg: impl. more opcodes
331 2001-09-23 Dick Porter <dick@ximian.com>
333 * Makefile.am (testjit_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
335 2001-09-23 Dietmar Maurer <dietmar@ximian.com>
337 * testjit.c: use the memory pool to avoid memory leaks
339 2001-09-22 Dietmar Maurer <dietmar@ximian.com>
341 * x86.brg: increment the stack pointer after function calls
343 2001-09-21 Dick Porter <dick@ximian.com>
345 * Makefile.am (testjit_LDADD): Added PTHREAD_LIBS to the link line
347 2001-09-21 Dietmar Maurer <dietmar@ximian.com>
349 * x86.brg: implemented long MUL/DIV
350 (MB_OPT_LEVEL): define optimisation level macro
352 * testjit.c (tree_allocate_regs): added a way to prevent EDX usage
353 for operations like idiv. it is also possible to assign specific registers.
355 2001-09-20 Dietmar Maurer <dietmar@ximian.com>
357 * x86.brg: added basic support for long
359 * testjit.c (mono_compile_method): implemented POP
361 2001-09-19 Miguel de Icaza <miguel@ximian.com>
363 * testjit.c (usage): Added a couple of more usage options.
365 2001-09-19 Dietmar Maurer <dietmar@ximian.com>
367 * x86.brg: added more floating point grammar
369 * testjit.c (mono_compile_method): make local offsets negative
371 * x86.brg: added some floating point trees
373 * testjit.c (mono_compile_method): arguments on the runtime
374 stack are at least 4 bytes
376 * x86.brg: partly implemented 8,16 bit integers
378 * testjit.c (get_address): mark basic blocks
380 2001-09-18 Dietmar Maurer <dietmar@ximian.com>
382 * x86.brg: added some rules to optimize code
384 * testjit.c (get_address): use a binary search to get the address
385 (main): added an option to debug the jit (-d)
387 Tue Sep 18 13:19:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
389 * testjit.c: better/faster align code. Handle ldloc.s and stloc.s.
391 2001-09-17 Miguel de Icaza <miguel@ximian.com>
393 * testjit.c (mono_compile_method): Provide better error reporting.
395 2001-09-17 Dietmar Maurer <dietmar@ximian.com>
397 * testjit.c (tree_get_address): impl. to fix address bug
398 (tree_get_address): make sure that we can only jump to the first
399 instruction of a tree.
401 * x86.brg: emit real code for calls
403 * testjit.c (create_jit_trampoline): creates a function to trigger jit
405 (mono_compile_method): reversed argument order
407 2001-09-15 Dietmar Maurer <dietmar@ximian.com>
409 * x86.brg (stmt): don't emit unnecessary register moves
411 * testjit.c (tree_allocate_regs): free registers earlier
413 2001-09-14 Dietmar Maurer <dietmar@ximian.com>
415 * x86.brg: branch addresses are now resolved
417 * testjit.c (compute_branches): compute address of branches
419 * x86.brg: emit real x86 instructions
421 * testjit.c: call objdump to disassemble the output
423 2001-09-13 Dietmar Maurer <dietmar@ximian.com>
425 * x86.brg: use the right offsets to access local variables
428 * emit-x86.c: only save/restore callee saved registers if they are
431 * testjit.c (tree_allocate_regs): use the new MonoRegSet to
433 (mono_compile_method): changed the tree for mothod calls
440 2001-09-10 Miguel de Icaza <miguel@ximian.com>
442 * x86.brg: Use Unix assembly syntax.
444 * emit-x86.c: support code, should be moved
446 * testjit.c: Use GPtrArrays instead of GLists, as those are very
447 inefficient at appends.
449 * Renamed `create_new_leave' to `create_new_leaf'