9a263b72a3d1dcfa801362af127109daf5669211
[mono.git] / mono / mini / ChangeLog
1 2004-03-01  Zoltan Varga  <vargaz@freemail.hu>
2
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.
7
8 2004-02-26  Zoltan Varga  <vargaz@freemail.hu>
9
10         * mini.c (mini_method_compile): Reenable global regalloc in methods
11         with exception handlers.
12
13         * linear-scan.c (mono_varlist_sort): Fix warning.
14
15         * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
16
17         * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
18         regalloc costs.
19
20         * liveness.c: Make all variables uses in exception clauses volatile, to
21         prevent them from being allocated to registers. Fixes #42136.
22
23 2004-02-25  Zoltan Varga  <vargaz@freemail.hu>
24
25         * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
26         causes regressions.
27
28         * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
29         argument to mono_arch_regalloc_cost.
30
31         * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs 
32         precisely.
33
34 2004-02-24  Zoltan Varga  <vargaz@freemail.hu>
35
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.
38
39         * basic-calls.cs: Fix compilation of tests.
40         
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.
43
44         * mini-ppc.c: Fix compilation.
45
46         * basic-calls.cs: New regression tests.
47
48         * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
49
50         * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
51         of l0 since that is callee saved.
52
53         * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
54         to virtual calls.
55
56         * mini-sparc.c: Ongoing work + flag virtual calls with a special kind 
57         of delay instruction.
58
59         * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
60
61         * mini.h (MonoCallInst): Add 'virtual' flag.
62
63         * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
64
65 2004-02-23  Zoltan Varga  <vargaz@freemail.hu>
66
67         * *.cs: New regression tests.
68
69         * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc 
70         work.
71
72         * mini.c (mono_runtime_install_handlers): Fix build.
73
74         * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
75         'signal_stack_size' members.
76
77         * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an 
78         alternate signal stack.
79
80         * exceptions-x86.c: Add stack overflow handling.
81
82         * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing 
83         functions to arch independent code.
84
85         * mini.c (mono_print_tree): Print more detailed info for load_membase
86         opcodes.
87         
88 2004-02-23  Martin Baulig  <martin@ximian.com>
89
90         * mini.c (mini_get_method): Set `gmethod->generic_inst'.
91
92 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
93
94         * mini-x86.c: fixed reg allocation for div/rem.
95
96 2004-02-22  Miguel de Icaza  <miguel@ximian.com>
97
98         * driver.c (mono_main): Report some configuratio options on --version.
99
100 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
101
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
104         output native code.
105
106 2004-02-20  Martin Baulig  <martin@ximian.com>
107
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.
112
113 2004-02-19  Zoltan Varga  <vargaz@freemail.hu>
114
115         * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
116
117         * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
118
119 2004-02-19  Bernie Solomon  <bernard@ugsolutions.com>
120
121         * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
122
123         * mini-sparc.c (flushi mono_arch_output_basic_block): make
124         it compile using Sun's compiler.
125
126 2004-02-19  Zoltan Varga  <vargaz@freemail.hu>
127
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.
129
130         * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
131
132 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
133
134         * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
135         code.
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.
140
141 2004-02-17  Zoltan Varga  <vargaz@freemail.hu>
142
143         * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
144         independent file.
145
146 2004-02-16  Zoltan Varga  <vargaz@freemail.hu>
147
148         * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
149         PPC.
150
151         * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
152         if we have a working __thread implementation.
153
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.
156
157 2004-02-15  Zoltan Varga  <vargaz@freemail.hu>
158
159         * mini-x86.c: Fix compilation under gcc 2.
160         
161 2004-02-14  Zoltan Varga  <vargaz@freemail.hu>
162
163         * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
164         contains a call to the wrapped function.
165
166         * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add 
167         OP_<CALL>_IMM opcodes, and use them under X86.
168         
169         * mini.c (mono_jit_find_compiled_method): Fix warning.
170
171         * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
172
173         * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
174
175         * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
176         functionality to mini.c.
177
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.
181
182         * mini.c (mono_jit_find_compiled_method): New function to return a
183         compiled method if it exists.
184
185         * mini-x86.c: Call mono_create_jump_trampoline instead of 
186         mono_arch_create_jit_trampoline.
187
188         * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
189         a jump trampoline. Fixes #52092.
190         
191 2004-02-11  Zoltan Varga  <vargaz@freemail.hu>
192
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.
195
196         * mini.c (mini_init): Call mono_thread_attach () so embedders do not 
197         have to call it.
198         
199         * mini.c (mono_runtime_install_handlers): Remove check for valgrind
200         since newer valgrind versions do not need it.
201
202         * mini.c (mono_jit_compile_method_with_opt): New helper function to
203         compile a method with a given set of optimizations.
204
205         * mini.c: Compile icall wrappers on-demand instead of at startup.
206
207         * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
208         wrapper for an icall.
209
210 2004-02-10  Zoltan Varga  <vargaz@freemail.hu>
211
212         * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
213         #54063.
214
215         * iltests.il: Add test for non-empty stack before switch instruction.
216
217 2004-02-02  Zoltan Varga  <vargaz@freemail.hu>
218
219         * mini.c: Add support for new stringbuilder marshalling conventions.
220
221         * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
222
223 2004-02-01  Martin Baulig  <martin@ximian.com>
224
225         * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
226         in `ginst->mtype_argv'.
227
228 2004-01-31  Miguel de Icaza  <miguel@ximian.com>
229
230         * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
231         facilitate grepping.
232
233 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
234
235         * mini.c: fixed buglet in initobj generic implementation for references.
236
237 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
238
239         * Makefile.am: make the version script conditional.
240         * jit-icalls.c: handle missing truncl().
241
242 2004-01-23  Zoltan Varga  <vargaz@freemail.hu>
243
244         * exceptions.cs: Add more tests for double->int conversion.
245
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.
248
249 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
250
251         * driver.c: make --verbose --version emit an error
252         if the loaded corlib doesn't match the runtime version.
253
254 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
255
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.
260
261 2004-01-19  Zoltan Varga  <vargaz@freemail.hu>
262
263         * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
264         mono_lookup_pinvoke_call.
265
266         * mini-x86.c: Under windows, the default pinvoke calling convention is
267         stdcall. Fixes #52834.
268
269         * mini.c (optimize_branches): Add an upper bound to the number of
270         iterations to prevent infinite loops on strange loops. Fixes #53003.
271
272 2004-01-16  Zoltan Varga  <vargaz@freemail.hu>
273
274         * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
275         and ISINST. Fixes #52093.
276
277         * objects.cs (test_0_vector_array_cast): New tests.
278         
279 2004-01-15  Zoltan Varga  <vargaz@freemail.hu>
280
281         * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
282         checking in Array.Set ().
283
284         * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
285         #52590.
286
287         * object.cs (test_0_multi_array_cast): New regression test.
288
289 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
290
291         * exceptions-ppc.c: fix build on Linux/PPC.
292
293 2004-01-14  Zoltan Varga  <vargaz@freemail.hu>
294
295         * tramp-x86.c (x86_magic_trampoline): Disable code patching when
296         running under valgrind.
297         (x86_magic_trampoline): Fix build bustage.
298
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.
302
303 2004-01-13  Zoltan Varga  <vargaz@freemail.hu>
304
305         * cpu-pentium.md (localloc): Increase the size of the localloc 
306         instruction since it is a loop under Win32.
307
308         * debug-mini.c (record_line_number): Get rid of unneccesary memory
309         allocation.
310
311 2004-01-09  Zoltan Varga  <vargaz@freemail.hu>
312
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.
316
317 2004-01-03  Zoltan Varga  <vargaz@freemail.hu>
318
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.
322
323         * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
324         and taking the address of valuetype variables.
325
326 2004-01-03  Patrik Torstensson
327
328         * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
329         for other purposes than FP later on.
330
331 2004-01-02  Zoltan Varga  <vargaz@freemail.hu>
332
333         * mini.c (mono_method_to_ir): Prevent register allocation for arguments
334         of tail calls.
335
336 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
337
338         * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
339
340 2003-12-30  Patrik Torstensson <p@rxc.se>
341
342         * mini-x86.h: Decreased number of availiable fp regs.
343         Solves corner cases with FP spilling.
344
345 2003-12-23  Patrik Torstensson <p@rxc.se>
346
347         * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
348         for floating point stack tracking / spilling on x86. 
349         Fixes bug #49012.
350         
351         * basic-float.cs: added float mul overflow test.
352
353 2003-12-23  Zoltan Varga  <vargaz@freemail.hu>
354
355         * mini.c (mono_method_to_ir): Add workaround for bug #51126.
356
357 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
358
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.
362
363 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
364
365         * exceptions-ppc.c: exception handling support wip:
366         finally handlers get run on exception.
367
368 2003-12-19  Zoltan Varga  <vargaz@freemail.hu>
369
370         * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while 
371         profiling.
372
373 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
374
375         * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
376         initial support for stack walking and unwinding.
377
378 2003-12-18  Zoltan Varga  <vargaz@freemail.hu>
379
380         * driver.c (mono_main): Make corlib-out-of-sync message more 
381         descriptive. Also remove verify_corlib call.
382
383 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
384
385         * mini.c: make CEE_NEWARR calls and other emulated opcodes 
386         not overlap with other call's arguments, too.
387
388 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
389
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
394         with other calls.
395
396 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
397
398         * tramp-ppc.c, basic-calls.cs: rework trampolines so that
399         the magic trampoline stack frame is dropped before executing
400         the new method.
401
402 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
403
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
408         tweaked, though).
409
410 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
411
412         * mini-ppc.c, basic-long.cs: fix jumps to known labels.
413         Don't overwrite return register in some corner cases.
414
415 2003-12-13  Zoltan Varga  <vargaz@freemail.hu>
416
417         * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
418         static constructors when AOT compiling.
419
420         * driver.c (mono_main): Call mono_check_corlib_version.
421
422 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
423
424         * cpu-g4.md, basic.cs: fixed div target register.
425
426 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
427
428         * mini-ppc.c, basic.cs: shl_imm fix with test.
429
430 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
431
432         * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing 
433         structures by value. Misc fixes.
434         * objects.cs: more tests.
435
436 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
437
438         * mini-ppc.c: lconv.ovf.i implemented.
439
440 2003-12-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
441
442         * mini.c:
443         (mini_init): don't error out if someone already called g_thread_init.
444
445 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
446
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.
450
451 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
452
453         * mini.c: check for overruns in IL code.
454
455 2003-12-09  Zoltan Varga  <vargaz@freemail.hu>
456
457         * TODO: Add/remove some todo entries.
458
459 2003-12-08  Zoltan Varga  <vargaz@freemail.hu>
460
461         * driver.c (mono_main): Call mono_verify_corlib.
462
463 2003-12-07  Lluis Sanchez Gual  <lluis@ximian.com>
464
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.
471
472 2003-12-06  Zoltan Varga  <vargaz@freemail.hu>
473
474         * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
475         methods with large stack frames under Win32.
476
477 2003-12-04  Zoltan Varga  <vargaz@freemail.hu>
478
479         * Makefile.am: Distribute regression tests.
480
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.
483
484         * linear-scan.c (mono_varlist_sort): New helper function.
485         
486 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
487
488         * mini.c: ensure arguments and locals are within bounds.
489
490 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
491
492         * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and 
493         related fixes.
494
495 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
496
497         * mini.c (mono_cprop_copy_values): Fix crash.
498
499         * aot.c: Set verbosity back to 0.
500         
501 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
502
503         * regalloc.c: complete memory leak fix by Laurent Morichetti
504         (l_m@pacbell.net).
505
506 2003-12-03  Zoltan Varga  <vargaz@freemail.hu>
507
508         * driver.c (main_thread_handler): Revert the previous patch.
509
510         * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
511         under valgrind.
512
513         * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
514         memory from the memory pool.
515
516         * driver.c (main_thread_handler): Turn on all optimizations when
517         --aot is used.
518
519         * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
520         an array for better performance.
521
522         * regalloc.c (mono_regstate_assign): Fix memory leak.
523
524         * debug-mini.c (mono_debug_serialize_debug_info): New function to
525         serialize the debug info.
526
527         * debug-mini.c (mono_debug_add_aot_method): New function to load the
528         debug info from the serialized representation.
529
530         * aot.c: Save debug info into the generated file and load it when 
531         loading a method.
532
533         * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
534
535 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
536
537         * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
538         More FP-related fixes.
539
540 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
541
542         * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
543         and register allocation buglet. Hello world now runs.
544
545 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
546
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.
550
551 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
552
553         * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
554         mini.c: more ppc changes/fixes.
555
556 2003-11-27  Zoltan Varga  <vargaz@freemail.hu>
557
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 
560         and in the callee.
561
562         * iltests.il: Add tests for tail calls with valuetype arguments.
563
564 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
565
566         * mini-ppc.c: fixes for struct return type.
567
568 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
569
570         * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move 
571         mono_spillvar_offset() to arch-specific code.
572
573 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
574
575         * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
576
577 2003-11-27  Zoltan Varga  <vargaz@freemail.hu>
578
579         * exceptions-x86.c: Fix stack space leaks.
580         
581         * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
582         registers from the lmf if the method has save_lmf set.
583
584 2003-11-26  Zoltan Varga  <vargaz@freemail.hu>
585
586         * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
587         of icall wrappers into InvokeInDomain, since these are now per-domain.
588
589 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
590
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.
594
595 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
596
597         * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
598
599 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
600
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
603         arch-specific code.
604
605 2003-11-26  Gonzalo Paniagua Javier <gonzalo@ximian.com>
606
607         * aot.c: prevent divide by zero error when reporting (it happened with
608         Accessibility.dll).
609
610 2003-11-25  Zoltan Varga  <vargaz@freemail.hu>
611
612         * mini.h (inst_switch): Remove unused macro.
613
614 2003-11-25  Gonzalo Paniagua Javier <gonzalo@ximian.com>
615
616         * aot.c:
617         (load_aot_module): free 'info->methods' and 'info' properly. No more
618         "free(): invalid pointer blah" messages when you have an old aot
619         compiled assembly.
620
621 2003-11-21  Lluis Sanchez Gual <lluis@ximian.com>
622
623         * jit-icalls.c, mini.c: Added support for context static fields.
624
625 2003-11-18  Zoltan Varga  <vargaz@freemail.hu>
626
627         * mini.c (mono_method_blittable): Methods which set LastError are not 
628         blittable either. Fixes #51108.
629         
630 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
631
632         * mini.c: flush icache.
633         * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
634
635 2003-11-18  Zoltan Varga  <vargaz@freemail.hu>
636
637         * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
638
639 2003-11-17  Zoltan Varga  <vargaz@freemail.hu>
640
641         * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
642         safe on IA32.
643
644         * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with 
645         vararg calls.
646
647         * inssel.brg (CEE_MKREFANY): Fix AOT case.
648
649 2003-11-16  Zoltan Varga  <vargaz@freemail.hu>
650
651         * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div 
652         instruction when the result is discarded.
653
654         * iltests.il (test_0_div_regalloc): New regression test.
655
656         * arrays.cs: Fix compilation error.
657
658 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
659
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.
663
664 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
665
666         * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
667
668 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
669
670         * mini.h, inssel-long32.brg: fixed endianess issues in int64
671         implementation of 32 bit systems.
672
673 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
674
675         * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
676         (Jeroen Zwartepoorte).
677
678 2003-11-12  Zoltan Varga  <vargaz@freemail.hu>
679
680         * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
681         the caller and the callee matches.
682         
683         * mini.c (mono_method_to_ir): Add comment.
684
685         * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
686         signbit is missing on some platforms.
687
688 2003-11-06  Zoltan Varga  <vargaz@freemail.hu>
689
690         * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
691
692         * mini.c (setup_jit_tls_data): Call the new function.
693         
694         * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
695
696         * mini-x86.c: Add experimental support for fast access to the lmf
697         structure under NPTL/Linux 2.6.x.
698
699 2003-11-06  Martin Baulig  <martin@ximian.com>
700
701         * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
702         `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
703         the debugger.
704
705 2003-11-02  Martin Baulig  <martin@ximian.com>
706
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.
711
712 2003-10-31  Zoltan Varga  <vargaz@freemail.hu>
713
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.
716
717         * tramp-x86.c (x86_magic_trampoline): Use the new function.     
718
719 2003-10-30  Martin Baulig  <martin@ximian.com>
720
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
723         method parameters.
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(). 
726
727 2003-10-29  Zoltan Varga  <vargaz@freemail.hu>
728
729         * mini.c mini-ops.h inssel.brg: Implement undeniable exception 
730         propagation.
731
732         * mini.c (sigusr1_signal_handler): Move creation of the thread abort
733         object here, so it is in the correct appdomain etc.
734
735 2003-10-27  Zoltan Varga  <vargaz@freemail.hu>
736
737         * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
738         already done.
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.
742
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.
745
746 2003-10-24  Zoltan Varga  <vargaz@freemail.hu>
747
748         * mini.c: Update after appdomain changes.
749
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.
753
754 2003-10-16  Zoltan Varga  <vargaz@freemail.hu>
755
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
759         valgrind.h.
760
761 2003-10-16  Miguel de Icaza  <miguel@ximian.com>
762
763         * trace.c, trace.h: New files that implement the new trace option
764         parsing. 
765
766         * driver.c: Document new --trace options.
767
768         * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
769         mini-x86.c: Apply:
770
771         -       if (mono_jit_trace_calls)
772         +       if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
773
774         * mini.h: prototypes.
775         
776 2003-10-15  Zoltan Varga  <vargaz@freemail.hu>
777
778         * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
779
780         * mini.c inssel.brg: Implement typedefbyref opcodes.
781
782         * mini.c (mono_jit_compile_method): Remove unused local variable.
783
784         * mini.c (mono_jit_compile_method_inner): Ditto.
785         
786 2003-10-12  Zoltan Varga  <vargaz@freemail.hu>
787
788         * tramp-x86.c (x86_class_init_trampoline): Fix build.
789         
790         * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
791
792 2003-10-10  Zoltan Varga  <vargaz@freemail.hu>
793
794         * mini.c (mono_no_aot): Remove unused global variable.
795
796         * mini.c: Thread safety fixes.
797
798 2003-10-09  Zoltan Varga  <vargaz@freemail.hu>
799
800         * mini.c (mono_create_class_init_trampoline): Add a lock around
801         class_init_hash_addr.
802
803         * arrays.cs (test_0_newarr_emulation): Add new regression test for
804         #30073.
805
806         * mini.c: Decompose the NEWARR instruction before decomposing its
807         arguments. Fixes #30073.
808
809 2003-10-08  Zoltan Varga  <vargaz@freemail.hu>
810
811         * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
812         convention.
813
814 2003-10-06  Zoltan Varga  <vargaz@freemail.hu>
815
816         * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
817
818         * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
819
820         * driver.c: Add support for compiling icall wrappers to --compile.
821
822 2003-10-05  Zoltan Varga  <vargaz@freemail.hu>
823
824         * inssel.brg: The empty value in class->interface_offsets is -1, not
825         0. Fixes #49287.
826
827 2003-10-03  Zoltan Varga  <vargaz@freemail.hu>
828
829         * objects.cs: New test for 'is' operator on an array of interfaces.
830
831 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
832
833         * tramp-ppc.c: update trampoline code to support jumps
834         and class initialization.
835
836 2003-09-30  Zoltan Varga  <vargaz@freemail.hu>
837
838         * mini.c (mono_jit_compile_method): Fix reading of freed memory.
839
840         * inssel.brg (OP_UNBOXCAST): Fix #46027.
841
842         * inssel.brg (OP_UNBOX): Remove unused rule.
843
844         * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
845         region instead of one for each method. Fixes #47813.
846
847 2003-09-29  Zoltan Varga  <vargaz@freemail.hu>
848
849         * exceptions.cs (test_0_nested_finally): New regression test for
850         nested exception handlers.
851
852         * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
853
854         * mini.c (mono_method_to_ir): Avoid inlining tail calls.
855
856         * mini.c (mono_method_to_ir): Fix tail recursion in the presence of 
857         inlining.
858
859         * mini.c (mono_method_check_inlining): Make the inlining limit 
860         configurable by an environment variable.
861         
862         * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
863
864         * mini.h: Bump AOT file version.
865
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, 
869         because of inlining.
870
871 2003-09-27  Zoltan Varga  <vargaz@freemail.hu>
872
873         * mini.c (mono_precompile_assemblies): New function to compile
874         all methods in all loaded assemblies.
875
876         * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
877
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
881         #45817.
882
883         * exceptions-x86.c (seh_handler): Fix handling of system exceptions
884         under Win32. Fixes #42964.
885
886 2003-09-26  Zoltan Varga  <vargaz@freemail.hu>
887
888         * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
889
890         * aot.c: Added support for AOT compiling methods which contain calls
891         to wrappers. Currently, only remoting-invoke-with-check wrappers are
892         handled.
893         
894         * driver.c (compile_all_methods): Run the compilation in a thread
895         managed by mono. Fixes #44023.
896
897         * mini.c (mono_codegen): Print full method name in verbose output.
898
899         * mini-x86.c (mono_arch_patch_code): Fix warning.
900         
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.
903
904         * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
905
906 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
907
908         * inssel.brg: string chars are unsigned.
909
910 2003-09-15  Zoltan Varga  <vargaz@freemail.hu>
911
912         * TODO: New todo item.
913
914         * tramp-x86.c (x86_class_init_trampoline): New trampoline function
915         which calls mono_runtime_class_init and patches the call site to
916         avoid further calls.
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.
921
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
927         patching process.
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.
931         
932         * mini.h mini-x86.c aot.c: Added a new relocation type: 
933         MONO_PATCH_INFO_CLASS_INIT.
934
935         * mini.h: Bump AOT version number.
936
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
939         cache behaviour.
940         
941         * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
942         patch since it breaks the regression tests.
943         
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.
947
948 2003-09-14  Zoltan Varga  <vargaz@freemail.hu>
949
950         * TODO: Fix todo item && remove another.
951
952 2003-09-12  Zoltan Varga  <vargaz@freemail.hu>
953
954         * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
955         previous checkin.
956
957         * aot.c: Moved the check for MONO_LASTAOT into the initialization
958         function of the module.
959
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.
963
964 2003-09-11  Zoltan Varga  <vargaz@freemail.hu>
965
966         * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
967         by Bernie Solomon (bernard@ugsolutions.com).
968
969         * inssel.brg: Refactor the interface offset table related code into
970         its separate functions and add support for the AOT case.
971
972 2003-09-10  Zoltan Varga  <vargaz@freemail.hu>
973
974         * aot.c (mono_aot_get_method_inner): Fix memory leak.
975         
976         * aot.c: Added mono_aot_verbose variable and made all debugging
977         output depend on the value of this variable.
978
979         * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
980         method_label and info_label.
981
982         * mini.h mini-x86.c aot.c: Added a new relocation type 
983         MONO_PATCH_INFO_IID for klass->interface_id.
984
985         * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
986         the MonoJitInfo structure.
987
988         * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
989         a non-root appdomain in shared mode.
990
991 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
992
993         * aot.c: make aot loader less verbose. Remove free of unused variable.
994
995 2003-09-08  Zoltan Varga  <vargaz@freemail.hu>
996
997         * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
998
999         * .cvsignore: Added *.dll.
1000
1001         * mini.c (mono_print_tree_nl): New function callable while debugging.
1002
1003         * mini.c (mono_print_code): Export this.
1004
1005         * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
1006         patched code.
1007
1008 2003-09-05  Zoltan Varga  <vargaz@freemail.hu>
1009
1010         * mini.h (MonoCompile): Added 'jit_info' field.
1011
1012         * mini.c (mini_method_compile): Save the generated MonoJitInfo into
1013         the cfg structure, since it is needed by the AOT compiler.
1014
1015         * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
1016
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 
1020         to g_module_symbol.
1021         - reworked the file format so it is now much smaller and needs
1022         fewer relocation entries.
1023         
1024 2003-09-04  Zoltan Varga  <vargaz@freemail.hu>
1025
1026         * aot.c (load_aot_module): Fix build bustage on platforms without
1027         Boehm GC.
1028
1029 2003-09-04  Martin Baulig  <martin@ximian.com>
1030
1031         * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
1032
1033 2003-09-04  Zoltan Varga  <vargaz@freemail.hu>
1034
1035         * TODO: Some new optimization ideas.
1036
1037         * aot.c: Move AOT module loading logic here from mono_assembly_open.
1038
1039         * aot.c: Save the optimization flags used to compile the code into
1040         the AOT module.
1041
1042         * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
1043         support emitting domain specific code.
1044         
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.
1048
1049         * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
1050         between appdomains.
1051
1052         * driver.c mini.h mini.c: New --no-aot debugging option which disables
1053         loading of AOT code.
1054
1055         * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
1056         
1057         * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
1058         if there is no domain neutrality information.
1059
1060 2003-09-01  Zoltan Varga  <vargaz@freemail.hu>
1061
1062         * aot.c (mono_compile_assembly): Emit a symbol containing the file 
1063         format version into the generated library.
1064
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.
1067
1068         * mini.h mini-x86.c aot.c: Added two new relocations so throwing
1069         system exceptions from AOT code now works.
1070
1071         * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling 
1072         method if it is domain neutral and the callee is not.
1073
1074         * graph.c (cfg_emit_one_loop_level): Fix warning.
1075
1076 2003-08-30  Zoltan Varga  <vargaz@freemail.hu>
1077
1078         * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
1079         last checkin.
1080
1081 2003-08-29  Zoltan Varga  <vargaz@freemail.hu>
1082
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.
1086         
1087         * mini.c (mono_thread_abort): Fix warning.
1088         (mono_jit_compile_method): Call static constructor in the AOT case too.
1089
1090         * aot.c (mono_compile_assembly): Fix warning.
1091
1092 2003-08-28  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1093
1094         * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
1095
1096 2003-08-28  Zoltan Varga  <vargaz@freemail.hu>
1097
1098         * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
1099
1100         * cpu-pentium.md: Fix the length of call opcodes so they include the
1101         ESP restoring instruction. Fixes #47968.
1102
1103 2003-08-28  Martin Baulig  <martin@ximian.com>
1104
1105         * mini-x86.c (mono_arch_call_opcode): Added support for
1106         MONO_TYPE_GENERICINST.
1107
1108         * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.       
1109
1110 2003-08-27  Zoltan Varga  <vargaz@freemail.hu>
1111
1112         * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
1113         a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
1114
1115         * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
1116         metadata_section.
1117
1118 2003-08-26  Martin Baulig  <martin@ximian.com>
1119
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.
1124
1125 2003-08-25  Zoltan Varga  <vargaz@freemail.hu>
1126
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.
1130
1131 2003-08-22  Zoltan Varga  <vargaz@freemail.hu>
1132
1133         * driver.c mini.c: Use an environment variable instead of a global 
1134         variable. Also fix the build.
1135
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 
1138         reporting this. 
1139
1140         * driver.c mini.c: Added --with-valgrind option to turn off some
1141         code which prevents mono from running under valgrind.
1142
1143         * mini.c (mono_emit_call_args): Fixed warning.
1144
1145         * mini.c (mono_emulate_opcode): Fixed warning.
1146
1147 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1148
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 
1153         <l_m@pacbell.net>)
1154
1155 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1156
1157         * mini.c: mono_thread_current() can be called only after
1158         mono_runtime_init(): rearrange code to not call it early on.
1159
1160 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1161
1162         * mini.c: allocate jump tables in the code mempools.
1163
1164 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1165
1166         * mini.c, mini.h: make sure per-thread data allocated by the jit is
1167         freed.
1168
1169 2003-08-10  Miguel de Icaza  <miguel@ximian.com>
1170
1171         * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
1172         12 to 16.  This fixes bug #47453.
1173
1174
1175 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
1176
1177         * mini-ppc.c: fixed indexed load and unsigned compares.
1178
1179 2003-08-06  Lluis Sanchez Gual  <lluis@ximian.com>
1180
1181         * mini.c: reenabled installation of handler for
1182           thread abort signal.
1183
1184 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1185
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.
1189
1190 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1191
1192         * inssel-long32.brg: couple more opcodes implemented.
1193
1194 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1195         
1196         * mini-sparc.c: Even more opcodes implemeted.
1197
1198 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
1199
1200         * mini-sparc.c: More opcodes implemented.
1201
1202 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
1203
1204         * mini-sparc.c: More opcodes implemented.
1205
1206 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
1207
1208         * inssel-sparc.brg: Add some needed rules.  Direct
1209         copy from PPC.
1210         * Makefile.am: Use inssel-sparc.brg
1211         * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
1212         an assert happy for now.
1213
1214 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
1215
1216         * mini-sparc.c: Fixed compile errors.
1217         * exceptions-sparc.c: Same.  We now produce a mono binary 
1218         on sparc-linux.  Yea.
1219
1220 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
1221
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.
1225
1226 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1227
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
1231         (ct@gentoo.org).
1232
1233 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1234
1235         * mini.c: more opcodes implemented and better support for generics.
1236
1237 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1238
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.
1242
1243 2003-07-21  Miguel de Icaza  <miguel@ximian.com>
1244
1245         * mini.c: Removed definition of metadata_shared mutex here.
1246
1247 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1248
1249         * mini-x86.c: make vararg calls work for instance methods.
1250
1251 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
1252
1253         * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
1254         returns the arguments in a separte list, now.
1255
1256 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1257
1258         * aot.c, mini.c: updates for array type representation changes.
1259
1260 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
1261
1262         * mini.c: register function to perform jit shutdown.
1263
1264 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1265
1266         * mini.c: use a faster allocator if possible.
1267
1268 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1269
1270         * aot.c: some cleanups and portability changes.
1271
1272 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1273
1274         * mini.c: use faster allocation for CEE_BOX if possible.
1275
1276 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1277
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.
1282
1283 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1284
1285         * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
1286
1287 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
1288
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.
1292
1293 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
1294
1295         * mini.c: disable some optimizations if we can guess they'll cost too
1296         much for a given method.
1297
1298 2003-06-17  Zoltan Varga  <vargaz@freemail.hu>
1299
1300         * mini.h mini.c: Rework last patch based on suggestions by Paolo.
1301         
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.
1305
1306 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1307
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.
1311
1312 2003-06-15  Nick Drochak <ndrochak@gol.com>
1313
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
1322
1323 2003-06-13  Dietmar Maurer  <dietmar@ximian.com>
1324
1325         * mini.c (optimize_branches): improved to handle all kinds of
1326         conditional branches.
1327
1328 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1329
1330         * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
1331         don't raise exceptions.
1332
1333 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1334
1335         * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
1336         to arch-specific files.
1337
1338 2003-06-09  Martin Baulig  <martin@ximian.com>
1339
1340         * Makefile.am (libs): Added $(LIBGC_LIBS).
1341
1342 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
1343
1344         * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
1345         and OP_ATAN (fixes bug#44293).
1346
1347 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
1348
1349         * Makefile.am, mini-x86.c: rename cpu description array to
1350         pentium_desc, since some compilers define the 'pentium' preprocessor
1351         symbol.
1352
1353 2003-05-28  Dietmar Maurer  <dietmar@ximian.com>
1354
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
1358
1359         * mini.c (optimize_branches): bug fixes
1360
1361 2003-06-06  Dietmar Maurer  <dietmar@ximian.com>
1362
1363         * mini.c (mono_method_to_ir): inline static readonly fields
1364
1365         * ssa.c (fold_tree): start cfold support for long (very simple
1366         cases only)
1367
1368         * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
1369
1370 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1371
1372         * inssel.brg: fixed memcpy (bug #44219).
1373
1374 2003-06-05  Dick Porter  <dick@ximian.com>
1375
1376         * driver.c: Set the glib log levels to not abort if g_message
1377         recurses.
1378
1379         g_set_prgname() has to happen before mini_init() so that the
1380         process handle gets the info.
1381         
1382 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1383
1384         * driver.c: add intrins to the default optimizations to get wider
1385         exposure.
1386
1387 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1388
1389         * mini.h: some large basic blocks will overflow a 16-bit
1390         integers for symbolic registers.
1391
1392 2003-06-04  Dietmar Maurer  <dietmar@ximian.com>
1393
1394         * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
1395         (mono_arch_output_basic_block): fix bug 43499 
1396
1397 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1398
1399         * mini.c: kill duplicated definition of mono_debug_format.
1400
1401 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
1402
1403         * mini-x86.c, arrays.cs: fixed register allocation bug.
1404
1405 2003-06-04  Dietmar Maurer  <dietmar@ximian.com>
1406
1407         * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
1408
1409         * mini.c (mini_get_opcode_for_method): inline IEEERemainder
1410
1411 2003-06-04  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1412
1413         * mini.c:
1414         (print_method_from_ip): also print source location information if
1415         available.
1416
1417 2003-06-02  Dietmar Maurer  <dietmar@ximian.com>
1418
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.
1422
1423 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
1424
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.
1429
1430 2003-05-30  Dietmar Maurer  <dietmar@ximian.com>
1431
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).
1435
1436 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1437
1438         * driver.c, debug-mini.c: warning fixes.
1439
1440 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
1441
1442         * Makefile.am, jit.h, mini.h: install header for embedding mono.
1443
1444 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
1445
1446         * mini.c: thread-static fields are registered in mono_class_vtable(),
1447         so ensure the function is called before checking for them.
1448
1449 2003-05-27  Dietmar Maurer  <dietmar@ximian.com>
1450
1451         * mini.c (optimize_branches): fix for bug 43586
1452
1453         * jit-icalls.c (mono_llmult_ovf): added an additional check for
1454         overflow (fixes Bug #43639)
1455
1456 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1457
1458         * mini.c, objects.cs: allow the use of stobj for primitive types.
1459
1460 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1461
1462         * mini.c: be less strict about argument checking until we support
1463         running the verifier.
1464
1465 2003-05-27  Nick Drochak <ndrochak@gol.com>
1466
1467         * basic-long.cs: tests for (ulong)int * (ulong)int also
1468         * mini.c: use the same trick for (ulong)int * (ulong)int
1469
1470 2003-05-27  Nick Drochak <ndrochak@gol.com>
1471
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
1477         in EAX.
1478         * mini.c: substitute special BIGMUL opcode in the tree for 
1479         (long)int * (long)int
1480
1481 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
1482
1483         * jit-icalls.c: call the type ctor on field access if needed.
1484
1485 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1486
1487         * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
1488         to a method (including results of ldelema, bug#43207).
1489
1490 2003-05-26  Dietmar Maurer  <dietmar@ximian.com>
1491
1492         * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
1493         colors to show exception handler blocks.
1494
1495         * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
1496         (fix for pinvoke7.cs).
1497
1498 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1499
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.
1503
1504 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
1505
1506         * mini-x86.c: better register restoring code and profiling
1507         support for tail calls.
1508
1509 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
1510
1511         * mini.h, driver.c: prepare for leaf methods optimization.
1512
1513 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1514
1515         * mini.c: get targets of branches before converting a method.
1516
1517 2003-05-23  Dietmar Maurer  <dietmar@ximian.com>
1518
1519         * mini.c (optimize_branches): added some experimental code (disbaled) 
1520
1521 2003-05-22  Dietmar Maurer  <dietmar@ximian.com>
1522
1523         * mini.c (optimize_branches): fix branch to branch optimization 
1524
1525         * exceptions-x86.c (mono_arch_handle_exception): bug fix.
1526
1527         * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
1528
1529         * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
1530
1531         * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
1532         if needed.
1533
1534 2003-05-21  Dietmar Maurer  <dietmar@ximian.com>
1535
1536         * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
1537         enable use of interface variables again.
1538
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.
1542
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.
1546
1547 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1548
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.
1552
1553 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
1554
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
1558         of CEE_JMP.
1559         * tramp-x86.c: new trampoline code to handle methods
1560         reached through a jump.
1561
1562 2003-05-20  Dietmar Maurer  <dietmar@ximian.com>
1563
1564         * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
1565         bit values to registers
1566
1567 2003-05-19  Dietmar Maurer  <dietmar@ximian.com>
1568
1569         * mini.c (mono_compile_get_interface_var): share interface
1570         variables if possible.
1571
1572 2003-05-16  Martin Baulig  <martin@ximian.com>
1573
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.
1577
1578 2003-05-16  Dietmar Maurer  <dietmar@ximian.com>
1579
1580         * mini.c (mono_method_to_ir): inlining fixes/cleanups
1581
1582 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
1583
1584         * mini.c, mini-opts.h, inssel.brg: inline small memcpy
1585         for value type handling.
1586
1587 2003-05-16  Dietmar Maurer  <dietmar@ximian.com>
1588
1589         * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
1590         (mono_method_check_inlining): enable inlining of all kinds of wrappers
1591
1592 2003-05-15  Lluis Sanchez Gual  <lluis@ideary.com>
1593
1594         * mini.c: fixed little bug in CEE_NEWOBJ case when calling
1595           the constructor through a proxy.
1596
1597 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1598
1599         * jit-icalls.c, inssel.brg: fixes to array element address
1600         calculations.
1601
1602 2003-05-15  Dietmar Maurer  <dietmar@ximian.com>
1603
1604         * mini-x86.c (is_regsize_var): allocate pointer to registers
1605
1606 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1607
1608         * driver.c: fixed typo, added intrins to the set of optimizations
1609         tested with regressions.
1610
1611 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
1612
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
1615         test case.
1616
1617 2003-05-14  Dietmar Maurer  <dietmar@ximian.com>
1618
1619         * inssel.brg: remove some common pop instructions without side effects
1620
1621 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
1622
1623         * inssel-x86.brg: fixed thinko in int to double conversions.
1624
1625 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
1626
1627         * mini.c, jit-icalls.c: added runtime thread-static variable support.
1628
1629 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
1630
1631         * inssel-long32.brg: two more missing instructions.
1632
1633 2003-05-13  Dietmar Maurer  <dietmar@ximian.com>
1634
1635         * mini.c (mono_emit_call_args): set the cil_code for all arguments
1636         if not already set.
1637
1638 2003-05-12  Zoltan Varga  <vargaz@freemail.hu>
1639
1640         * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
1641         correctly.
1642
1643         * basic-float.cs: Added tests for negative zero.
1644
1645 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
1646
1647         * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
1648         a couple of missing operations for long casts, with test cases.
1649
1650 2003-05-11  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1651
1652         * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
1653
1654 2003-05-09  Dietmar Maurer  <dietmar@ximian.com>
1655
1656         * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
1657         code size estimation.
1658
1659 2003-05-08  Dietmar Maurer  <dietmar@ximian.com>
1660
1661         * mini.c (mono_jit_create_remoting_trampoline): make it work with
1662         abstract methods (fix bug 42542)
1663
1664         * aot.c: add ability to handle array types
1665         
1666 2003-05-08  Zoltan Varga  <vargaz@freemail.hu>
1667
1668         * mini.c: Call the _specific versions of the object allocation
1669         functions if possible.
1670
1671 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
1672
1673         * driver.c: call setlocale ().
1674
1675 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
1676
1677         * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
1678         windows build.
1679
1680 2003-05-05  Dietmar Maurer  <dietmar@ximian.com>
1681
1682         * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
1683
1684         * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
1685         wrappers (fix bug 42122)
1686
1687 2003-05-04  Martin Baulig  <martin@ximian.com>
1688
1689         * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
1690
1691         * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
1692         s/mini_set_defaults/mono_set_defaults/g.
1693
1694 2003-05-04  Martin Baulig  <martin@ximian.com>
1695
1696         * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
1697
1698 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
1699
1700         * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
1701         (reported by Don Roberts).
1702
1703 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
1704
1705         * mini.c: temporarily work around two bugs for this release.
1706
1707 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
1708
1709         * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
1710         that contains -export-dynamic and it makes using the ld script
1711         useless.
1712         * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
1713
1714 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
1715
1716         * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
1717         specific cpu.
1718
1719 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
1720
1721         * mini.c: make sure leave calls all the needed finally blocks,
1722         even when the target jumps out of multiple exception clauses.
1723
1724 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1725
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).
1729
1730 2003-05-01  Zoltan Varga  <vargaz@freemail.hu>
1731
1732         * driver.c (mini_main): Avoid assertion when no file name is given on 
1733         the command line.
1734
1735 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
1736
1737         * driver.c: added --version/-V command line option.
1738         Added the inline optimization in the regression tests.
1739
1740 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
1741
1742         * mini.c, basic-calls.cs: when inlining, save arguments to locals according 
1743         to the type in the method signature (fixes bug#42134).
1744
1745 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
1746
1747         * mini.c: when inlining, check this is not null only when needed (bug #42135).
1748
1749 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
1750
1751         * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
1752
1753 2003-04-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1754
1755         * driver.c: fixed bug #42100.
1756
1757 2003-04-29  Dietmar Maurer  <dietmar@ximian.com>
1758
1759         * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
1760
1761 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
1762
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.
1765
1766 2003-04-28  Zoltan Varga  <vargaz@freemail.hu>
1767
1768         * Makefile.am: Link with -export-dynamic so shared libs loaded by
1769         the runtime can call mono API functions.
1770
1771 2003-04-27  Martin Baulig  <martin@ximian.com>
1772
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.
1776
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().
1780
1781         * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
1782
1783 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
1784
1785         * mini.c: allow some more unsafe compares.
1786
1787 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1788
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.
1792
1793 2003-04-25  Dick Porter  <dick@ximian.com>
1794
1795         * driver.c: Usage reports the name as 'mono' not 'mini'
1796         * exceptions-x86.c: Build and run on freebsd
1797
1798 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
1799
1800         * Makefile.am: install the program with the 'mono' name and
1801         the library as libmono instead of mini and libmini.
1802
1803 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
1804
1805         * driver.c: provide the APIs for the embedding interface of the old jit.
1806
1807 2003-04-23  Dietmar Maurer  <dietmar@ximian.com>
1808
1809         * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
1810
1811 2003-04-23  Martin Baulig  <martin@ximian.com>
1812
1813         * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
1814
1815         * driver.c: Added `--debug' command line argument to enable
1816         debugging support.
1817
1818 2003-04-23  Martin Baulig  <martin@ximian.com>
1819
1820         * debug.[ch]: Removed.  The code is now in
1821         ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
1822
1823         * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
1824         last six months.
1825
1826 2003-04-22  Dietmar Maurer  <dietmar@ximian.com>
1827
1828         * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
1829
1830 2003-04-17  Gonzalo Paniagua Javier <gonzalo@ximian.com>
1831
1832         * mini.c:
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
1836         enabled.
1837
1838 2003-04-17  Zoltan Varga  <vargaz@freemail.hu>
1839
1840         * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1841         methods with their wrapper.
1842
1843         * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
1844         methods with their wrapper.
1845
1846         * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
1847         their wrapper.
1848
1849         * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
1850         wrapper.
1851
1852         * mini.c (mono_method_check_inlining): Avoid inlining synchronized
1853         methods.
1854
1855 2003-04-17  Dietmar Maurer  <dietmar@ximian.com>
1856
1857         * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
1858
1859 2003-04-16  Dietmar Maurer  <dietmar@ximian.com>
1860
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
1863
1864 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
1865
1866         * mini.c: avoid O(n) allocation for variables.
1867
1868 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
1869
1870         * mini.c: handle items on the stack after inlining methods.
1871
1872 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
1873
1874         * mini.c: make the method->opcode optimization dependent
1875         on MONO_OPT_INSTRINS and do it lazily.
1876
1877 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
1878
1879         * driver.c: print overall results at the end of regression run.
1880
1881 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
1882
1883         * inssel.brg: don't overwrite symbolic registers.
1884
1885 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1886
1887         * inssel-x86.brg: fix conversion from long to float.
1888
1889 2003-04-11  Dietmar Maurer  <dietmar@ximian.com>
1890
1891         * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
1892
1893 2003-04-10  Zoltan Varga  <vargaz@freemail.hu>
1894
1895         * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
1896
1897         * driver.c: Added --print-vtable option as in the old JIT.
1898
1899 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
1900
1901         * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
1902
1903 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
1904
1905         * inssel.brg, basic.cs: fixed checked conversions to byte and short.
1906
1907 2003-04-09  Zoltan Varga  <vargaz@freemail.hu>
1908
1909         * mini.c regalloc.c regalloc.h: Fix memory leak.
1910
1911 2003-04-09  Dietmar Maurer  <dietmar@ximian.com>
1912
1913         * aot.c (mono_aot_get_method): register all used strings
1914
1915 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
1916
1917         * mini.c: always intern strings references with ldstr at compile time.
1918
1919 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
1920
1921         * Makefile.am: add BUILT_SOURCES.
1922
1923 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
1924
1925         * driver.c: give a better error message when the assembly to execute
1926         doesn't have an entry point.
1927
1928 2003-04-07  Dietmar Maurer  <dietmar@ximian.com>
1929
1930         * Makefile.am: added hack for automake
1931
1932         * mono/mini/mini.c (mono_save_args): always copy arguments to keep
1933         correct sematics.
1934
1935         * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
1936
1937 22003-04-07  Martin Baulig  <martin@ximian.com>
1938
1939         * Makefile.am: Added Makefile.am.
1940
1941         * debugger-main.c: Removed, this is now in the debugger where it
1942         belongs.
1943
1944         * mini.pc.in: Call this package `mini' for the moment.
1945
1946
1947