1 2002-01-14 Dietmar Maurer <dietmar@ximian.com>
3 * x86.brg: bug fix in CONV_OVF_I1_UN
6 Fri Jan 11 20:06:22 CET 2002 Paolo Molaro <lupus@ximian.com>
8 * jit.c: implement stloc, ldloc, ldloca.
10 2002-01-11 Dietmar Maurer <dietmar@ximian.com>
12 * jit.c (mono_analyze_stack): fixed calculation of last_instr
14 * x86.brg (LDLEN): emit null_reference exception
16 (RET, RET_VOID, RET_OBJ, ...) fixed jump to epilog
18 2002-01-04 Dietmar Maurer <dietmar@ximian.com>
20 * x86.brg: bug fix in CASTCLASS
22 2001-12-21 Dietmar Maurer <dietmar@ximian.com>
24 * jit.c (mono_analyze_stack): spill MUL to avoid problem with
27 * emit-x86.c (arch_compile_method): fixed static delegate bug
29 2001-12-16 Miguel de Icaza <miguel@ximian.com>
31 * x86.brg, jit.c: Split up the nodes that we used to share on
32 CONV_OVF. They were sharing the nodes because they are the same
33 on 32-bit machines, but on 64-bit machines you need different
36 2001-12-17 Dietmar Maurer <dietmar@ximian.com>
38 * x86.brg: removed prerequisite that (tree->left->reg1 <
39 tree->right->reg1) to make register allocation easier.
41 2001-12-16 Dietmar Maurer <dietmar@ximian.com>
43 * emit-x86.c (arch_handle_exception): new code to handle
44 exceptions inside unmanaged code.
46 * x86.brg: impl. SAVE_LMF, RESTORE_LMF, pass implizit valuetype
47 address as first argument.
49 2001-12-15 Dietmar Maurer <dietmar@ximian.com>
51 * x86.brg: pass exceptions on the stack
53 * jit.h (ISSTRUCT): new macro to check for real value types
54 (return false for enum types).
56 2001-12-11 Dietmar Maurer <dietmar@ximian.com>
58 * x86.brg: use position indepentent code if possible.
60 * x86.brg (EMIT_COND_EXCEPTION): new macro.
62 * emit-x86.c (mono_emit_cfg): impl. variable code buffer size
64 2001-12-10 Dietmar Maurer <dietmar@ximian.com>
66 * jit.c (mono_analyze_flow): use g_malloc0 o allocate large bcinfo
68 (mono_analyze_flow): use g_malloc0 o allocate large bblocks array.
70 * x86.brg (stmt): added opt. for STIND_R4/STIND_R8
72 2001-12-07 Dietmar Maurer <dietmar@ximian.com>
74 * jit.c (mono_allocate_intvar): bug fix.
76 * emit-x86.c (get_unbox_trampoline): impl.
78 * jit.c (mono_analyze_stack): impl STOBJ, LEAVE
80 2001-12-06 Dietmar Maurer <dietmar@ximian.com>
82 * x86.brg: raise exceptions.
84 2001-12-05 Dietmar Maurer <dietmar@ximian.com>
86 * x86.brg: impl. CEQ for freg, NEWSTRUCT now allocates valuetypes on
89 2001-12-06 Miguel de Icaza <miguel@ximian.com>
91 * jit.c (mono_analyze_stack), x86.brg: Implement CONV.OVF.I1,
92 CONV.OVF.I4, CONV.OVF.I1.UN, CONV.OVF.U1, CONV.OVF.U1.UN,
93 CONV.OVF.I2.UN, CONV.OVF.I8.UN
95 2001-12-04 Dietmar Maurer <dietmar@ximian.com>
97 * x86.brg: impl. UNBOX, NEWSTRUCT, removed VTYPE, bug fixes,
98 removed the locaddr nonterminal, reimplemented value types
100 * jit.c: reimplemented value type support, better support for
103 2001-12-03 Miguel de Icaza <miguel@ximian.com>
105 * x86.brg, jit.c: Implement conv.ovf.u4, conv.ovf.u2, conv.ovf.i2,
108 Mon Dec 3 17:16:36 CET 2001 Paolo Molaro <lupus@ximian.com>
110 * jit.c: call mono_init() after registering internal calls.
112 2001-11-30 Dietmar Maurer <dietmar@ximian.com>
114 * emit-x86.c (tree_preallocate_regs): improved register allocation
116 * x86.brg: impl. ISINST, CASTCLASS
118 Fri Nov 30 12:02:24 CET 2001 Paolo Molaro <lupus@ximian.com>
120 * x86.brg: rearrange fields to reduce struct size.
121 * jit.c: use signature->param_count, not signature->params_size.
122 * debug.c: off-by-one error fix.
124 2001-11-29 Radek Doulik <rodo@ximian.com>
126 * Makefile.am: build mono only for X86 architecture, compilation
127 fails for ppc now because of accessing registers in sigcontext
130 2001-11-29 Dietmar Maurer <dietmar@ximian.com>
132 * jit.c (mono_analyze_stack): bug fix in DUP
134 Thu Nov 29 12:32:01 CET 2001 Paolo Molaro <lupus@ximian.com>
136 * debug.c: fix type handling. Position function position at start of
137 IL code. Output more fine-grained stepping information.
139 2001-11-28 Dietmar Maurer <dietmar@ximian.com>
141 * x86.brg (LDIND_I1, LDIND_I2): use x86_widen_ instead of x86_mov_
143 * jit.c (mono_analyze_stack): record the cli_address for later use
145 (sigsegv_signal_handler): translate sigsegv into "Internal error"
148 Tue Nov 27 16:32:41 CET 2001 Paolo Molaro <lupus@ximian.com>
150 * debug.c, debug.h: added support for generating stabs.
151 Stabs can be compiled with as and the resulting object file can be
152 loaded in a gdb session with add-symbol-file object.o.
153 * jit.c, jit.h: add --stabs and --debug command line arguments. Keep track
154 where locals and arguments are stored in the stack. Add support for
155 passing command line arguments to CLR programs.
156 * emit-x86.c: insert a breakpoint at method invocation if needed.
158 2001-11-27 Dietmar Maurer <dietmar@ximian.com>
160 * jit.c: exception support
162 * emit-x86.c (arch_emit_epilogue): bug fix: restore the regs in
165 2001-11-26 Dick Porter <dick@ximian.com>
167 * Makefile.am (mono_LDADD): Add io-layer library
169 2001-11-19 Dietmar Maurer <dietmar@ximian.com>
171 * jit.c (mono_analyze_stack): impl. LDFTN
172 (MAKE_SPILLED_BI_ALU): always spill DIV/REM results to memory to
173 make register allocation easier on x86
175 * emit-x86.c (enter_method): more debugging output for Strings
176 (arch_compile_method): added delegate support
177 (arch_compile_method): align EBP to 8 byte boundary
179 Mon Nov 19 11:36:22 CET 2001 Paolo Molaro <lupus@ximian.com>
181 * jit.c: use mono_install_trampoline (), instead of exporting
182 a function to a lower-level library.
184 2001-11-16 Dietmar Maurer <dietmar@ximian.com>
186 * x86.brg (STRING_ARG): impl. a way to marshal strings. This
187 will be extensible to handle all possible kinds of marshalling
190 * jit.c (map_call_type): added MB_TERM_CALL_VOID
191 (mono_analyze_stack): impl. LDELEMA, reimplemented CALL
192 instructions to handle this arguments more effectively.
194 2001-11-15 Dietmar Maurer <dietmar@ximian.com>
196 * Makefile.am (mono_SOURCES): renamed testjit to mono
198 * x86.brg: added debugging support
200 * testjit.c: added support for value types, CFG improvements
202 * emit-x86.c (enter_method): handle value types
203 (tree_allocate_regs): impl. a better way to handle chain rules
205 2001-11-10 Dietmar Maurer <dietmar@ximian.com>
207 * x86.brg (INITOBJ): bug fix: initialize data before use,
210 2001-11-09 Miguel de Icaza <miguel@ximian.com>
212 * testjit.c (mono_analyze_stack): Remove compiler warning by
213 testing against NULL.
215 2001-11-09 Dick Porter <dick@ximian.com>
217 * Makefile.am (testjit_LDADD): Don't need THREAD_LIBS any more
219 2001-11-09 Dietmar Maurer <dietmar@ximian.com>
221 * testjit.c (mono_analyze_stack): new BOX impl.
223 * x86.brg: implemented INITOBJ
225 * testjit.c (mono_analyze_stack): finished array support
226 (mono_analyze_stack): reimplemented DUP instruction
228 2001-11-08 Dietmar Maurer <dietmar@ximian.com>
230 * testjit.c (MAKE_STELEM, MAKE_LDELEM): we build a tree which
231 represents the address of the element. This way we can emit highly
232 optimized x86 instructions to access elements (using base+index+offset
235 2001-11-07 Miguel de Icaza <miguel@ximian.com>
237 * mempool.c: Include string.h to kill warning.
239 * testjit.c: Add typecast to kill warning.
241 * x86.brg: Include string.h to eliminate warning.
243 * emit-x86.c (tree_allocate_regs): Fix arguments to g_warning to
246 2001-11-07 Dietmar Maurer <dietmar@ximian.com>
248 * emit-x86.c (enter_method): print out all method arguments
249 (x86_magic_trampoline): impl.
250 (arch_create_simple_jit_trampoline): we use different trampolines
251 for static methods (no need to write the address back into to
254 2001-11-06 Dietmar Maurer <dietmar@ximian.com>
256 * emit-x86.c (arch_create_jit_trampoline): optimised trampoline to
257 use less the 16 bytes.
259 * x86.brg: code cleanup
261 2001-11-05 Dietmar Maurer <dietmar@ximian.com>
263 * testjit.c: bug fixes.
265 * emit-x86.c (leave_method): print result values
267 2001-11-03 Dietmar Maurer <dietmar@ximian.com>
269 * emit-x86.c (enter_method): new debugging code
270 (leave_method): new debbuging code, this functions are called
271 when you use the new option --trace-calls
273 2001-11-02 Dietmar Maurer <dietmar@ximian.com>
275 * testjit.c: impl. STELEM_XX, STELEM_XX
277 * x86.brg: impl. LDLEN, LDELEMA
280 2001-10-15 Dietmar Maurer <dietmar@ximian.com>
282 * x86.brg: added some experimental code for CALL
283 instructions - still not found the optimal way to do it.
285 * testjit.c (map_stind_type): add support for value types with
286 a size of 1, 2 or 4 bytes, implemented CEE_UNBOX, CEE_LDOBJ,
287 CEE_LDSTR, CEE_LDFLD, CEE_LDFLDA, CEE_STFLD, CEE_NEWOBJ, CEE_CEQ
288 (ctree_create_newobj): impl.
291 * emit-x86.c (tree_allocate_regs): removed allocation code for
293 (get_address): use a simple, but bug free search instead of the
296 2001-10-12 Dietmar Maurer <dietmar@ximian.com>
298 * testjit.c: support virtual functions
300 * x86.brg: support different addressing modes for calls
302 2001-10-11 Dietmar Maurer <dietmar@ximian.com>
304 * testjit.c: impl. STFLD
306 2001-10-10 Dietmar Maurer <dietmar@ximian.com>
310 2001-10-04 Dick Porter <dick@ximian.com>
313 * emit-x86.c: include mono-endian.h not endian.h
315 2001-10-02 Dietmar Maurer <dietmar@ximian.com>
317 * testjit.c (ctree_create_dup): really duplicate the tree.
318 attach the arguments to the CALL node. Added a new macro to
319 make argument order configurable (ARCH_ARGS_RIGHT_TO_LEFT).
321 2001-10-01 Dietmar Maurer <dietmar@ximian.com>
323 * interp.brg: the burm based interpreter: added the file as example.
325 2001-09-27 Dietmar Maurer <dietmar@ximian.com>
329 * testjit.c: impl. LDIND/STIND/LDLOCA, use g_malloc to alloc static
331 (map_stind_type): support enum types
332 (map_ldind_type): support enum types
334 * emit-x86.c (tree_allocate_regs): added code to support
335 register allocation for addressing modes trees.
336 (tree_emit): bug fix: we have to emit all mono_burg_functins. The
337 previous impl. did not work for chain rules.
338 (compute_branches): support for SWITCH statements
340 * x86.brg: added rules to model x86 addressing modes
342 2001-09-26 Dietmar Maurer <dietmar@ximian.com>
344 * emit-x86.c (compute_branches): implemented SWITCH
346 * testjit.c (mono_create_forest): implemented LDIND/STIND opcodes
347 (map_ldind_type): add enumeration types.
348 (map_stind_type): add enumeration types.
350 * emit-x86.c (arch_compile_method): more documentation.
352 * testjit.c: moved the architecture specific things to emit-x86.c
353 and x86.brg. Added more documentation. code cleanup.
355 2001-09-25 Dietmar Maurer <dietmar@ximian.com>
357 * x86.brg: we now have different types of addresses: ADDR_L for local
358 values, ADDR_A for arguments and ADDR_G for global addresses. We
359 also use LDIND_XX token to load values from a specific address
360 instead of LDLOC/STLOC.
362 * testjit.c: use the new adressing scheme everywhere:
363 LDIND _XX (ADDR_X), and STIND_XX (ADDR_X, tree)
365 2001-09-24 Dietmar Maurer <dietmar@ximian.com>
367 * testjit.c (main): fix bug in parameter parsing
369 * x86.brg: impl. more opcodes
371 2001-09-23 Dick Porter <dick@ximian.com>
373 * Makefile.am (testjit_LDADD): rename PTHREAD_LIBS to THREAD_LIBS
375 2001-09-23 Dietmar Maurer <dietmar@ximian.com>
377 * testjit.c: use the memory pool to avoid memory leaks
379 2001-09-22 Dietmar Maurer <dietmar@ximian.com>
381 * x86.brg: increment the stack pointer after function calls
383 2001-09-21 Dick Porter <dick@ximian.com>
385 * Makefile.am (testjit_LDADD): Added PTHREAD_LIBS to the link line
387 2001-09-21 Dietmar Maurer <dietmar@ximian.com>
389 * x86.brg: implemented long MUL/DIV
390 (MB_OPT_LEVEL): define optimisation level macro
392 * testjit.c (tree_allocate_regs): added a way to prevent EDX usage
393 for operations like idiv. it is also possible to assign specific registers.
395 2001-09-20 Dietmar Maurer <dietmar@ximian.com>
397 * x86.brg: added basic support for long
399 * testjit.c (mono_compile_method): implemented POP
401 2001-09-19 Miguel de Icaza <miguel@ximian.com>
403 * testjit.c (usage): Added a couple of more usage options.
405 2001-09-19 Dietmar Maurer <dietmar@ximian.com>
407 * x86.brg: added more floating point grammar
409 * testjit.c (mono_compile_method): make local offsets negative
411 * x86.brg: added some floating point trees
413 * testjit.c (mono_compile_method): arguments on the runtime
414 stack are at least 4 bytes
416 * x86.brg: partly implemented 8,16 bit integers
418 * testjit.c (get_address): mark basic blocks
420 2001-09-18 Dietmar Maurer <dietmar@ximian.com>
422 * x86.brg: added some rules to optimize code
424 * testjit.c (get_address): use a binary search to get the address
425 (main): added an option to debug the jit (-d)
427 Tue Sep 18 13:19:16 CEST 2001 Paolo Molaro <lupus@ximian.com>
429 * testjit.c: better/faster align code. Handle ldloc.s and stloc.s.
431 2001-09-17 Miguel de Icaza <miguel@ximian.com>
433 * testjit.c (mono_compile_method): Provide better error reporting.
435 2001-09-17 Dietmar Maurer <dietmar@ximian.com>
437 * testjit.c (tree_get_address): impl. to fix address bug
438 (tree_get_address): make sure that we can only jump to the first
439 instruction of a tree.
441 * x86.brg: emit real code for calls
443 * testjit.c (create_jit_trampoline): creates a function to trigger jit
445 (mono_compile_method): reversed argument order
447 2001-09-15 Dietmar Maurer <dietmar@ximian.com>
449 * x86.brg (stmt): don't emit unnecessary register moves
451 * testjit.c (tree_allocate_regs): free registers earlier
453 2001-09-14 Dietmar Maurer <dietmar@ximian.com>
455 * x86.brg: branch addresses are now resolved
457 * testjit.c (compute_branches): compute address of branches
459 * x86.brg: emit real x86 instructions
461 * testjit.c: call objdump to disassemble the output
463 2001-09-13 Dietmar Maurer <dietmar@ximian.com>
465 * x86.brg: use the right offsets to access local variables
468 * emit-x86.c: only save/restore callee saved registers if they are
471 * testjit.c (tree_allocate_regs): use the new MonoRegSet to
473 (mono_compile_method): changed the tree for mothod calls
480 2001-09-10 Miguel de Icaza <miguel@ximian.com>
482 * x86.brg: Use Unix assembly syntax.
484 * emit-x86.c: support code, should be moved
486 * testjit.c: Use GPtrArrays instead of GLists, as those are very
487 inefficient at appends.
489 * Renamed `create_new_leave' to `create_new_leaf'