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