1 2004-03-01 Zoltan Varga <vargaz@freemail.hu>
3 * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
4 negative offsets from %fp. Implement localloc. Fix local register
5 allocation. Fix the case when the this argument needs to be saved to
6 the stack. Implement some missing opcodes.
8 2004-02-26 Zoltan Varga <vargaz@freemail.hu>
10 * mini.c (mini_method_compile): Reenable global regalloc in methods
11 with exception handlers.
13 * linear-scan.c (mono_varlist_sort): Fix warning.
15 * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
17 * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
20 * liveness.c: Make all variables uses in exception clauses volatile, to
21 prevent them from being allocated to registers. Fixes #42136.
23 2004-02-25 Zoltan Varga <vargaz@freemail.hu>
25 * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
28 * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
29 argument to mono_arch_regalloc_cost.
31 * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs
34 2004-02-24 Zoltan Varga <vargaz@freemail.hu>
36 * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
37 Make the cost of allocating a variable to a register arch dependent.
39 * basic-calls.cs: Fix compilation of tests.
41 * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
42 helper function to cut back on the number of #ifdefs needed.
44 * mini-ppc.c: Fix compilation.
46 * basic-calls.cs: New regression tests.
48 * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
50 * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
51 of l0 since that is callee saved.
53 * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
56 * mini-sparc.c: Ongoing work + flag virtual calls with a special kind
59 * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
61 * mini.h (MonoCallInst): Add 'virtual' flag.
63 * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
65 2004-02-23 Zoltan Varga <vargaz@freemail.hu>
67 * *.cs: New regression tests.
69 * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc
72 * mini.c (mono_runtime_install_handlers): Fix build.
74 * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
75 'signal_stack_size' members.
77 * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an
78 alternate signal stack.
80 * exceptions-x86.c: Add stack overflow handling.
82 * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing
83 functions to arch independent code.
85 * mini.c (mono_print_tree): Print more detailed info for load_membase
88 2004-02-23 Martin Baulig <martin@ximian.com>
90 * mini.c (mini_get_method): Set `gmethod->generic_inst'.
92 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
94 * mini-x86.c: fixed reg allocation for div/rem.
96 2004-02-22 Miguel de Icaza <miguel@ximian.com>
98 * driver.c (mono_main): Report some configuratio options on --version.
100 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
102 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
103 low in the address space. Correctly flush memory in thunks where we
106 2004-02-20 Martin Baulig <martin@ximian.com>
108 * mini.c (mini_get_method): New static method; inflate all generic
109 methods and methods in open generic instances.
110 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
111 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
113 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
115 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
117 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
119 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
121 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
123 * mini-sparc.c (flushi mono_arch_output_basic_block): make
124 it compile using Sun's compiler.
126 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
128 * 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.
130 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
132 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
134 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
136 * mini-ppc.c: handle calls outside of the allowed range with thunks
137 allocated using the code manager.
138 * tramp-ppc.c: use the code manager to hold generated native code.
139 Fixed the magic trampoline to just patch vtable entries.
141 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
143 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
146 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
148 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
151 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
152 if we have a working __thread implementation.
154 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
155 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
157 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
159 * mini-x86.c: Fix compilation under gcc 2.
161 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
163 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
164 contains a call to the wrapped function.
166 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
167 OP_<CALL>_IMM opcodes, and use them under X86.
169 * mini.c (mono_jit_find_compiled_method): Fix warning.
171 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
173 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
175 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
176 functionality to mini.c.
178 * mini.c (mono_create_jump_trampoline): New function to create a jump
179 trampoline. Return a compiled method instead of a trampoline if it
180 exists. Add a cache for jump trampolines.
182 * mini.c (mono_jit_find_compiled_method): New function to return a
183 compiled method if it exists.
185 * mini-x86.c: Call mono_create_jump_trampoline instead of
186 mono_arch_create_jit_trampoline.
188 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
189 a jump trampoline. Fixes #52092.
191 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
193 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
194 which is not up-to-date. Add check_corlib_version () instead.
196 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
199 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
200 since newer valgrind versions do not need it.
202 * mini.c (mono_jit_compile_method_with_opt): New helper function to
203 compile a method with a given set of optimizations.
205 * mini.c: Compile icall wrappers on-demand instead of at startup.
207 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
208 wrapper for an icall.
210 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
212 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
215 * iltests.il: Add test for non-empty stack before switch instruction.
217 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
219 * mini.c: Add support for new stringbuilder marshalling conventions.
221 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
223 2004-02-01 Martin Baulig <martin@ximian.com>
225 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
226 in `ginst->mtype_argv'.
228 2004-01-31 Miguel de Icaza <miguel@ximian.com>
230 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
233 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
235 * mini.c: fixed buglet in initobj generic implementation for references.
237 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
239 * Makefile.am: make the version script conditional.
240 * jit-icalls.c: handle missing truncl().
242 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
244 * exceptions.cs: Add more tests for double->int conversion.
246 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
247 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
249 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
251 * driver.c: make --verbose --version emit an error
252 if the loaded corlib doesn't match the runtime version.
254 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
256 * mini-ppc.h: export ppc_patch().
257 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
258 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
259 on par or better than on MacOSX.
261 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
263 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
264 mono_lookup_pinvoke_call.
266 * mini-x86.c: Under windows, the default pinvoke calling convention is
267 stdcall. Fixes #52834.
269 * mini.c (optimize_branches): Add an upper bound to the number of
270 iterations to prevent infinite loops on strange loops. Fixes #53003.
272 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
274 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
275 and ISINST. Fixes #52093.
277 * objects.cs (test_0_vector_array_cast): New tests.
279 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
281 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
282 checking in Array.Set ().
284 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
287 * object.cs (test_0_multi_array_cast): New regression test.
289 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
291 * exceptions-ppc.c: fix build on Linux/PPC.
293 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
295 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
296 running under valgrind.
297 (x86_magic_trampoline): Fix build bustage.
299 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
300 negative values as well. This is needed for the encoding of the line number
301 info, since sometimes the line numbers are not in increasing order.
303 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
305 * cpu-pentium.md (localloc): Increase the size of the localloc
306 instruction since it is a loop under Win32.
308 * debug-mini.c (record_line_number): Get rid of unneccesary memory
311 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
313 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
314 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
315 Max Horn (max@quendi.de). Fix file names in comments.
317 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
319 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
320 avoid stack overflow.
321 (replace_usage): Avoid uninitialized variable warnings.
323 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
324 and taking the address of valuetype variables.
326 2004-01-03 Patrik Torstensson
328 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
329 for other purposes than FP later on.
331 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
333 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
336 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
338 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
340 2003-12-30 Patrik Torstensson <p@rxc.se>
342 * mini-x86.h: Decreased number of availiable fp regs.
343 Solves corner cases with FP spilling.
345 2003-12-23 Patrik Torstensson <p@rxc.se>
347 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
348 for floating point stack tracking / spilling on x86.
351 * basic-float.cs: added float mul overflow test.
353 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
355 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
357 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
359 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
360 supports for cond branches that overflow the immediate
361 overflow offset. mcs can compile simple programs.
363 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
365 * exceptions-ppc.c: exception handling support wip:
366 finally handlers get run on exception.
368 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
370 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
373 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
375 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
376 initial support for stack walking and unwinding.
378 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
380 * driver.c (mono_main): Make corlib-out-of-sync message more
381 descriptive. Also remove verify_corlib call.
383 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
385 * mini.c: make CEE_NEWARR calls and other emulated opcodes
386 not overlap with other call's arguments, too.
388 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
390 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
391 move to arch-specific code the choice of arch-specific
392 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
393 * mini.c: ensure emulation calls will not interleave
396 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
398 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
399 the magic trampoline stack frame is dropped before executing
402 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
404 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
405 and integer to fp conversions. Added support for overflowing
406 arguments on the stack. Reserve a couple more registers as temps.
407 Added support for aot compilation (as output still needs to be
410 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
412 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
413 Don't overwrite return register in some corner cases.
415 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
417 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
418 static constructors when AOT compiling.
420 * driver.c (mono_main): Call mono_check_corlib_version.
422 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
424 * cpu-g4.md, basic.cs: fixed div target register.
426 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
428 * mini-ppc.c, basic.cs: shl_imm fix with test.
430 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
432 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
433 structures by value. Misc fixes.
434 * objects.cs: more tests.
436 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
438 * mini-ppc.c: lconv.ovf.i implemented.
440 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
443 (mini_init): don't error out if someone already called g_thread_init.
445 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
447 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
448 to be any type per the spec. Fix abnormal memory usage when
449 the same object is repeatedly thrown.
451 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
453 * mini.c: check for overruns in IL code.
455 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
457 * TODO: Add/remove some todo entries.
459 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
461 * driver.c (mono_main): Call mono_verify_corlib.
463 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
465 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
466 This has been moved to mini.c
467 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
468 type being casted is marshalbyref it could be a proxy, so instead of
469 emitting the type check code, emit a call to a runtime method that will
470 perform the check by calling CanCastTo if needed.
472 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
474 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
475 methods with large stack frames under Win32.
477 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
479 * Makefile.am: Distribute regression tests.
481 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
482 at the end instead of inserting each variable into the sorted list.
484 * linear-scan.c (mono_varlist_sort): New helper function.
486 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
488 * mini.c: ensure arguments and locals are within bounds.
490 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
492 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
495 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
497 * mini.c (mono_cprop_copy_values): Fix crash.
499 * aot.c: Set verbosity back to 0.
501 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
503 * regalloc.c: complete memory leak fix by Laurent Morichetti
506 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
508 * driver.c (main_thread_handler): Revert the previous patch.
510 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
513 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
514 memory from the memory pool.
516 * driver.c (main_thread_handler): Turn on all optimizations when
519 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
520 an array for better performance.
522 * regalloc.c (mono_regstate_assign): Fix memory leak.
524 * debug-mini.c (mono_debug_serialize_debug_info): New function to
525 serialize the debug info.
527 * debug-mini.c (mono_debug_add_aot_method): New function to load the
528 debug info from the serialized representation.
530 * aot.c: Save debug info into the generated file and load it when
533 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
535 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
537 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
538 More FP-related fixes.
540 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
542 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
543 and register allocation buglet. Hello world now runs.
545 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
547 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
548 * tramp-ppc.c: fixed class init trampoline.
549 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
551 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
553 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
554 mini.c: more ppc changes/fixes.
556 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
558 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
559 Also optimize the case when the arguments are the same in the caller
562 * iltests.il: Add tests for tail calls with valuetype arguments.
564 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
566 * mini-ppc.c: fixes for struct return type.
568 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
570 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
571 mono_spillvar_offset() to arch-specific code.
573 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
575 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
577 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
579 * exceptions-x86.c: Fix stack space leaks.
581 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
582 registers from the lmf if the method has save_lmf set.
584 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
586 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
587 of icall wrappers into InvokeInDomain, since these are now per-domain.
589 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
591 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
592 make some opcode emulation and intrinsic ops enabled/disabled
593 according to the architecture. More fixes.
595 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
597 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
599 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
601 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
602 arch-specific handling for 'this' and struct return type to
605 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
607 * aot.c: prevent divide by zero error when reporting (it happened with
610 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
612 * mini.h (inst_switch): Remove unused macro.
614 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
617 (load_aot_module): free 'info->methods' and 'info' properly. No more
618 "free(): invalid pointer blah" messages when you have an old aot
621 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
623 * jit-icalls.c, mini.c: Added support for context static fields.
625 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
627 * mini.c (mono_method_blittable): Methods which set LastError are not
628 blittable either. Fixes #51108.
630 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
632 * mini.c: flush icache.
633 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
635 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
637 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
639 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
641 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
644 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
647 * inssel.brg (CEE_MKREFANY): Fix AOT case.
649 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
651 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
652 instruction when the result is discarded.
654 * iltests.il (test_0_div_regalloc): New regression test.
656 * arrays.cs: Fix compilation error.
658 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
660 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
661 float rules to inssel-x86.brg: sane architectures with FP registers
662 don't need to implement these rules.
664 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
666 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
668 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
670 * mini.h, inssel-long32.brg: fixed endianess issues in int64
671 implementation of 32 bit systems.
673 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
675 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
676 (Jeroen Zwartepoorte).
678 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
680 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
681 the caller and the callee matches.
683 * mini.c (mono_method_to_ir): Add comment.
685 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
686 signbit is missing on some platforms.
688 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
690 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
692 * mini.c (setup_jit_tls_data): Call the new function.
694 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
696 * mini-x86.c: Add experimental support for fast access to the lmf
697 structure under NPTL/Linux 2.6.x.
699 2003-11-06 Martin Baulig <martin@ximian.com>
701 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
702 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
705 2003-11-02 Martin Baulig <martin@ximian.com>
707 * mini.c (inflate_generic_field): New static method.
708 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
709 generic instance and the field is declared in a generic type, call
710 inflate_generic_field() to inflate it. Fixes gen-28.cs.
712 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
714 * mini.h mini.c (mono_method_same_domain): New function to return
715 whenever the caller and the callee are in the same domain.
717 * tramp-x86.c (x86_magic_trampoline): Use the new function.
719 2003-10-30 Martin Baulig <martin@ximian.com>
721 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
722 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
724 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
725 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
727 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
729 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
732 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
733 object here, so it is in the correct appdomain etc.
735 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
737 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
739 (mono_method_to_ir): Avoid freeing the type created returned from
740 mono_type_create_from_typespec, since it is put into an internal cache
741 by the function. Fixes pointer.exe.
743 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
744 trampolines for icalls and pinvokes as well. Fixes #33569.
746 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
748 * mini.c: Update after appdomain changes.
750 * mini.c (mono_jit_compile_method_inner): Allways compile native
751 method wrappers in the root domain, since there can only be one
752 instance of them, whose address is stored in method->info.
754 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
756 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
757 environment variable. Instead detect automatically whenever running
758 under valgrind using the magic macro RUNNING_ON_VALGRIND from
761 2003-10-16 Miguel de Icaza <miguel@ximian.com>
763 * trace.c, trace.h: New files that implement the new trace option
766 * driver.c: Document new --trace options.
768 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
771 - if (mono_jit_trace_calls)
772 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
774 * mini.h: prototypes.
776 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
778 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
780 * mini.c inssel.brg: Implement typedefbyref opcodes.
782 * mini.c (mono_jit_compile_method): Remove unused local variable.
784 * mini.c (mono_jit_compile_method_inner): Ditto.
786 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
788 * tramp-x86.c (x86_class_init_trampoline): Fix build.
790 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
792 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
794 * mini.c (mono_no_aot): Remove unused global variable.
796 * mini.c: Thread safety fixes.
798 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
800 * mini.c (mono_create_class_init_trampoline): Add a lock around
801 class_init_hash_addr.
803 * arrays.cs (test_0_newarr_emulation): Add new regression test for
806 * mini.c: Decompose the NEWARR instruction before decomposing its
807 arguments. Fixes #30073.
809 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
811 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
814 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
816 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
818 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
820 * driver.c: Add support for compiling icall wrappers to --compile.
822 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
824 * inssel.brg: The empty value in class->interface_offsets is -1, not
827 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
829 * objects.cs: New test for 'is' operator on an array of interfaces.
831 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
833 * tramp-ppc.c: update trampoline code to support jumps
834 and class initialization.
836 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
838 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
840 * inssel.brg (OP_UNBOXCAST): Fix #46027.
842 * inssel.brg (OP_UNBOX): Remove unused rule.
844 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
845 region instead of one for each method. Fixes #47813.
847 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
849 * exceptions.cs (test_0_nested_finally): New regression test for
850 nested exception handlers.
852 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
854 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
856 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
859 * mini.c (mono_method_check_inlining): Make the inlining limit
860 configurable by an environment variable.
862 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
864 * mini.h: Bump AOT file version.
866 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
867 token, store the image along with the token, since the token might not
868 refer to the same image as the method containing the relocation,
871 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
873 * mini.c (mono_precompile_assemblies): New function to compile
874 all methods in all loaded assemblies.
876 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
878 * regalloc.h regalloc.c (MonoRegState): Change the type of
879 iassign and fassign to int*, since they can contain large negative
880 values if the register is spilled. Also added some comments. Fixes
883 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
884 under Win32. Fixes #42964.
886 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
888 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
890 * aot.c: Added support for AOT compiling methods which contain calls
891 to wrappers. Currently, only remoting-invoke-with-check wrappers are
894 * driver.c (compile_all_methods): Run the compilation in a thread
895 managed by mono. Fixes #44023.
897 * mini.c (mono_codegen): Print full method name in verbose output.
899 * mini-x86.c (mono_arch_patch_code): Fix warning.
901 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
902 jumps, since the method we are jumping to might be domain-specific.
904 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
906 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
908 * inssel.brg: string chars are unsigned.
910 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
912 * TODO: New todo item.
914 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
915 which calls mono_runtime_class_init and patches the call site to
917 (mono_arch_create_class_init_trampoline): New arch specific function
918 to create a class init trampoline.
919 (create_trampoline_code): Generalized so it can create
920 class init trampolines as well.
922 * mini.c (helper_sig_class_init_trampoline): New helper variable.
923 (mono_create_class_init_trampoline): New function to create and cache
924 class init trampolines.
925 (mono_find_class_init_trampoline_by_addr): New function to lookup the
926 vtable given the address of a class init trampoline. Used by the
928 (mono_codegen): Generate a call to a trampoline instead of
929 mono_runtime_class_init in LDSFLD[A].
930 (mono_codegen): Add relocations for the new trampoline.
932 * mini.h mini-x86.c aot.c: Added a new relocation type:
933 MONO_PATCH_INFO_CLASS_INIT.
935 * mini.h: Bump AOT version number.
937 * aot.c: Create a copy of the loaded code instead of using the original
938 so methods which call each other will be close in memory, improving
941 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
942 patch since it breaks the regression tests.
944 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
945 for the register saving instruction sequence since the
946 frame_state_for function in glibc 2.3.2 don't seem to detect it.
948 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
950 * TODO: Fix todo item && remove another.
952 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
954 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
957 * aot.c: Moved the check for MONO_LASTAOT into the initialization
958 function of the module.
960 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
961 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
962 --no-aot command line option.
964 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
966 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
967 by Bernie Solomon (bernard@ugsolutions.com).
969 * inssel.brg: Refactor the interface offset table related code into
970 its separate functions and add support for the AOT case.
972 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
974 * aot.c (mono_aot_get_method_inner): Fix memory leak.
976 * aot.c: Added mono_aot_verbose variable and made all debugging
977 output depend on the value of this variable.
979 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
980 method_label and info_label.
982 * mini.h mini-x86.c aot.c: Added a new relocation type
983 MONO_PATCH_INFO_IID for klass->interface_id.
985 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
986 the MonoJitInfo structure.
988 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
989 a non-root appdomain in shared mode.
991 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
993 * aot.c: make aot loader less verbose. Remove free of unused variable.
995 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
997 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
999 * .cvsignore: Added *.dll.
1001 * mini.c (mono_print_tree_nl): New function callable while debugging.
1003 * mini.c (mono_print_code): Export this.
1005 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
1008 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
1010 * mini.h (MonoCompile): Added 'jit_info' field.
1012 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
1013 the cfg structure, since it is needed by the AOT compiler.
1015 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
1017 * aot.c: A major rewrite. Changes include:
1018 - save exception tables for methods which have them.
1019 - cache failed lookups in aot_get_method () to avoid the (slow) calls
1021 - reworked the file format so it is now much smaller and needs
1022 fewer relocation entries.
1024 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
1026 * aot.c (load_aot_module): Fix build bustage on platforms without
1029 2003-09-04 Martin Baulig <martin@ximian.com>
1031 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
1033 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
1035 * TODO: Some new optimization ideas.
1037 * aot.c: Move AOT module loading logic here from mono_assembly_open.
1039 * aot.c: Save the optimization flags used to compile the code into
1042 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
1043 support emitting domain specific code.
1045 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
1046 no longer domain neutral. It can be made domain neutral by compiling
1047 with --optimize=shared.
1049 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
1052 * driver.c mini.h mini.c: New --no-aot debugging option which disables
1053 loading of AOT code.
1055 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
1057 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
1058 if there is no domain neutrality information.
1060 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
1062 * aot.c (mono_compile_assembly): Emit a symbol containing the file
1063 format version into the generated library.
1065 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
1066 callee method into the caller since one of them could be shared.
1068 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
1069 system exceptions from AOT code now works.
1071 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
1072 method if it is domain neutral and the callee is not.
1074 * graph.c (cfg_emit_one_loop_level): Fix warning.
1076 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
1078 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
1081 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
1083 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
1084 is needed by code which is executed before mono_runtime_init ().
1085 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
1087 * mini.c (mono_thread_abort): Fix warning.
1088 (mono_jit_compile_method): Call static constructor in the AOT case too.
1090 * aot.c (mono_compile_assembly): Fix warning.
1092 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1094 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
1096 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
1098 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
1100 * cpu-pentium.md: Fix the length of call opcodes so they include the
1101 ESP restoring instruction. Fixes #47968.
1103 2003-08-28 Martin Baulig <martin@ximian.com>
1105 * mini-x86.c (mono_arch_call_opcode): Added support for
1106 MONO_TYPE_GENERICINST.
1108 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
1110 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
1112 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
1113 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
1115 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
1118 2003-08-26 Martin Baulig <martin@ximian.com>
1120 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
1121 when reporting an error, set this to the actual error location.
1122 (mono_method_to_ir): Report the correct error location if
1123 get_basic_blocks() returned an error.
1125 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
1127 * mini.c (mono_type_blittable): OBJECT is not blittable.
1128 (mono_method_blittable): Methods which have marshalling descriptors
1129 are not blittable either. Fixes #47842.
1131 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
1133 * driver.c mini.c: Use an environment variable instead of a global
1134 variable. Also fix the build.
1136 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
1137 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
1140 * driver.c mini.c: Added --with-valgrind option to turn off some
1141 code which prevents mono from running under valgrind.
1143 * mini.c (mono_emit_call_args): Fixed warning.
1145 * mini.c (mono_emulate_opcode): Fixed warning.
1147 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1149 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
1150 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
1151 regalloc.c, regalloc.h: specify available registers in arch-specific
1152 code and support floats in the regallocator (patch by Laurent Morichetti
1155 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1157 * mini.c: mono_thread_current() can be called only after
1158 mono_runtime_init(): rearrange code to not call it early on.
1160 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1162 * mini.c: allocate jump tables in the code mempools.
1164 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1166 * mini.c, mini.h: make sure per-thread data allocated by the jit is
1169 2003-08-10 Miguel de Icaza <miguel@ximian.com>
1171 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
1172 12 to 16. This fixes bug #47453.
1175 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1177 * mini-ppc.c: fixed indexed load and unsigned compares.
1179 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
1181 * mini.c: reenabled installation of handler for
1182 thread abort signal.
1184 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1186 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
1187 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
1188 until it's fixed and actually useful.
1190 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1192 * inssel-long32.brg: couple more opcodes implemented.
1194 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1196 * mini-sparc.c: Even more opcodes implemeted.
1198 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
1200 * mini-sparc.c: More opcodes implemented.
1202 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
1204 * mini-sparc.c: More opcodes implemented.
1206 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1208 * inssel-sparc.brg: Add some needed rules. Direct
1210 * Makefile.am: Use inssel-sparc.brg
1211 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
1212 an assert happy for now.
1214 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
1216 * mini-sparc.c: Fixed compile errors.
1217 * exceptions-sparc.c: Same. We now produce a mono binary
1218 on sparc-linux. Yea.
1220 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
1222 * mini-sparc.c: Renamed registers. Also some macro cleanups.
1223 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
1224 They compile, but do not work.
1226 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1228 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
1229 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
1230 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
1233 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1235 * mini.c: more opcodes implemented and better support for generics.
1237 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1239 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
1240 * mini.c, mini.h: first cut at generics support: some new instructions
1241 added and changed the behaviour of some of the existing ones.
1243 2003-07-21 Miguel de Icaza <miguel@ximian.com>
1245 * mini.c: Removed definition of metadata_shared mutex here.
1247 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1249 * mini-x86.c: make vararg calls work for instance methods.
1251 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
1253 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
1254 returns the arguments in a separte list, now.
1256 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1258 * aot.c, mini.c: updates for array type representation changes.
1260 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
1262 * mini.c: register function to perform jit shutdown.
1264 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1266 * mini.c: use a faster allocator if possible.
1268 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1270 * aot.c: some cleanups and portability changes.
1272 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1274 * mini.c: use faster allocation for CEE_BOX if possible.
1276 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1278 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
1279 Moved inlined mempcy code to its own function so that is can be
1280 reused. Added an inline memset function as well (optimized initobj).
1281 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
1283 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1285 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
1287 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1289 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
1290 arch code can setup the cpu for CLR execution, if needed.
1291 We use it on x86 to set the precision of FP operations.
1293 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
1295 * mini.c: disable some optimizations if we can guess they'll cost too
1296 much for a given method.
1298 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
1300 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
1302 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
1303 * mini.h mini.c mini-x86.c: Added instruction level coverage
1304 info collection support.
1306 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1308 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
1309 is now implemented in the profiling API. Get rid of a couple of
1310 unnecessary global variables.
1312 2003-06-15 Nick Drochak <ndrochak@gol.com>
1314 * basic-long.cs: tests for negative values for bigmul, and unsigned.
1315 * cpu-g4.md: add op_bigmul and op_bigmul_un
1316 * cpu_pentium.md: add op_bigmul_un
1317 * inssel-long32.brg: add rule for unsigned bigmul
1318 * mini-ops.h: define OP_BIGMUL_UN
1319 * mini-x86.c: THE BUG: handle (un)signed properly
1320 * mini.c: choose unsigned opcode if needed.
1321 This set of patches fixes bug #44291
1323 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
1325 * mini.c (optimize_branches): improved to handle all kinds of
1326 conditional branches.
1328 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1330 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
1331 don't raise exceptions.
1333 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1335 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
1336 to arch-specific files.
1338 2003-06-09 Martin Baulig <martin@ximian.com>
1340 * Makefile.am (libs): Added $(LIBGC_LIBS).
1342 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
1344 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
1345 and OP_ATAN (fixes bug#44293).
1347 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
1349 * Makefile.am, mini-x86.c: rename cpu description array to
1350 pentium_desc, since some compilers define the 'pentium' preprocessor
1353 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
1355 * mini.c (mini_select_instructions): add explicit branch if the
1356 following block is not the false target of a conditional branch -
1357 we need this with any optimization that reorder or remove bblocks
1359 * mini.c (optimize_branches): bug fixes
1361 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
1363 * mini.c (mono_method_to_ir): inline static readonly fields
1365 * ssa.c (fold_tree): start cfold support for long (very simple
1368 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
1370 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1372 * inssel.brg: fixed memcpy (bug #44219).
1374 2003-06-05 Dick Porter <dick@ximian.com>
1376 * driver.c: Set the glib log levels to not abort if g_message
1379 g_set_prgname() has to happen before mini_init() so that the
1380 process handle gets the info.
1382 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1384 * driver.c: add intrins to the default optimizations to get wider
1387 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1389 * mini.h: some large basic blocks will overflow a 16-bit
1390 integers for symbolic registers.
1392 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
1394 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
1395 (mono_arch_output_basic_block): fix bug 43499
1397 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1399 * mini.c: kill duplicated definition of mono_debug_format.
1401 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
1403 * mini-x86.c, arrays.cs: fixed register allocation bug.
1405 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
1407 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
1409 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
1411 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1414 (print_method_from_ip): also print source location information if
1417 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
1419 * mini.c (mono_find_block_region): bug fix in region code
1420 (mini_method_compile): enable removing unreachable code again, but
1421 only in methods without exception clauses.
1423 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1425 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
1426 Implemented arglist opcode and handling of TypedReference type.
1427 Fixed x86 call convention when a structure is returned.
1428 Minimal support for calling static vararg methods.
1430 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
1432 * mini.c (mini_method_compile): always remove unreachable code,
1433 because the code in them may be inconsistent (access to dead
1434 variables for example).
1436 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1438 * driver.c, debug-mini.c: warning fixes.
1440 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1442 * Makefile.am, jit.h, mini.h: install header for embedding mono.
1444 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
1446 * mini.c: thread-static fields are registered in mono_class_vtable(),
1447 so ensure the function is called before checking for them.
1449 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
1451 * mini.c (optimize_branches): fix for bug 43586
1453 * jit-icalls.c (mono_llmult_ovf): added an additional check for
1454 overflow (fixes Bug #43639)
1456 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1458 * mini.c, objects.cs: allow the use of stobj for primitive types.
1460 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1462 * mini.c: be less strict about argument checking until we support
1463 running the verifier.
1465 2003-05-27 Nick Drochak <ndrochak@gol.com>
1467 * basic-long.cs: tests for (ulong)int * (ulong)int also
1468 * mini.c: use the same trick for (ulong)int * (ulong)int
1470 2003-05-27 Nick Drochak <ndrochak@gol.com>
1472 * basic-long.cs: add regression test for (long)int * (long)int
1473 * cpu-pentium.md: add op_bigmul specification
1474 * inssel-long32.brg: add OP_BIGMUL rule
1475 * mini-ops.h: add OP_BIGMUL
1476 * mini-x86.c: register allocator: handle case where src1 needs to be
1478 * mini.c: substitute special BIGMUL opcode in the tree for
1479 (long)int * (long)int
1481 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
1483 * jit-icalls.c: call the type ctor on field access if needed.
1485 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1487 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
1488 to a method (including results of ldelema, bug#43207).
1490 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
1492 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
1493 colors to show exception handler blocks.
1495 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
1496 (fix for pinvoke7.cs).
1498 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1500 * mini.h, mini.c: ensure correct initialization order for types that
1501 require it. Prepare for lazy compilation of jit icall wrappers.
1502 Provide a name for opcode emulation to reduce unneeded mallocing.
1504 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
1506 * mini-x86.c: better register restoring code and profiling
1507 support for tail calls.
1509 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1511 * mini.h, driver.c: prepare for leaf methods optimization.
1513 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1515 * mini.c: get targets of branches before converting a method.
1517 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
1519 * mini.c (optimize_branches): added some experimental code (disbaled)
1521 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
1523 * mini.c (optimize_branches): fix branch to branch optimization
1525 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
1527 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
1529 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
1531 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
1534 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
1536 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
1537 enable use of interface variables again.
1539 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
1540 I1 to registers because there is no simply way to sign extend 8bit
1541 quantities in caller saved registers on x86.
1543 * inssel-float.brg: set costs of some rules to 2 so
1544 that monobure always select the arch. specific ones if supplied,
1545 regardless of the order we pass the files to monoburg.
1547 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1549 * mini.c, mini-x86.c: since the magic trampoline for jumps
1550 can't patch the code directly, we do it as soon as the
1551 method gets compiled.
1553 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1555 * mini-x86.c, mini.h: introduce a new patching method
1556 to support CEE_JMP and tail calls.
1557 * mini.c: obey tail.call. Don't precompile methods target
1559 * tramp-x86.c: new trampoline code to handle methods
1560 reached through a jump.
1562 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
1564 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
1565 bit values to registers
1567 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
1569 * mini.c (mono_compile_get_interface_var): share interface
1570 variables if possible.
1572 2003-05-16 Martin Baulig <martin@ximian.com>
1574 * debug-mini.c (mono_init_debugger): New function to initialize
1575 the debugger. This is not in the debugger since it needs to
1576 access some of mini's internals.
1578 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
1580 * mini.c (mono_method_to_ir): inlining fixes/cleanups
1582 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
1584 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
1585 for value type handling.
1587 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
1589 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
1590 (mono_method_check_inlining): enable inlining of all kinds of wrappers
1592 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
1594 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
1595 the constructor through a proxy.
1597 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1599 * jit-icalls.c, inssel.brg: fixes to array element address
1602 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
1604 * mini-x86.c (is_regsize_var): allocate pointer to registers
1606 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1608 * driver.c: fixed typo, added intrins to the set of optimizations
1609 tested with regressions.
1611 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
1613 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
1614 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
1617 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
1619 * inssel.brg: remove some common pop instructions without side effects
1621 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1623 * inssel-x86.brg: fixed thinko in int to double conversions.
1625 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
1627 * mini.c, jit-icalls.c: added runtime thread-static variable support.
1629 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1631 * inssel-long32.brg: two more missing instructions.
1633 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
1635 * mini.c (mono_emit_call_args): set the cil_code for all arguments
1638 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
1640 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
1643 * basic-float.cs: Added tests for negative zero.
1645 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1647 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
1648 a couple of missing operations for long casts, with test cases.
1650 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1652 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
1654 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
1656 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
1657 code size estimation.
1659 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
1661 * mini.c (mono_jit_create_remoting_trampoline): make it work with
1662 abstract methods (fix bug 42542)
1664 * aot.c: add ability to handle array types
1666 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
1668 * mini.c: Call the _specific versions of the object allocation
1669 functions if possible.
1671 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1673 * driver.c: call setlocale ().
1675 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1677 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
1680 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
1682 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
1684 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
1685 wrappers (fix bug 42122)
1687 2003-05-04 Martin Baulig <martin@ximian.com>
1689 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
1691 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
1692 s/mini_set_defaults/mono_set_defaults/g.
1694 2003-05-04 Martin Baulig <martin@ximian.com>
1696 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
1698 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1700 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
1701 (reported by Don Roberts).
1703 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1705 * mini.c: temporarily work around two bugs for this release.
1707 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1709 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
1710 that contains -export-dynamic and it makes using the ld script
1712 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
1714 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1716 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
1719 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1721 * mini.c: make sure leave calls all the needed finally blocks,
1722 even when the target jumps out of multiple exception clauses.
1724 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1726 * ldscript, Makefile.am: add linker script to reduce the number of
1727 exported symbols (should also fix the issues with libwine defining
1728 some of the same symbols in io-layer).
1730 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
1732 * driver.c (mini_main): Avoid assertion when no file name is given on
1735 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
1737 * driver.c: added --version/-V command line option.
1738 Added the inline optimization in the regression tests.
1740 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1742 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
1743 to the type in the method signature (fixes bug#42134).
1745 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
1747 * mini.c: when inlining, check this is not null only when needed (bug #42135).
1749 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
1751 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
1753 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1755 * driver.c: fixed bug #42100.
1757 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
1759 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
1761 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1763 * mini.c: moved most of the code required to do inlining to its own
1764 function so it can be reused. Inline also ctors if appropriate.
1766 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
1768 * Makefile.am: Link with -export-dynamic so shared libs loaded by
1769 the runtime can call mono API functions.
1771 2003-04-27 Martin Baulig <martin@ximian.com>
1773 * debug-mini.c (mono_debug_init_method): Added
1774 `guint32 breakpoint_id' argument; if the method has a breakpoint,
1775 send a notification to the debugger.
1777 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
1778 running in the Mono Debugger, just pass the breakpoint number to
1779 mono_debug_init_method().
1781 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
1783 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
1785 * mini.c: allow some more unsafe compares.
1787 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1789 * mini-x86.c, Makefile.am: make distcheck works (partially from
1790 a patch by Richard Lee <r.h.lee@attbi.com>).
1791 * regset.c, regset.h: removed, they are unused.
1793 2003-04-25 Dick Porter <dick@ximian.com>
1795 * driver.c: Usage reports the name as 'mono' not 'mini'
1796 * exceptions-x86.c: Build and run on freebsd
1798 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
1800 * Makefile.am: install the program with the 'mono' name and
1801 the library as libmono instead of mini and libmini.
1803 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
1805 * driver.c: provide the APIs for the embedding interface of the old jit.
1807 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
1809 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
1811 2003-04-23 Martin Baulig <martin@ximian.com>
1813 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
1815 * driver.c: Added `--debug' command line argument to enable
1818 2003-04-23 Martin Baulig <martin@ximian.com>
1820 * debug.[ch]: Removed. The code is now in
1821 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
1823 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
1826 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
1828 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
1830 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1833 (mini_cleanup): moved mono_runtime_cleanup call after the call to
1834 mono_domain_finalize.
1835 (mini_method_compile): use mono_method_profile* if the the option is
1838 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
1840 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1841 methods with their wrapper.
1843 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1844 methods with their wrapper.
1846 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
1849 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
1852 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
1855 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
1857 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
1859 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
1861 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
1862 of the mempool. This is slightly faster and uses less memory
1864 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1866 * mini.c: avoid O(n) allocation for variables.
1868 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1870 * mini.c: handle items on the stack after inlining methods.
1872 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1874 * mini.c: make the method->opcode optimization dependent
1875 on MONO_OPT_INSTRINS and do it lazily.
1877 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1879 * driver.c: print overall results at the end of regression run.
1881 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
1883 * inssel.brg: don't overwrite symbolic registers.
1885 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1887 * inssel-x86.brg: fix conversion from long to float.
1889 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
1891 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
1893 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
1895 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
1897 * driver.c: Added --print-vtable option as in the old JIT.
1899 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1901 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
1903 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
1905 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
1907 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
1909 * mini.c regalloc.c regalloc.h: Fix memory leak.
1911 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
1913 * aot.c (mono_aot_get_method): register all used strings
1915 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1917 * mini.c: always intern strings references with ldstr at compile time.
1919 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1921 * Makefile.am: add BUILT_SOURCES.
1923 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1925 * driver.c: give a better error message when the assembly to execute
1926 doesn't have an entry point.
1928 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
1930 * Makefile.am: added hack for automake
1932 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
1935 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
1937 22003-04-07 Martin Baulig <martin@ximian.com>
1939 * Makefile.am: Added Makefile.am.
1941 * debugger-main.c: Removed, this is now in the debugger where it
1944 * mini.pc.in: Call this package `mini' for the moment.