1 2004-02-22 Miguel de Icaza <miguel@ximian.com>
3 * driver.c (mono_main): Report some configuratio options on --version.
5 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
7 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
8 low in the address space. Correctly flush memory in thunks where we
11 2004-02-20 Martin Baulig <martin@ximian.com>
13 * mini.c (mini_get_method): New static method; inflate all generic
14 methods and methods in open generic instances.
15 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
16 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
18 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
20 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
22 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
24 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
26 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
28 * mini-sparc.c (flushi mono_arch_output_basic_block): make
29 it compile using Sun's compiler.
31 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
33 * mini-ops.h inssel-sparc.brg cpu-sparc.md mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Sparc port, part I.
35 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
37 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
39 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
41 * mini-ppc.c: handle calls outside of the allowed range with thunks
42 allocated using the code manager.
43 * tramp-ppc.c: use the code manager to hold generated native code.
44 Fixed the magic trampoline to just patch vtable entries.
46 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
48 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
51 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
53 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
56 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
57 if we have a working __thread implementation.
59 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
60 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
62 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
64 * mini-x86.c: Fix compilation under gcc 2.
66 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
68 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
69 contains a call to the wrapped function.
71 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
72 OP_<CALL>_IMM opcodes, and use them under X86.
74 * mini.c (mono_jit_find_compiled_method): Fix warning.
76 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
78 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
80 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
81 functionality to mini.c.
83 * mini.c (mono_create_jump_trampoline): New function to create a jump
84 trampoline. Return a compiled method instead of a trampoline if it
85 exists. Add a cache for jump trampolines.
87 * mini.c (mono_jit_find_compiled_method): New function to return a
88 compiled method if it exists.
90 * mini-x86.c: Call mono_create_jump_trampoline instead of
91 mono_arch_create_jit_trampoline.
93 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
94 a jump trampoline. Fixes #52092.
96 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
98 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
99 which is not up-to-date. Add check_corlib_version () instead.
101 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
104 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
105 since newer valgrind versions do not need it.
107 * mini.c (mono_jit_compile_method_with_opt): New helper function to
108 compile a method with a given set of optimizations.
110 * mini.c: Compile icall wrappers on-demand instead of at startup.
112 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
113 wrapper for an icall.
115 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
117 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
120 * iltests.il: Add test for non-empty stack before switch instruction.
122 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
124 * mini.c: Add support for new stringbuilder marshalling conventions.
126 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
128 2004-02-01 Martin Baulig <martin@ximian.com>
130 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
131 in `ginst->mtype_argv'.
133 2004-01-31 Miguel de Icaza <miguel@ximian.com>
135 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
138 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
140 * mini.c: fixed buglet in initobj generic implementation for references.
142 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
144 * Makefile.am: make the version script conditional.
145 * jit-icalls.c: handle missing truncl().
147 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
149 * exceptions.cs: Add more tests for double->int conversion.
151 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
152 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
154 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
156 * driver.c: make --verbose --version emit an error
157 if the loaded corlib doesn't match the runtime version.
159 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
161 * mini-ppc.h: export ppc_patch().
162 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
163 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
164 on par or better than on MacOSX.
166 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
168 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
169 mono_lookup_pinvoke_call.
171 * mini-x86.c: Under windows, the default pinvoke calling convention is
172 stdcall. Fixes #52834.
174 * mini.c (optimize_branches): Add an upper bound to the number of
175 iterations to prevent infinite loops on strange loops. Fixes #53003.
177 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
179 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
180 and ISINST. Fixes #52093.
182 * objects.cs (test_0_vector_array_cast): New tests.
184 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
186 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
187 checking in Array.Set ().
189 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
192 * object.cs (test_0_multi_array_cast): New regression test.
194 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
196 * exceptions-ppc.c: fix build on Linux/PPC.
198 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
200 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
201 running under valgrind.
202 (x86_magic_trampoline): Fix build bustage.
204 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
205 negative values as well. This is needed for the encoding of the line number
206 info, since sometimes the line numbers are not in increasing order.
208 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
210 * cpu-pentium.md (localloc): Increase the size of the localloc
211 instruction since it is a loop under Win32.
213 * debug-mini.c (record_line_number): Get rid of unneccesary memory
216 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
218 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
219 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
220 Max Horn (max@quendi.de). Fix file names in comments.
222 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
224 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
225 avoid stack overflow.
226 (replace_usage): Avoid uninitialized variable warnings.
228 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
229 and taking the address of valuetype variables.
231 2004-01-03 Patrik Torstensson
233 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
234 for other purposes than FP later on.
236 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
238 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
241 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
243 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
245 2003-12-30 Patrik Torstensson <p@rxc.se>
247 * mini-x86.h: Decreased number of availiable fp regs.
248 Solves corner cases with FP spilling.
250 2003-12-23 Patrik Torstensson <p@rxc.se>
252 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
253 for floating point stack tracking / spilling on x86.
256 * basic-float.cs: added float mul overflow test.
258 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
260 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
262 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
264 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
265 supports for cond branches that overflow the immediate
266 overflow offset. mcs can compile simple programs.
268 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
270 * exceptions-ppc.c: exception handling support wip:
271 finally handlers get run on exception.
273 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
275 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
278 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
280 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
281 initial support for stack walking and unwinding.
283 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
285 * driver.c (mono_main): Make corlib-out-of-sync message more
286 descriptive. Also remove verify_corlib call.
288 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
290 * mini.c: make CEE_NEWARR calls and other emulated opcodes
291 not overlap with other call's arguments, too.
293 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
295 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
296 move to arch-specific code the choice of arch-specific
297 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
298 * mini.c: ensure emulation calls will not interleave
301 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
303 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
304 the magic trampoline stack frame is dropped before executing
307 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
309 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
310 and integer to fp conversions. Added support for overflowing
311 arguments on the stack. Reserve a couple more registers as temps.
312 Added support for aot compilation (as output still needs to be
315 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
317 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
318 Don't overwrite return register in some corner cases.
320 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
322 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
323 static constructors when AOT compiling.
325 * driver.c (mono_main): Call mono_check_corlib_version.
327 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
329 * cpu-g4.md, basic.cs: fixed div target register.
331 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
333 * mini-ppc.c, basic.cs: shl_imm fix with test.
335 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
337 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
338 structures by value. Misc fixes.
339 * objects.cs: more tests.
341 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
343 * mini-ppc.c: lconv.ovf.i implemented.
345 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
348 (mini_init): don't error out if someone already called g_thread_init.
350 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
352 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
353 to be any type per the spec. Fix abnormal memory usage when
354 the same object is repeatedly thrown.
356 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
358 * mini.c: check for overruns in IL code.
360 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
362 * TODO: Add/remove some todo entries.
364 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
366 * driver.c (mono_main): Call mono_verify_corlib.
368 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
370 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
371 This has been moved to mini.c
372 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
373 type being casted is marshalbyref it could be a proxy, so instead of
374 emitting the type check code, emit a call to a runtime method that will
375 perform the check by calling CanCastTo if needed.
377 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
379 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
380 methods with large stack frames under Win32.
382 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
384 * Makefile.am: Distribute regression tests.
386 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
387 at the end instead of inserting each variable into the sorted list.
389 * linear-scan.c (mono_varlist_sort): New helper function.
391 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
393 * mini.c: ensure arguments and locals are within bounds.
395 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
397 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
400 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
402 * mini.c (mono_cprop_copy_values): Fix crash.
404 * aot.c: Set verbosity back to 0.
406 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
408 * regalloc.c: complete memory leak fix by Laurent Morichetti
411 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
413 * driver.c (main_thread_handler): Revert the previous patch.
415 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
418 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
419 memory from the memory pool.
421 * driver.c (main_thread_handler): Turn on all optimizations when
424 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
425 an array for better performance.
427 * regalloc.c (mono_regstate_assign): Fix memory leak.
429 * debug-mini.c (mono_debug_serialize_debug_info): New function to
430 serialize the debug info.
432 * debug-mini.c (mono_debug_add_aot_method): New function to load the
433 debug info from the serialized representation.
435 * aot.c: Save debug info into the generated file and load it when
438 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
440 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
442 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
443 More FP-related fixes.
445 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
447 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
448 and register allocation buglet. Hello world now runs.
450 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
452 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
453 * tramp-ppc.c: fixed class init trampoline.
454 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
456 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
458 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
459 mini.c: more ppc changes/fixes.
461 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
463 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
464 Also optimize the case when the arguments are the same in the caller
467 * iltests.il: Add tests for tail calls with valuetype arguments.
469 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
471 * mini-ppc.c: fixes for struct return type.
473 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
475 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
476 mono_spillvar_offset() to arch-specific code.
478 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
480 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
482 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
484 * exceptions-x86.c: Fix stack space leaks.
486 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
487 registers from the lmf if the method has save_lmf set.
489 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
491 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
492 of icall wrappers into InvokeInDomain, since these are now per-domain.
494 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
496 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
497 make some opcode emulation and intrinsic ops enabled/disabled
498 according to the architecture. More fixes.
500 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
502 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
504 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
506 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
507 arch-specific handling for 'this' and struct return type to
510 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
512 * aot.c: prevent divide by zero error when reporting (it happened with
515 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
517 * mini.h (inst_switch): Remove unused macro.
519 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
522 (load_aot_module): free 'info->methods' and 'info' properly. No more
523 "free(): invalid pointer blah" messages when you have an old aot
526 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
528 * jit-icalls.c, mini.c: Added support for context static fields.
530 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
532 * mini.c (mono_method_blittable): Methods which set LastError are not
533 blittable either. Fixes #51108.
535 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
537 * mini.c: flush icache.
538 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
540 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
542 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
544 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
546 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
549 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
552 * inssel.brg (CEE_MKREFANY): Fix AOT case.
554 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
556 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
557 instruction when the result is discarded.
559 * iltests.il (test_0_div_regalloc): New regression test.
561 * arrays.cs: Fix compilation error.
563 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
565 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
566 float rules to inssel-x86.brg: sane architectures with FP registers
567 don't need to implement these rules.
569 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
571 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
573 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
575 * mini.h, inssel-long32.brg: fixed endianess issues in int64
576 implementation of 32 bit systems.
578 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
580 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
581 (Jeroen Zwartepoorte).
583 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
585 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
586 the caller and the callee matches.
588 * mini.c (mono_method_to_ir): Add comment.
590 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
591 signbit is missing on some platforms.
593 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
595 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
597 * mini.c (setup_jit_tls_data): Call the new function.
599 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
601 * mini-x86.c: Add experimental support for fast access to the lmf
602 structure under NPTL/Linux 2.6.x.
604 2003-11-06 Martin Baulig <martin@ximian.com>
606 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
607 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
610 2003-11-02 Martin Baulig <martin@ximian.com>
612 * mini.c (inflate_generic_field): New static method.
613 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
614 generic instance and the field is declared in a generic type, call
615 inflate_generic_field() to inflate it. Fixes gen-28.cs.
617 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
619 * mini.h mini.c (mono_method_same_domain): New function to return
620 whenever the caller and the callee are in the same domain.
622 * tramp-x86.c (x86_magic_trampoline): Use the new function.
624 2003-10-30 Martin Baulig <martin@ximian.com>
626 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
627 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
629 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
630 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
632 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
634 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
637 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
638 object here, so it is in the correct appdomain etc.
640 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
642 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
644 (mono_method_to_ir): Avoid freeing the type created returned from
645 mono_type_create_from_typespec, since it is put into an internal cache
646 by the function. Fixes pointer.exe.
648 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
649 trampolines for icalls and pinvokes as well. Fixes #33569.
651 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
653 * mini.c: Update after appdomain changes.
655 * mini.c (mono_jit_compile_method_inner): Allways compile native
656 method wrappers in the root domain, since there can only be one
657 instance of them, whose address is stored in method->info.
659 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
661 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
662 environment variable. Instead detect automatically whenever running
663 under valgrind using the magic macro RUNNING_ON_VALGRIND from
666 2003-10-16 Miguel de Icaza <miguel@ximian.com>
668 * trace.c, trace.h: New files that implement the new trace option
671 * driver.c: Document new --trace options.
673 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
676 - if (mono_jit_trace_calls)
677 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
679 * mini.h: prototypes.
681 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
683 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
685 * mini.c inssel.brg: Implement typedefbyref opcodes.
687 * mini.c (mono_jit_compile_method): Remove unused local variable.
689 * mini.c (mono_jit_compile_method_inner): Ditto.
691 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
693 * tramp-x86.c (x86_class_init_trampoline): Fix build.
695 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
697 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
699 * mini.c (mono_no_aot): Remove unused global variable.
701 * mini.c: Thread safety fixes.
703 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
705 * mini.c (mono_create_class_init_trampoline): Add a lock around
706 class_init_hash_addr.
708 * arrays.cs (test_0_newarr_emulation): Add new regression test for
711 * mini.c: Decompose the NEWARR instruction before decomposing its
712 arguments. Fixes #30073.
714 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
716 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
719 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
721 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
723 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
725 * driver.c: Add support for compiling icall wrappers to --compile.
727 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
729 * inssel.brg: The empty value in class->interface_offsets is -1, not
732 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
734 * objects.cs: New test for 'is' operator on an array of interfaces.
736 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
738 * tramp-ppc.c: update trampoline code to support jumps
739 and class initialization.
741 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
743 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
745 * inssel.brg (OP_UNBOXCAST): Fix #46027.
747 * inssel.brg (OP_UNBOX): Remove unused rule.
749 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
750 region instead of one for each method. Fixes #47813.
752 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
754 * exceptions.cs (test_0_nested_finally): New regression test for
755 nested exception handlers.
757 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
759 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
761 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
764 * mini.c (mono_method_check_inlining): Make the inlining limit
765 configurable by an environment variable.
767 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
769 * mini.h: Bump AOT file version.
771 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
772 token, store the image along with the token, since the token might not
773 refer to the same image as the method containing the relocation,
776 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
778 * mini.c (mono_precompile_assemblies): New function to compile
779 all methods in all loaded assemblies.
781 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
783 * regalloc.h regalloc.c (MonoRegState): Change the type of
784 iassign and fassign to int*, since they can contain large negative
785 values if the register is spilled. Also added some comments. Fixes
788 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
789 under Win32. Fixes #42964.
791 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
793 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
795 * aot.c: Added support for AOT compiling methods which contain calls
796 to wrappers. Currently, only remoting-invoke-with-check wrappers are
799 * driver.c (compile_all_methods): Run the compilation in a thread
800 managed by mono. Fixes #44023.
802 * mini.c (mono_codegen): Print full method name in verbose output.
804 * mini-x86.c (mono_arch_patch_code): Fix warning.
806 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
807 jumps, since the method we are jumping to might be domain-specific.
809 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
811 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
813 * inssel.brg: string chars are unsigned.
815 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
817 * TODO: New todo item.
819 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
820 which calls mono_runtime_class_init and patches the call site to
822 (mono_arch_create_class_init_trampoline): New arch specific function
823 to create a class init trampoline.
824 (create_trampoline_code): Generalized so it can create
825 class init trampolines as well.
827 * mini.c (helper_sig_class_init_trampoline): New helper variable.
828 (mono_create_class_init_trampoline): New function to create and cache
829 class init trampolines.
830 (mono_find_class_init_trampoline_by_addr): New function to lookup the
831 vtable given the address of a class init trampoline. Used by the
833 (mono_codegen): Generate a call to a trampoline instead of
834 mono_runtime_class_init in LDSFLD[A].
835 (mono_codegen): Add relocations for the new trampoline.
837 * mini.h mini-x86.c aot.c: Added a new relocation type:
838 MONO_PATCH_INFO_CLASS_INIT.
840 * mini.h: Bump AOT version number.
842 * aot.c: Create a copy of the loaded code instead of using the original
843 so methods which call each other will be close in memory, improving
846 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
847 patch since it breaks the regression tests.
849 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
850 for the register saving instruction sequence since the
851 frame_state_for function in glibc 2.3.2 don't seem to detect it.
853 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
855 * TODO: Fix todo item && remove another.
857 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
859 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
862 * aot.c: Moved the check for MONO_LASTAOT into the initialization
863 function of the module.
865 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
866 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
867 --no-aot command line option.
869 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
871 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
872 by Bernie Solomon (bernard@ugsolutions.com).
874 * inssel.brg: Refactor the interface offset table related code into
875 its separate functions and add support for the AOT case.
877 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
879 * aot.c (mono_aot_get_method_inner): Fix memory leak.
881 * aot.c: Added mono_aot_verbose variable and made all debugging
882 output depend on the value of this variable.
884 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
885 method_label and info_label.
887 * mini.h mini-x86.c aot.c: Added a new relocation type
888 MONO_PATCH_INFO_IID for klass->interface_id.
890 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
891 the MonoJitInfo structure.
893 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
894 a non-root appdomain in shared mode.
896 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
898 * aot.c: make aot loader less verbose. Remove free of unused variable.
900 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
902 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
904 * .cvsignore: Added *.dll.
906 * mini.c (mono_print_tree_nl): New function callable while debugging.
908 * mini.c (mono_print_code): Export this.
910 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
913 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
915 * mini.h (MonoCompile): Added 'jit_info' field.
917 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
918 the cfg structure, since it is needed by the AOT compiler.
920 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
922 * aot.c: A major rewrite. Changes include:
923 - save exception tables for methods which have them.
924 - cache failed lookups in aot_get_method () to avoid the (slow) calls
926 - reworked the file format so it is now much smaller and needs
927 fewer relocation entries.
929 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
931 * aot.c (load_aot_module): Fix build bustage on platforms without
934 2003-09-04 Martin Baulig <martin@ximian.com>
936 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
938 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
940 * TODO: Some new optimization ideas.
942 * aot.c: Move AOT module loading logic here from mono_assembly_open.
944 * aot.c: Save the optimization flags used to compile the code into
947 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
948 support emitting domain specific code.
950 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
951 no longer domain neutral. It can be made domain neutral by compiling
952 with --optimize=shared.
954 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
957 * driver.c mini.h mini.c: New --no-aot debugging option which disables
960 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
962 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
963 if there is no domain neutrality information.
965 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
967 * aot.c (mono_compile_assembly): Emit a symbol containing the file
968 format version into the generated library.
970 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
971 callee method into the caller since one of them could be shared.
973 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
974 system exceptions from AOT code now works.
976 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
977 method if it is domain neutral and the callee is not.
979 * graph.c (cfg_emit_one_loop_level): Fix warning.
981 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
983 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
986 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
988 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
989 is needed by code which is executed before mono_runtime_init ().
990 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
992 * mini.c (mono_thread_abort): Fix warning.
993 (mono_jit_compile_method): Call static constructor in the AOT case too.
995 * aot.c (mono_compile_assembly): Fix warning.
997 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
999 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
1001 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
1003 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
1005 * cpu-pentium.md: Fix the length of call opcodes so they include the
1006 ESP restoring instruction. Fixes #47968.
1008 2003-08-28 Martin Baulig <martin@ximian.com>
1010 * mini-x86.c (mono_arch_call_opcode): Added support for
1011 MONO_TYPE_GENERICINST.
1013 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
1015 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
1017 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
1018 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
1020 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
1023 2003-08-26 Martin Baulig <martin@ximian.com>
1025 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
1026 when reporting an error, set this to the actual error location.
1027 (mono_method_to_ir): Report the correct error location if
1028 get_basic_blocks() returned an error.
1030 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
1032 * mini.c (mono_type_blittable): OBJECT is not blittable.
1033 (mono_method_blittable): Methods which have marshalling descriptors
1034 are not blittable either. Fixes #47842.
1036 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
1038 * driver.c mini.c: Use an environment variable instead of a global
1039 variable. Also fix the build.
1041 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
1042 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
1045 * driver.c mini.c: Added --with-valgrind option to turn off some
1046 code which prevents mono from running under valgrind.
1048 * mini.c (mono_emit_call_args): Fixed warning.
1050 * mini.c (mono_emulate_opcode): Fixed warning.
1052 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1054 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
1055 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
1056 regalloc.c, regalloc.h: specify available registers in arch-specific
1057 code and support floats in the regallocator (patch by Laurent Morichetti
1060 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1062 * mini.c: mono_thread_current() can be called only after
1063 mono_runtime_init(): rearrange code to not call it early on.
1065 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1067 * mini.c: allocate jump tables in the code mempools.
1069 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1071 * mini.c, mini.h: make sure per-thread data allocated by the jit is
1074 2003-08-10 Miguel de Icaza <miguel@ximian.com>
1076 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
1077 12 to 16. This fixes bug #47453.
1080 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1082 * mini-ppc.c: fixed indexed load and unsigned compares.
1084 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
1086 * mini.c: reenabled installation of handler for
1087 thread abort signal.
1089 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1091 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
1092 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
1093 until it's fixed and actually useful.
1095 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1097 * inssel-long32.brg: couple more opcodes implemented.
1099 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1101 * mini-sparc.c: Even more opcodes implemeted.
1103 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
1105 * mini-sparc.c: More opcodes implemented.
1107 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
1109 * mini-sparc.c: More opcodes implemented.
1111 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1113 * inssel-sparc.brg: Add some needed rules. Direct
1115 * Makefile.am: Use inssel-sparc.brg
1116 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
1117 an assert happy for now.
1119 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
1121 * mini-sparc.c: Fixed compile errors.
1122 * exceptions-sparc.c: Same. We now produce a mono binary
1123 on sparc-linux. Yea.
1125 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
1127 * mini-sparc.c: Renamed registers. Also some macro cleanups.
1128 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
1129 They compile, but do not work.
1131 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1133 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
1134 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
1135 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
1138 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1140 * mini.c: more opcodes implemented and better support for generics.
1142 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1144 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
1145 * mini.c, mini.h: first cut at generics support: some new instructions
1146 added and changed the behaviour of some of the existing ones.
1148 2003-07-21 Miguel de Icaza <miguel@ximian.com>
1150 * mini.c: Removed definition of metadata_shared mutex here.
1152 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1154 * mini-x86.c: make vararg calls work for instance methods.
1156 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
1158 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
1159 returns the arguments in a separte list, now.
1161 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1163 * aot.c, mini.c: updates for array type representation changes.
1165 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
1167 * mini.c: register function to perform jit shutdown.
1169 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1171 * mini.c: use a faster allocator if possible.
1173 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1175 * aot.c: some cleanups and portability changes.
1177 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1179 * mini.c: use faster allocation for CEE_BOX if possible.
1181 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1183 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
1184 Moved inlined mempcy code to its own function so that is can be
1185 reused. Added an inline memset function as well (optimized initobj).
1186 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
1188 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1190 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
1192 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1194 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
1195 arch code can setup the cpu for CLR execution, if needed.
1196 We use it on x86 to set the precision of FP operations.
1198 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
1200 * mini.c: disable some optimizations if we can guess they'll cost too
1201 much for a given method.
1203 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
1205 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
1207 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
1208 * mini.h mini.c mini-x86.c: Added instruction level coverage
1209 info collection support.
1211 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1213 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
1214 is now implemented in the profiling API. Get rid of a couple of
1215 unnecessary global variables.
1217 2003-06-15 Nick Drochak <ndrochak@gol.com>
1219 * basic-long.cs: tests for negative values for bigmul, and unsigned.
1220 * cpu-g4.md: add op_bigmul and op_bigmul_un
1221 * cpu_pentium.md: add op_bigmul_un
1222 * inssel-long32.brg: add rule for unsigned bigmul
1223 * mini-ops.h: define OP_BIGMUL_UN
1224 * mini-x86.c: THE BUG: handle (un)signed properly
1225 * mini.c: choose unsigned opcode if needed.
1226 This set of patches fixes bug #44291
1228 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
1230 * mini.c (optimize_branches): improved to handle all kinds of
1231 conditional branches.
1233 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1235 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
1236 don't raise exceptions.
1238 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1240 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
1241 to arch-specific files.
1243 2003-06-09 Martin Baulig <martin@ximian.com>
1245 * Makefile.am (libs): Added $(LIBGC_LIBS).
1247 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
1249 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
1250 and OP_ATAN (fixes bug#44293).
1252 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
1254 * Makefile.am, mini-x86.c: rename cpu description array to
1255 pentium_desc, since some compilers define the 'pentium' preprocessor
1258 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
1260 * mini.c (mini_select_instructions): add explicit branch if the
1261 following block is not the false target of a conditional branch -
1262 we need this with any optimization that reorder or remove bblocks
1264 * mini.c (optimize_branches): bug fixes
1266 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
1268 * mini.c (mono_method_to_ir): inline static readonly fields
1270 * ssa.c (fold_tree): start cfold support for long (very simple
1273 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
1275 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1277 * inssel.brg: fixed memcpy (bug #44219).
1279 2003-06-05 Dick Porter <dick@ximian.com>
1281 * driver.c: Set the glib log levels to not abort if g_message
1284 g_set_prgname() has to happen before mini_init() so that the
1285 process handle gets the info.
1287 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1289 * driver.c: add intrins to the default optimizations to get wider
1292 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1294 * mini.h: some large basic blocks will overflow a 16-bit
1295 integers for symbolic registers.
1297 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
1299 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
1300 (mono_arch_output_basic_block): fix bug 43499
1302 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1304 * mini.c: kill duplicated definition of mono_debug_format.
1306 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
1308 * mini-x86.c, arrays.cs: fixed register allocation bug.
1310 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
1312 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
1314 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
1316 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1319 (print_method_from_ip): also print source location information if
1322 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
1324 * mini.c (mono_find_block_region): bug fix in region code
1325 (mini_method_compile): enable removing unreachable code again, but
1326 only in methods without exception clauses.
1328 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1330 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
1331 Implemented arglist opcode and handling of TypedReference type.
1332 Fixed x86 call convention when a structure is returned.
1333 Minimal support for calling static vararg methods.
1335 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
1337 * mini.c (mini_method_compile): always remove unreachable code,
1338 because the code in them may be inconsistent (access to dead
1339 variables for example).
1341 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1343 * driver.c, debug-mini.c: warning fixes.
1345 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1347 * Makefile.am, jit.h, mini.h: install header for embedding mono.
1349 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
1351 * mini.c: thread-static fields are registered in mono_class_vtable(),
1352 so ensure the function is called before checking for them.
1354 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
1356 * mini.c (optimize_branches): fix for bug 43586
1358 * jit-icalls.c (mono_llmult_ovf): added an additional check for
1359 overflow (fixes Bug #43639)
1361 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1363 * mini.c, objects.cs: allow the use of stobj for primitive types.
1365 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1367 * mini.c: be less strict about argument checking until we support
1368 running the verifier.
1370 2003-05-27 Nick Drochak <ndrochak@gol.com>
1372 * basic-long.cs: tests for (ulong)int * (ulong)int also
1373 * mini.c: use the same trick for (ulong)int * (ulong)int
1375 2003-05-27 Nick Drochak <ndrochak@gol.com>
1377 * basic-long.cs: add regression test for (long)int * (long)int
1378 * cpu-pentium.md: add op_bigmul specification
1379 * inssel-long32.brg: add OP_BIGMUL rule
1380 * mini-ops.h: add OP_BIGMUL
1381 * mini-x86.c: register allocator: handle case where src1 needs to be
1383 * mini.c: substitute special BIGMUL opcode in the tree for
1384 (long)int * (long)int
1386 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
1388 * jit-icalls.c: call the type ctor on field access if needed.
1390 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1392 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
1393 to a method (including results of ldelema, bug#43207).
1395 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
1397 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
1398 colors to show exception handler blocks.
1400 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
1401 (fix for pinvoke7.cs).
1403 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1405 * mini.h, mini.c: ensure correct initialization order for types that
1406 require it. Prepare for lazy compilation of jit icall wrappers.
1407 Provide a name for opcode emulation to reduce unneeded mallocing.
1409 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
1411 * mini-x86.c: better register restoring code and profiling
1412 support for tail calls.
1414 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1416 * mini.h, driver.c: prepare for leaf methods optimization.
1418 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1420 * mini.c: get targets of branches before converting a method.
1422 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
1424 * mini.c (optimize_branches): added some experimental code (disbaled)
1426 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
1428 * mini.c (optimize_branches): fix branch to branch optimization
1430 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
1432 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
1434 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
1436 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
1439 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
1441 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
1442 enable use of interface variables again.
1444 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
1445 I1 to registers because there is no simply way to sign extend 8bit
1446 quantities in caller saved registers on x86.
1448 * inssel-float.brg: set costs of some rules to 2 so
1449 that monobure always select the arch. specific ones if supplied,
1450 regardless of the order we pass the files to monoburg.
1452 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1454 * mini.c, mini-x86.c: since the magic trampoline for jumps
1455 can't patch the code directly, we do it as soon as the
1456 method gets compiled.
1458 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1460 * mini-x86.c, mini.h: introduce a new patching method
1461 to support CEE_JMP and tail calls.
1462 * mini.c: obey tail.call. Don't precompile methods target
1464 * tramp-x86.c: new trampoline code to handle methods
1465 reached through a jump.
1467 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
1469 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
1470 bit values to registers
1472 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
1474 * mini.c (mono_compile_get_interface_var): share interface
1475 variables if possible.
1477 2003-05-16 Martin Baulig <martin@ximian.com>
1479 * debug-mini.c (mono_init_debugger): New function to initialize
1480 the debugger. This is not in the debugger since it needs to
1481 access some of mini's internals.
1483 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
1485 * mini.c (mono_method_to_ir): inlining fixes/cleanups
1487 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
1489 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
1490 for value type handling.
1492 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
1494 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
1495 (mono_method_check_inlining): enable inlining of all kinds of wrappers
1497 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
1499 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
1500 the constructor through a proxy.
1502 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1504 * jit-icalls.c, inssel.brg: fixes to array element address
1507 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
1509 * mini-x86.c (is_regsize_var): allocate pointer to registers
1511 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1513 * driver.c: fixed typo, added intrins to the set of optimizations
1514 tested with regressions.
1516 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
1518 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
1519 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
1522 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
1524 * inssel.brg: remove some common pop instructions without side effects
1526 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1528 * inssel-x86.brg: fixed thinko in int to double conversions.
1530 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
1532 * mini.c, jit-icalls.c: added runtime thread-static variable support.
1534 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1536 * inssel-long32.brg: two more missing instructions.
1538 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
1540 * mini.c (mono_emit_call_args): set the cil_code for all arguments
1543 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
1545 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
1548 * basic-float.cs: Added tests for negative zero.
1550 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1552 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
1553 a couple of missing operations for long casts, with test cases.
1555 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1557 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
1559 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
1561 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
1562 code size estimation.
1564 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
1566 * mini.c (mono_jit_create_remoting_trampoline): make it work with
1567 abstract methods (fix bug 42542)
1569 * aot.c: add ability to handle array types
1571 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
1573 * mini.c: Call the _specific versions of the object allocation
1574 functions if possible.
1576 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1578 * driver.c: call setlocale ().
1580 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1582 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
1585 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
1587 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
1589 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
1590 wrappers (fix bug 42122)
1592 2003-05-04 Martin Baulig <martin@ximian.com>
1594 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
1596 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
1597 s/mini_set_defaults/mono_set_defaults/g.
1599 2003-05-04 Martin Baulig <martin@ximian.com>
1601 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
1603 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1605 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
1606 (reported by Don Roberts).
1608 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1610 * mini.c: temporarily work around two bugs for this release.
1612 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1614 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
1615 that contains -export-dynamic and it makes using the ld script
1617 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
1619 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1621 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
1624 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1626 * mini.c: make sure leave calls all the needed finally blocks,
1627 even when the target jumps out of multiple exception clauses.
1629 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1631 * ldscript, Makefile.am: add linker script to reduce the number of
1632 exported symbols (should also fix the issues with libwine defining
1633 some of the same symbols in io-layer).
1635 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
1637 * driver.c (mini_main): Avoid assertion when no file name is given on
1640 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
1642 * driver.c: added --version/-V command line option.
1643 Added the inline optimization in the regression tests.
1645 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1647 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
1648 to the type in the method signature (fixes bug#42134).
1650 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
1652 * mini.c: when inlining, check this is not null only when needed (bug #42135).
1654 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
1656 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
1658 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1660 * driver.c: fixed bug #42100.
1662 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
1664 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
1666 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1668 * mini.c: moved most of the code required to do inlining to its own
1669 function so it can be reused. Inline also ctors if appropriate.
1671 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
1673 * Makefile.am: Link with -export-dynamic so shared libs loaded by
1674 the runtime can call mono API functions.
1676 2003-04-27 Martin Baulig <martin@ximian.com>
1678 * debug-mini.c (mono_debug_init_method): Added
1679 `guint32 breakpoint_id' argument; if the method has a breakpoint,
1680 send a notification to the debugger.
1682 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
1683 running in the Mono Debugger, just pass the breakpoint number to
1684 mono_debug_init_method().
1686 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
1688 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
1690 * mini.c: allow some more unsafe compares.
1692 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1694 * mini-x86.c, Makefile.am: make distcheck works (partially from
1695 a patch by Richard Lee <r.h.lee@attbi.com>).
1696 * regset.c, regset.h: removed, they are unused.
1698 2003-04-25 Dick Porter <dick@ximian.com>
1700 * driver.c: Usage reports the name as 'mono' not 'mini'
1701 * exceptions-x86.c: Build and run on freebsd
1703 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
1705 * Makefile.am: install the program with the 'mono' name and
1706 the library as libmono instead of mini and libmini.
1708 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
1710 * driver.c: provide the APIs for the embedding interface of the old jit.
1712 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
1714 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
1716 2003-04-23 Martin Baulig <martin@ximian.com>
1718 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
1720 * driver.c: Added `--debug' command line argument to enable
1723 2003-04-23 Martin Baulig <martin@ximian.com>
1725 * debug.[ch]: Removed. The code is now in
1726 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
1728 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
1731 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
1733 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
1735 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1738 (mini_cleanup): moved mono_runtime_cleanup call after the call to
1739 mono_domain_finalize.
1740 (mini_method_compile): use mono_method_profile* if the the option is
1743 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
1745 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1746 methods with their wrapper.
1748 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1749 methods with their wrapper.
1751 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
1754 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
1757 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
1760 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
1762 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
1764 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
1766 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
1767 of the mempool. This is slightly faster and uses less memory
1769 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1771 * mini.c: avoid O(n) allocation for variables.
1773 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1775 * mini.c: handle items on the stack after inlining methods.
1777 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1779 * mini.c: make the method->opcode optimization dependent
1780 on MONO_OPT_INSTRINS and do it lazily.
1782 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1784 * driver.c: print overall results at the end of regression run.
1786 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
1788 * inssel.brg: don't overwrite symbolic registers.
1790 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1792 * inssel-x86.brg: fix conversion from long to float.
1794 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
1796 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
1798 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
1800 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
1802 * driver.c: Added --print-vtable option as in the old JIT.
1804 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1806 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
1808 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
1810 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
1812 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
1814 * mini.c regalloc.c regalloc.h: Fix memory leak.
1816 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
1818 * aot.c (mono_aot_get_method): register all used strings
1820 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1822 * mini.c: always intern strings references with ldstr at compile time.
1824 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1826 * Makefile.am: add BUILT_SOURCES.
1828 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1830 * driver.c: give a better error message when the assembly to execute
1831 doesn't have an entry point.
1833 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
1835 * Makefile.am: added hack for automake
1837 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
1840 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
1842 22003-04-07 Martin Baulig <martin@ximian.com>
1844 * Makefile.am: Added Makefile.am.
1846 * debugger-main.c: Removed, this is now in the debugger where it
1849 * mini.pc.in: Call this package `mini' for the moment.