1 2008-04-16 Zoltan Varga <vargaz@gmail.com>
3 * liveness.c (mono_analyze_liveness): Disable the initlocals optimization if
4 running under the debugger.
6 * linear-scan.c (mono_linear_scan): Avoid sharing registers if running under the
9 * mini.c (mini_method_compile): Set a few flags in cfg if running under the
10 debugger. Also move the disabling of optimizations here from driver.c.
11 (mono_allocate_stack_slots_full): Avoid sharing stack slots if running under the
14 * mini.h (MonoCompile): Add a few new flags.
16 2008-04-15 Zoltan Varga <vargaz@gmail.com>
18 * mini.c (mono_method_to_ir): Set cfg->ip before processing an IL instruction
19 so the cil_code field of created MonoInst's is properly set.
20 (mini_select_instructions): Ditto.
22 * mini.h (MONO_INST_NEW): Initialize the cil_code field using cfg->ip.
23 (MONO_INST_NEW_CALL): Ditto.
25 * mini.c inssel.brg inssel-x86.brg inssel-amd64.brg: Use MONO_INST_NEW ()
26 in many places so the ins->cil_code field is properly initialized.
28 * mini.c (mono_bblock_add_inst): Call MONO_ADD_INS () so the logic is in one
31 2008-04-14 Zoltan Varga <vargaz@gmail.com>
33 * mini.c (mini_method_compile): Print a different message when compiling a
36 * mini.c (GENERIC_SHARING_FAILURE): Print a failure message when verbose_level
39 2008-04-11 Zoltan Varga <vargaz@gmail.com>
41 * mini-amd64.c (mono_arch_output_basic_block): Implement OP_ABS directly using
44 * basic-math.cs: Fix warnings. Add a test for Math.Abs ().
46 2008-04-11 Zoltan Varga <vargaz@gmail.com>
48 * mini.c (handle_stack_args): Make this return void since its return value was
49 never used. Also set cfg->unverifiable for invalid IL instead of calling
52 2008-04-10 Mark Probst <mark.probst@gmail.com>
54 * mini.c: Make sure "this" is live in catch clauses with type
55 variables in shared generic code.
57 2008-04-08 Mark Probst <mark.probst@gmail.com>
59 * mini.c: Replaced uses of MONO_TYPE_IS_REFERENCE with calls to
60 generic_class_is_reference_type() to ensure the proper behaviour
61 when sharing generic code and the type in question is a type
64 2008-04-08 Zoltan Varga <vargaz@gmail.com>
66 * mini-exceptions.c: Applied patch from Mark Spruiell (mes@zeroc.com). Fix
67 race conditions when printing thread dumps. Fixes #377738.
69 2008-04-08 Massimiliano Mantione <massi@ximian.com>
71 aliasing.c (update_aliasing_information_on_inst): Fixed a bug which
72 shows up when both MonoInst arguments can cause aliasig.
73 There is likely no way in the current JIT to trigger this problem, but
74 it showed up in the development of generics sharing, when in a new
75 opcode both args of an OP_GROUP can be aliases (addresses of a local).
76 When the generics sharing code will be committed, its tests will be
77 valid also for this bug.
79 2008-04-08 Zoltan Varga <vargaz@gmail.com>
81 * aot-runtime.c (decode_patch_info): Always transform PATCH_INFO_WRAPPER to
84 * mini.c (mono_resolve_patch_target): Fix a crash in the AOT case if method is
87 2008-04-07 Zoltan Varga <vargaz@gmail.com>
89 * mini-exceptions.c (mono_handle_exception_internal): When --debug=casts is used,
90 use a more detailed exception message for InvalidCastException.
92 * mini.h (MonoJitTlsData): Add 'class_cast_from' and 'class_cast_to' fields.
94 * driver.c (mono_main): Add --debug=casts option to turn on better
95 InvalidCastException message details.
97 * mini.c (mini_get_debug_options): New helper function to return the address of
98 the debug_options variable.
100 * mini.c (mono_get_jit_tls_intrinsic): New helper function to create a load of
101 the jit_tls TLS variable.
103 * mini.c (mono_jit_tls): New TLS variable.
105 * inssel.brg: Save the details of a cast to a TLS variable when the --debug=casts
108 2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
110 * mini.h: Removed verifer related stuff. This code was moved to verify.c
112 * mini.c: Removed verifer related stuff, code moved to verify.c.
114 * driver.c: Using code from verify.c instead of mini.c.
116 2008-04-05 Zoltan Varga <vargaz@gmail.com>
118 * mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
121 2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
123 * mini.c (check_for_method_verify): Enabling verification of
124 corlib if mono_verify_all is set. Bugs in the verifier preventing that
127 2008-04-04 Zoltan Varga <vargaz@gmail.com>
129 * exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
130 caller saved registers as well.
132 * exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
133 saved registers as well.
135 2008-03-30 Zoltan Varga <vargaz@gmail.com>
137 * mini-x86.c cpu-x86.md inssel-x86.brg: Add min/max intrinsics.
139 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of the non-SSE2 floating point
142 2008-03-27 Zoltan Varga <vargaz@gmail.com>
144 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'gsctx' argument and pass it
146 (get_call_info): Take a gsctx argument instead of 'cfg'.
148 2008-03-26 Zoltan Varga <vargaz@gmail.com>
150 * mini.c (check_for_method_verify): Avoid verifying mscorlib methods even if
151 mono_verify_all is set.
153 * driver.c (compile_all_methods_thread_main): Don't exit at the first error.
155 * mini.c mini.h: Remove the unused and incomplete stack merge verification code.
157 2008-03-25 Zoltan Varga <vargaz@gmail.com>
159 * driver.c (compile_all_methods_thread_main): Error out if compilation fails with
162 * driver.c mini.c mini.h: Add a --verify-all development option to test the
163 verifier and the code generated by the compiler.
165 2008-03-25 Mark Probst <mark.probst@gmail.com>
167 * mini.c: Generic sharing of the non-nullable case of the box
170 2008-03-24 Zoltan Varga <vargaz@gmail.com>
172 * inssel.brg: Fix the build.
174 * iltests.il.in: Add a test for lconv.ovf.u8.un.
176 2008-03-24 Rodrigo Kumpera <rkumpera@novell.com>
178 * mini.c (mono_method_to_ir): Implement readonly for ldelema and
179 Array:Address. Fixes #372410.
181 * iltests.il.in: New tests for readonly prefix.
183 2008-03-23 Zoltan Varga <vargaz@gmail.com>
185 * mini.h mini.c mini-trampolines.c: Move trampoline related code to
188 * mini.h mini.c mini-exceptions.c: Move mini_init_exceptions () to
191 * mini-amd64.c mini-s390.c (mono_arch_lowering_pass): Use mono_decompose_op_imm ().
193 * mini.c (mono_decompose_op_imm): New helper function.
195 * mini-s390x.c (calculate_sizes): Rename this to get_call_info for consistency
196 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
199 * mini-s390x.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
200 mono_arch_output_basic_block. Fix warnings.
202 * inssel-s390x.brg: Remove the unneccesary OP_LMUL_IMM rule to fix the s390x build
205 2008-03-22 Zoltan Varga <vargaz@gmail.com>
207 * mini-exceptions.c (ves_icall_get_frame_info): Remove the ia64/s390 workarounds
208 since the extra frame is now detected automatically inside the loop.
210 * mini-s390.c (mono_arch_peephole_pass_2): Remove the arch independent peephole
211 opts which are now in mono_peephole_ins ().
213 * mini-s390.c (mono_arch_output_basic_block): Fix OP_FCALL_MEMBASE.
215 * mini-exceptions.c (ves_icall_get_frame_info): Skip native-to-managed wrapper
216 frames and skip duplicate managed-to-native frames. Fixes #367665.
218 * mini-x86.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
219 opts which are now in mono_peephole_ins ().
220 (mono_arch_peephole_pass_2): Ditto.
222 * mini-codegen.c (mono_peephole_ins): Fix a problem on 32 bit platforms.
224 * mini-codegen.c (mono_peephole_ins): New helper function containing the
225 arch independent peephole optimizations.
227 * mini-amd64.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
228 opts which are now in mono_peephole_ins ().
230 * mini-amd64.c (mono_arch_peephole_pass_2): Ditto.
232 * mini-s390.c (mono_arch_output_basic_block): Fix build.
234 * tramp-s390.c (mono_arch_get_vcall_slot): Handle an additional instruction
237 * mini-s390.c (mono_arch_output_basic_block): Handle big offsets in the
238 CALL_MEMBASE opcodes. Fix setting of the destination in the OP_LCONV_TO_OVF_I
241 2008-03-21 Zoltan Varga <vargaz@gmail.com>
243 * mini-s390.c (calculate_sizes): Rename this to get_call_info for consistency
244 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
247 * mini-s390.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
248 mono_arch_output_basic_block. Fix warnings.
250 2008-03-20 Zoltan Varga <vargaz@gmail.com>
252 * inssel-long32.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
255 2008-03-20 Zoltan Varga <vargaz@gmail.com>
257 * inssel-long.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
260 * iltests.il: Add new tests.
262 2008-03-20 Kornél Pál <kornelpal@gmail.com>
264 * mini.c: Removed Windows version macros.
266 2008-03-20 Mark Probst <mark.probst@gmail.com>
268 * generic-sharing.c: Put reflection types in the extensible part
269 of the runtime generic context.
271 * mini.c: Generic sharing of the GetTypeHandle special case of the
274 2008-03-20 Zoltan Varga <vargaz@gmail.com>
276 * mini.h (MONO_BB_FOR_EACH_INS_SAFE): New helper macro.
278 * mini-<ARCH>.c: Use the new macro instead in the peephole/lowering passes.
280 * mini.h (MONO_DEL_INS): Rename to MONO_DELETE_INS and Add a 'bb' argument for
281 consistency with the other version on the linear IR branch.
283 * mini-<ARCH>.c: Update callers of MONO_DEL_INS.
285 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i/conv.ovf.u.
287 * iltests.il.in: Add new tests.
289 2008-03-19 Zoltan Varga <vargaz@gmail.com>
291 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i.un/conv.ovf.u.un.
293 * iltests.il.in: Add new tests.
295 2008-03-19 Mark Probst <mark.probst@gmail.com>
297 * mini.c: Two variables with the same name were declared in
298 nesting contexts and one wasn't initialized. Fixed.
300 2008-03-19 Mark Probst <mark.probst@gmail.com>
302 * mini.c: Generic sharing of the initobj instruction.
304 Tue Mar 18 20:18:02 CET 2008 Paolo Molaro <lupus@ximian.com>
306 * mini.c: make the test to optimize ldtoken from typeof() more
309 2008-03-18 Mark Probst <mark.probst@gmail.com>
311 * mini.c: Generic sharing of the initobj instruction for reference
314 Tue Mar 18 12:39:27 CET 2008 Paolo Molaro <lupus@ximian.com>
316 * mini.h, mini-amd64.c, mini-x86.c, tramp-amd64.c, tramp-x86.c: change
317 the mono_breakpoint_clean_code() code to perform bound checks.
319 Tue Mar 18 11:50:14 CET 2008 Paolo Molaro <lupus@ximian.com>
321 * mini.h, mini-trampolines.c, tramp-*.c: change the signature of
322 mono_arch_patch_callsite() to include the start of the managed method
323 to be able to perform bound checks.
325 2008-03-17 Mark Probst <mark.probst@gmail.com>
327 * mini.c: Generic sharing for the isinst instruction.
329 2008-03-17 Mark Probst <mark.probst@gmail.com>
331 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
332 inssel-long32-mips.brg: Added opcodes for doing indirect calls
333 with the runtime generic context argument.
335 * mini.c: Share calls to several types of unsharable methods by
336 putting the address of the method code in the runtime generic
337 context and doing an indirect call.
339 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
342 2008-03-16 Mark Probst <mark.probst@gmail.com>
344 * generic-sharing.c: Change due to a change in the runtime genric
347 2008-03-15 Martin Baulig <martin@ximian.com>
350 (mono_arch_nullify_class_init_trampoline): Add call to
351 mono_breakpoint_clean_code() to make things work when running
355 (mono_arch_nullify_class_init_trampoline): Add call to
356 mono_breakpoint_clean_code() to make things work when running
359 2008-03-14 Zoltan Varga <vargaz@gmail.com>
361 * inssel-long.brg (reg): Fix 64 bit build.
363 2008-03-14 Mark Probst <mark.probst@gmail.com>
365 * mini.c, mini.h: Share static generic code by passing it an
366 implicit argument pointing to the runtime generic context.
368 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
369 inssel-long32-mips.brg: New opcodes for calling shared static,
370 which need to be passed the runtime generic context.
372 * mini-amd64.c, mini-x86.c: Save the runtime generic context
373 argument on the stack in the prologue if needed. New function for
374 finding the runtime generic context argument from the registers
375 saved by the trampoline.
377 * mini-amd64.h, mini-x86.h: Specify which register to use for the
378 runtime generic context argument.
380 * tramp-amd64.c: Also restore the register used for the runtime
381 generic context argument.
383 * mini-trampoline.c: Resolve shared static calls by consulting the
384 runtime generic context via the new argument.
386 * generic-sharing.c: Add an argument to sharability-checking
387 functions that specifies whether type variables should be treated
388 as sharable type arguments.
390 * inssel-x86.brg: Removed a superfluous, buggy rule.
392 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
395 2008-03-14 Martin Baulig <martin@ximian.com>
397 * debug-debugger.c (main_thread_handler): Call
398 mono_runtime_run_main() without sending any notifications.
400 * debug-debugger.h (MonoDebuggerInfo): Added `get_method_signature.
402 2008-03-14 Zoltan Varga <vargaz@gmail.com>
404 * mini-trampolines.c (mono_magic_trampoline): Fix build on platforms without IMT.
406 2008-03-14 Mark Probst <mark.probst@gmail.com>
408 * tramp-x86.c: Fixed register restore offsets in the trampoline
409 code for ECX and EDX.
411 2008-03-12 Geoff Norton <gnorton@novell.com>
413 * mini-arm.h: Add some #defines for locating sp, pc, r4 with
414 different ucontext_t implementations.
415 * exceptions-arm.c: Use the above defines to get exceptions working on
416 iPhone (based on a patch by Luke Howard lukeh@padl.com)
417 * mini-arm.c: Implement iPhone icache support (based on a patch by
418 Luke Howard lukeh@padl.com)
420 2008-03-12 Mark Probst <mark.probst@gmail.com>
422 * mini.c: Enable generic sharing of calls to non-static
423 non-interface non-generic non-value-type methods.
425 * mini-trampolines.c: Resolve calls from shared generic code.
427 2008-03-11 Zoltan Varga <vargaz@gmail.com>
429 * Makefile.am il2tests.il iltests.il.in: Delete il2tests, merge it into iltests.
431 * tramp-amd64.c (mono_arch_create_trampoline_code): Correctly save RBP as well.
433 Mon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>
435 * mini.c: some fixes for the AOT compiler.
437 2008-03-07 Zoltan Varga <vargaz@gmail.com>
439 * cpu-amd64.md: Add clob:1 to some float opcodes.
441 2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
443 * mini.h: Added MiniVerifierMode enumeration.
445 * mini.c: Added mini_verifier_set_mode to control
446 the usage of the new verifier.
448 * mini.c (mono_method): Integrated the new verifier.
450 * driver.c: Extended --security option with validil and
451 verifiable options to activate the new verifier.
453 2008-03-07 Zoltan Varga <vargaz@gmail.com>
455 * mini.c jit-icalls.h jit-icalls.c: Generalize the exception creation
456 optimization to ctors taking 0 or 2 arguments too.
458 * mini.c (mono_method_to_ir): Optimalize the size of the exception throwing code
461 * jit-icalls.h (mono_create_corlib_exception): New JIT icall.
463 * mini-amd64.c (mono_arch_emit_prolog): Improve the first_bb optimization a bit.
465 2008-03-06 Zoltan Varga <vargaz@gmail.com>
467 * mini.c (mono_method_to_ir): Apply one of the ldstr optimizations in the
468 non-aot case as well.
470 * cpu-amd64.md: Reduce the max size of some frequently used opcodes.
472 * aot-runtime.c (decode_patch_info): Update this after the ldfld/stfld wrapper
475 * aot-compiler.c (encode_patch): Ditto.
477 * mini.h (G_MININT32): Fix the definition of this.
479 2008-03-05 Zoltan Varga <vargaz@gmail.com>
481 * mini.h: Define G_MININT32/G_MAXINT32 if using an older glib version.
483 * cfold.c: Remove definition of G_MININT32 which is now in mini.h.
485 2008-03-04 Zoltan Varga <vargaz@gmail.com>
487 * mini-amd64.c (mono_arch_compute_omit_fp): Don't disable fp elimination for
488 methods returning vtypes in registers.
489 (mono_arch_allocate_vars): Ditto.
491 * mini-amd64.c (mono_arch_get_this_arg_reg): New arch specific helper function.
493 * tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg ().
495 * generics.cs: Add a test from the linear IR branch.
497 * mini-amd64.c (emit_load_volatile_arguments): Handle vtypes passed in regs too.
499 * mini.c (inline_method): Cache failed inline attempts.
501 2008-03-04 Mark Probst <mark.probst@gmail.com>
503 * mini.c: For shared methods of generic classes put the location
504 of "this" into the MonoGenericJitInfo.
506 * mini-x86.c, mini-amd64.c, mini.h: Added function for fetching a
507 register out of a MonoContext by register number. Add the generic
508 sharing context as an argument to mono_arch_find_this_argument().
510 * mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
511 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c: Added stub
512 for new arch function.
514 * mini-exception.c: Handle open exception clauses in shared
517 * mini-trampolines.c: Supply additional argument to
518 mono_arch_find_this_argument().
520 2008-03-04 Zoltan Varga <vargaz@gmail.com>
522 * Makefile.am (regtests): Run the bench.exe tests last.
524 2008-03-03 Zoltan Varga <vargaz@gmail.com>
526 * mini-amd64.c (mono_arch_emit_prolog): Improve the first bblock optimization
529 2008-03-02 Zoltan Varga <vargaz@gmail.com>
531 * mini.c (mono_method_to_ir): Allow callvirt on static methods for compatibility
534 * mini-amd64.c (mono_arch_emit_prolog): Fix tracing after the last change.
536 * mini-amd64.c (mono_arch_emit_prolog): Avoid saving dead arguments.
538 * mini.c (mono_method_check_inlining): Avoid disabling inlining for methods
539 whose class has no cctor.
541 * liveness.c (mono_analyze_liveness): Mark dead arguments with MONO_INST_IS_DEAD.
543 2008-03-01 Zoltan Varga <vargaz@gmail.com>
545 * mini.c (mono_method_to_ir): Report calling a static method using callvirt as
548 2008-02-29 Zoltan Varga <vargaz@gmail.com>
550 * mini-ops.h: Remove OP_SPARC_INARG_VT, add a new OP_VTARG_ADDR opcode instead
551 to be in sync with the code on the linear IR branch.
553 * mini-sparc.c inssel-sparc.brg: Use OP_VTARG_ADDR.
555 * inssel-s390.brg (OP_SETRET (freg)): Set dreg correctly.
557 2008-02-27 Zoltan Varga <vargaz@gmail.com>
559 * mini-mips.c: Use cfg->vret_addr instead of cfg->ret.
561 * mini-s390x.c: Use cfg->vret_addr instead of cfg->ret.
563 * mini-s390.c: Use cfg->vret_addr instead of cfg->ret.
565 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_VARS define.
567 * mini-<ARCH>.c (mono_arch_create_vars): Define this for all architectures.
569 * mini.c (mono_method_to_ir): Avoid invalid memory reads for methods without a
572 2007-11-14 Yoichi NAKAYAMA <nakayama@pixela.co.jp>
574 * inssel-mips.brg (OP_OUTARG_MEMBASE (CEE_LDIND_R4 (base))): Add missing
575 OP_LOADR4_MEMBASE emission.
577 * mini-codegen.c (mono_spillvar_offset_int): Remove assertion.
578 (mono_spillvar_offset_float): Ditto.
580 * mini-mips.c (mono_arch_emit_prolog): Ditto.
582 * inssel-long32-mips.brg: Fix wrong branching, reduce redundant code
585 * basic-long.cs: Add regression tests for them.
587 * mini-mips.c (add_float32_arg): Respect o32 calling convention in gr
589 (mono_arch_allocate_vars): Fix representation of single-precision float
591 (mono_arch_output_basic_block): Ditto.
593 * inssel-mips.brg: Ditto, remove duplicate items.
595 * mini-mips.c (emit_load_volatile_arguments): New function to handle
596 arguments of tail calls as on other platforms.
597 (mono_arch_output_basic_block): Handle tail calls.
599 * inssel-mips.brg (OP_OUTARG_VT (CEE_LDOBJ (base))): Correct destination
602 * objects.cs (test_5_pass_static_struct): Add test for it.
604 Contributed under MIT/X11 license.
606 2008-02-26 Zoltan Varga <vargaz@gmail.com>
608 * Makefile.am: Use gmcs for compiling the regression tests.
610 * *.2.cs *.2.il: Rename to *.cs and *.il.
612 2008-02-24 Zoltan Varga <vargaz@gmail.com>
614 * regalloc.h: Make the vassign array smaller.
616 * mini.c (mini_method_compile): Remove an unused field in cfg.
618 * mini-codegen.c: Add a bunch of micro optimizations.
620 2008-02-23 Zoltan Varga <vargaz@gmail.com>
622 * regalloc.h: Remove some unused fields.
624 2008-02-22 Zoltan Varga <vargaz@gmail.com>
626 * mini-amd64.c (mono_arch_patch_code): Fix a warning.
628 * ssa.c (mono_ssa_remove): Avoid declaring volatile variables dead.
630 2008-02-22 Mark Probst <mark.probst@gmail.com>
632 * mini.h: New trampoline type (RGCTX_LAZY_FETCH).
634 * mini-trampolines.c, tramp-amd64.c, tramp-x86.c: RGCTX lazy fetch
635 trampoline: Fetch an entry from the runtime generic context. If
636 it's NULL, jump to the actual trampoline to fill the runtime
637 generic context. Otherwise, return it.
639 * mini.c: Call the lazy fetch trampoline to get entries out of the
640 runtime generic context.
642 * tramp-ia64.c, tramp-arm.c, tramp-alpha.c, tramp-s390.c,
643 tramp-s390x.c, tramp-ppc.c, tramp-hppa.c, tramp-mips.c,
644 tramp-sparc.c: Stubs for the lazy fetch trampoline.
646 2008-02-21 Mark Probst <mark.probst@gmail.com>
648 * mini.c: Fetch data out of the extensible part of the runtime
649 generic context instead of calling a helper function.
651 * generic-sharing.c: Some functions moved into
652 metadata/generic-sharing.c. Helper function for fetching other
653 types now checks and asserts against extensible rgctx (just for
654 debugging purposes - the helper function isn't called anymore
655 unless for debugging).
657 2008-02-21 Zoltan Varga <vargaz@gmail.com>
659 * mini-arm.c (mono_arch_output_basic_block): Implement proper argument passing
660 for tail calls up to the point that the tests in iltests.exe run. Also add a
661 dummy CKFINITE implementation.
662 (mono_arch_emit_prolog): Avoid saving the method in the LMF since it is only
663 needed for trampoline LMF frames.
665 * exceptions-arm.c (mono_arch_find_jit_info): Only read lmf->method for
666 trampoline LMF frames.
668 2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
670 * mini.c (inline_method): clean any pending loader error when inlining fail.
671 Otherwise loader errors in mono_method_to_ir leaks and cause spurious errors.
673 2008-02-21 Zoltan Varga <vargaz@gmail.com>
675 * aot-compiler.c (encode_patch): Handle ICALL_ADDR patch type.
677 * aot-runtime.c (decode_patch_info): Ditto.
679 * mini.c (mono_resolve_patch_target): Ditto.
681 * aot-compiler.c (compile_method): Add some experimental code for AOT compiling
684 * patch-info.h (PATCH_INFO): Add 'ICALL_ADDR' patch type.
686 * mini.c (mono_method_to_ir): Convert a CEE_MONO_LDPTR opcode to an AOT constant
687 if it references an icall address.
689 2008-02-20 Zoltan Varga <vargaz@gmail.com>
691 * cpu-s390x.md: Remove some more unused opcodes.
693 * cpu-s390x.md: Remove some unused opcodes.
695 * mini-ia64.c (mono_arch_lowering_pass): Add some more opcodes. Use
696 mono_op_imm_to_op ().
698 * mini-sparc.c (opcode_to_sparc_cond): Use the mono_opcode_to_cond () functions
699 instead of a switch statement.
701 * mini-sparc.c (mono_arch_allocate_vars): Allocate a stack slot for use by
702 the int<->float conversion opcodes instead of using mono_spillvar_offset_float ().
704 * mini-codegen.c: Eliminate rassign macro which is no longer needed.
706 * mini-codegen.c: Remove unused mono_regstate2_... functions.
708 * mini-codegen.c (mono_print_ins_index): Avoid printing an index when it is
711 2008-02-19 Zoltan Varga <vargaz@gmail.com>
713 * driver.c (mono_main): Improve error reporting when an assembly cannot be
714 opened. Fixes #362607.
716 * cpu-ia64.md cpu-s390x.md: Remove some unused opcodes.
718 * iltests.il.in: Add a test for static methods in interfaces.
720 2008-02-18 Zoltan Varga <vargaz@gmail.com>
722 * genmdesc.c (build_table): Fix a crash on older glib versions.
724 * cpu-sparc.md: Remove some unused opcodes.
726 * genmdesc.c: Error out if the .md contains CEE_ opcodes if
727 MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.
729 * cpu-amd64.md: Remove some unused opcodes.
731 * mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
732 like the other opcodes.
734 2008-02-17 Zoltan Varga <vargaz@gmail.com>
736 * mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.
738 * mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.
740 * mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
741 variables 'cfg' instead of 'm' for consistency.
743 * mini-x86.c: Use cfg->vret_addr instead of cfg->ret.
745 * mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
746 argument holding the vtype return address, to avoid the ambigious use of
747 cfg->ret for this purpose.
749 * mini.c (NEW_RETLOADA): Use vret_addr if set.
751 * mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.
753 * mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
754 new mono_print_ins () function which only takes one argument.
756 2008-02-15 Zoltan Varga <vargaz@gmail.com>
758 * mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
761 2008-02-14 Zoltan Varga <vargaz@gmail.com>
763 * mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.
765 * mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.
767 * mini-x86.c: Sync with the version on the linear IR branch by adding new
768 opcodes and other small changes.
770 * mini-ops.h: Add some new opcodes from the linear IR branch.
772 * mini-ops.h: Get rid of the OP_X86_..._MEMBASE opcodes.
774 * mini-x86.c inssel-x86.brg cpu-x86.md: Get rid of the confusing _MEMBASE
775 opcodes, use the REG_MEMBASE opcodes instead.
777 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Get rid of the confusing _MEMBASE
778 opcodes, use the REG_MEMBASE opcodes instead.
780 * mini-amd64.c (mono_arch_output_basic_block): Sync with the version on the
783 * mini.c (mono_op_imm_to_op): New helper function.
785 * mini-ops.h: Add some opcodes from linear IR branch.
787 2008-02-13 Zoltan Varga <vargaz@gmail.com>
789 * mini-alpha.h mini-alpha.c tramp-alpha.c: Alpha port updates from Sergey Tikhonov
792 2008-02-12 Zoltan Varga <vargaz@gmail.com>
794 * mini.c (mono_normalize_opcodes): Always convert CEE_CONV_R4/R8 to
797 * mini-ia64.c cpu-ia64.md: Add OP_ICONV_TO_R4/R8.
799 2008-02-09 Zoltan Varga <vargaz@gmail.com>
801 * aot-compiler.c (emit_method_code): Add an assert.
803 * mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
804 the IMT code so it is AOT friendly. Enable AOT for methods which call interface
807 2008-02-08 Zoltan Varga <vargaz@gmail.com>
809 * mini-arm.c (mono_arch_output_basic_block): Fix the ordering of arguments for
810 some load/store opcodes so they are consistent.
811 (mono_arch_emit_prolog): Simplify some code.
813 * aot-runtime.c (mono_aot_get_plt_entry): Fix a warning.
815 * objects.cs: Add tests for large argument offsets on ARM.
817 * mini-arm.c (mono_arch_emit_prolog): Fix handling of arguments with large
818 stack offsets. Fixes #359651.
820 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R4/R8 properly.
822 * cpu-s390x.md: Add OP_LCONV_TO_R4/R8.
824 * cpu-ia64.md mini-ia64.h mini-ia64.c: Get rid of CEE_ opcodes.
826 * mini-ops.h: Add OP_ICONV_TO_R_UN opcode.
828 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R_UN too.
830 * cpu-s390x.md cpu-s390.md mini-s390x.c mini-arm.c cpu-arm.md mini-s390.c: Get
831 rid of CEE_CONV_R_UN.
833 * mini-s390x.c mini-s390x.h cpu-s390x.md inssel-s390x.brg: Get rid of CEE_ opcodes.
835 2008-02-07 Zoltan Varga <vargaz@gmail.com>
837 * mini-s390.c mini-s390.h cpu-s390.md: Get rid of CEE_ opcodes.
839 * mini.c (mono_normalize_opcodes): Add some more opcodes.
841 * mini-arm.c mini-arm.h cpu-arm.md: Get rid of CEE_ opcodes.
843 * cpu-amd64.md: Remove some unused opcodes.
845 * mini-sparc.c mini-sparc.h cpu-sparc.md: Get rid of CEE_ opcodes.
847 * mini-x86.c mini-x86.h cpu-x86.md: Get rid of CEE_ opcodes.
849 * mini.c mini-<ARCH>.c: Remove mono_arch_local_regalloc (), instead make
850 arch specific functions for its parts. Call the peephole pass after local
851 regalloc so the prolog can compute a more accurate max_offset.
853 * mini.c (mono_normalize_opcodes): New mini pass to convert CEE_ opcodes to
854 the corresponding OP_I/OP_L opcodes.
856 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of CEE_ opcodes.
858 * mini-sparc.c (mono_arch_output_basic_block): Fix the sparc build.
860 2008-02-06 Zoltan Varga <vargaz@gmail.com>
862 * mini-s390.c (mono_arch_get_inst_for_method): Remove the Interlocked cases
863 as they are handled in mini.c.
865 * mini-s390x.c (mono_arch_get_inst_for_method): Ditto.
867 * mini-<ARCH>.c (mono_arch_get_inst_for_method): Remove the MemoryBarrier
868 case since it is handled in mini.c.
870 * cpu-sparc.md (sparc_setfreg_float): Fix the sparc build.
872 * mini-ops.h: Add new opcodes OP_CALL/OP_CALLVIRT.
874 * *.c: Use the new opcodes in the IR and back end code.
876 * mini-ops.h cpu-<ARCH>.md: Correct the name of the bgt_un opcodes.
878 * mini-amd64.c (emit_call_body): Use a far-call for calling dynamic methods.
880 2008-02-06 Mark Probst <mark.probst@gmail.com>
882 * mini-trampolines.c (mono_generic_class_init_trampoline): Removed
883 an assert because it has a race condition.
885 2008-02-06 Zoltan Varga <vargaz@gmail.com>
887 * tramp-amd64.c (mono_arch_patch_callsite): Add more diagnostics.
889 * inssel.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused CEE_RET opcode.
891 * mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused LDIND/STIND opcodes.
893 * *.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of OP_SETREG/OP_SETFREG/OP_SETREGIMM,
894 use OP_MOVE/OP_FMOVE/OP_ICONST instead.
896 2008-02-05 Zoltan Varga <vargaz@gmail.com>
898 * cpu-amd64.md (move): Correct the maximum size of move.
900 2008-02-05 Mark Probst <mark.probst@gmail.com>
902 * tramp-amd64.c, tramp-x86.c, mini-trampolines.c: Added a check in
903 the generic class init trampoline to return quickly if the class
906 2008-02-04 Zoltan Varga <vargaz@gmail.com>
908 * tramp-amd64.c (mono_arch_patch_callsite): Add some diagnostics to help debug
909 issues where an 32 bit callsite cannot be patched by a 64 bit address.
911 2008-02-03 Zoltan Varga <vargaz@gmail.com>
913 * generics.2.cs generics-variant-types.2.il: Merge some tests from the linear IR
916 2008-01-31 Zoltan Varga <vargaz@gmail.com>
918 * objects.cs: Add some soft-float tests.
920 * mini.c: Fix a couple more soft-float issues.
922 * helpers.c (mono_disassemble_code): Fix disassembly on ARM.
924 * mini-amd64.c (peephole_pass): Use IXOR instead of LXOR for zeroing a register to
927 2008-01-30 Zoltan Varga <vargaz@gmail.com>
929 * exceptions-x86.c (mono_arch_find_jit_info): Fix stack unwinding when an
930 exception happens while compiling a virtual method.
932 2008-01-29 Zoltan Varga <vargaz@gmail.com>
934 * mini-sparc.c (mono_arch_emit_epilog): Fix folding of negative return values.
936 * mini-sparc.c: Fix build.
938 * mini-sparc.c (get_call_info): Add support for generic sharing.
940 * mini-exceptions.c: Add a FIXME.
942 2008-01-27 Zoltan Varga <vargaz@gmail.com>
944 * mini-exceptions.c (mono_handle_exception_internal): Remove the old style
945 altstack handling code.
947 * mini-s390.c (mono_arch_emit_exceptions): Really fix a warning.
949 * mini-s390.c (mono_arch_emit_exceptions): Fix a warning.
951 * mini-s390.c: Add support for generic sharing.
953 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
955 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
957 * mini-s390x.c (mono_arch_emit_exceptions): Fix a warning.
959 * mini-s390x.c: Add support for generic sharing.
961 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
963 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
965 * mini-s390x.c: Use is_imm16 instead of is_uimm16 when checking whenever s390_aghi
966 can be used since it takes a 16 bit signed immediate.
968 * inssel-s390x.brg: Fix OP_SETRET.
970 * mini-s390x.c (mono_arch_output_basic_block): Fix OP_BREAK.
972 * mini-codegen.c (mono_opcode_to_cond): Fix a warning.
974 * mini-s390x.c cpu-s390x.md: Implement sext.i4 properly by sign extension.
976 * mini.c (mono_create_delegate_trampoline): Don't use mono_create_ftpntr here.
978 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_addr_from_ftnptr
981 * mini-ia64.h mini-ia64.c: Add minimal support for the delegate trampoline
984 * mini.h inssel-x86.brg inssel-amd64.brg tramp-alpha.c tramp-ia64.c: Get rid
985 of the unused mono_arch_patch_delegate_trampoline stuff.
987 2008-01-26 Zoltan Varga <vargaz@gmail.com>
989 * basic-long.cs: Move the fp related tests to basic-float.cs.
991 * mini-ops.h (OP_OUTARG_FREG_R4): New opcode.
993 * mini-ia64.c inssel-ia64.brg: Implement proper R4 argument passing.
995 * basic-calls.cs: Add a test for proper float argument passing.
997 * mini-ia64.h (mono_ia64_context_get_ip): Do not substract 1 from the ip
998 if the context corresponds to an exception received through a signal.
1000 * exceptions.cs: Add a test for nullref handling at the start of a try
1003 * mini-ia64.c (mono_arch_call_opcode): Fix ia64 argument passing.
1005 * jit-icalls.c (mono_break): New JIT icall.
1007 * mini-<ARCH>.c: Use mono_break instead of mono_arch_break.
1009 * mini-arm.c (arm_patch): Add support for patching the blx calling sequence.
1011 2008-01-25 Zoltan Varga <vargaz@gmail.com>
1013 * cpu-*.md: Get rid of unused opcodes.
1015 * cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.
1017 * Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
1020 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
1023 * mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
1024 the arch independent trampoline code in mini-trampolines.c.
1026 * aot-runtime.c (mono_aot_init_vtable): Fix a warning.
1028 * mini.c (get_runtime_generic_context_ptr): Fix a warning.
1030 * mini-s390.h: Remove an unused define.
1032 * mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
1033 the arch independent trampoline code in mini-trampolines.c.
1035 * mini-arm.c (mono_arch_emit_prolog): Fix build.
1037 2008-01-24 Zoltan Varga <vargaz@gmail.com>
1039 * mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.
1041 * mini-s390.c (mono_arch_emit_prolog): Fix build.
1043 * mini-s390x.c (mono_arch_emit_prolog): Fix build.
1045 * mini-ppc.c (mono_arch_emit_prolog): Fix build.
1047 * cpu-amd64.md: Use smaller sizes for int opcodes.
1049 * *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.
1051 * *.cs: Add some tests from the linear-ir branch. Move structs tests to
1054 * driver.c (mono_main): Add a --break-at-bb command line argument for JIT
1057 * mini.h *.c: Change cfg->vars to contain the MonoMethodVar entries directly
1058 instead of though a pointer to save an indirection when accessing elements of
1061 * mini.h (MONO_IS_COND_BRANCH_OP): Move these macros here from mini.c. Fix
1063 (NOT_IMPLEMENTED): New helper macro.
1064 (MONO_BB_FOR_EACH_INS): New helper macro to iterate through the instructions
1067 * *.c: Use the new helper macro.
1069 2008-01-21 Zoltan Varga <vargaz@gmail.com>
1071 * mini-x86.h (MONO_ARCH_AOT_SUPPORTED): Disable AOT for apple x86.
1073 2008-01-20 Zoltan Varga <vargaz@gmail.com>
1075 * mini-amd64.c (mono_arch_emit_prolog): Optimize the omit fp case to save two
1078 2008-01-18 Zoltan Varga <vargaz@gmail.com>
1080 * mini-amd64.c (mono_arch_emit_prolog): Disable the new optimization if
1081 profiling is enabled.
1083 * mini-amd64.c (mono_arch_call_opcode): Emit the save_sp_to_lmf instruction at
1085 (mono_arch_emit_prolog): Add more first bblock optimizations.
1087 * mini-amd64.c (mono_arch_call_opcode): Keep assignments to the arg registers
1088 in order if possible.
1089 (mono_arch_emit_prolog): Optimize assignments to arg registers in the first
1090 bblock, since the arguments are still in their original registers.
1092 * mini.c (type_from_op): Calling add.ovf on floats is not valid IL code.
1094 2008-01-17 Zoltan Varga <vargaz@gmail.com>
1096 * mini.c (mono_method_to_ir): Use the no-spilling optimization for CEE_CALLI
1099 * mini-amd64.c (mono_arch_emit_prolog): Save an instruction if the LMF is at
1102 * mini-amd64.h (MONO_ARCH_HAVE_NOTIFY_PENDING_EXC): Turn on this for amd64.
1104 * exceptions-amd64.c (mono_arch_notify_pending_exc): New function to
1105 process async exceptions received while in unmanaged code.
1107 * mini.c (mini_init): Install a callback with the runtime which will be called
1108 when a thread receives an async exception while in unmanaged code.
1110 * mini.c driver.c: Update after mono_get_native_wrapper () signature change.
1112 * mini-s390x.c (mono_arch_output_basic_block): Fix s390x build.
1114 2008-01-16 Wade Berrier <wberrier@novell.com>
1121 2008-01-16 Zoltan Varga <vargaz@gmail.com>
1123 * mini-x86.c (mono_arch_output_basic_block): Remove some gccism which prevents
1124 compilation with sun cc.
1126 * cpu-*.md: Fix the build.
1128 * cpu-x86.md: Fix the length of some load membase opcodes. Fixes #354241.
1130 * mini-amd64.h: Add some comments to the MonoLMF structure.
1132 * mini-ops.h cpu-amd64.c: Add a OP_AMD64_SAVE_SP_TO_LMF opcode.
1134 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Avoid setting the rip field
1135 in the LMF structure if possible. This saves two instructions in the
1136 managed->native wrappers.
1138 * mini-ops.h *.md: Make some opcodes names uniform by removing the op_ prefix.
1140 2008-01-16 Mark Probst <mark.probst@gmail.com>
1142 * generic-sharing.c: New type argument lookup code which uses the
1143 runtime generic context template.
1145 2008-01-15 Zoltan Varga <vargaz@gmail.com>
1147 * mini.c (mono_method_to_ir): Avoid emitting a write barrier when storing NULL.
1149 * mini-arm.c (add_general): Fix arm eabi parameter passing.
1150 (mono_arch_output_basic_block): Fix localloc implementation.
1152 * mini-amd64.c (peephole_pass): Sync store+load optimizations with the x86 version.
1154 * mini-ia64.c (peephole_pass): Fix ia64 build.
1156 * mini-amd64.c (peephole_pass): Fix a warning.
1158 * mini-amd64.c (mono_arch_allocate_vars): Make sure the LMF is always stored
1159 at a constant offset from sp/fp.
1161 * exceptions-amd64.c (mono_arch_find_jit_info): Compute the LMF address from fp/sp
1162 instead of obtaining it from *lmf in the managed method case.
1164 2008-01-14 Zoltan Varga <vargaz@gmail.com>
1166 * exceptions-amd64.c (mono_arch_find_jit_info): Remove some duplicate code.
1168 Mon Jan 14 12:33:06 CET 2008 David S. Miller <davem@davemloft.net>
1170 * mini.h (MonoInstList): New type.
1171 (MONO_INST_LIST_INIT, MONO_INST_LIST_EMPTY,
1172 __MONO_INST_LIST_ADD, MONO_INST_LIST_ADD,
1173 MONO_INST_LIST_ADD_TAIL, __MONO_INST_LIST_DEL,
1174 __MONO_INST_LIST_SPLICE, MONO_INST_LIST_SPLICE,
1175 MONO_INST_LIST_SPLICE_TAIL, MONO_INST_LIST_SPLICE_INIST,
1176 MONO_INST_LIST_SPLICE_TAIL_INIT, mono_container_of,
1177 MONO_INST_LIST_ENTRY, MONO_INST_LIST_FIRST_ENTRY,
1178 MONO_INST_LIST_LAST_ENTRY, MONO_INST_LIST_FOR_EACH,
1179 MONO_INST_LIST_FOR_EACH_PREV, MONO_INST_LIST_FOR_EACH_SAFE,
1180 MONO_INST_LIST_FOR_EACH_PREV_SAFE,
1181 MONO_INST_LIST_FOR_EACH_ENTRY,
1182 MONO_INST_LIST_FOR_EACH_ENTRY_REVERSE,
1183 MONO_INST_LIST_FOR_EACH_ENTRY_SAFE,
1184 mono_inst_list_first, mono_inst_list_last,
1185 mono_inst_list_next, mono_inst_list_prev): New instruction
1186 list handling interfaces.
1187 (MonoBasicBlock): Remove 'last_ins' and 'code', replace with
1188 list head 'ins_list'.
1189 (MonoInst): Replace next pointer with list head 'node'.
1190 (MonoCallInst): Make 'out_args' a MonoInstList.
1191 (MONO_INST_NEW_CALL): Explicitly init ->out_args.
1192 (MonoCompile): Delete reverse_inst_list and
1193 reverse_inst_list_len.
1194 * mini-hppa.c (mono_arch_call_opcode, NEW_INS,
1195 mono_arch_lowering_pass, mono_arch_local_regalloc,
1196 mono_arch_output_basic_block, mono_arch_emit_prolog):
1197 Convert to new instruction lists.
1198 (insert_after_ins): Delete.
1199 * inssel.brg (MONO_EMIT_NEW_BRANCH_BLOCK): Convert to new
1201 * mini-hppa.h (MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Likewise.
1202 * mini.c (NEW_BBLOCK, ADD_BBLOCK, CHECK_BBLOCK,
1203 split_bblock, mono_add_ins_to_end, mono_emit_call_args,
1204 mono_emulate_opcode, mono_emit_load_got_addr,
1205 inline_method, mono_method_to_ir, mono_print_bb_code,
1206 print_dfn, decompose_pass, nullify_basic_block,
1207 replace_out_block_in_code, remove_block_if_useless,
1208 merge_basic_blocks, move_basic_block_to_end,
1209 try_unsigned_compare, optimize_branches, mono_print_code,
1210 mini_select_instructions, remove_critical_edges): Likewise.
1211 * mini-amd64.c (emit_sig_cookie, mono_arch_call_opcode,
1212 peephole_pass_1, peephole_pass, mono_arch_lowering_pass,
1213 mono_arch_output_basic_block, mono_arch_emit_prolog):
1215 * mini-mips.c (mono_arch_call_opcode, peephole_pass,
1216 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
1217 mono_arch_output_basic_block): Likewise.
1218 (inst_list_prepend, insert_after_ins): Delete.
1219 * mini-mips.h (MONO_EMIT_NEW_BRANCH_NONZERO_LABEL,
1220 MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Convert to new
1222 * mini-x86.c (emit_sig_cookie, mono_arch_call_opcode,
1223 peephole_pass_1, peephole_pass, mono_arch_output_basic_block,
1224 mono_arch_emit_prolog): Likewise.
1225 * cfold.c (mono_constant_fold): Likewise.
1226 * liveness.c (visit_bb, mono_analyze_liveness,
1227 optimize_initlocals): Likewise.
1228 * ssapre.c (dump_code, process_bb, code_motion): Likewise.
1229 * graph.c (mono_draw_code_cfg): Likewise.
1230 * ssa.c (mono_ssa_rename_vars, mono_ssa_compute,
1231 mono_ssa_remove, mono_ssa_avoid_copies, mono_ssa_create_def_use,
1232 mono_ssa_cprop): Likewise.
1233 * abcremoval (get_relations_from_previous_bb, process_block):
1235 * local-propagation (mono_cprop_invalidate_values,
1236 mono_local_cprop_bb): Likewise.
1237 * mini-s390x.c (mono_arch_call_opcode, emit_sig_cookie,
1238 peephole_pass, mono_arch_output_basic_block,
1239 mono_arch_emit_prolog): Likewise.
1240 * mini-arm.c (mono_arch_call_opcode, peephole_pass,
1241 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
1242 mono_arch_emit_prolog): Likewise.
1243 (insert_after_ins): Delete.
1244 * aliasing.c (print_code_with_aliasing_information,
1245 mono_build_aliasing_information, mono_aliasing_deadce):
1246 Convert to new instruction lists.
1247 * mini-ia64.c (emit_sig_cookie, mono_arch_call_opcode,
1248 peephole_pass, NEW_INS, mono_arch_lowering_pass,
1249 mono_arch_local_regalloc, mono_arch_output_basic_block):
1251 (insert_after_ins): Delete.
1252 * mini-sparc.c (emit_sig_cookie, mono_arch_call_opcode,
1253 peephole_pass, mono_arch_output_basic_block): Convert to
1254 new instruction lists.
1255 * mini-codegen (InstList, inst_list_prepend,
1256 insert_after_ins): Delete.
1257 (insert_before_ins, get_register_force_spilling,
1258 get_register_spilling, free_up_ireg, free_up_reg,
1259 create_copy_ins, create_spilled_store, alloc_int_reg,
1260 alloc_float_reg, alloc_reg, mono_local_regalloc): Convert
1261 to new instruction lists.
1262 * mini-ppc.c (mono_arch_call_opcode, peephole_pass,
1263 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
1264 mono_arch_output_basic_block, mono_arch_emit_prolog): Likewise.
1265 (insert_after_ins): Delete.
1266 * mini-alpha.c (NEW_INS, peephole_pass, mono_arch_lowering_pass,
1267 mono_arch_local_regalloc, mono_arch_output_basic_block,
1268 mono_arch_call_opcode): Convert to new instruction lists.
1269 (insert_after_ins): Delete.
1270 * mini-s390.c (mono_arch_call_opcode, emit_sig_cookie,
1271 peephole_pass, mono_arch_output_basic_block,
1272 mono_arch_emit_prolog): Convert to new instruction lists.
1274 2008-01-11 Zoltan Varga <vargaz@gmail.com>
1276 * mini-amd64.c (mono_arch_output_basic_block): Use a 4 byte load in OP_CHECK_THIS.
1278 * mini-sparc.c (mono_arch_output_basic_block): Use a byte load in CHECK_THIS.
1281 * Makefile.am (version.h): Make this work with non-bash shells.
1283 2008-01-10 Zoltan Varga <vargaz@gmail.com>
1285 * mini.c (handle_delegate_ctor): Optimize away setting of NULL target.
1287 2008-01-08 Zoltan Varga <vargaz@gmail.com>
1289 * mini.c (mono_method_to_ir): Fix possible reading of invalid memory in
1290 the InitializeArray optimization.
1292 2008-01-06 Zoltan Varga <vargaz@gmail.com>
1294 * mini.c driver.c: Don't include os/gc_wrapper.h.
1296 2008-01-05 Zoltan Varga <vargaz@gmail.com>
1298 * mini.c (print_jit_stats): Print GC statistics if available.
1300 2008-01-04 Zoltan Varga <vargaz@gmail.com>
1302 * mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.
1304 2007-12-29 Zoltan Varga <vargaz@gmail.com>
1306 * mini-ppc.c (mono_arch_get_delegate_invoke_impl): Fix flushing of icache.
1308 2007-12-26 Zoltan Varga <vargaz@gmail.com>
1310 * mini.c (mini_init): Move the setting of GC_stackbottom to mono_gc_base_init ().
1312 * mini.c (mini_init): Call mono_gc_base_init () instead of MONO_GC_PRE_INIT ().
1314 * driver.c (mono_main): Ditto.
1316 2007-12-23 Zoltan Varga <vargaz@gmail.com>
1318 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_delegate_invoke ().
1320 * aot-compiler.c (emit_klass_info): Avoid emitting info if one of the methods
1321 in the vtable can't be encoded.
1322 (compile_method): Ditto.
1324 2007-12-21 Zoltan Varga <vargaz@gmail.com>
1326 * mini.c (setup_jit_tls_data): Use the MONO_ARCH_INIT_TOP_LMF_ENTRY macro if
1329 * mini-amd64.h mini-amd64.c exceptions-amd64.c tramp-amd64.c: Rename lmf->ebp to
1332 * exceptions-amd64.c (mono_arch_find_jit_info): Fix the detection of whenever
1333 the top LMF entry belongs to the current method.
1335 * mini.c: Update after renaming of mono_thread_get_pending_exception ().
1337 2007-12-20 Zoltan Varga <vargaz@gmail.com>
1339 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix a warning.
1341 * tramp-ia64.c (mono_arch_create_trampoline_code): Ditto.
1343 * tramp-sparc.c (mono_arch_create_trampoline_code): Check for thread interruption.
1345 * tramp-amd64.c (mono_arch_create_trampoline_code): Ditto.
1347 * tramp-x86.c (mono_arch_create_trampoline_code): Check for thread interruption.
1349 * cpu-amd64.md mini-amd64.h mini-amd64.c inssel-amd64.brg: Add ulong->double
1352 * basic-float.cs: Add an ulong->double cast test.
1354 2007-12-15 Zoltan Varga <vargaz@gmail.com>
1356 * mini.c (mono_method_to_ir): Fix a warning.
1358 2007-12-14 Zoltan Varga <vargaz@gmail.com>
1360 * mini-ops.h: Add OP_SWITCH.
1362 * mini.c graph.c ssa.c aliasing.c mini-<ARCH>.c inssel-<ARCH>.brg: Avoid using
1363 CEE_SWITCH in back-end code, use OP_SWITCH instead.
1365 2007-12-11 Geoff Norton <gnorton@novell.com>
1367 * mini-s390x.c: Minor change to the MAX() define to allow
1368 it to compile with other gcc versions.
1370 2007-12-11 Geoff Norton <gnorton@novell.com>
1373 * mini-s390x.c: Implement sext_i4 to fix the build on s390x
1375 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
1377 exceptions-arm.c (mono_arch_get_restore_context): Restore
1380 exceptions-arm.c (throw_exception): Save the frame pointer.
1381 This is a partial fix for #323747. Only the client side is
1384 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
1386 * mini.c (mono_method_to_ir): Verbose message in CEE_NEWOBJ
1387 was using an unrelated variable to log the class which
1388 needed the cctor to be called. This was crashing on arm.
1390 2007-12-09 Robert Jordan <robertj@gmx.net>
1392 * mini-x86.c (mono_arch_emit_epilog):
1393 Consider all kinds of 64-bit types. Fixes #323114.
1395 2007-12-08 Zoltan Varga <vargaz@gmail.com>
1397 * tramp-amd64.c (mono_arch_create_trampoline_code): Clean up the code a bit.
1399 2007-12-07 Zoltan Varga <vargaz@gmail.com>
1401 * mini-amd64.c (peephole_pass): Add a missing instruction check.
1403 Fri Dec 7 22:08:23 CET 2007 Paolo Molaro <lupus@ximian.com>
1405 * mini.c: run type ctor before allocating an object, not only
1406 when running it's constructor method (fixes at least part of bug #342507).
1408 2007-12-07 Zoltan Varga <vargaz@gmail.com>
1410 * mini-trampolines.c (mono_delegate_trampoline): Fix a warning.
1412 * mini-trampolines.c (mono_generic_class_init_trampoline): Remove a debug printf.
1413 * mini.h mini-amd64.c mini-x86.c: Get rid of the mono_arch_find_vtable ()
1416 * tramp-x86.c tramp-amd64.c mini-trampolines.c: Pass the vtable argument to
1417 mono_generic_class_init_trampoline () the same as it is done with the other
1420 * mini-arm.h mini-arm.c tramp-arm.c inssel-arm.brg cpu-arm.md
1421 aot-runtime.c aot-compiler.c: Implement AOT support.
1423 2007-12-07 Mark Probst <mark.probst@gmail.com>
1425 * mini-trampolines.c (mono_generic_class_init_trampoline): Fixed
1426 build for archs which don't have the vtable trampoline defined
1429 2007-12-07 Zoltan Varga <vargaz@gmail.com>
1431 * tramp-x86.c (mono_arch_create_trampoline_code): Fix the build.
1433 * tramp-ppc.c (mono_arch_create_trampoline_code): Use the new helper function.
1435 * mini-trampolines.c (mono_get_trampoline_func): New helper function.
1437 * tramp-<ARCH>.c: Use the new helper function.
1439 2007-12-07 Mark Probst <mark.probst@gmail.com>
1441 * inssel.brg: Added a pattern for the OP_TRAMPCALL_VTABLE
1442 trampoline call, which takes a vtable argument.
1444 * graph.c, mini-ops.h, local-propagation.c, aliasing.c: Treat
1445 OP_TRAMPCALL_VTABLEs like other calls.
1447 * mini-amd64.c, mini-amd64.h, mini-x86.c, mini-x86.h: Designated a
1448 register to hold the vtable argument to the OP_TRAMPCALL_VTABLE
1449 call. Implemented a support function which fetches the vtable
1450 from a register set.
1452 * mini.c, mini.h, tramp-amd64.c, tramp-x86.c, mini-trampolines.c:
1453 Implemented a generic class init trampoline, using the
1454 OP_TRAMPCALL_VTABLE opcode.
1456 * mini.c: Implemented static field access when sharing generic
1457 code. This implies initing the class using the new
1458 OP_TRAMPCALL_VTABLE call.
1460 2007-12-07 Mark Probst <mark.probst@gmail.com>
1462 * mini.c: Don't compile methods with sharing enabled if their
1463 classes are disabled for sharing.
1465 2007-12-06 Zoltan Varga <vargaz@gmail.com>
1467 * inssel.brg: Add a missing sign extension to the GETCHR and array access
1468 opcodes. Fixes #346563.
1470 * objects.cs: Add a new test.
1472 * aot-compiler.c (emit_method_code): Put back an #ifdef which is needed.
1474 * mini-<ARCH>.h mini.c aot-compiler.c aot-runtime.c: Get rid of the
1475 HAVE_PIC_AOT define and use AOT_SUPPORTED instead.
1477 2007-12-06 Zoltan Varga <vargaz@gmail.com>
1479 * mini-arm.h mini-arm.c: Add support for the common vtable trampoline.
1481 2007-12-03 Zoltan Varga <vargaz@gmail.com>
1483 * mini-arm.c (mono_arch_emit_exceptions): Avoid uninitialized memory in the
1486 2007-12-02 Zoltan Varga <vargaz@gmail.com>
1488 * patch-info.h (PATCH_INFO): Add DELEGATE_TRAMPOLINE.
1490 * mini.c aot-compiler.c aot-runtime.c: Implement the delegate creation
1491 optimization in the AOT case.
1493 2007-11-30 Zoltan Varga <vargaz@gmail.com>
1495 * aot-runtime (mono_aot_get_method_from_vt_slot): Add support for multi-byte method ref encodings.
1497 * aot-runtime.c (decode_klass_ref): Implement decoding of generic instances.
1499 * aot-compiler.c (encode_klass_ref): Implement proper encoding of generic instances.
1501 * mini.c (mono_method_to_ir): Optimize the common ldftn+create delegate combination.
1503 * mini-trampolines.c (mono_delegate_trampoline): Add some code to handle the case when the delegate
1504 is created by the inlined delegate ctor.
1506 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
1508 * mini.c (mono_jit_compile_method_inner): Replace calls to delegate invoke with the trampoline here too.
1510 2007-11-29 Zoltan Varga <vargaz@gmail.com>
1512 * cpu-x86.md: Fix the length of ckfinite.
1514 2007-11-28 Zoltan Varga <vargaz@gmail.com>
1516 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
1518 * mini-x86.c (mono_arch_output_basic_block): Clean up the fp stack properly in CKFINITE.
1519 (mono_arch_output_basic_block): Get rid of unused last_ins and last_offset.
1521 * mini-x86.c (mono_arch_output_basic_block): Add some micro optimizations.
1523 * mini-x86.c inssel-x86.brg cpu-x86.md: Move the implementation of the
1524 OP_START_HANDLER/OP_ENDFINALLY/OP_ENDFILTER opcodes to mini-x86.c.
1526 2007-11-28 Martin Baulig <martin@ximian.com>
1529 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline()
1530 after creating the trampoline.
1532 2007-11-27 Zoltan Varga <vargaz@gmail.com>
1534 * aot-runtime.c (load_aot_module): Check runtime version if needed.
1536 * aot-compiler.c: Add bind-to-runtime-version for producing AOT files which only load into a runtime with
1539 * generic-sharing.c (mono_helper_get_rgctx_other_ptr): Change the signature to take the calling class
1540 instead of the calling method to help AOT.
1542 * mini.c (get_runtime_generic_context_other_ptr): Update after the change.
1544 2007-11-26 Zoltan Varga <vargaz@gmail.com>
1546 * aot-runtime.c (mono_aot_init_vtable): Simplify this if MONO_ARCH_COMMON_VTABLE_TRAMPOLINE
1549 2007-11-23 Zoltan Varga <vargaz@gmail.com>
1551 * aot-compiler.c (emit_class_name_table): Properly encode generic class names.
1553 * aot-compiler.c (compile_method): Correct check for generic method definitions.
1554 (encode_method_ref): No need to handle generic method definitions specially.
1556 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
1558 * aot-runtime.c (decode_klass_ref): Clean this up and rename from
1561 * aot-compiler.c (encode_klass_ref): Clean this up and rename from
1563 (compile_method): Enable generic sharing.
1565 2007-11-22 Zoltan Varga <vargaz@gmail.com>
1567 * mini.c (get_runtime_generic_context_other_ptr): Disable AOT here.
1568 (mini_method_compile): Add preliminary support for AOTing shared generic code.
1570 * aot-compiler.c (compile_method): Add preliminary support for AOTing shared
1573 * mini-trampolines.c: Fix a warning.
1575 * mini.c (get_runtime_generic_context_other_ptr): Use NEW_METHODCONST instead of
1577 (mono_method_to_ir): Use NEW_DOMAINCONST in one place.
1578 (generic_class_is_reference_type): Remove unused function.
1580 * mini-trampolines.c (mono_magic_trampoline): Avoid loading metadata if possible
1581 in the generic vtable trampoline case.
1583 * aot-runtime.c (mono_aot_init_vtable): Use the generic vtable trampoline.
1585 * aot-runtime.c (mono_aot_get_method_from_vt_slot): New helper function to
1586 return an AOT method based on a vtable slot.
1588 * aot-compiler.c (compile_method): Avoid AOTing synchronized methods for now.
1590 * mini.c (mini_get_vtable_trampoline): Export this.
1592 2007-11-22 Martin Baulig <martin@ximian.com>
1595 (MonoDebuggerInfo): Move `debugger_version' up.
1597 2007-11-22 Martin Baulig <martin@ximian.com>
1600 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline().
1602 * mini-trampolines.c
1603 (mono_delegate_trampoline): Call mono_debugger_trampoline_compiled()
1604 after compiling the method.
1606 2007-11-20 Martin Baulig <martin@ximian.com>
1609 (mono_debugger_insert_method_breakpoint): Moved into mono-debug-debugger.c.
1610 (mono_debugger_remove_breakpoint): Likewise.
1611 (mono_debugger_check_breakpoints): Likewise.
1613 * debug-debugger.c: Implement the new breakpoint interface here.
1615 2007-11-18 Zoltan Varga <vargaz@gmail.com>
1617 * mini-amd64.c (mono_arch_output_basic_block): Unify the implementation of
1618 CEE_CONV_I1/SEXT_I1 and I2 since they are the same.
1620 * mini-x86.c (mono_arch_output_basic_block): Ditto.
1622 2007-11-17 Zoltan Varga <vargaz@gmail.com>
1624 * mini-amd64.c (mono_arch_output_basic_block): Fix a typo.
1626 * mini-x86.c (mono_arch_get_inst_for_method): Remove code which is now in
1629 * mini-ia64.c (mono_arch_get_inst_for_method): Remove code which is now in
1632 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for methods
1633 returning a vtype in a register.
1635 * mini.c (mini_get_inst_for_method): Move the handling of the atomic operations
1636 here from the arch specific code.
1638 * mini-amd64.c (mono_arch_get_inst_for_method): Remove code which is now in
1641 * mini-amd64.c (mono_arch_output_basic_block): Add some micro optimizations.
1642 (mono_arch_emit_prolog): Increment maximum prolog size.
1644 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Move the implementation of the
1645 START_HANDLER/ENDFINALLY/ENDFILTER opcodes to mini-amd64.c.
1647 * mini-x86.c (get_call_info): Receive a MonoCompile instead of a
1648 MonoGenericSharingContext.
1650 * mini-ia64.c (get_call_info): Receive a MonoCompile instead of a
1651 MonoGenericSharingContext. Allocate memory from the cfg mempool.
1653 2007-11-15 Mark Probst <mark.probst@gmail.com>
1655 * mini.c, mini.h, generic-sharing.c: Functions for producing code
1656 which extract fields out of the runtime generic context. Full
1657 sharing of the NEWARR opcode.
1659 Thu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>
1661 * abcremoval.c, mini.c, ssa.c, ssapre.c: updated to implement
1662 --enable-minimal=ssa.
1664 2007-11-13 Zoltan Varga <vargaz@gmail.com>
1666 * mini-trampolines.c (mono_delegate_trampoline): Update after
1667 mono_marshal_get_delegate_invoke () signature change.
1669 2007-11-13 Mark Probst <mark.probst@gmail.com>
1671 * mini.c: Removed the shared context in favor of the generic
1672 sharing context. Allocate the MonoJitInfo structure with room for
1673 the generic sharing context if it's needed.
1675 * mini.h: Remove MonoGenericSharingContext declaration. It's in
1676 domain-internals.h now.
1678 * mini-x86.c: Pass the generic sharing context to get_call_info ().
1680 * generic-sharing.c: Several changes for working without a shared
1681 context and instead operating on open types instead.
1683 2007-11-12 David S. Miller <davem@davemloft.net>
1685 * inssel-sparc.brg: Fix double instruction emit.
1687 2007-11-12 Zoltan Varga <vargaz@gmail.com>
1689 * mini.c (mono_jit_runtime_invoke): Avoid trying to compile the Array
1690 Get/Set/Address methods.
1692 * mini.c debug-debugger.c mini-trampolines.c: Update after
1693 mono_marshal_get_delegate_invoke signature change.
1695 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
1697 * cpu-arm.md: Increase the max size of OP_THROW to 24 bytes.
1698 This can happens with dynamic methods. Fixes the other bug in #322722.
1700 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
1702 * tramp-arm.c (mono_arch_patch_callsite): Support patching
1705 * mini-arm.c (arm_patch): Implement patching of BX call
1706 sequence. Fixes one of the bugs in #322722.
1708 2007-11-03 David S. Miller <davem@huronp11.davemloft.net>
1710 * mini-sparc.c (mono_arch_flush_icache): Make more efficient
1711 under Linux. We only need to flush every 32-byte cache line.
1713 2007-11-07 Massimiliano Mantione <massi@ximian.com>
1716 move_basic_block_to_end: Add branches when needed, eventually creating
1718 optimize_branches: added a parameter that tells if it's ok to create
1719 new BBs (doing is "df_visit" has been called is (IMHO) a nightmare),
1720 and avoid calling move_basic_block_to_end when it's not ok.
1723 2007-11-07 Mark Probst <mark.probst@gmail.com>
1725 * mini.c: Abort inlining call to InitializeArray if something
1726 looks wrong. Let the icall handle it, which now has proper safety
1729 2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
1731 * mini.c (mono_spill_call): add support for soft-float.
1733 * mini.c (mono_method_to_ir): add support for soft-float
1734 to inlined functions that return float.
1736 * mini.c (mono_method_to_ir): add support for soft-float
1737 to cee_stsfld opcode on float fields.
1739 2007-11-05 Geoff Norton <gnorton@novell.com>
1741 * mini-x86.h: Fix the structure access for X86 Leopard.
1744 2007-11-05 Martin Baulig <martin@ximian.com>
1746 * mini-trampolines.c
1747 (mono_magic_trampoline): Call mono_debugger_trampoline_compiled()
1748 after compiling the method to notify the debugger.
1750 2007-11-05 Martin Baulig <martin@ximian.com>
1752 * debug-debugger.h (MonoDebuggerInfo): Use the new breakpoint tables.
1754 2007-11-02 Zoltan Varga <vargaz@gmail.com>
1756 * mini-sparc.c (EMIT_COND_SYSTEM_EXCEPTION_GENERAL): Applied patch from
1757 David Miller <davem@davemloft.net>. Allow larger offsets in branches.
1759 2007-11-01 Zoltan Varga <vargaz@gmail.com>
1761 * mini-amd64.c (mono_arch_emit_prolog): Check the domain as well for
1762 native-to-managed wrappers.
1764 2007-11-01 Geoff Norton <gnorton@novell.com>
1766 * mini-ppc.h, mini-x86.h: Handle Leopards renaming of some structure
1769 Wed Oct 31 20:23:14 CET 2007 Paolo Molaro <lupus@ximian.com>
1771 * mini.c, mini-x86.c: when getting back from unmanaged code
1772 to managed via a marshaled delegate we also need to set the
1775 Wed Oct 31 19:53:33 CET 2007 Paolo Molaro <lupus@ximian.com>
1777 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: breakpoint table support
1780 Wed Oct 31 19:29:30 CET 2007 Paolo Molaro <lupus@ximian.com>
1782 * mini.c, mini.h, mini-x86, tramp-x86.c, mini-x86.h: added API to
1783 let the debugger or other external agents to tell the JIT when
1784 a sw breakpoint has been inserted in the code that the JIT needs
1785 to be able to inspect.
1787 2007-10-31 Martin Baulig <martin@ximian.com>
1790 (MonoDebuggerInfo): Remove `runtime_class_init'.
1792 2007-10-30 Martin Baulig <martin@ximian.com>
1795 (mono_debugger_thread_created): Added `MonoThread *' argument.
1796 (mono_debugger_extended_notification): New public method.
1797 (mono_debugger_trampoline_compiled): New public method.
1800 (MonoDebuggerThreadInfo): Added `thread' and
1801 `extended_notifications' fields.
1804 (debugger_executable_code_buffer): New static variable.
1807 (MonoDebuggerInfo): Added `executable_code_buffer',
1808 `executable_code_buffer_size', `breakpoint_info_area',
1809 `breakpoint_table' and `breakpoint_table_size'.
1811 2007-10-26 Rodrigo Kumpera <rkumpera@novell.com>
1813 * mini-arm.c (mono_arch_build_imt_thunk): Take the advantage
1814 that IP either is an unused value or the vtable pointer. IMT
1815 calls use vtable + offset now. Reduced by almost half the size
1818 2007-10-26 Jonathan Chambers <joncham@gmail.com>
1820 * mini-amd64.c: Begin Win64 port. Use AMD64_ARG_REG#
1821 defines to access param registers. Replace long usage with
1822 gsize as sizeof(long) != sizeof(void*) on Win64.
1824 * mini-amd64.h: Add %rdi and %rsi to MonoLMF structure
1825 on Win64. Fix intrinsic, use _AddressOfReturnAddress
1826 instead of non-existant _GetAddressOfReturnAddress.
1828 * tramp-amd64.c: Use AMD64_ARG_REG# defines to access
1829 param registers. Save/restore %rdi and %rsi in MonoLMF.
1831 * exceptions-amd64.c: Use AMD64_ARG_REG# defines to access
1832 param registers. Modify (throw_exception) signature to take
1833 %rdi and %rsi on Win64.
1835 Code is contributed under MIT/X11 license.
1837 Thu Oct 25 23:06:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
1839 * helpers.c: unlink debugging output files.
1841 2007-10-25 Zoltan Varga <vargaz@gmail.com>
1843 * mini.c: Move mono_create_ftnptr () to object.c.
1845 2007-10-24 Rodrigo Kumpera <rkumpera@novell.com>
1847 * helpers.c (mono_disassemble_code): MonoCompile parameter is now
1848 optional. This function can now be used to disassemble code generated
1849 outside the JIT such as trampolines and IMT thunks.
1851 * mini-arm.h: defined MONO_ARCH_HAVE_IMT.
1853 * mini-arm.c (decode_vcall_slot_from_ldr): added, extract the
1854 vtable pointer from a ldr instruction.
1856 * mini-arm.c (mono_arch_get_vcall_slot_addr): support the
1857 new IMT call sequence.
1859 * mini-arm.c (mono_arch_output_basic_block): emit the IMT
1860 call sequence for interface invocations.
1862 * mini-arm.c (mono_arch_emit_imt_argument): added, required
1863 for imt support. This function is empty since IMT on ARM requires no
1864 special handling on the IR side.
1866 * mini-arm.c (mono_arch_find_imt_method): added, required for
1869 * mini-arm.c (mono_arch_find_this_argument): added, required
1872 * mini-arm.c (arm_emit_value_and_patch_ldr): added, patches
1873 a ldr instruction to load a value stored in the code stream.
1875 * mini-arm.c (mono_arch_build_imt_thunk):added, required
1879 2007-10-23 Zoltan Varga <vargaz@gmail.com>
1881 * mini.c (mini_init): Install the jump trampoline callback.
1883 Tue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
1885 * mini-trampolines.c: handle synchronized methods with the common
1886 vtable trampoline (bug #335601).
1888 2007-10-17 Zoltan Varga <vargaz@gmail.com>
1890 * mini-ia64.h mini-amd64.c: Add support for the common vtable trampoline.
1892 * inssel.brg (mini_emit_virtual_call): Fix the computation of ins->inst_offset on
1895 * mini-ia64.h mini-ia64.c: Add support for IMT.
1897 * mini-x86.c (mono_arch_emit_prolog): Increase the size allocated for the
1898 prolog. Fixes #331958.
1900 2007-10-15 Zoltan Varga <vargaz@gmail.com>
1902 * mini-sparc.h mini-sparc.c: Add support for the common vtable trampoline.
1904 Mon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
1906 * mini-ppc.c, mini-ppc.h: ppc support for the common vtable
1909 Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
1911 * mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
1914 Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
1916 * mini-x86.c, mini-x86.h: x86 support for the common vtable
1919 Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
1921 * mini-trampolines.c: changed the magic rampoline to understand
1922 the common vtable trampoline method: the method to invoke is
1923 determined by the vtable displacement of the call.
1925 Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
1927 * mini.c, mini.h: register the common vtable trampoline if the
1928 architecture supports it.
1930 Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
1932 * cpu-amd64.md: use the correct max length for tls_get.
1934 2007-10-14 Zoltan Varga <vargaz@gmail.com>
1936 * mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
1937 CEE_STELEM_ANY. Fixes #333696.
1939 Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
1941 * exceptions-x86.c: provide more graceful handling of the case where
1942 we followed a bogus function pointer from managed code (bug #332866).
1944 2007-10-11 Mark Probst <mark.probst@gmail.com>
1946 * mini.h, mini.c: Introduced the MonoGenericSharingContext, which
1947 replaces the generic_shared flag and will carry more information
1950 * generic-sharing.c: Added mini_type_stack_size() which allows
1951 allows open types if given a generic sharing context.
1952 mini_get_basic_type_from_generic() takes a
1953 MonoGenericSharingContext* instead of a MonoCompile* now.
1955 * mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
1956 mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
1957 mini-sparc.c, mini-x86.c: Trivial changes required by the two
1958 changes above. Just passing arguments through to the right
1961 Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
1963 * mini-arm.c: unify the call emission to emit_code_seq().
1965 Wed Oct 10 13:05:46 CEST 2007 Paolo Molaro <lupus@ximian.com>
1967 * tramp-arm.c: reduced the trampoline size.
1969 2007-10-10 Mark Probst <mark.probst@gmail.com>
1971 * generic-sharing.c, mini.h, mini-amd64.c, mini-x86.c: Moved type
1972 variable handling out of arch-specific code.
1974 Wed Oct 10 10:49:28 CEST 2007 Paolo Molaro <lupus@ximian.com>
1976 * mini-arm.c: implemented fast delegate dispatch.
1978 2007-10-09 Zoltan Varga <vargaz@gmail.com>
1980 * mini-amd64.c (mono_arch_compute_omit_fp): Add more checks to ensure
1981 that fp elimination is turned off if the space required by locals is too
1984 Tue Oct 9 21:01:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
1986 * Makefile.am, mini-arm.c, mini-arm.h, tramp-arm.c: ported
1987 ARM to the new style trampoline.
1989 2007-10-09 Zoltan Varga <vargaz@gmail.com>
1991 * tramp-amd64.c: Rework the specific trampoline code to make it smaller.
1993 * mini-amd64.h mini-amd64.c: Export amd64_patch as mono_amd64_patch.
1995 2007-10-09 Martin Baulig <martin@ximian.com>
1998 (MonoDebuggerMetadataInfo): Added `field_info_type_offset' and
1999 `field_info_offset_offset'.
2001 Tue Oct 9 09:47:51 CEST 2007 Paolo Molaro <lupus@ximian.com>
2003 * mini-ppc.c, mini-ppc.h, mini-ops.h, inssel-ppc.brg, cpu-g4.md:
2004 removed more internal usage of the r11 register and made it available
2005 to the register allocator.
2007 2007-10-08 Mark Probst <mark.probst@gmail.com>
2009 * mini.c, mini-amd64.c, mini-x86.c: Allow open generic contexts
2010 when sharing generics and treat type variables as references.
2012 Mon Oct 8 10:55:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
2014 * mini-ppc.c: started removing the internal uses of register r11
2015 to eventually allow the register allocator to manage it as an
2016 additional available register.
2018 Mon Oct 8 14:25:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
2020 * tramp-amd64.c: fixed memory corruption in the trampoline generation.
2022 Mon Oct 8 12:06:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
2024 * tramp-ppc.c, tramp-x86.c: reduce the alignment requirements for
2025 specific trampolines as they are not performance critical as a jump
2026 target (maybe align as before only for AOT code?). This saves about
2027 200 KB of native code on x86 for monodevelop startup.
2029 Mon Oct 8 10:04:40 CEST 2007 Paolo Molaro <lupus@ximian.com>
2031 * tramp-ppc.c: reduce the size of the trampolines, saves 160KB on
2032 monodevelop startup.
2034 2007-10-06 Zoltan Varga <vargaz@gmail.com>
2036 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Allow signed displacements.
2038 * mini-sparc.h mini-sparc.c: Implement IMT support.
2040 * tramp-sparc.c (mono_arch_create_trampoline_code): Rework the trampoline code so
2041 its smaller and doesn't clobber sparc_g1.
2043 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Update after trampoline changes.
2045 Fri Oct 5 18:28:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
2047 * mini-ppc.c: optimized the size of the IMT thunks a bit.
2049 Fri Oct 5 18:08:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
2051 * mini-ppc.c: implemented fast delegate invocation.
2053 Fri Oct 5 00:01:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
2055 * mini-ppc.h, mini-ppc.c: IMT support for the PPC architecture.
2057 Thu Oct 4 22:04:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
2059 * mini-ppc.c, mini-ppc.h, tramp-ppc.c, Makefile.am: port the PPC
2060 code to the new style trampoline in preparation for IMT support.
2062 Thu Oct 4 19:01:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
2064 * mini-ppc.c, tramp-ppc.c: don't use r13 as it's used by the PPC EABI
2065 systems already. This also reduces the specific trampiline sizes and
2066 prepares for the use of r12 as the IMT identifier register.
2068 Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
2070 * mini-mips.h: endianess fix (simplified from a patch by
2071 Thomas Kunze <thommy@tabao.de>, bug #323737).
2073 Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
2075 * exceptions-ppc.c, mini-ppc.h: refactor to use macros
2076 to access ucontext fields and enable netbsd support
2077 (partially from Magnus Henoch <mange@freemail.hu>).
2079 Thu Oct 4 12:35:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
2081 * genmdesc.pl: patch from Henryk Plötz <henryk@openmoko.org> to
2082 use the preprocessor from the CPP env var if it is set.
2084 Wed Oct 3 17:11:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
2086 * mini-trampolines.c: fixed an assertion and moved it earlier in the
2087 code, before interface_offset gets used.
2089 2007-10-02 Zoltan Varga <vargaz@gmail.com>
2091 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
2092 mono_class_setup_vtable () before accessing klass->vtable.
2094 2007-10-01 Zoltan Varga <vargaz@gmail.com>
2096 * aot-compiler.c (get_plt_index): Rework the handling of wrappers to be not so
2099 Mon Oct 1 15:00:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
2101 * mini.c, mini-trampolines.c, mini.h: enable the lazy filling of the
2102 IMT slots (this saves hundreds of KB of memory in programs like
2103 IronPython and Monodevelop).
2105 Mon Oct 1 14:44:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
2107 * mini.c: print the delegate counter.
2109 Mon Oct 1 14:36:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
2111 * mini-x86.c: make it easier to enable the debugging code for IMT
2114 2007-09-28 Martin Baulig <martin@ximian.com>
2117 (MonoDebuggerMetadataInfo): Add `klass_image_offset',
2118 `mono_method_klass_offset' and `mono_method_token_offset'.
2120 2007-09-20 Mark Probst <mark.probst@gmail.com>
2122 * mini.c: First generics sharing implementation. Can only share
2123 in very simple cases. If sharing doesn't work it falls back to
2124 dedicated compilation.
2126 * mini.h: Flag in MonoCompile to specify whether generic
2127 compilation is shared. Flags enum for marking which generic inst
2128 of a context is used. Prototypes for helper functions.
2130 * generic-sharing.c: Helper functions for generic method sharing.
2132 * optflags-def.h: Optimization flag (gshared) for enabling generic
2133 method sharing added.
2135 * Makefile.am: generic-sharing.c added.
2137 2007-09-19 Daniel Nauck <dna@mono-project.de>
2139 * mini.c (mono_thread_abort): fixed typo in r86014. It should be '==' instead of '!='.
2141 2007-09-19 Massimiliano Mantione <massi@ximian.com>
2142 * mini.c (mono_thread_abort): Correctly handle ThreadAbortException,
2145 2007-09-19 Martin Baulig <martin@ximian.com>
2147 * mini.c (mini_cleanup): Only call mono_debugger_cleanup() here;
2148 mono_debug_cleanup() is now part of mono_cleanup().
2150 2007-09-18 Zoltan Varga <vargaz@gmail.com>
2152 * driver.c (mono_main): Fix a warning.
2154 2007-09-17 Zoltan Varga <vargaz@gmail.com>
2156 * aot-compiler.c: Optimize various parts when processing large assemblies.
2159 * mini.c (mono_patch_info_hash): Improve hash function.
2161 2007-09-14 Jonathan Chambers <joncham@gmail.com>
2163 * mini-exceptions.c: Add HAVE_UNISTD_H check around include.
2165 Code is contributed under MIT/X11 license.
2167 2007-09-14 Zoltan Varga <vargaz@gmail.com>
2169 * mini.c (mini_init): Fix a leak.
2171 * debug-mini.c (mono_debug_free_method_jit_info): Fix a leak.
2173 Fri Sep 14 12:53:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
2175 * mini.c: redirect string.InternalAllocStr() to the managed allocator.
2177 2007-09-14 Zoltan Varga <vargaz@gmail.com>
2179 * mini-amd64.c (mono_arch_find_imt_method): Add support for AOT code.
2181 2007-09-13 Zoltan Varga <vargaz@gmail.com>
2183 * Makefile.am generics-variant-types.2.il generics.cs: Add some generics
2186 * inssel.brg: Reorganize the isinst/castclass code to reduce code duplication.
2188 * mini.c (handle_alloc): Enable managed allocators in AOT code.
2190 * aot-compiler.c (encode_patch): Add support for MONO_WRAPPER_ALLOC.
2192 * aot-runtime.c (decode_patch_info): Ditto.
2194 2007-09-12 Jonathan Chambers <joncham@gmail.com>
2196 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement
2197 static case. Cache delegates in architecture specific code,
2198 based on number of parameters.
2200 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Cache delegates
2201 in architecture specific code, based on number of parameters.
2203 * mini-trampolines.c (mono_delegate_trampoline): Architecture specific
2204 caching happen in architecture specific code now.
2206 Code is contributed under MIT/X11 license.
2208 2007-09-12 Jonathan Chambers <joncham@gmail.com>
2210 * mini.h, mini.c, mini-x86.c, mini-amd64.c, mini-hppa.c, mini-mips.c,
2211 mini-s390x.c, mini-arm.c, mini-ia64.c, mini-sparc.c, mini-ppc.c, mini-alpha.c,
2212 mini-s390.c: Add mono_arch_init and mono_arch_cleanup methods.
2214 Code is contributed under MIT/X11 license.
2216 2007-05-15 Massimiliano Mantione <massi@ximian.com>
2217 * mini.c: (mono_thread_abort) Fixed bug #82416.
2219 Tue Sep 11 16:15:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
2221 * mini.: hook the new managed GC allocation feature into the JIT.
2223 Tue Sep 11 16:14:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
2225 * mini.c: implementation for the new runtime tls opcode.
2227 2007-09-11 Martin Baulig <martin@ximian.com>
2230 (MonoDebuggerMetadataInfo): Add `mono_method_flags_offset' and
2231 `mono_method_inflated_offset'.
2233 2007-09-07 Zoltan Varga <vargaz@gmail.com>
2235 * driver.c mini.h mini.c: Add a new devel command line option for injecting
2236 async exceptions into a method.
2238 * mini-amd64.h mini-amd64.c: Implement injecting of async exceptions for the
2239 purpose of testing whenever the unwinder works at every instruction.
2241 Thu Sep 6 12:42:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
2243 * mini.c: check accessibility of method used in ldftn (fixes
2246 2007-09-04 Zoltan Varga <vargaz@gmail.com>
2248 * mini-amd64.c (mono_arch_output_basic_block): Fix a warning.
2250 * inssel.brg: Fix a warning.
2252 2007-09-03 Martin Baulig <martin@ximian.com>
2254 * debug-debugger.c: `MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE'
2255 now takes the `main_method' as argument.
2257 2007-09-02 Zoltan Varga <vargaz@gmail.com>
2259 * cpu-sparc.md (endfilter): Add missing src1:i argument.
2261 2007-08-30 Jonathan Chambers <joncham@gmail.com>
2263 * driver.c: include the cil-coff.h header on Windows.
2265 Code is contributed under MIT/X11 license.
2267 Thu Aug 30 16:17:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
2269 * mini.c, driver.c: don't include the cil-coff.h header.
2271 Thu Aug 30 14:50:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
2273 * mini.c: flag places that needs fixes fo soft-float support.
2275 Wed Aug 29 18:26:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
2277 * mini.h, inssel-float.brg: fix soft-float constant loads on big
2278 endian systems (partially from Dean Jenkins, bug #81924).
2280 2007-08-28 Mark Probst <mark.probst@gmail.com>
2282 * mini.c (check_linkdemand): Remove embedded reference object in
2283 call to LinkDemandSecurityException.
2284 (mono_jit_compile_method_inner): Call LinkDemandSecurityException
2285 with an IntPtr instead of a reference object.
2287 2007-08-28 Zoltan Varga <vargaz@gmail.com>
2289 * mini.c (handle_initobj): Handle alignment properly.
2291 * inssel.brg (mini_emit_memset): Ditto.
2293 * inssel.brg (mini_emit_memcpy): Ditto.
2295 * inssel-sparc.brg: Ditto.
2297 * mini.h mini.c inssel-*.brg: Pass alignment information to OP_MEMCPY/MEMSET.
2299 2007-08-26 Zoltan Varga <vargaz@gmail.com>
2301 * mini-exceptions.c (mono_handle_exception_internal): Skip the first frame for
2302 exceptions raised in unmanaged code. Fixes part of #82594.
2304 2007-08-24 Mark Probst <mark.probst@gmail.com>
2306 * mini.c (mono_method_to_ir), declsec.c
2307 (mono_declsec_linkdemand_aptc): Fixed custom attr leaks.
2309 2007-08-22 Martin Baulig <martin@ximian.com>
2312 (MonoDebuggerThreadInfo): New typedef.
2313 (mono_debugger_thread_table): New global variable.
2314 (mono_debugger_thread_created): New public function.
2315 (mono_debugger_thread_cleanup): New public function.
2319 - removed `get_current_thread' and `lookup_assembly'.
2320 - removed `data_table'.
2321 - added `thread_table'.
2324 (mono_thread_start_cb): Call mono_debugger_thread_created().
2325 (mono_thread_attach_cb): Likewise.
2326 (mini_thread_cleanup): Call mono_debugger_thread_cleanup().
2327 (mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
2330 * driver.c (mono_main): Move mono_debug_init() up, before calling
2331 mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.
2333 Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
2335 * mini-x86.c, inssel-x86.brg: group multiple stack adjustments
2336 together when passing several arguments of type double (gives a small
2337 speedup and saves a few bytes of generated code).
2339 2007-08-20 Jb Evain <jbevain@novell.com>
2341 * mini.c (mono_method_to_ir): fix leak on InvalidProgramException.
2343 2007-08-20 Jb Evain <jbevain@novell.com>
2345 * mini.c (mono_method_to_ir): throw MethodAccessException
2346 and FieldAccessException instead of InvalidProgramException.
2348 2007-08-20 Mark Probst <mark.probst@gmail.com>
2350 * mini.c: CoreCLR security checks.
2352 * mini.h: Removed MonoSecurityMode (moved to
2353 metadata/security-manager.h) and mono_security_mode global var
2354 (replaced by set/get functions in security-manager.h).
2356 * driver.c: Added "core-clr-test" security mode for testing. Used
2357 set-function for setting security mode.
2359 2007-08-17 Mark Probst <mark.probst@gmail.com>
2361 * mini.c: MonoJitInfo's are freed hazardously now. Statistics for
2362 the new jit_info_table.
2364 * driver.c: Test code for the new jit_info_table (enabled by the
2365 define MONO_JIT_INFO_TABLE_TEST).
2367 2007-08-14 Zoltan Varga <vargaz@gmail.com>
2369 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
2370 detection of call <REG> instruction sequence. Fixes build on freebsd.
2372 2007-08-13 Zoltan Varga <vargaz@gmail.com>
2374 * mini-exceptions.c: Fix a warning.
2376 2007-08-11 Zoltan Varga <vargaz@gmail.com>
2378 * exceptions-amd64.c (mono_arch_handle_altstack_exception): Enable the new
2379 stack overflow handling code on amd64 too.
2381 * mini-exceptions.c (mono_setup_altstack): Make this use
2382 mono_thread_get_stack_bounds ().
2384 * mini-x86.h: Disable sigaltstack on solaris x86.
2386 2007-08-10 Zoltan Varga <vargaz@gmail.com>
2388 * mini-exceptions.c (mono_setup_altstack): Enable this to work on solaris x86.
2390 2007-08-10 Geoff Norton <gnorton@customerdna.com>
2392 * tramp-x86.c: Remove some unneeded alignment changes on Apple. Fixes #82387.
2394 2007-08-08 Zoltan Varga <vargaz@gmail.com>
2396 * mini-exceptions.c (mono_print_thread_dump): Enable this on amd64 too.
2398 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Fix a warning.
2400 2007-08-03 Neale Ferguson <neale@sinenomine.net>
2402 * mini-s390.c (add_general): Adjust offset calculation to take into account of rounding up
2405 Thu Aug 2 17:36:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
2407 * mini-ppc.c: avoid an invalid encoding of unsigned right shift by 0
2408 to be emitted (bug #82281).
2410 2007-08-01 Martin Baulig <martin@ximian.com>
2412 Merged the `debugger-dublin' branch.
2414 * debug-debugger.h (MonoDebuggerInfo):
2415 Removed the `old_*' compatibility entries.
2416 Added `debugger_version' and `data_table'.
2417 Renamed `get_method_addr_or_bpt' -> `insert_breakpoint'.
2418 Renamed `remove_method_breakpoint' -> `remove_breakpoint'.
2421 (MiniDebugMethodBreakpointInfo): Add `address_list'.
2422 (mono_debugger_check_breakpoints): Take a `MonoDebugMethodAddress *'
2423 instead of a `gconstpointer'.
2424 (mono_debugger_insert_method_breakpoint): Return a
2425 `MonoDebugMethodAddressList *'.
2427 2007-06-28 Martin Baulig <martin@ximian.com>
2429 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
2431 2007-08-01 Zoltan Varga <vargaz@gmail.com>
2433 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Avoid using
2434 __builtin_frame_address () since it is broken on older gcc versions.
2436 Tue Jul 31 17:34:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
2438 * mini.c, mini.h, mini-exceptions.c: added a bit of documentation
2439 on the stack overflow handling and made the managed stack overflows
2440 catchable in most cases using soft guard pages.
2441 * exceptions-x86.c: added code to restore the protection in the soft
2442 guard pages at the end of exception handling.
2444 2007-07-31 Zoltan Varga <vargaz@gmail.com>
2446 * mini.c (SIG_HANDLER_SIGNATURE): Fix a warning.
2448 Mon Jul 30 17:43:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
2450 * exceptions-ppc.c, mini-ppc.h: arch-specific stack overflow
2453 Mon Jul 30 17:38:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
2455 * mini-alpha.h, mini-ia64.h, mini-sparc.h: disable the altstack
2456 signal handling support until it has been ported to the new mechanism.
2457 * mini.c: fixed stack overflow detection and use the new
2458 architecture code to handle signals on the altstack.
2460 Mon Jul 30 17:33:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
2462 * exceptions-amd64.c, mini-amd64.h: amd64 code to handle
2463 stack overflows on the alt stack.
2465 Mon Jul 30 17:29:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
2467 * exceptions-x86.c, mini-x86.h, mini.h: new code to handle
2468 stack overflows on the alt stack.
2470 Mon Jul 30 11:50:06 CEST 2007 Paolo Molaro <lupus@ximian.com>
2472 * exceptions-ppc.c: cleanup preparing for altstack support.
2474 Mon Jul 30 11:31:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
2476 * exceptions-arm.c: cleanup preparing for altstack support.
2478 2007-07-27 Mark Probst <mark.probst@gmail.com>
2480 * mini.c (print_jit_stats): Output hazard pointer stats.
2482 2007-07-26 Mark Probst <mark.probst@gmail.com>
2484 * driver.c, mini.c: Replaced security mode flags with a single
2487 Thu Jul 26 20:12:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
2489 * mini.c, mini-exceptions.c: cleanup the sigaltstack code.
2491 2007-07-25 Mark Probst <mark.probst@gmail.com>
2493 * mini.c, mini.h, driver.c (mono_main): Added command-line flag
2494 (which doesn't do anything yet) for activating Core CLR
2495 (Silverlight) security.
2497 Tue Jul 24 21:16:17 CEST 2007 Paolo Molaro <lupus@ximian.com>
2499 * mini-codegen.c: work around a possible gcc bug on arm.
2501 Tue Jul 24 17:20:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
2503 * driver.c, mini-x86.h, mini-amd64.h: print a nice error
2504 message for platforms that don't support AOT compilation.
2506 Mon Jul 23 10:29:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
2508 * mini.h, mini.c, driver.c: temporary smcs hack.
2510 Mon Jul 23 09:29:34 CEST 2007 Paolo Molaro <lupus@ximian.com>
2512 * mini-arm.h, mini-arm.c: arm EABI fixes.
2514 2007-07-22 Zoltan Varga <vargaz@gmail.com>
2516 * exceptions-x86.c (mono_arch_find_jit_info): Handle the lmf->method == NULL
2519 * tramp-x86.c (mono_arch_create_trampoline_code): Only set lmf->method for
2520 trampolines taking a method argument.
2522 * mini-x86.h (MonoLMF): Add an 'esp' field plus comments.
2524 * mini-x86.c (mono_arch_emit_prolog): Update after changes to the LMF structure.
2525 * tramp-x86.c (mono_arch_create_trampoline_code): Ditto.
2527 * exceptions-x86.c (mono_arch_get_jit_info): Properly clean up the stack after
2528 JIT compilation throws an exception. Fixes #82050.
2530 2007-07-19 Mark Probst <mark.probst@gmail.com>
2532 * mini.c: Removed the MonoLoaderErrorKind enum and replaced it
2533 with the MONO_EXCEPTION_ defines.
2535 2007-07-17 Zoltan Varga <vargaz@gmail.com>
2537 * mini-amd64.c (mono_arch_find_imt_method): Handle mov reg,IMM64 case. Fixes
2540 * mini-amd64.c (mono_arch_find_imt_method): Add some debug code to help find out
2541 the cause of an assertion.
2543 Mon Jul 16 19:31:21 CEST 2007 Paolo Molaro <lupus@ximian.com>
2545 * mini.c, jit-icalls.c: mono_get_inflated_method() is obsolete,
2548 2007-07-15 Zoltan Varga <vargaz@gmail.com>
2550 * mini-amd64.c (mono_arch_build_imt_thunk): Remove the non-32bit MonoMethod
2551 assert. Should fix #82103.
2553 2007-07-14 Zoltan Varga <vargaz@gmail.com>
2555 * mini-exceptions.c (mono_jit_walk_stack_from_ctx): Use MONO_CONTEXT_GET_SP ()
2556 here too. Fixes #82095.
2558 * mini-amd64.c (mono_arch_build_imt_thunk): Add support for non-32bit MonoMethod
2561 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a couple asserts.
2563 * mini-amd64.h: Enable IMT for amd64.
2565 * mini-amd64.c (mono_arch_build_imt_thunk): Optimize IMT thunk size.
2567 2007-07-12 Zoltan Varga <vargaz@gmail.com>
2569 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for IMT call sequences.
2571 2007-07-12 Mark Probst <mark.probst@gmail.com>
2573 * mini.c (check_linkdemand, mono_method_to_ir): Abort compilation
2574 as soon as check_linkdemand sets an exception_type.
2576 Thu Jul 12 12:18:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
2578 * mini-x86.c: fixed offsets for IMT call sequence.
2579 * mini-x86.h: enable IMT again.
2581 2007-07-11 Zoltan Varga <vargaz@gmail.com>
2583 * trace.c (mono_trace_enter_method): Decode MonoType too.
2585 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Handle signed displacements too.
2587 * mini.h mini-x86.h mini-trampolines.c: Change the signature of mono_arch_find_imt_method () to pass the calling code address too.
2589 * mini-amd64.c: Add preliminary IMT implementation.
2591 Wed Jul 11 18:21:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
2593 * mini-x86.c: adjusted mono_arch_get_vcall_slot_addr () to
2594 understand the new IMT-base interface invocation (thanks to
2595 Daniel Nauck for the report and the remote debugging session).
2597 Wed Jul 11 14:54:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
2599 * mini-x86.c: size and speed optimizations for the IMT bsearch.
2601 2007-07-11 Zoltan Varga <vargaz@gmail.com>
2603 * Makefile.am (aotcheck): Make this actually use the AOTed code.
2605 Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
2607 * mini-trampolines.c: implement AOT IMT support.
2608 * mini-x86.h: enable IMT support for wider testing.
2610 2007-07-10 Zoltan Varga <vargaz@gmail.com>
2612 * inssel.brg (emit_imt_argument): Add aot support here.
2614 * aot-runtime.c (decode_patch_info): Fix reading of MONO_PATCH_INFO_METHOD.
2616 Tue Jul 10 17:50:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
2618 * mini-x86.c, mini-x86.h, tramp-x86.c: x86 arch-specific changes
2619 of the IMT implementation, partially from massi, with my
2620 implementation of the bsearch sequence. Disabled by default until
2621 the AOT code is implemented.
2623 2007-07-10 Zoltan Varga <vargaz@gmail.com>
2625 * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
2627 * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
2629 Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
2631 * inssel.brg, mini.c, mini.h, mini-trampolines.c:
2632 arch-independent IMT JIT code from Massimiliano
2633 Mantione (massi@ximian.com) with small cleanups from me.
2635 Tue Jul 10 13:07:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
2637 * Makefile.am: fix svn invocation to get the svn revision to be
2638 independent of the local language (build fix).
2640 2007-07-09 Mark Probst <mark.probst@gmail.com>
2642 * mini.c (inline_method): Reset cfg->exception_type if the
2643 inlining is aborted. Fixes: 82049.
2645 Mon Jul 9 17:26:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
2647 * mini.c: remove assert from exception handling code when exception_ptr
2650 2007-07-05 Zoltan Varga <vargaz@gmail.com>
2652 * mini.c (mono_codegen): Add an assert.
2654 * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method
2655 enter and leave code.
2656 * mini-amd64.c (mono_arch_emit_prolog): Likewise.
2658 Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
2660 * mini-ppc.c: fixed memory corruption for localloc(0)
2663 2007-07-05 Zoltan Varga <vargaz@gmail.com>
2665 * mini.c: Fix warnings.
2667 Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
2669 * optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
2670 to emit better double->int conversions.
2672 Tue Jul 3 19:42:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
2674 * mini.c: the provided Min/Max optimizations are valid for unisgned
2677 2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
2679 * mini.c (can_access_method, can_access_field): methods moved to metadata/class.c and renamed to mono_method_can_access_method and mono_method_can_acesss_field
2681 2007-06-28 Miguel de Icaza <miguel@novell.com>
2683 * mini.c (mono_running_on_valgrind): Add support for reporting the
2684 method and its boundaries to valgrind.
2686 2007-06-28 Martin Baulig <martin@ximian.com>
2688 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
2690 2007-06-25 Zoltan Varga <vargaz@gmail.com>
2692 * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
2694 * generic.2.cs: Add new test case.
2696 2007-06-25 Martin Baulig <martin@ximian.com>
2698 Merged the `debugger-dublin' branch.
2701 (mono_debugger_insert_method_breakpoint): New public method.
2702 (mono_debugger_remove_method_breakpoint): Likewise.
2703 (mono_debugger_check_breakpoints): New static method.
2704 (mono_debug_close_method): Call mono_debugger_check_breakpoints().
2706 * debug-debugger.h (MonoDebuggerInfo):
2707 Renamed (to keep backward compatibility in the vtable):
2708 `insert_breakpoint' -> `old_insert_breakpoint'.
2709 `remove_breakpoint' -> `old_remove_breakpoint'.
2710 `create_string' -> `old_create_string'.
2711 `lookup_class' -> `old_lookup_class'.
2712 `lookup_type' -> removed; changed into a dummy field.
2713 `lookup_assembly' -> `old_lookup_assembly'.
2714 Added (same functionality, but different signature):
2715 `create_string', `lookup_class', `lookup_assembly'
2717 `get_method_addr_or_bpt', `remove_method_breakpoint',
2718 `runtime_class_init'.
2720 * debug-debugger.c: Merged the `debugger-dublin' branch.
2722 2007-06-23 Zoltan Varga <vargaz@gmail.com>
2724 * mini-amd64.c (peephole_pass_1): Optimize away moves at the beginning of the bb as
2726 (peephole_pass): Likewise.
2728 Fri Jun 22 09:17:08 CEST 2007 Paolo Molaro <lupus@ximian.com>
2730 * driver.c: hopefully make setaffinity work also for ancient
2733 2007-06-22 Atsushi Enomoto <atsushi@ximian.com>
2735 * driver.c : win32 build fix.
2737 Thu Jun 21 19:24:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
2739 * driver.c: check for the MONO_NO_SMP env var and bind to a single
2740 processor if it is set.
2742 2007-06-21 Martin Baulig <martin@ximian.com>
2744 * debug-mini.h: New file.
2747 (mono_debugger_insert_breakpoint_full): Moved here from
2748 ../metadata/mono-debug-debugger.c.
2749 (mono_debugger_remove_breakpoint): Likewise.
2750 (mono_debugger_breakpoint_callback): Likewise.
2752 2007-06-15 Raja R Harinath <rharinath@novell.com>
2754 * jit-icalls.c (mono_helper_compile_generic_method): Update to
2755 changes in MonoGenericClass.
2757 2007-06-14 Zoltan Varga <vargaz@gmail.com>
2759 * mini-codegen.c (mono_opcode_to_type): Fix ia64 build.
2761 2007-06-14 Raja R Harinath <rharinath@novell.com>
2763 * jit-icalls.c (mono_helper_compile_generic_method): Update to
2764 removal of MonoGenericMethod.
2766 Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
2768 * mini-exceptions.c: hooks for the exception events profiling API.
2770 2007-06-14 Randolph Chung <tausq@debian.org>
2772 * Makefile.ma: Add hppa target.
2773 * mini-arch.h: Include mini-hppa.h
2774 * cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
2775 mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
2776 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
2778 2007-06-14 Randolph Chung <tausq@debian.org>
2780 * inssel.brg: Add rules for "chained" compare-branch operations so that
2781 a single compare op can affect multiple branches. Adjust cost for
2782 OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
2783 * inssel-long32.brg: Update rules to use compare-branch macros. Adjust
2784 cost for some rules so that they can more easily be overridden by
2785 per-arch rules (with fixes from lupus).
2786 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
2788 2007-06-13 Randolph Chung <tausq@debian.org>
2790 * mini-ops.h: Reorder branch ops so that they match the order of the
2791 corresponding CEE_* ops. The code expects them this way.
2792 Add new ops for HPPA target.
2793 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
2795 2007-06-13 Randolph Chung <tausq@debian.org>
2797 * mini-exceptions.c: Handle cases where the stack grows towards
2799 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
2801 Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
2803 * jit-icalls.c, mini.h, mini.c: added virtual generic invoke
2805 * driver.c: explain where a non-matching corlib is found.
2807 2007-06-13 Mark Probst <mark.probst@gmail.com>
2809 * mini.c (print_jit_stats): Output dynamic code allocation stats.
2811 2007-06-10 Sanghyeon Seo <sanxiyn@gmail.com>
2813 * mini-exceptions.c: Generate a method profile leave event during
2814 an exception to ensure that the profiler gets notified.
2816 2007-06-07 Zoltan Varga <vargaz@gmail.com>
2818 * mini-amd64.c (peephole_pass): Merge some small changes from the linear-ir
2821 * cpu-amd64.md: Add long_and/or/xor opcodes.
2823 2007-06-06 Wade Berrier <wberrier@novell.com>
2825 * cpu-s390x.md (shr_imm): Correct the length of shr_imm instruction.
2826 (./class/lib/monolite/mcs.exe:25498): WARNING **: wrong maximal instruction
2827 length of instruction shr_imm (expected 8, got 10)
2829 2007-06-06 Zoltan Varga <vargaz@gmail.com>
2831 * mini-ia64.c (mono_arch_output_basic_block): Really fix the build.
2833 2007-06-06 Mark Probst <mark.probst@gmail.com>
2835 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
2836 MonoInternalHashTable again (fixed bug in the internal hash table
2839 2007-06-06 Mark Probst <mark.probst@gmail.com>
2841 * mini.c, driver.c: Reverted the MonoInternalHashTable changes.
2842 Have to figure out what makes it crash the SWF regression.
2844 2007-06-05 Zoltan Varga <vargaz@gmail.com>
2846 * mini-ia64.c (mono_arch_lowering_pass): Fix ia64 build.
2848 Tue Jun 5 17:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
2850 * mini.c: optimize out the type check when storing null in a
2853 2007-06-04 Mark Probst <mark.probst@gmail.com>
2855 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
2856 MonoInternalHashTable.
2858 Mon Jun 4 11:29:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
2860 * inssel.brg, mini.c, mini-ops.h: optimized Math.Mini/Max
2861 signed integer methods.
2863 2007-06-02 Zoltan Varga <vargaz@gmail.com>
2865 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case
2866 permanently since the current approach doesn't work.
2868 2007-06-02 Zoltan Varga <vargaz@gmail.com>
2870 * inssel.brg (stmt): Only call delegate->invoke_impl if
2871 MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined.
2873 2007-06-01 Zoltan Varga <vargaz@gmail.com>
2875 * mini-amd64.c (mono_arch_output_basic_block): Unify div/rem opcodes and handle
2876 the sreg2==rdx case.
2878 * mini-amd64.c cpu-amd64.md: Correct length of r4const instruction and take into
2879 account if it contains a rex prefix.
2880 (peephole_pass): Handle OP_FMOVE as well.
2882 2007-06-01 Zoltan Varga <vargaz@gmail.com>
2884 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case for now
2885 as it causes regressions.
2887 2007-05-31 Zoltan Varga <vargaz@gmail.com>
2889 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement support for the
2890 static case as well.
2892 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.
2894 * mini-x86.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
2895 (mono_arch_get_this_arg_from_call): Ditto.
2897 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Removed.
2899 * inssel.brg (mini_emit_virtual_call): Call delegate->Invoke through the delegate's
2902 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
2903 (mono_arch_get_this_arg_from_call): Ditto.
2905 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Removed.
2907 * mini-trampolines.c (mono_delegate_trampoline): Complete rewrite. On first call,
2908 try to create optimized invoke code and use that for further invocations.
2909 Otherwise, use the original mono_marshal_get_delegate_invoke () implementation.
2911 * mini-x86.h mini-ia64.h: Remove MONO_ARCH_HAS_CREATE_DELEGATE_TRAMPOLINE for now.
2913 2007-05-29 Rodrigo Kumpera <kumpera@gmail.com>
2915 * inssel.brg (mini_emit_virtual_call): Statically dispatch virtual calls to
2916 sealed classes or methods.
2917 *devirtualization.cs: tests for the new optimization
2919 2007-05-29 Zoltan Varga <vargaz@gmail.com>
2921 * liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
2922 by the update_volatile () function.
2924 2007-05-27 Zoltan Varga <vargaz@gmail.com>
2926 * driver.c (mono_main): Call g_thread_init () early since newer glib versions
2929 * abcremoval.c (mono_perform_abc_removal): Avoid using alloca.
2931 2007-05-24 Jonathan Chambers <joncham@gmail.com>
2933 * mini.c: Add configure checks for header files.
2934 * mini-x86.c: Add configure checks for header files.
2935 * trace.c: Add configure checks for header files.
2936 * aot-runtime.c: Add configure checks for header files.
2937 * aot-compiler.c: Add configure checks for header files.
2938 * driver.c: Add configure checks for header files.
2939 * mini-codegen.c: Add configure checks for header files.
2941 Code is contributed under MIT/X11 license.
2943 2007-05-22 Zoltan Varga <vargaz@gmail.com>
2945 * mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
2946 icompare_imm -128 + op_iclt. Fixes #81703.
2948 2007-05-19 Zoltan Varga <vargaz@gmail.com>
2950 * mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
2952 2007-05-15 Massimiliano Mantione <massi@ximian.com>
2954 * inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
2955 inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
2956 so that all isinst checks now use "interface_bitmap".
2958 2007-05-15 Zoltan Varga <vargaz@gmail.com>
2960 * cpu-amd64.md (jmp): Fix a warning.
2962 * inssel.brg (CEE_SWITCH): Hopefully fix #80738.
2964 * basic.cs: Add new regression test.
2966 * basic.cs: Remove test which is now in basic-long.cs.
2968 * mini-ia64.c (mono_arch_output_basic_block): Sign extend in CEE_CONV_I8/CEE_CONV_I.
2970 * basic-long.cs: Add new test.
2972 2007-05-13 Zoltan Varga <vargaz@gmail.com>
2974 * mini-sparc.c (mono_spillvar_offset_float): Fix sparc build.
2976 2007-05-12 Zoltan Varga <vargaz@gmail.com>
2978 * cpu-x86.md minix-86.c: Add a peephole_pass_1 () as on amd64.
2980 * mini-x86.c (mono_arch_output_basic_block): Use mono_opcode_to_cond () in a few
2983 * mini-x86.c (mono_arch_emit_exceptions): Decrease the size of the exception
2984 throwing code a bit.
2986 * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Decrease the size of
2987 the exception throwing code a bit.
2989 * mini-x86.c (get_call_info): Allocate result from a mempool.
2991 2007-05-11 Zoltan Varga <vargaz@gmail.com>
2993 * aot-compiler.c (find_typespec_for_class): Fix the assert.
2995 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
2997 * mini.h (MonoCompile): Add 'token_info_hash' field.
2999 * mini.c: Save token->method associations during compilation so the AOT
3000 compiler can use it.
3002 * aot-compiler.c aot-runtime.c: Add support for compiling non-generic methods
3003 which reference generic classes and methods.
3005 2007-05-10 Zoltan Varga <vargaz@gmail.com>
3007 * mini.h mini-<ARCH>.h: Get rid of MONO_ARCH_HAS_XP_LOCAL_REGALLOC.
3009 * aot-compiler.c (compile_method): Fix a typo in a comment.
3011 * aot-runtime.c (decode_cached_class_info): Skip generic types.
3013 * aot-compiler.c: Add minimal support for AOTing generic code by skipping
3016 * mini.c (mono_method_to_ir): Disable AOT when calling helper_compile_generic_method.
3018 2007-05-09 Zoltan Varga <vargaz@gmail.com>
3020 * mini.h (MonoCompile): Add 'args' field.
3022 * mini.c (mono_compile_create_vars): Store variables representing the arguments
3025 * mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
3027 2007-05-08 Zoltan Varga <vargaz@gmail.com>
3029 * mini.c (mono_compile_get_interface_var): Remove this unused function.
3031 * mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
3033 * mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
3034 opcodes for some opcodes.
3036 * mini.h *.brg *.c: Use the new opcodes.
3038 2007-05-08 Massimiliano Mantione <massi@ximian.com>
3040 * mini.h: Bumped aot revision.
3042 * inssel.brg: modified code generation of type checks for interfaces
3043 to use the new "MonoClass.interface_bitmap" instead of the old
3044 "MonoClass.interface_offsets".
3046 2007-04-30 Zoltan Varga <vargaz@gmail.com>
3048 * cpu-amd64.md (jmp): Increase the maximum size of the jmp opcode to 128.
3050 2007-04-29 Zoltan Varga <vargaz@gmail.com>
3052 * abcremoval.c (summarize_integer_value): Handle OP_LCONV_TO_I4 to fix abcrem on
3055 2007-04-27 Neale Ferguson <neale@sinenomine.net>
3057 * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
3059 2007-04-27 Wade Berrier <wberrier@novell.com>
3061 * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in
3062 mini.h) to fix build.
3064 2007-04-26 Zoltan Varga <vargaz@gmail.com>
3066 * mini-amd64.c (peephole_pass_1): Fix and reenable this pass.
3068 * mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
3069 causes the corlib unit tests to fail.
3071 2007-04-25 Zoltan Varga <vargaz@gmail.com>
3073 * mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.
3075 * mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.
3077 * mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional
3078 opcodes to the comparison relations.
3080 * mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional
3081 opcodes to their types.
3083 * mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.
3085 * mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache
3086 it in cfg->arch.cinfo.
3088 * local-propagation.c (mono_local_cprop_bb): Fix a warning.
3090 * mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in
3091 cfg->cil_offset_to_bb.
3093 2007-04-24 Zoltan Varga <vargaz@gmail.com>
3095 * liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
3096 created becase of initlocals.
3098 2007-04-23 Zoltan Varga <vargaz@gmail.com>
3100 * mini-alpha.c cpu-alpha.md: More alpha port work from
3101 Sergey Tikhonov <tsv@solvo.ru>.
3103 2007-04-21 Andreas Faerber <andreas.faerber@web.de>
3105 * Makefile.am (BUILT_SOURCES): Fix for automake 1.6.x. Fixes #81417.
3107 2007-04-19 Zoltan Varga <vargaz@gmail.com>
3109 * cpu-s390.md (break): Correct the length of break instruction.
3111 Thu Apr 19 16:28:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
3113 * mini.c: fix a couple of soft-float issues and comments.
3115 2007-04-15 Miguel de Icaza <miguel@novell.com>
3117 * trace.c (is_filenamechar): - is also a filename char.
3119 2007-04-15 Neale Ferguson <neale@sinenomine.net>
3121 * mini-s390.c: Correct checking for enum type in return value processing.
3123 2007-04-14 Raja R Harinath <rharinath@novell.com>
3125 * Makefile.am (BUILT_SOURCES): Add 'version.h'.
3126 (version.h): Makefile is in the build directory.
3128 2007-04-06 Andreas Faerber <andreas.faerber@web.de>
3130 * mini-amd64.h: fix for assertion failure on Solaris/amd64
3132 2007-04-11 Martin Baulig <martin@ximian.com>
3134 * mini.c (can_access_member): Fix handling of generic classes;
3137 2007-04-10 Zoltan Varga <vargaz@gmail.com>
3139 * aot-runtime.c (mono_aot_plt_resolve): Fix disabling of AOT. Fixes #81316.
3141 2007-04-05 Zoltan Varga <vargaz@gmail.com>
3143 * aot-runtime.c: Fix disabling of AOT. Fixes #81316.
3145 Fri Mar 23 20:25:31 CET 2007 Paolo Molaro <lupus@ximian.com>
3147 * mini-codegen.c: make sure the right spill amount is
3148 used for fp or integer registers (fixes the float_sub_spill() on ppc).
3150 Fri Mar 23 19:43:35 CET 2007 Paolo Molaro <lupus@ximian.com>
3152 * mini-ppc.c: fixes for the fp_branch_nan test.
3154 2007-03-23 Zoltan Varga <vargaz@gmail.com>
3156 * basic.cs: Comment out new test which still fails on ia64.
3158 Fri Mar 23 15:54:23 CET 2007 Paolo Molaro <lupus@ximian.com>
3160 * mini.c: immediate shifted or fix (mono_metadata_user_string assert).
3162 Fri Mar 23 12:53:28 CET 2007 Paolo Molaro <lupus@ximian.com>
3164 * mini-ppc.c, mini-ppc.h: struct passing ABI fix (bug #77968).
3166 2007-03-22 Zoltan Varga <vargaz@gmail.com>
3168 * cfold.c (FOLD_BINOP): Cast the result to gint32 to prevent overflow problems
3169 on 64 bit machines. Fixes part of #80738.
3171 * basic.cs: Add regression test.
3173 2007-03-17 Zoltan Varga <vargaz@gmail.com>
3175 * inssel.brg basic.cs: Revert previous change to fix build.
3177 * inssel.brg (SWITCH): Clean out the upper word of the switch value on 64 bit
3180 * inssel.brg (SWITCH): Use an integer comparison. Fixes #80738.
3182 * basic.cs: Add new regression test.
3184 2007-03-17 Zoltan Varga <vargaz@gmail.com>
3186 * mini-ia64.c (mono_arch_emit_prolog): Fix an assert when a function has too
3189 2007-03-16 Neale Ferguson <neale@sinenomine.net>
3191 * cpu-s390x.md: Correct length of break instruction.
3193 2007-03-16 Neale Ferguson <neale@sinenomine.net>
3195 * mini-s390x.c, cpu-s390x.md: Fix #80507 for s390x.
3196 * mini-s390.c, cpu-s390.md: Fix #80507 for s390.
3198 2007-03-15 Jonathan Chambers <joncham@gmail.com>
3200 * *.c: Begin WIN64 port.
3201 * mini.c: Use correct register in profiler.
3202 * mini-amd64.c: No inline assembly on Win64.
3203 * mini-amd64.h: Implement MONO_INIT_CONTEXT_FROM_FUNC for Win64.
3204 Only define MONO_ARCH_USE_SIGACTION on non-windows platforms.
3205 * exceptions-amd64.c: Only need gregs_from_ucontext if MONO_ARCH_USE_SIGACTION
3206 is defined. Implement mono_arch_sigctx_to_monoctx, mono_arch_monoctx_to_sigctx, and
3207 mono_arch_ip_from_context for Win64.
3209 Contributed under MIT/X11 license.
3211 2007-03-15 Zoltan Varga <vargaz@gmail.com>
3213 * exceptions-amd64.c (seh_handler): Ditto.
3215 * exceptions-x86.c (seh_handler): Fix a memory leak.
3217 Thu Mar 15 13:47:59 CET 2007 Paolo Molaro <lupus@ximian.com>
3219 * mini-arm.c, mini-mips.c, mini-ppc.c, mini-s390.c,
3220 mini-s390x.c: fixed peephole optimizations to deal
3221 correctly with 1 and 2 byte reload avoidance.
3223 Thu Mar 15 10:17:54 CET 2007 Paolo Molaro <lupus@ximian.com>
3225 * cpu-s390.md, cpu-s390x.md: update localloc length.
3227 Wed Mar 14 21:00:19 CET 2007 Paolo Molaro <lupus@ximian.com>
3229 * cpu-g4.md: added missing descriptions.
3231 2007-03-14 Miguel de Icaza <miguel@novell.com>
3233 * Makefile.am: Add support so the tail tests are not executed on
3234 PowerPC as that is a known limitation of the PowerPC port.
3236 2007-03-13 Jonathan Chambers <joncham@gmail.com>
3238 * runmdesc.bat: Move to msvc directory.
3240 2007-03-13 Jonathan Chambers <joncham@gmail.com>
3242 * runmdesc.bat: Run executable that was produced by the current
3243 target and sent via an argument.
3245 2007-03-11 Zoltan Varga <vargaz@gmail.com>
3247 * mini.c (mono_method_to_ir): Fix box+brtrue optimization. Fixes
3250 * generics.2.cs: Add regression test.
3252 2007-03-09 Wade berrier <wberrier@novell.com>
3254 * mini-ppc.h: Undo typo of MONO_CONTEXT_SET_SP (ppc doesn't define this symbol)
3256 2007-03-09 Zoltan Varga <vargaz@gmail.com>
3258 * aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
3259 AOT code depends on this.
3261 Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
3263 * mini.c: more precise tracking of types in the eval stack
3264 (part of fix for bug #81044).
3266 2007-03-07 Zoltan Varga <vargaz@gmail.com>
3268 * aot-runtime.c (mono_aot_get_class_from_name): Add a cache.
3270 * aot-compiler.c (encode_patch): Remove an obsolete comment.
3272 2007-03-06 Zoltan Varga <vargaz@gmail.com>
3274 * mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.
3276 * mini.c (mono_method_to_ir): Add a workaround for bug #80733.
3278 2007-02-22 Zoltan Varga <vargaz@gmail.com>
3280 * mini.c (type_from_op): Convert CEE_CONV_U to OP_LCONV_TO_U when the argument is
3281 a pointer on 64 bit systems. Fixes #80190.
3283 * iltests.il: Add new regression test.
3285 Tue Feb 20 11:33:28 CET 2007 Paolo Molaro <lupus@ximian.com>
3287 * mini.c: inline a constant for Environment.IsRunningOnWindows.
3289 2007-02-19 Geoff Norton <gnorton@customerdna.com>
3291 * trace.c: Remove an erroneous alignemnt check when tracing.
3292 Fixes --trace on OSX86.
3294 Wed Feb 14 19:45:56 CET 2007 Paolo Molaro <lupus@ximian.com>
3296 * mini-$(arch).h: initialize SP in context for all the archs.
3298 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
3300 * mini-x86.h: Initialize SP in MONO_INIT_CONTEXT_FROM_FUNC. Fix CAS
3301 regressions in the thread tests.
3303 2007-02-14 Zoltan Varga <vargaz@gmail.com>
3305 * *-alpha.*: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>:
3306 - fixed implementation of LOCALLOC opcode
3307 - implemented non-un compare for floats
3309 - implementation of FDIV and CKFINITE opcodes
3310 - fixes for latest mono updates
3311 - additional arch opcodes
3313 Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
3315 * Makefile.am: simplify and merge rules for cross-compilation.
3317 2007-02-07 Massimiliano Mantione <massi@ximian.com>
3319 * local-propagation.c: Actually *apply* the fix for bug 80591...
3321 Tue Feb 6 19:03:19 CET 2007 Paolo Molaro <lupus@ximian.com>
3323 * mini-exceptions.c: backuot part of the last change
3324 (fixes cas tests on amd64 related to GetExecutingAssembly ()).
3326 2007-02-06 Massimiliano Mantione <massi@ximian.com>
3327 * inssel.brg: Fix bug 59286.
3330 Tue Feb 6 12:23:50 CET 2007 Paolo Molaro <lupus@ximian.com>
3332 * mini-exceptions.c: patch from Zoltan to correctly check for
3333 stack boundaries (using the stack register, not the frame register),
3334 fixes bugs #80724, #79717.
3336 2007-02-03 Zoltan Varga <vargaz@gmail.com>
3338 * mini-ia64.c inssel-sparc.brg mini-sparc.c cpu-sparc.md: Get rid of OP_SETREG/
3339 OP_SETREGIMM, use OP_MOVE/OP_ICONST instead.
3341 * mini-amd64.c (mono_arch_output_basic_block): Fix ATOMIC_EXCHANGE in the
3342 presence of frame pointer elimination.
3344 2007-02-01 Geoff Norton <gnorton@customerdna.com>
3346 * mini-x86.h: NetBSD UCONTEX_REG defines.
3348 2007-02-01 Zoltan Varga <vargaz@gmail.com>
3350 * inssel-amd64.brg: Fix amd64 build.
3352 Thu Feb 1 14:02:09 CET 2007 Paolo Molaro <lupus@ximian.com>
3354 * mini.h: remove extern to workaround what looks likes gcc bug 26905
3357 2007-01-31 Zoltan Varga <vargaz@gmail.com>
3359 * mini-codegen.c (mono_is_regsize_var): New helper function usable by the back
3362 * mini-<ARCH>.c: Use mono_is_regsize_var ().
3364 2007-01-30 Mark Mason <mason@broadcom.com>
3366 * exceptions-mips.c: Lots of exception handling fixes, LMFs now work, some cleanups.
3367 * mini-mips.h: Add LMF magic numbers, and fix context set/get macros.
3368 * mini-mips.c: Cleanups, LMF handling now works, optimize store of zero, implement localloc
3369 beginning support for CEE_JMP [not quite working yet]
3370 * tramp-mips.c: LMF handling now works
3372 2007-01-30 Zoltan Varga <vargaz@gmail.com>
3374 * mini-amd64.c (peephole_pass): Optimize code common in initlocals blocks.
3376 * mini.h (NULLIFY_INS): New macro.
3378 Tue Jan 30 16:33:33 CET 2007 Paolo Molaro <lupus@ximian.com>
3380 * mini.c: statistical profiler fix for windows, patch
3381 from Tor Lillqvist (tml@novell.com).
3383 2007-01-30 Massimiliano Mantione <massi@ximian.com>
3384 * local-propagation.c: Fix bug 80591.
3386 Mon Jan 29 12:14:34 CET 2007 Paolo Molaro <lupus@ximian.com>
3388 * Makefile.am: put back the --export-dynamic option as with
3389 the previous gmodule flags (thanks to Robert Jordan).
3391 2007-01-28 Zoltan Varga <vargaz@gmail.com>
3393 * mini-sparc.c (peephole_pass): Fix #80622 for sparc as well.
3395 mini.h *.c: Allocate fp vregs from the same pool as the int vregs. Use this to
3396 simplify and speed up the local register allocator. Also rename some fields
3397 like iassign->vassign.
3399 * regalloc.c: Remove some functions which are no longer used since their
3400 inlined version is in mini-codegen.c.
3402 * mini-codegen.c: Rename mono_regstate2_ functions to mono_regstate_.
3404 * basic.cs objects.cs iltests.il: Merge tests from the linear IL branch.
3406 2007-01-27 Zoltan Varga <vargaz@gmail.com>
3408 * mini-amd64.c (peephole_pass): Remove optimizations which omit a
3409 narrowing. Fixes #80622.
3411 * iltests.il: Add new regresssion test.
3413 Fri Jan 26 18:31:45 CET 2007 Paolo Molaro <lupus@ximian.com>
3415 * mini.h, mini-trampolines.c, aliasing.c, mini-codegen.c,
3416 debug-debugger.c, debug-debugger.h: warning fixes.
3417 * driver.c: updated copyright year and made it fit in one line.
3419 Fri Jan 26 12:48:39 CET 2007 Paolo Molaro <lupus@ximian.com>
3421 * aot-runtime.c: updated to use mono-dl instead of gmodule.
3423 2007-01-25 Zoltan Varga <vargaz@gmail.com>
3425 * mini-x86.c (mono_arch_output_basic_block): Fix #80507 for x86.
3427 * mini-amd64.c (mono_arch_output_basic_block): Fix #80507 for amd64.
3429 * iltests.il: Add new test for bug #80507.
3431 Wed Jan 24 19:10:28 CET 2007 Paolo Molaro <lupus@ximian.com>
3433 * mini-arm.h: use soft-float also on vfp for now.
3435 Wed Jan 24 14:54:40 CET 2007 Paolo Molaro <lupus@ximian.com>
3437 * mini.c: fix some more soft-float issues.
3439 2007-01-24 Zoltan Varga <vargaz@gmail.com>
3441 * mini-sparc.h (MONO_ARCH_FRAME_ALIGNMENT): Fix sparc build.
3443 2007-01-24 Massimiliano Mantione <massi@ximian.com>
3444 * mini-arch.h, , inssel-amd64.brg, mini-x86.c, inssel-x86.brg,
3445 mini-ia64.c, mini-sparc.c, mini-alpha.c: Introduced
3446 MONO_ARCH_LOCALLOC_ALIGNMEENT to fix bug 80498.
3448 Wed Jan 24 12:04:39 GMT 2007 Paolo Molaro <lupus@ximian.com>
3450 * mini-arm.c: typo fix.
3452 2007-01-23 Neale Ferguson <neale@sinenomine.net>
3454 * mini-s390x.c: Use lgb instructions for I1 type variables instead of lb.
3456 2007-01-21 Zoltan Varga <vargaz@gmail.com>
3458 * mini.c (mono_allocate_stack_slots_full): Allocate memory from the cfg mempool.
3459 Share stack slots for scalar types. Avoid expensive g_list_free () calls.
3461 * mini-x86.c (mono_arch_allocate_vars): Don't free the result of allocate_stack_slots_full.
3463 * mini-amd64.c mini-ia64.c mini-alpha.c: Ditto.
3465 * mini.h (MonoJitStats): Add a new JIT statistics: locals_stack_size.
3467 * inssel.brg: Fix a warning.
3469 * mini.h (MonoBasicBlock): Make bb->dominated a GSList.
3471 * abcremoval.c ssa.c ssapre.c: Update after this change.
3473 * dominators.c (compute_dominators): Allocate bb->dominated from the cfg mempool.
3475 * dominators.c (df_set): Use mono_bitset_union_fast.
3477 Sat Jan 20 16:59:01 CET 2007 Paolo Molaro <lupus@ximian.com>
3479 * mini.h, genmdesc.c, genmdesc.pl, mini-${arch}.c, cprop.c,
3480 mini-codegen.c: reduce relocations and memory usage for the cpu
3483 2007-01-20 Zoltan Varga <vargaz@gmail.com>
3485 * mini-codegen.c (mono_regstate2_alloc_int): Optimize this using bsfq on amd64.
3487 * genmdesc.c genmdesc.pl mini.h: Remove some unused fields from the mdesc tables
3488 to reduce their size.
3490 2007-01-19 Mark Mason <mason@broadcom.com>
3492 * exceptions-mips.c: fix mono_arch_ip_from_context(), increase exception debug support.
3493 * mini-mips.c: more configuration macros, support long conditional branches, additional
3494 asserts, fix epilog instrumentation.
3495 * mini-mips.h: use standard stack walk
3496 * cpu-mips.md: increase size of div, rem and conditional branches
3498 Fri Jan 19 17:23:32 CET 2007 Paolo Molaro <lupus@ximian.com>
3500 * mini.h, mini-codegen.c, mini-$(arch).h: claenup references
3503 2007-01-19 Zoltan Varga <vargaz@gmail.com>
3505 * aot-compiler.c (encode_klass_info): Allow classes of the form <Type>[][].
3506 (compile_method): Ditto.
3508 * aot-runtime.c (decode_klass_info): Ditto.
3510 * mini.c (mono_method_to_ir): Call mono_get_got_var () in a place where it is
3511 needed by the code generated by inssel.brg. Also fix a warning.
3513 Thu Jan 18 17:55:22 CET 2007 Paolo Molaro <lupus@ximian.com>
3515 * mini.c: deal with enums that become genericinsts by
3516 being nested in a generic class (bug #79956).
3518 Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
3520 * mini.c: match the generic definition to check for
3521 private access with generic types (bug #78431).
3523 Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
3525 * genmdesc.pl, Makefile.am: perl implementation of genmdesc,
3526 to make life easier for people cross-compiling that insist on not
3529 2007-01-17 Mark Mason <mason@broadcom.com>
3531 * inssel-long.brg: patch to deal with mips missing flags
3532 * inssel-long32-mips.brg: implement overflow checks
3533 * insset-mips.brg: implement overflow checks
3534 * mini-mips.h: implement conditional exception handling
3535 * mini-mips.c: add mips_emit_exc_by_name(), implement conditional exception handling.
3536 Remove unused code, minor cleanups.
3537 * exceptions-mips.c: minor cleanups
3538 * mini-ops.h: add mips conditional exception ops
3539 * cpu-mips.md: add mips conditional exception ops
3542 Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
3544 * inssel.brg: patch from Mark Mason <mason@broadcom.com>
3545 to deal with mips missing of flags.
3547 Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
3549 * exceptions-ppc.c: execute fault handlers.
3551 Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
3553 * mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.
3555 Tue Jan 16 13:14:31 CET 2007 Paolo Molaro <lupus@ximian.com>
3557 * mini.c: handle also floating point values in initialize_array.
3559 Tue Jan 16 12:42:40 CET 2007 Paolo Molaro <lupus@ximian.com>
3561 * mini.c, aot-runtime.c, aot-compiler.c: enable aot compilation of
3562 array initialization and make it conditional on the intrins option.
3564 Tue Jan 16 11:28:45 CET 2007 Paolo Molaro <lupus@ximian.com>
3566 * mini.h, patch-info.h, Makefile.am, aot-compiler.c: reduce
3567 relocations and put the patch info names close to the enum definition.
3569 2007-01-15 Mark Mason <mason@broadcom.com>
3571 * basic.cs, exceptions.cs: break up large tests to increase debugability.
3573 Mon Jan 15 18:57:14 CET 2007 Paolo Molaro <lupus@ximian.com>
3575 * mini.c: optimized RuntimeHelpers::InitializeArray () calls.
3577 2007-01-12 Raja R Harinath <rharinath@novell.com>
3579 * mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
3581 Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
3583 * Makefile.am: distribute the mips sources.
3585 Wed Jan 10 19:49:33 CET 2007 Paolo Molaro <lupus@ximian.com>
3587 * mini-codegen.h: handle bug #80489 here, by excluding ecx
3590 Wed Jan 10 19:08:05 CET 2007 Paolo Molaro <lupus@ximian.com>
3592 * cpu-x86.md: back out for now as this triggers other regressions.
3594 Wed Jan 10 18:33:16 CET 2007 Paolo Molaro <lupus@ximian.com>
3596 * cpu-x86.md: force src1 and dest regpair for long shift instructions
3597 to eax:edx, so ecx can't get allocated to them (bug #80489).
3599 Tue Jan 9 12:36:11 CET 2007 Paolo Molaro <lupus@ximian.com>
3601 * mini.c, mini-exceptions.c: enabled running fault handlers
3604 2007-01-03 Miguel de Icaza <miguel@novell.com>
3606 * driver.c: If nothing fail, do not use the string "failed",
3607 because it makes it very annoying to view test result logs on the
3610 2006-12-30 Miguel de Icaza <miguel@novell.com>
3612 * debug-debugger.c (mono_debugger_main): Rename "main" to
3613 "main_method" to prevent a warning.
3615 Remove a warning for unused field.
3617 2006-12-28 Martin Baulig <martin@ximian.com>
3620 (MONO_DEBUGGER__debugger_info): Add `get_lmf_addr'.
3622 2006-12-22 Martin Baulig <martin@ximian.com>
3624 * mdb-debug-info32.s, mdb-debug-info64.s: New files.
3625 Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
3626 seperate `.mdb_debug_info' section, so we can access it from the
3627 debugger even if the binary is stripped.
3629 * debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
3630 from the `.mdb_debug_info' here to prevent the linker from
3631 removing that section.
3633 * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
3636 2006-12-19 Robert Jordan <robertj@gmx.net>
3638 * mini-x86: enable the code to return small structures in
3639 registers for FreeBSD as well. Fixes bug #80278.
3640 * aot-runtime.c: Include sys/wait.h for WEXITSTATUS/WIFEXITED.
3642 Mon Dec 18 19:47:17 CET 2006 Paolo Molaro <lupus@ximian.com>
3644 * mini-x86.c: align the stack when calling the profiler
3645 function instrumenting the prolog (on OSX).
3647 Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
3649 * mini.c: emit a break opcode where Debugger.Break () is called.
3651 2006-12-13 Miguel de Icaza <miguel@novell.com>
3653 * mini.c (mono_method_to_ir): Provide useful information on this
3654 assert, to prevent others from debugging like I did.
3656 Tue Dec 12 17:01:38 CET 2006 Paolo Molaro <lupus@ximian.com>
3658 * mini.c: enable code which was incorrectly commented
3661 Tue Dec 12 16:28:15 CET 2006 Paolo Molaro <lupus@ximian.com>
3663 * mini-x86.c: enable on OSX, too, the code to return small
3664 structures in registers.
3666 Mon Dec 11 19:22:35 CET 2006 Paolo Molaro <lupus@ximian.com>
3668 * mini-x86.c: remove the use of the dynamic code manager here, too.
3670 Mon Dec 11 19:08:33 CET 2006 Paolo Molaro <lupus@ximian.com>
3672 * mini.h, debug-debugger.c, tramp-*.c: fixed
3673 mono_debugger_create_notification_function() to use
3674 mono_global_codeman_reserve () instead of a dynamic code manager.
3676 Tue Dec 5 17:54:50 CET 2006 Paolo Molaro <lupus@ximian.com>
3678 * mini.c, jit-icalls.h, jit-icalls.c: remove the
3679 ves_array_element_address() jit icall and use a generated
3680 managed method instead (which is about 4 times faster for a rank 3
3683 2006-11-29 Mark Mason <mason@broadcom.com>
3685 * basic-calls.cs: additional tests for passing
3686 structures as function arguments.
3688 2006-11-29 Mark Mason <mason@broadcom.com>
3690 * mini-mips.h: disable custom exception handling
3691 * mini-mips.c: throw/rethrow should use jalr to call
3692 exception stubs. Fixed bug with passing structures
3693 by value. More support for tracing floating point
3696 Wed Nov 29 20:28:17 CET 2006 Paolo Molaro <lupus@ximian.com>
3698 * mini.c: fixed typo in the soft-float ldind.r4 handling
3701 Wed Nov 29 11:33:03 CET 2006 Paolo Molaro <lupus@ximian.com>
3703 * mini.c, mini.h, driver.c: added --runtime command line
3704 option to select a different runtime than the autodetected one.
3705 * jit.h: added API for embedders to initialize with a specific
3708 Tue Nov 28 21:24:55 CET 2006 Paolo Molaro <lupus@ximian.com>
3710 * mini.c: handle also boxing of r4 values (bug #80024).
3712 Tue Nov 28 19:45:44 CET 2006 Paolo Molaro <lupus@ximian.com>
3714 * mini-ppc.c: force indirect calls until we reserve
3715 enough address space for all the generated code.
3717 Tue Nov 28 20:04:34 GMT 2006 Paolo Molaro <lupus@ximian.com>
3719 * exceptions-arm.c: workaround bugs in the libc definition
3722 Mon Nov 27 15:13:41 CET 2006 Paolo Molaro <lupus@ximian.com>
3724 * inssel.brg: fixes from me and Mark Mason.
3726 2006-11-23 Dick Porter <dick@ximian.com>
3728 * wapihandles.c (mini_wapi_seminfo): No need to adjust the counter
3729 semaphore display now we've fixed the initial value
3731 Wed Nov 22 11:04:37 CET 2006 Paolo Molaro <lupus@ximian.com>
3733 * inssel.brg: partially revert the last change to fix the build.
3735 2006-11-21 Mark Mason <mason@broadcom.com>
3737 * inssel.brg: Add and use compare-and-branch macros to support
3738 architectures that do not have condition code registers (ie. MIPS).
3739 * *-mips.{c,brg,md}: Fix copyright statements
3741 2006-11-20 Mark Mason <mason@broadcom.com>
3743 * Makefile.am: remove mini-codegen.c from list of MIPS sources
3744 * mini.c: Allow GET_CONTEXT to be specified by the arch port
3745 * mini.h: Added declaration for mono_print_ins()
3746 * mini-codegen.c: added ins_spec initializer for MIPS
3747 * mini-codegen.c (mono_call_inst_add_outarg_reg): added asserts for
3748 vreg to be virtual and hreg to be non-virtual.
3749 * mini-codegen.c (mono_spillvar_offset): assert if MIPS - spilling
3750 is not yet working/implemented correctly.
3751 * mini-codegen.c (print_ins): rename to mono_print_ins(), make
3752 non-static, fixup calls to print_ins() from other parts in the file.
3754 2006-11-20 Mark Mason <mason@broadcom.com>
3756 * basic-calls.cs: added tests for passing structures as arguments
3759 Mon Nov 20 19:40:11 CET 2006 Paolo Molaro <lupus@ximian.com>
3761 * inssel-long32.brg: optimize signed division by power of two.
3763 Mon Nov 20 17:37:58 CET 2006 Paolo Molaro <lupus@ximian.com>
3765 * mini-arm.c: added support for interworking with thumb code
3766 (mono must be still be built using the ARM instruction encoding).
3768 2006-11-19 Miguel de Icaza <miguel@novell.com>
3770 * mini.c (type_from_op): Separate the conditions for OP_EQ as the
3771 verifier has different rules for it. Fixes a few verifier issues
3774 * mini-exceptions.c (mono_handle_native_sigsegv): Put the message
3775 at the end, so people know what happened.
3777 Thu Nov 16 14:07:18 CET 2006 Paolo Molaro <lupus@ximian.com>
3779 * brach-opts.c: in optimize_exception_target() make sure we
3780 are in a catch clause (fixes bug #79871).
3782 Thu Nov 16 12:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
3784 * jit-icalls.c, jit-icalls.h, mini-arm.c, mini.c:
3785 more soft-float support fixes.
3787 Wed Nov 15 18:45:47 GMT 2006 Paolo Molaro <lupus@ximian.com>
3789 * mini-arm.c, inssel-arm.brg: ABI fix for longs and doubles
3790 that are passed half on the stack and half in registers.
3792 Wed Nov 15 17:00:27 CET 2006 Paolo Molaro <lupus@ximian.com>
3794 * mini-ops.h, mini-arch.h, helpers.c, Makefile.am:
3795 more mips integration work from Mark E Mason
3796 <mark.e.mason@broadcom.com>.
3798 Wed Nov 15 16:34:03 CET 2006 Paolo Molaro <lupus@ximian.com>
3800 * exceptions-mips.c, inssel-mips.brg, mini-mips.h,
3801 cpu-mips.md, inssel-long32-mips.brg, mini-mips.c,
3802 tramp-mips.c: added sources for the mips port, not
3803 integrated in the build yet. Contributed by
3804 Mark E Mason <mark.e.mason@broadcom.com>.
3806 2006-11-14 Neale Ferguson <neale@sinenomine.net>
3808 * mini-s390[x].c (is_regsize_var): Support PTR/FNPTR too.
3810 Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
3812 * Makefile.am, inssel-float.brg, inssel-softfloat.brg:
3813 put the soft-float rules in its own file since it seems to
3814 break s390 compilation.
3816 Mon Nov 13 15:54:38 CET 2006 Paolo Molaro <lupus@ximian.com>
3818 * mini-arm.c: fixed wrnings.
3820 Fri Nov 10 19:18:32 CET 2006 Paolo Molaro <lupus@ximian.com>
3822 * mini-arm.c, mini-arm.h, cpu-arm.md, inssel-float.brg,
3823 inssel-arm.brg: ARM support for soft-float.
3825 Fri Nov 10 18:38:15 CET 2006 Paolo Molaro <lupus@ximian.com>
3827 * mini.c, jit-icalls.c, jit-icalls.h: added first cut at handling
3828 loads and stores of 32 bit fp values.
3830 2006-11-10 Zoltan Varga <vargaz@gmail.com>
3832 * mini-sparc.c (is_regsize_var): Support PTR/FNPTR too.
3834 * tramp-sparc.c (mono_arch_patch_callsite): Fix this function so it actually
3835 works. Fixes #79852 and #79463.
3837 Thu Nov 9 16:56:13 CET 2006 Paolo Molaro <lupus@ximian.com>
3839 * mini.c, mini-codegen.c, jit-icalls.c, jit-icalls.h:
3840 more soft-float support WIP and fixes.
3842 Wed Nov 8 16:40:02 CET 2006 Paolo Molaro <lupus@ximian.com>
3844 * mini-arm.c: some VFP updates.
3846 Tue Nov 7 19:45:51 CET 2006 Paolo Molaro <lupus@ximian.com>
3848 * mini-exceptions.c: 0 is a valid local var offset in some
3849 architectures, don't assert (bug #78508).
3851 Tue Nov 7 18:17:52 GMT 2006 Paolo Molaro <lupus@ximian.com>
3853 * exceptions-arm.c: fixed off by one error in stack walk code.
3855 Tue Nov 7 11:27:26 CET 2006 Paolo Molaro <lupus@ximian.com>
3857 * mini.h, mini.c: more precise tracking of type load exceptions.
3859 2006-11-03 Robert Jordan <robertj@gmx.net>
3861 * Makefile.am: [WIN32] Add monow.exe target.
3862 * driver.c: [WIN32] Don't detach the console when debugging.
3865 2006-10-30 Miguel de Icaza <miguel@novell.com>
3867 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Eliminate warning.
3869 2006-10-23 Zoltan Varga <vargaz@gmail.com>
3871 * aot-compiler.c (emit_method_info): Add a case missed earlier.
3873 * driver.c (mini_regression): Fix --regression with AOT.
3875 * aot-compiler.c (emit_method_info): Fix AOT on amd64.
3877 2006-10-17 Zoltan Varga <vargaz@gmail.com>
3879 * mini.c (GET_CONTEXT): Correct the definition of this for sparc/linux.
3881 * mini-sparc.h: Don't use sigaction on sparc/linux.
3883 * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of places.
3885 * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
3887 * mini-exceptions.c: Add proper include files for getpid ().
3889 2006-10-16 Zoltan Varga <vargaz@gmail.com>
3891 * aot-runtime.c (mono_aot_get_method): Change this to return the native code
3892 address instead of a MonoJitInfo* to avoid decoding the exception info for the
3895 * aot-runtime.c aot-compiler.c: Use uint16 instead of uint32 entries in the
3896 name cache to reduce its size.
3898 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
3900 2006-10-15 Zoltan Varga <vargaz@gmail.com>
3902 * mini-x86.c: Save/restore the current LMF structure more efficiently using
3903 the mono_lmf TLS variable.
3905 * exceptions-x86.c (mono_arch_find_jit_info): Only access lmf->method in
3906 trampoline lmf frames.
3908 * mini-sparc.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Define this on sparc as well.
3910 2006-10-14 Zoltan Varga <vargaz@gmail.com>
3912 * mini-amd64.c: Save/restore the current LMF structure more efficiently using
3913 the mono_lmf TLS variable.
3915 * mini-exceptions.c: Access the LMF structure through accessors.
3917 * mini.c: Allow the backends the option for storing the lmf in a dedicated TLS
3918 variable instead of in jit_tls->lmf.
3920 * mini-x86.c mini-amd64.c: Update after lmf->lmf_addr name change.
3922 * exceptions-amd64.c (mono_arch_find_jit_info): Only access lmf->method in
3923 trampoline lmf frames.
3925 * mini-amd64.c (mono_arch_emit_prolog): Do not set lmf->method as it is not needed.
3927 2006-10-12 Zoltan Varga <vargaz@gmail.com>
3929 * mini.c trace.c mini-x86.c: Revert these too.
3931 * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
3934 Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
3936 * genmdesc.c: removed now dead code.
3938 2006-10-09 Robert Jordan <robertj@gmx.net>
3940 * mini.c: Disable the CrashReporter on MacOS X; Fixes #74869
3942 Mon Oct 9 17:06:41 CEST 2006 Paolo Molaro <lupus@ximian.com>
3944 * mini.h: do not leave gaps in the opcode values.
3946 Mon Oct 9 16:08:51 CEST 2006 Paolo Molaro <lupus@ximian.com>
3948 * jit-icalls.h: flag functions as internal here, too.
3950 Mon Oct 9 15:58:18 CEST 2006 Paolo Molaro <lupus@ximian.com>
3952 * mini.h, aliasing.h, declsec.h, regalloc.h, trace.h: mark internal
3953 functions with the internal attribute.
3955 Mon Oct 9 15:52:45 CEST 2006 Paolo Molaro <lupus@ximian.com>
3957 * aot-compiler.c: fclose the file descriptor in the profile read loop.
3959 Fri Oct 6 16:01:38 CEST 2006 Paolo Molaro <lupus@ximian.com>
3961 * mini.c, jit-icalls.c, inssel-float.brg: beginnings of support
3964 2006-10-05 Zoltan Varga <vargaz@gmail.com>
3966 * mini-x86.c (emit_load_volatile_arguments): New function to handle arguments of
3967 tail calls as on other platforms.
3969 * mini.c (mono_method_to_ir): Fix a few tailcall problems. Fixes #79557.
3971 * iltests.il: Add a few tailcall tests.
3973 Tue Oct 3 16:33:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
3975 * driver.c: fix loop for old compilers (bug #79521).
3977 2006-10-02 Zoltan Varga <vargaz@gmail.com>
3979 * mini-exceptions.c (ves_icall_get_trace): Remove debug printf.
3981 * aot-runtime.c (mono_aot_get_class_from_name): Avoid a memory allocation.
3983 * aot-compiler.c: Add a new option 'metadata-only' to only emit the cached
3984 metadata without any code.
3986 * mini-exceptions.c (mono_handle_native_sigsegv): Add some code to print out
3987 more precise debugging information using gdb.
3989 2006-09-30 Zoltan Varga <vargaz@gmail.com>
3991 * inssel-ia64.brg: Make the helper methods static.
3993 Thu Sep 28 16:40:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
3995 * inssel-x86.brg: make the helper methods static.
3997 Thu Sep 28 16:31:32 CEST 2006 Paolo Molaro <lupus@ximian.com>
3999 * inssel-amd64.brg, mini-amd64.c: small cleanup, use inst_call.
4001 Thu Sep 28 15:36:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
4003 * mini.c: updates for monoburg changes.
4004 * inssel.brg: make a few helper functions static as they should.
4006 2006-09-27 Zoltan Varga <vargaz@gmail.com>
4008 * Makefile.am: Move mini-codegen.c to common_sources.
4010 Wed Sep 27 15:07:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
4012 * mini.h: instroduce inst_call in MonoInst for use in OUTARG
4014 * Makefile.am, cpu-g4.md, inssel-ppc.brg, mini-codegen.c, mini-ppc.c,
4015 mini-ppc.h: port to use the common local register allocator.
4017 2006-09-26 Zoltan Varga <vargaz@gmail.com>
4019 * mini.h: Remove the comment too then.
4021 Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
4023 * mini.h: put back backend.data which is to be used shortly and
4024 doesn't increase the size of MonoInst. If any 64 bit arch aligned
4025 pointers on 4 byte boundaries it'd have much bigger issues running
4026 and you can ifdef it out anyway.
4028 2006-09-26 Zoltan Varga <vargaz@gmail.com>
4030 * mini.h (MonoInst): Remove backend.data field since it is unused and increases
4031 MonoInst size by 4 bytes on 64 bit machines.
4033 Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
4035 * *.{c,h,brg}: long due removal of the unused field in MonoInst and
4036 replacement with more meaningful field names. Arch maintainers, please
4037 check the assigned names are good enough for your arch.
4039 2006-09-26 Zoltan Varga <vargaz@gmail.com>
4041 * cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the
4042 OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
4044 Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
4046 * mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
4047 relocations and memory requirements, put the optimization flags
4048 definitions in their own file.
4050 2006-09-24 Zoltan Varga <vargaz@gmail.com>
4052 * jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
4054 * mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
4056 2006-09-22 Zoltan Varga <vargaz@gmail.com>
4058 * mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
4060 Thu Sep 21 19:06:09 CEST 2006 Paolo Molaro <lupus@ximian.com>
4062 * inssel.brg: use the correct function to get the size of an item
4063 in an array, given an element class.
4064 * aot-compiler.c: do not access class->class_size directly.
4066 Thu Sep 21 12:10:56 CEST 2006 Paolo Molaro <lupus@ximian.com>
4068 * mini.h, debug-mini.c: added a debugging function to print
4069 info about local variables and arguments in a jitted method.
4071 2006-09-20 Zoltan Varga <vargaz@gmail.com>
4073 * mini-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
4075 * exceptions-ia64.c: Fix some problems reported by Bill Seurer <seurer@us.ibm.com>.
4077 2006-09-19 Zoltan Varga <vargaz@gmail.com>
4079 * mini-ia64.c (mono_arch_call_opcode): Avoid using the same loop index in the
4080 inner and outer loops when passing vtypes.
4082 Tue Sep 19 17:53:40 CEST 2006 Paolo Molaro <lupus@ximian.com>
4084 * mini-ppc.c: take into account the cpu errata for cache flushing
4085 which caused some random errors (bug #79381).
4087 2006-09-19 Zoltan Varga <vargaz@gmail.com>
4089 * mini-amd64.c (mono_arch_emit_exceptions): Emit the call to
4090 mono_arch_throw_corlib_exception using emit_call () too. Fixes #79271.
4092 2006-09-17 Zoltan Varga <vargaz@gmail.com>
4094 * aot-runtime.c (load_aot_module): Return immeditely if the AOT module was already
4097 * exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
4100 * mini-amd64.c (emit_call): Avoid near calls on freebsd.
4101 (mono_arch_patch_code): Remove the unused handling of MONO_PATCH_INFO_CLASS_INIT.
4103 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix check for 32 bitness of
4106 2006-09-13 Zoltan Varga <vargaz@gmail.com>
4108 * aot-runtime.c (load_aot_module_from_cache): Fix PPC build.
4110 2006-09-12 Zoltan Varga <vargaz@gmail.com>
4112 * mini.c (UNVERIFIED): Add a 'break-on-unverified' MONO_DEBUG option so this
4113 macro does not have to be changed during debugging.
4115 * cpu-alpha.md inssel-alpha.brg mini-alpha.h mini-alpha.c exceptions-alpha.c tramp-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
4117 * cpu-pentium.md: Rename this to cpu-x86.md for consistency with other platforms.
4119 * Makefile.am mini-x86.c mini-codegen.c: Rename pentium_desc to x86_desc.
4121 * mini.c (mini_get_ldelema_ins): Allow ldelema2d optimization if
4122 MONO_ARCH_NO_EMULATE_MUL is defined.
4124 * mini-ia64.h (MONO_ARCH_CALLEE_FREGS): Reserve f33 for use by instructions.
4126 * mini-ia64.h: Define MONO_ARCH_NO_EMULATE_MUL.
4128 * mini-ia64.c: Implement CEE_MUL based on gcc emitted code.
4130 * mini-ia64.c (mono_arch_lowering_pass): Optimize store_membase_imm with offset==0.
4132 2006-09-11 Zoltan Varga <vargaz@gmail.com>
4134 * mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
4135 stuff to mini-exceptions.c where it is used.
4137 * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate altstack
4138 setup code, the real one is in mini-exceptions.c.
4140 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies on the
4141 layout of ucontext_t to helper functions in exceptions-amd64.c, as on x86. Add
4142 some changes from the freebsd ports tree.
4144 * mini-amd64.h exceptions-amd64.c: Fix the amd64 build. Get rid of the SC_
4147 * mini-amd64.h: Freebsd has MAP_ANON instead of MAP_ANONYMOUS.
4149 Mon Sep 11 13:18:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
4151 * mini.c: on Linux, check for /proc to be mounted
4152 (bug# 79351, novell bug#201204).
4154 Mon Sep 11 13:10:12 CEST 2006 Paolo Molaro <lupus@ximian.com>
4156 * mini.c: handle cases where pthread_attr_getstack() behaves
4157 incorrectly (bug #78096).
4159 Mon Sep 11 11:31:10 BST 2006 Paolo Molaro <lupus@ximian.com>
4161 * mini-arm.c: support larger stack frames (bug #79272).
4163 2006-09-08 Zoltan Varga <vargaz@gmail.com>
4165 * aot-runtime.c (mono_aot_get_class_from_name): Remove a debug printf.
4167 * aot-compiler.c: Add a hash table to the AOT file mapping class names to typedef
4170 * aot-runtime.c (mono_aot_get_class_from_name): New function used by
4171 mono_class_from_name () to find a class from its name.
4173 * mini.c (mini_init): Register mono_aot_get_class_from_name () with the runtime.
4175 2006-09-07 Zoltan Varga <vargaz@gmail.com>
4177 * mini-amd64.c (emit_call): Avoid strstr () call if possible.
4179 2006-09-05 Kornél Pál <kornelpal@gmail.com>
4181 * Makefile.am: Renamed mono-1.dll to mono.dll. (-avoid-version)
4183 2006-09-04 Zoltan Varga <vargaz@gmail.com>
4185 * mini.c (mono_icall_get_wrapper): Fix a race condition on initializing
4186 callinfo->trampoline.
4188 * mini-amd64.c (emit_call): Special case calls to the vararg array icalls. Hopefully
4190 (mono_arch_patch_code): Add some debug code to help track down similar failures in the
4193 2006-09-03 Zoltan Varga <vargaz@gmail.com>
4195 * aot-runtime.c (mono_aot_plt_resolve): Add an assert.
4197 2006-09-02 Zoltan Varga <vargaz@gmail.com>
4199 * tramp-x86.c (mono_arch_create_specific_trampoline): Don't increase
4200 stats.method_trampolines, it is already done by the generic trampoline code.
4202 * tramp-amd64.c (mono_arch_create_specific_trampoline): Ditto.
4204 2006-09-01 Zoltan Varga <vargaz@gmail.com>
4206 * mini.c: Remove some references to mono_compile_aot, and use cfg->compile_aot instead.
4208 * aot-runtime.c: Add some tweaks to the MONO_AOT_CACHE functionality.
4210 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix a FIXME.
4212 * mini.c (print_jit_stats): Print mscorlib mempool size too.
4214 * mini.c (print_jit_stats): Print new stats.
4216 * *-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
4218 2006-08-31 Zoltan Varga <vargaz@gmail.com>
4220 * mini.c (mini_get_ldelema_ins): Fix verifier error when calling
4221 Address on two dimensional arrays. Fixes #78729.
4223 * mini.h (MonoCompile): Add a 'skip_visibility' field.
4225 * mini.c (method_to_ir): Disable visibility checks if skip_visibility is set on
4228 * mini-amd64.c (mono_arch_emit_exceptions): Fix assertion introduced by the last change.
4230 * mini.c (mono_runtime_cleanup_handlers): Clean up signal handlers on unix. Fixes
4233 * mini.c (handle_array_new): Applied patch from "briaeros007". Fix
4235 (mini_get_ldelema_ins): Ditto.
4237 2006-08-30 Zoltan Varga <vargaz@gmail.com>
4239 * mini-amd64.c (mono_arch_emit_exceptions): Align fp constants to 16 bytes.
4240 (mono_arch_output_basic_block): Avoid unaligned accesses in FNEG implementation.
4243 2006-08-29 Neale Ferguson <neale@sinenomine.net>
4245 * mini-s390.c, mini-s390x.c: Fix VARARG case processing with 0 arguments. Add
4246 mono_arch_get_patch_offset as a dummy entry point to allow successful link.
4248 * exceptions-s390x.c: Cosmetic change.
4250 * tramp-s390.c: Fix warning.
4252 * cpu-s390.md: Correct length of mul_imm.
4254 Wed Aug 23 19:24:00 CEST 2006 Paolo Molaro <lupus@ximian.com>
4256 * aot-compiler.c: added binary writer with ELF backend
4257 implementation (only on Linux/x86 for now).
4259 2006-08-18 Zoltan Varga <vargaz@gmail.com>
4261 * Makefile.am: Don't run net 2.0 AOT tests.
4263 * aot-compiler.c (compile_method): Skip methods with tail calls as well.
4264 (mono_compile_assembly): Skip net 2.0 assemblies as well.
4266 * aot-runtime.c (load_patch_info): Fix an uninitialized memory error.
4268 Fri Aug 18 19:38:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
4270 * aot-compiler.c: simplified and refactored the asm-writing code
4271 to allow different backends.
4273 2006-08-18 Zoltan Varga <vargaz@gmail.com>
4275 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
4277 * aot-compiler.c aot-runtime.c: Reorg the GOT slot allocation code a
4278 little. Share patches of type TYPE_FROM_HANDLE as well.
4280 * mini.c (mono_patch_info_equal): New helper function.
4281 (mono_patch_info_hash): Ditto.
4283 * aot-compiler.c (emit_method_code): Fix s390 build.
4285 * mini.c (mono_allocate_stack_slots_full): Fix yet another place where byref
4286 is not handled because it is stored as a flag and not as a type ctor. Fixes
4289 2006-08-17 Zoltan Varga <vargaz@gmail.com>
4291 * aot-compiler.c: Fix computation of GOT slot statistics.
4293 * aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
4294 Also remove support for not PIC AOT.
4296 * mini.h: Bump AOT file format version.
4298 * objects.cs: Add a test for #78990.
4300 * mini-x86.c (mono_arch_output_basic_block): Applied patch from Peter Dettman
4301 (peter.dettman@iinet.net.au). Fixes #79087.
4303 * basic-long.cs: Add a test for the above.
4305 2006-08-16 Zoltan Varga <vargaz@gmail.com>
4307 * aot-compiler.c (get_got_offset): Add a cache for GOT entries, not yet used.
4309 * aot-compiler.c (get_plt_index): Add a cache for wrappers too. Simplify the
4312 2006-08-15 Zoltan Varga <vargaz@gmail.com>
4314 * mini.c (mini_init): Fix registration of idiv/imul opcodes which can throw
4317 2006-08-10 Jonathan Chambers <joncham@gmail.com>
4319 * mini.c: Don't verify COM proxy invoke calls
4322 2006-08-10 Dick Porter <dick@ximian.com>
4324 * wapihandles.c (mini_wapi_seminfo): More info, to help track down
4325 which process is holding semaphores locked.
4327 2006-08-08 Zoltan Varga <vargaz@gmail.com>
4329 * mini-ia64.c mini-amd64.c: Fix #79027.
4331 * mini-sparc.c (mono_arch_call_opcode): Fix the previous patch.
4333 * mini-sparc.c (mono_arch_call_opcode): Fix #79027.
4335 * mini-x86.c (mono_arch_call_opcode): Handle the case where there are no
4336 implicit arguments in a vararg call. Fixes #79027.
4338 2006-08-07 Zoltan Varga <vargaz@freemail.hu>
4340 * mini.c (mono_get_element_address_signature): Use CDECL calling convention on windows. Fixes #78969.
4341 (mono_get_array_new_va_signature): Ditto.
4343 2006-08-05 Zoltan Varga <vargaz@gmail.com>
4345 * aot-runtime.c: Call init_plt lazily.
4347 * inssel-long.brg: Fix unsigned long->int conversion.
4349 * aot-runtime.c (init_plt): Remove a redundant make_writable () call.
4351 * aot-compiler.c aot-runtime.c: Reorganize the file structure in the amd64 case so
4352 that most data is now in the .rss/.data section.
4354 2006-08-04 Zoltan Varga <vargaz@gmail.com>
4356 * aot-compiler.c: Correct the computation of the 'direct-calls' statistic.
4358 * aot-compiler.c: Print the number of methods without GOT slots as a statistics.
4360 * aot-compiler.c aot-runtime.c tramp-amd64.c: Resurrect amd64 AOT support.
4362 * tramp-amd64.c (mono_arch_patch_callsite): Fix a warning.
4364 * jit-icalls.c (mono_helper_compile_generic_method): Unbox vtypes since this is a
4365 virtual call. Fixes #79010.
4367 * mini.c (mono_method_to_ir): Pass an additional out arg to compile_generic_method
4368 and use the result as the this argument in the real call.
4370 * generics.2.cs: Add a new test for #79010.
4372 2006-08-03 Zoltan Varga <vargaz@gmail.com>
4374 * mini-x86.c: Fix a warning.
4376 * aot-compiler.c: Add a bunch of statistics.
4378 * mini.c (inline_method): Disable inlining in out-of-line bblocks.
4380 2006-08-02 Zoltan Varga <vargaz@gmail.com>
4382 * mini-arch.h Makefile.am mini-ops.h mini-codegen.c: More alpha updates.
4384 2006-08-01 Zoltan Varga <vargaz@gmail.com>
4386 * cpu-alpha.md inssel-alpha.brg mini-alpha.h mini-alpha.c exceptions-alpha.c tramp-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
4388 2006-07-13 Miguel de Icaza <miguel@novell.com>
4390 * mini.c (mono_method_to_ir): Obtain the original method in the
4391 CIL stream and use this to perform validation.
4395 2006-07-19 Zoltan Varga <vargaz@gmail.com>
4397 * mini-x86.c (mono_arch_get_argument_info): Fix a warning.
4398 (mono_arch_call_opcode): Ditto.
4400 * mini.c (mono_method_to_ir): Clear ins_flag at the end of CEE_CALL. Fixes
4403 * mini.c (mono_patch_info_dup_mp): New helper function.
4405 * aot-compiler.c (compile_method): Fix some of the memory allocated during
4406 compilation. Fixes #78827.
4408 2006-07-18 Kornél Pál <kornelpal@gmail.com>
4410 * declsec.c: Use original security informations for
4411 MONO_WRAPPER_MANAGED_TO_MANAGED.
4413 2006-07-15 Jonathan Chambers <joncham@gmail.com>
4415 * mini.c: Allow Com Interop methods/classes and
4416 don't verify COM wrapper calls
4419 2006-07-13 Zoltan Varga <vargaz@gmail.com>
4421 * inssel-long32.brg: Fix long->i4 checked conversion.
4423 * exceptions.cs: Add a test for the above.
4425 2006-07-08 Zoltan Varga <vargaz@gmail.com>
4427 * mini-exceptions.c (mono_setup_altstack): Fix a memory leak.
4429 * mini.c: Applied patch from Joachim Ante (joe@otee.dk). Fix some shutdown
4432 * helpers.c (mono_disassemble_code): Avoid using fixed temporary files. Fixes
4435 2006-07-03 Zoltan Varga <vargaz@gmail.com>
4437 * mini.c: Fix solaris/x86 exception handling.
4439 * Makefile.am: Get rid of $(ICU_LIBS).
4441 2006-07-02 Zoltan Varga <vargaz@gmail.com>
4443 * mini-exceptions.c: Fix handling of unhandled SIGSEGV exceptions on ia64.
4444 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Use MONO_INIT_CONTEXT_FROM_CURRENT.
4445 (ves_icall_System_Security_SecurityFrame_GetSecurityFrame): Ditto.
4447 * mini-ia64.h (MONO_CONTEXT_SET_FUNC): New macro.
4449 * mini-exceptions.c (mono_handle_native_sigsegv): Prevent infinite loops if
4450 this function causes a SIGSEGV.
4452 2006-06-22 Zoltan Varga <vargaz@gmail.com>
4454 * mini.c: Remove unused solaris/x86 includes.
4456 2006-06-21 Zoltan Varga <vargaz@gmail.com>
4458 * jit.h: Add G_BEGIN_DECLS/G_END_DECLS.
4460 2006-06-20 Jb Evain <jbevain@gmail.com>
4462 * cpu-g4.md: fix max length of start_handler instruction.
4464 2006-06-20 Massimiliano Mantione <massi@ximian.com>
4465 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78656.
4467 2006-06-16 Massimiliano Mantione <massi@ximian.com>
4468 * ssa.c: Fixed bug 78653 for SSA based deadce.
4469 * mini.h: added MONO_INST_DEFINITION_HAS_SIDE_EFFECTS flag go
4470 MonoInst.flags, used in SSA based deadce.
4471 * aliasing.c: Fixed bug 78653 for "fastpath" deadce.
4472 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78653.
4474 Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
4476 * tramp-ppc.c: don't use malloc () for trampoline code, sometimes
4477 it can end up using non executable memory on ppc64 systems
4478 running ppc32 userspace (fix from Johannes Berg).
4480 2006-06-14 Dick Porter <dick@ximian.com>
4482 * wapihandles.c: Fix a bunch of signed/unsigned warnings from gcc
4485 2006-06-13 Massimiliano Mantione <massi@ximian.com>
4486 * mini.c: Made so that inline is locally disabled if it would
4487 trigger a .cctor, because too many apps depend on this behavior
4488 (which seems to be also the one of the MS CLR).
4490 2006-06-13 Zoltan Varga <vargaz@gmail.com>
4492 * mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
4493 No idea why this worked before.
4495 * branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
4496 which branch to outer exception clauses since they could skip the
4497 inner finally clauses. Fixes #78633.
4499 * exceptions.cs: Add a test for the above.
4501 * mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
4504 * iltests.il: Add a test for the above.
4506 2006-06-12 Zoltan Varga <vargaz@gmail.com>
4508 * mini.c (remove_block_if_useless): Do not remove the bblock immediately
4509 after the end of a try bblock, to prevent asserts in mini_method_compile ().
4511 * iltests.il: Add a test for the above.
4513 2006-06-10 Zoltan Varga <vargaz@gmail.com>
4515 * mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.
4517 * mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
4518 methods as instrinsics.
4520 2006-06-09 Wade Berrier <wberrier@novell.com>
4522 * Makefile.am: Fix sources list for svn rename so that make dist succeeds
4523 (simple-cee-ops.h ssapre-mini-ops.h)
4525 2006-06-09 Neale Ferguson <neale@sinenomine.net>
4527 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
4528 * mini-s390x.c, mini-s390.c: Correct ATOMIC operations (incorrect register for CS
4530 * mini-s390x.h, mini-s390.h: Simplify MCONTEXT_GET_BP.
4531 * cpu-s390x.md: Fix max. length values for a couple of instructions.
4533 2006-06-09 Jonathan Chambers <jonathan.chambers@ansys.com>
4535 * mini-exceptions.c: Minor fix for building mono in Visual Studio.
4537 2006-06-08 Massimiliano Mantione <massi@ximian.com>
4539 * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
4540 * simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
4541 * ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
4542 * simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
4543 * local-propagation.c: In mono_cprop_invalidate_values use a whitelist
4544 of opcodes, so that bug 78549 should not happen again.
4545 * ssapre.c: Updated to use the renamed files.
4547 2006-06-08 Zoltan Varga <vargaz@gmail.com>
4549 * mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move
4550 in OP_ATOMIC_EXCHANGE_I4.
4552 2006-06-07 Wade Berrier <wberrier@novell.com>
4554 * tramp-s390.c: Fix s390 build (add missing pointer declarations
4555 in mono_debugger_create_notification_function)
4557 2006-06-06 Zoltan Varga <vargaz@gmail.com>
4559 * mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.
4561 * mini.c (type_from_stack_type): Disable some changes which do not
4564 * driver.c: Reenable opts.
4566 * mini.h (MonoStackSlot): New structure to keep track of the verification state
4567 of the evaluation stack.
4569 * mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
4570 evaluation stack trace at entry to the bblock.
4572 * mini.c (merge_stacks): New function to perform verification of stack merges.
4573 Turned off by default.
4575 * mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
4578 2006-06-06 Massimiliano Mantione <massi@ximian.com>
4580 * local-propagation.c: Fixed bug 78549.
4582 2006-06-04 Zoltan Varga <vargaz@gmail.com>
4584 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.
4586 2006-06-02 Miguel de Icaza <miguel@novell.com>
4588 * tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
4589 tramp-arm.c, tramp-ia64.c
4590 (mono_debugger_create_notification_function): Update signature to
4591 new signature and use new protocol for creating the notification
4594 Should fix the build.
4596 2006-06-02 Geoff Norton <gnorton@customerdna.com>
4598 * exceptions-ppc.c (mono_jit_walk_stack)
4599 (ves_icall_get_frame_info): Fix the build
4601 2006-06-02 Zoltan Varga <vargaz@gmail.com>
4603 * mini.c (mono_set_defaults): Fix the handling of -O=-all.
4605 2006-05-31 Raja R Harinath <rharinath@novell.com>
4607 * il2tests.2.il: New file for generics CIL tests. Add test for
4609 * Makefile.am: Update.
4612 * mini.c (mono_method_to_ir): Don't apply box+brtrue optimization
4615 2006-05-30 Massimiliano Mantione <massi@ximian.com>
4617 * aliasing.c: Fixed bug 78311.
4619 2006-05-29 Martin Baulig <martin@ximian.com>
4621 * mini-exceptions.c (mono_find_jit_info): When computing the
4622 native offset, check whether we're actually inside the method's
4623 code; call mono_debug_print_stack_frame() to format the frame.
4624 (ves_icall_System_Exception_get_trace): Call
4625 mono_debug_print_stack_frame() to format the stack frame.
4626 (ves_icall_get_trace): Update to the new debugging API.
4627 (mono_jit_walk_stack_from_ctx): Likewise.
4628 (ves_icall_get_frame_info): Likewise.
4630 * mini.c (get_method_from_ip): Use the new debugging API.
4631 (mono_print_method_from_ip): Likewise.
4634 (mono_jit_walk_stack): Use the new debugging API.
4635 (ves_icall_get_frame_info): Likewise.
4637 2006-05-27 Zoltan Varga <vargaz@gmail.com>
4639 * mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
4641 2006-05-25 Massimiliano Mantione <massi@ximian.com>
4643 * mini.c: Added "limitator" to inline for debugging.
4645 2006-05-24 Martin Baulig <martin@ximian.com>
4647 * debug-debugger.c (mono_debugger_init): Create a private,
4648 malloc()-based code manager for the notification function and
4649 intentionally leak it on exit. This fixes the crash-on-exit race
4653 (mono_debugger_create_notification_function): Added
4654 `MonoCodeManager *' argument.
4657 (mono_debugger_create_notification_function): Added
4658 `MonoCodeManager *' argument.
4660 2006-05-23 Massimiliano Mantione <massi@ximian.com>
4662 * aliasing.c: Fixed 64 bit issue.
4663 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
4664 default since all known bugs are fixed (one more time!).
4666 Tue May 23 13:47:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
4668 * mini.c: write barrier support.
4670 2006-05-23 Martin Baulig <martin@ximian.com>
4672 * debug-debugger.c: Revert Paolo's change. Add comment and #error
4673 check at the top of the file.
4675 Sun May 21 12:22:29 CEST 2006 Paolo Molaro <lupus@ximian.com>
4677 * debug-debugger.c: fix the build. Again. Hopefully Martin will stop
4678 reverting changes without reason and without changelog entries.
4680 2006-05-18 Zoltan Varga <vargaz@gmail.com>
4682 * mini-sparc.c (mono_arch_output_basic_block): Add support for large stack offets
4683 to a few opcodes. Fixes #78439.
4685 * mini-sparc.c: Rename mono_sparch_break () to mono_arch_break () to improve
4686 consistency with other archs.
4688 * mini-ia64.c (mono_arch_emit_prolog): Remove debug stuff left in by mistake.
4690 Wed May 17 18:07:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
4692 * debug-debugger.c: fix the build.
4694 2006-05-17 Martin Baulig <martin@ximian.com>
4697 (debugger_thread_vtable): Moved here from ../metadata/threads.c.
4698 (debugger_init_threads): Formerly known as mono_debugger_init_threads().
4699 (debugger_finalize_threads): Formaly known as mono_debugger_finalize_threads().
4700 (debugger_attach): Call GC_mono_debugger_add_all_threads().
4702 2006-05-11 Zoltan Varga <vargaz@gmail.com>
4704 * mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.
4706 2006-05-10 Zoltan Varga <vargaz@gmail.com>
4708 * mini-x86.c (mono_arch_instrument_epilog): Fix handling of
4709 MONO_TYPE_GENERICINST.
4711 * mini-amd64.c (mono_arch_instrument_epilog): Fix handling of
4712 MONO_TYPE_GENERICINST.
4714 2006-05-09 Zoltan Varga <vargaz@gmail.com>
4716 * mini-x86.c (mono_arch_get_vcall_slot_addr): Add a missing call sequence. Fixes
4719 2006-05-08 Zoltan Varga <vargaz@gmail.com>
4721 * mini.c (mono_create_jump_trampoline): Allocate MonoJitInfo from the domain
4723 (mono_jit_free_method): Remove the method from jump_trampoline_hash as well.
4725 2006-05-06 Zoltan Varga <vargaz@gmail.com>
4727 * mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
4728 mono_trace_cleanup ().
4730 * iltests.il: Fix problem with the newly added test.
4732 * mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
4733 due to register constraints, free up the previous hreg. Fixes #78314.
4735 * iltests.il: Add new test for #78314.
4737 * mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
4738 Interlocked.Add. Fixes #78312.
4740 * mini-amd64.c (mono_arch_get_inst_for_method): Ditto.
4742 2006-05-05 Zoltan Varga <vargaz@gmail.com>
4744 * inssel.brg (mini_emit_virtual_call): Fix a warning.
4746 2006-05-05 Martin Baulig <martin@ximian.com>
4748 * debug-mini.c (mono_debug_open_block): New method.
4751 (mono_arch_output_basic_block): Call mono_debug_open_block() at
4752 the beginning of each basic block.
4755 (mono_arch_output_basic_block): Call mono_debug_open_block() at
4756 the beginning of each basic block.
4758 2006-05-04 Massimiliano Mantione <massi@ximian.com>
4760 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
4761 default until I understand why they break the build on amd64.
4763 2006-05-04 Zoltan Varga <vargaz@gmail.com>
4765 * mini.c (mini_cleanup): Call mono_cleanup ().
4767 * mini.c (UNVERIFIED): New macro to make it easier to track down verification
4770 2006-05-04 Massimiliano Mantione <massi@ximian.com>
4772 * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
4773 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
4774 default since all known bugs are fixed, and I cannot reproduce bug
4775 77944... I'm asking Matt Hargett to test again after this commit.
4777 2006-04-28 Massimiliano Mantione <massi@ximian.com>
4779 * mini-codegen.c: Fixed typo that thrashed inline.
4781 2006-04-28 Zoltan Varga <vargaz@gmail.com>
4783 * dominators.c (compute_dominators): Avoid using a worklist since
4784 it is not correct in some cases. Instead, iterate over all bblocks as
4785 in the original paper. Fixes --compile-all -O=all System.Xml.dll.
4787 2006-04-28 Miguel de Icaza <miguel@novell.com>
4789 * mini.c (mono_jit_compile_method_inner): Use
4790 mono_prepare_exception_from_error that resets the value
4793 2006-04-27 Miguel de Icaza <miguel@novell.com>
4795 * mini.c: Move the mini_loader_error_to_exception to metadata.
4797 2006-04-27 Massimiliano Mantione <massi@ximian.com>
4799 * aliasing.c: Fixed bug 78210.
4801 2006-04-27 Massimiliano Mantione <massi@ximian.com>
4803 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
4804 default until all their problems (or the ones they trigger) are fixed.
4806 2006-04-26 Zoltan Varga <vargaz@gmail.com>
4808 * aot-runtime.c (mono_aot_get_method_from_token_inner): Fix the previous patch.
4810 * aot-runtime.c (mono_aot_get_method_from_token_inner): Mark the method
4811 as loaded only after resolving patches since that could invoke the same method.
4813 * aot-runtime.c (mono_aot_plt_resolve): Fix ppc etc. builds.
4815 * aot-compiler.c: Refactor mono_aot_compile_aot () into a bunch of smaller
4818 * aot-runtime.c (init_plt): Use a normal trampoline to transfer code to the
4821 * aot-compiler.c (emit_plt): Pass the plt offset in %eax instead of on the
4824 * mini-trampolines.c (mono_aot_plt_trampoline): New trampoline to handle calls
4825 made from AOT code through the PLT table.
4827 * mini-x86.h mini-amd64.h: Define MONO_ARCH_AOT_PLT_OFFSET_REG to the register
4828 holding the plt offset when a call is made to the aot plt trampoline.
4830 2006-04-25 Zoltan Varga <vargaz@gmail.com>
4832 * aot-runtime.c aot-compiler.c cpu-amd64.md mini-amd64.c: Update parts of the
4835 * Makefile.am (common_sources): Fix build breakage.
4837 * aot-runtime.c aot-compiler.c: Reorganize the AOT code yet again: Make all
4838 calls through a jump table similar to the ELF PLT table. Avoid indirect calls for
4839 intra-assembly calls if possible.
4841 * tramp-*.c: Add new functions for patching/nullifying PLT entries.
4843 * mini-trampolines.c: Handle PLT entries.
4845 * mini.c: Avoid creating a GOT var for calls.
4847 * jit-icalls.c (helper_ldstr_mscorlib): New helper function for loading strings
4850 * jit-icalls.c (helper_newobj_mscorlib): New helper function to create objects
4853 * mini.c (mono_method_to_ir): Use the new helper functions in throw bblocks in
4856 * mini.h: Bump AOT file format version.
4858 * mini.c (get_basic_blocks): Fix the calculation of bb->out_of_line so it
4861 2006-04-25 Martin Baulig <martin@ximian.com>
4863 * driver.c: Disable copyprop, consprop and inline when running
4864 inside the debugger.
4866 2006-04-25 Martin Baulig <martin@ximian.com>
4868 * debug-debugger.h (MonoDebuggerInfo): Replaced `get_thread_id'
4869 with `get_current_thread' and added `detach'.
4870 (MonoDebuggerMetadataInfo): Added `thread_size',
4871 `thread_tid_offset', `thread_stack_ptr_offset' and
4872 `thread_end_stack_offset'.
4874 2006-04-25 Zoltan Varga <vargaz@gmail.com>
4876 * aot.c Makefile.am: Split aot.c into two new files aot-compiler.c and
4879 * inssel.brg (mini_emit_load_intf_reg_vtable): Use a new kind of AOT constant
4880 ADJUSTED_IID to avoid the need for adjusting the IID at runtime.
4882 * mini.h (MonoJumpInfoType): Add MONO_PATCH_INFO_ADJUSTED_IID.
4884 * mini.c (mono_resolve_patch_target): Handle ADJUSTED_IID.
4886 * aot.c: Add support for ADJUSTED_IID.
4888 2006-04-24 Zoltan Varga <vargaz@gmail.com>
4890 * aot.c (emit_method_order): Don't align method_order_end.
4892 * inssel.brg (stmt): Fix interface calls in AOT code which got broken by
4893 the interface ID changes.
4895 2006-04-21 Dick Porter <dick@ximian.com>
4897 * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
4898 cleaning up a thread. Fixes the new part of bug 77470.
4900 2006-04-20 Geoff Norton <gnorton@customerdna.com>
4902 * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
4905 2006-04-19 Zoltan Varga <vargaz@gmail.com>
4907 * mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.
4909 * mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
4910 SIGSEGV. Fixes #78072.
4912 * mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
4913 unregister our SIGABRT handler.
4915 2006-04-19 Massimiliano Mantione <massi@ximian.com>
4917 * mini.c: Disabled inline where it can alter the call stack in a
4918 way visible from managed code.
4919 * driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
4922 2006-04-16 Zoltan Varga <vargaz@gmail.com>
4924 * mini-amd64.c (mono_arch_emit_prolog): Attach the thread to the runtime as it is done
4925 on other platforms. Fixes #78089.
4927 2006-04-13 Martin Baulig <martin@ximian.com>
4929 * driver.c: Also check a `MONO_INSIDE_MDB' environment variable to
4930 determine whether we're inside the debugger.
4933 (MonoDebuggerMetadataInfo): Added all offsets from `MonoDefaults'.
4935 2006-04-12 Zoltan Varga <vargaz@gmail.com>
4937 * mini.c (mono_method_to_ir): Handle multiple LEAVE statements inside a single
4938 handler clauses. Fixes #78024.
4940 * mini-sparc.c (mono_arch_output_basic_block): Handle large offsets
4941 in the CALL_MEMBASE opcodes. Fixes #78088.
4942 (mono_arch_get_vcall_slot_addr): Ditto.
4944 2006-04-10 Martin Baulig <martin@ximian.com>
4946 * debug-debugger.c: The thread handling code has now been moved
4947 into ../metadata/threads.c.
4949 2006-04-10 Zoltan Varga <vargaz@gmail.com>
4951 * driver.c (mono_main): Fix --with-gc=none build.
4953 * mini-codegen.c (mono_spillvar_offset): Improve alignment.
4954 (mono_spillvar_offset_float): Ditto.
4955 (mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
4956 hreg, not when its !global, since on ia64, there is a third category: stacked
4959 Mon Apr 10 14:39:49 CEST 2006 Paolo Molaro <lupus@ximian.com>
4961 * mini.c: set MonoInst->klass for load field address and a few other
4964 2006-04-10 Zoltan Varga <vargaz@gmail.com>
4966 * helpers.c (mono_disassemble_code): Emit debug info on amd64 as well.
4968 2006-04-07 Zoltan Varga <vargaz@gmail.com>
4970 * dominators.c (compute_dominators): Fix yet another bug which surfaced after
4971 the branch opt changes.
4973 2006-04-06 Dick Porter <dick@ximian.com>
4975 * wapihandles.c (mini_wapi_semdel): Fix parameters in semctl () call.
4977 * wapihandles.c (mini_wapi_seminfo):
4978 * driver.c (mono_main): Add semaphore info option
4980 2006-04-05 Zoltan Varga <vargaz@gmail.com>
4982 * dominators.c (compute_dominators): Fix a bug which surfaced after the recent
4983 branch optimization changes. Fixes #78009.
4985 Wed Apr 5 16:40:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
4987 * mini.c: ignore accessibility of methods in managed->native wrappers.
4989 2006-04-04 Zoltan Varga <vargaz@gmail.com>
4991 * mini.c (mini_cleanup): Call print_jit_stats () earlier since it accesses metadata.
4993 * mini.c (mini_cleanup): Free 'emul_opcode_map' as well.
4995 2006-04-03 Zoltan Varga <vargaz@gmail.com>
4997 * mini.c: Modify the branch optimizations to preserve the invariant that
4998 the entries inside the in_bb and out_bb arrays are unique.
4999 (mono_unlink_bblock): Avoid creation of new arrays.
5001 2006-04-02 Zoltan Varga <vargaz@gmail.com>
5003 * mini.c (mono_unlink_bblock): Fix regression caused by previous
5006 2006-04-01 Zoltan Varga <vargaz@gmail.com>
5008 * mini.c (optimize_branches): Remove the "optimizations" in
5009 the cbranch1/cbranch2 -> branch cases which were causing several
5010 problems in the past. Fixes #77986.
5012 2006-03-31 Chris Toshok <toshok@ximian.com>
5014 * driver.c (DEFAULT_OPTIMIZATIONS): back out the new set of
5015 default optimizations :(
5017 2006-03-31 Zoltan Varga <vargaz@gmail.com>
5019 * inssel-x86.brg mini-codegen.c mini.c: Merge some changes/fixes from linear-il
5022 2006-03-31 Massimiliano Mantione <massi@ximian.com>
5024 * local-propagation.c: Added comments to structs and removed
5025 "Mono" prefixes from local tree mover types.
5027 2006-03-30 Zoltan Varga <vargaz@gmail.com>
5029 * Makefile.am (arch_sources): Define this for each architecture so
5030 libmono_la_SOURCES is defined in one place.
5032 Wed Mar 29 20:51:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
5034 * driver.c, wapihandles.c, Makefile.am: integrate the io-layer utils
5037 Wed Mar 29 17:16:57 CEST 2006 Paolo Molaro <lupus@ximian.com>
5039 * driver.c: print the GC name supplied by configure.
5041 2006-03-29 Massimiliano Mantione <massi@ximian.com>
5043 * local-propagation.c: Added tree mover, and moved here all the
5044 local propagation code from mini.c
5045 * mini.c: Added support for treeprop, and moved all the local
5046 propagation code to local-propagation.c
5047 * mini.h: Added support for treeprop
5048 * driver.c: Added support for treeprop, enabled consprop, copyprop,
5049 treeprop, inline and deadce by default
5050 * Makefile.am: Added local-propagation.c
5052 2006-03-25 Zoltan Varga <vargaz@gmail.com>
5054 * exceptions-sparc.c: Applied patch from David S. Miller <davem@sunset.davemloft.net>: Implement correct support for sparc/linux.
5056 Fri Mar 24 20:07:19 CET 2006 Paolo Molaro <lupus@ximian.com>
5058 * debug-debugger.c: make it compile without the Boehm GC.
5060 Wed Mar 22 18:25:18 CET 2006 Paolo Molaro <lupus@ximian.com>
5062 * mini.c: fixed issue with mismatch when an icall is registered
5063 with multiple names but same address.
5065 Tue Mar 21 15:59:57 CET 2006 Paolo Molaro <lupus@ximian.com>
5067 * declsec.c, mini-exceptions.c: use write barrier to set reference
5068 fields of managed objects.
5070 2006-03-19 Zoltan Varga <vargaz@gmail.com>
5072 * mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
5073 (can_access_internals): Fix a warning.
5075 * mini.c (print_method_from_ip): Rename this to
5076 mono_print_method_from_ip so it gets exported.
5078 * trace.c: Deal with strings inside StringBuilder's containing garbage
5079 and fix memory leaks. Fixes #77848.
5081 2006-03-19 Zoltan Varga <vargaz@gmail.com>
5083 * mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
5086 2006-03-16 Neale Ferguson <neale@sinenomine.net>
5088 * mini-s390.c: Remove OP_X86_TEST_NULL.
5090 Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
5092 * mini.c: use the correct GetHashCode() for the moving collector.
5094 2006-03-16 Massimiliano Mantione <massi@ximian.com>
5096 * liveness.c: Regalloc spill cost tuning.
5098 2006-03-15 Neale Ferguson <neale@sinenomine.net>
5100 * mini-s390x.h: Correct S390_LONG macro.
5102 * mini-s390x.c: Cleanup unused code.
5104 2006-03-15 Zoltan Varga <vargaz@gmail.com>
5106 * jit-icalls.h: New file.
5108 * Makefile.am mini.c jit-icalls.c: Use a proper include file for the jit
5109 icalls and include that instead of including jit-icalls.c.
5111 * mini-ppc.c (mono_arch_output_basic_block): Remove references to
5114 Tue Mar 14 20:23:53 CET 2006 Paolo Molaro <lupus@ximian.com>
5116 * mini.c: when checking for member accessibility, also check for
5117 friend assemblies and for explicit interface implementations.
5119 2006-03-14 Zoltan Varga <vargaz@gmail.com>
5121 * mini-codegen.c (mono_local_regalloc): Remove incorrect g_free () calls.
5123 * cpu-arm.md cpu-g4.md: Remove x86_ opcodes.
5125 * mini-x86.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
5126 common cases are done first.
5128 * mini-ops.h: Only define platform specific opcodes on the given platform.
5130 * mini.h regalloc.h mini-codegen.c: Merge optimizations from the linear-il
5133 2006-03-14 Martin Baulig <martin@ximian.com>
5135 Revert Paolo's change from r57348:
5137 * mini.h: don't use gboolean for bitfields.
5138 * mini.c: verifier changes for fields and methods accessibility.
5140 2006-03-13 Neale Ferguson <neale@sinenomine.net>
5142 * mini-s390.h, mini-s390x.h: Fix calls to mono_call_inst_add_outarg_reg.
5144 * mini-s390x.c: Fix conv_r_un.
5146 * cpu-s390, cpu-s390x.md: Fix lengths.
5148 Sun Mar 12 17:31:22 CET 2006 Paolo Molaro <lupus@ximian.com>
5150 * mini.c: nested types have access to all the nesting
5151 levels, not just the enclosing types.
5153 Sun Mar 12 16:23:11 CET 2006 Paolo Molaro <lupus@ximian.com>
5155 * mini.c: added a few more verification checks.
5157 2006-03-12 Zoltan Varga <vargaz@gmail.com>
5159 * liveness.c: Merge optimizations from the linear-il branch.
5161 2006-03-11 Zoltan Varga <vargaz@gmail.com>
5163 * mini-ia64.c (emit_call): Add a comment.
5165 * tramp-ia64.c (mono_arch_patch_callsite): Handle indirect calls as well.
5167 * tramp-ia64.c: Fix some warnings.
5169 Sat Mar 11 20:15:59 CET 2006 Paolo Molaro <lupus@ximian.com>
5171 * mini.h: don't use gboolean for bitfields.
5172 * mini.c: verifier changes for fields and methods accessibility.
5174 2006-03-11 Zoltan Varga <vargaz@gmail.com>
5176 * mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
5177 lazy icall wrapper changes.
5179 * dominators.c: Replace all the dominator algorithms with faster
5180 ones from the linear-il branch.
5182 * inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
5185 * mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
5186 common cases are done first.
5188 * mini-amd64.c: Fix some warnings.
5190 * mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
5193 * mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
5196 * mini.h: Add a missing prototype.
5198 2006-03-10 Zoltan Varga <vargaz@gmail.com>
5200 * mini.c: Compile icall wrappers lazily.
5202 * mini-codegen.c: Use printf instead of g_print since its much faster.
5204 * mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
5207 * mini.c (optimize_branches): Cache the negative result from
5208 remove_block_if_useless ().
5210 * mini.c (optimize_branches): Avoid restarting the iteration after each change.
5211 Also fix some bblock linking issues.
5213 * helpers.c (mono_disassemble_code): Reduce the size of the temporary
5216 * mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.
5218 * mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
5219 accessed fields first, for better cache behavior.
5221 Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
5223 * mini.c: speedup IList<T> array accesses.
5225 2006-03-09 Zoltan Varga <vargaz@gmail.com>
5227 * mini.c (mono_method_to_ir): Handle large methods overflowing the
5228 inline_costs counter. Fixes #77190.
5230 2006-03-06 Zoltan Varga <vargaz@gmail.com>
5232 * mini-exceptions.c: Call mono_trace_is_enabled () before printing
5233 trace messages. Fixes #77706.
5235 2006-03-04 Martin Baulig <martin@ximian.com>
5237 * tramp-amd64.c, tramp-x86.c
5238 (mono_debugger_create_notification_function): Use
5239 mono_global_codeman_reserve() to allocate a buffer at runtime and
5242 * debug-debugger.h (MonoDebuggerInfo): Added `initialize'.
5244 * debug-debugger.c (mono_debugger_init): Dynamically allocate the
5245 notification function at runtime and then call `initialize' in the
5246 `MONO_DEBUGGER__debugger_info' vtable.
5248 2006-03-04 Zoltan Varga <vargaz@gmail.com>
5250 * iltests.il: Fix a visibility problem.
5252 Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
5254 * driver.c, mini.c: add hooks for the counters API.
5256 Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
5258 * driver.c: show disabled options.
5260 Wed Mar 1 12:18:51 CET 2006 Paolo Molaro <lupus@ximian.com>
5262 * linear-scan.c: always use cost-driven selection.
5264 2006-02-28 Raja R Harinath <rharinath@novell.com>
5266 * jit-icalls.c (helper_compile_generic_method): Revert change from
5269 Mon Feb 27 18:58:19 GMT 2006 Paolo Molaro <lupus@ximian.com>
5271 * cpu-arm.md, mini-arm.c: implemented MemoryBarrier.
5273 Sat Feb 25 17:39:21 CET 2006 Paolo Molaro <lupus@ximian.com>
5275 * inssel.brg: style fixes, mostly to force the updated monoburg
5276 to run for people using svn.
5278 Sat Feb 25 17:07:42 CET 2006 Paolo Molaro <lupus@ximian.com>
5280 * mini.c: match monoburg changes.
5282 Sat Feb 25 16:04:33 CET 2006 Paolo Molaro <lupus@ximian.com>
5284 * mini.h, mini.c, abcremoval.c, aliasing.c, liveness.c,
5285 ssapre.c, graph.c, ssa.c: put the mono_burg_arity[]
5286 declaration in the header file.
5288 Sat Feb 25 14:19:31 CET 2006 Paolo Molaro <lupus@ximian.com>
5290 * helpers.c: reduce relocations and mem usage.
5292 Sat Feb 25 11:58:16 CET 2006 Paolo Molaro <lupus@ximian.com>
5294 * mini.h, mini-codegen.c: disable logging features if
5295 requested by configure.
5297 Sat Feb 25 11:54:49 CET 2006 Paolo Molaro <lupus@ximian.com>
5299 * mini.c: tiny verifier changes.
5301 Fri Feb 24 18:17:52 CET 2006 Paolo Molaro <lupus@ximian.com>
5303 * mini-ops.h, inssel-x86.brg, tramp-x86.c, mini-x86.c,
5304 cpu-pentium.md: stack alignment changes for osx/x86,
5305 partially from Geoff Norton <gnorton@customerdna.com>.
5307 2006-02-24 Raja R Harinath <harinath@gmail.com>
5309 * jit-icalls.c (helper_compile_generic_method): Update to changes
5310 in metadata/class.c.
5312 2006-02-24 Zoltan Varga <vargaz@gmail.com>
5314 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a missing check.
5316 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for
5317 interface calls with large offsets.
5319 2006-02-23 Raja R Harinath <rharinath@novell.com>
5321 * jit-icalls.c (helper_compile_generic_method): Document the
5322 special-case we depend on so that we can inflate the method twice
5323 with the same context with no bad side-effects.
5325 Thu Feb 23 13:45:46 CET 2006 Paolo Molaro <lupus@ximian.com>
5327 * mini-x86.c, mini-amd64.c: fix for case when xen support
5330 Wed Feb 22 19:38:40 CET 2006 Paolo Molaro <lupus@ximian.com>
5332 * mini-x86.c, mini-amd64.c: generate code to access tls items
5333 in a faster way for Xen systems.
5335 Wed Feb 22 10:31:25 CET 2006 Paolo Molaro <lupus@ximian.com>
5337 * exceptions-x86.c, mini-x86.h, driver.c, mini-codegen.c:
5338 updates and compilation fixes for the OSX/x86 port, mostly from
5339 Geoff Norton <gnorton@customerdna.com>.
5341 Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
5343 * inssel.brg: faster interface call implementation
5344 to sync with the interface_offsets MonoVTable changes.
5346 Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
5348 * mini.c: more verification checks.
5350 Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
5352 * mini.c: added a few more verification checks.
5354 2006-02-17 Neale Ferguson <neale@sinenomine.net>
5356 * mini-s390x.c, mini-s390x.h: Check for presence of long displacement
5357 facility on the processor and use it if available.
5359 Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
5361 * driver.c, aot.c, mini.c: throw exception if the IL code is
5362 invalid or unverifiable.
5364 2006-02-17 Raja R Harinath <rharinath@novell.com>
5366 * generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
5369 2006-02-16 Zoltan Varga <vargaz@gmail.com>
5371 * generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
5373 Wed Feb 15 16:23:17 CET 2006 Paolo Molaro <lupus@ximian.com>
5375 * mini-s390x.c, mini-s390.c, mini.c, mini-amd64.c, mini-arm.c,
5376 mini-ia64.c, mini-sparc.c, mini-x86.c, mini-ppc.c: fixed
5377 handling of instantiated generic valuetypes.
5379 2006-02-11 Zoltan Varga <vargaz@gmail.com>
5381 * mini-exceptions.c mini-x86.h mini-x86.c: Get rid of
5382 MONO_INIT_CONTEXT_FROM_CALLER, and use MONO_INIT_CONTEXT_FROM_FUNC
5385 * generics.2.cs: Revert the nullable reftypes tests.
5387 2006-02-10 Zoltan Varga <vargaz@gmail.com>
5389 * mini-exceptions.c (MONO_INIT_CONTEXT_FROM_CALLER): Avoid
5390 using __builtin_frame_address (1) as it doesn't work in the presence
5391 of optimizations. Hopefully fixes #77273.
5393 * Makefile.am generics.cs generics.2.cs: Revert the generics.2.cs
5394 -> generics.cs change as it doesn't work with some automake versions.
5396 Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
5398 * mini.c: handle systems that sue a different way to
5399 retrieve the stack address of the current thread.
5401 2006-02-09 Zoltan Varga <vargaz@gmail.com>
5403 * Makefile.am generics.2.cs: Rename this to generics.cs and handle
5404 it specially in the makefile.
5406 * generics.2.cs: Add tests for nullable reference types.
5408 Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
5410 * mini.c: always handle the case when mono_jit_init()
5411 is called in a thread different from the main thread,
5412 confusing libgc (bug #77309).
5414 Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
5416 * mini-ppc.c: fix handling of exceptions in large methods (bug #74932).
5418 Fri Feb 3 18:51:35 CET 2006 Paolo Molaro <lupus@ximian.com>
5420 * mini.c: change optimize_branches () to use a single loop
5421 and introduce a new optimization to simplify some range checks.
5423 2006-02-03 Martin Baulig <martin@ximian.com>
5425 * debug-debugger.c (debugger_thread_manager_thread_created): Removed
5426 and merged with debugger_thread_manager_add_thread().
5427 (mono_debugger_main): Call debugger_thread_manager_add_thread() to
5428 inform the debugger about the main thread.
5430 2006-02-03 Zoltan Varga <vargaz@gmail.com>
5432 * basic.cs: Add test for div.un/rem.un constant folding.
5434 2006-02-03 Neale Ferguson <neale@sinenomine.net>
5436 * cpu-s390x.md: correct int_xor_imm length
5438 2006-02-03 Zoltan Varga <vargaz@gmail.com>
5440 * generics.2.cs: New test for #77442.
5442 * jit-icalls.c (helper_compile_generic_method): Check for null. Fixes
5445 2006-02-02 Martin Baulig <martin@ximian.com>
5447 * tramp-x86.c, tramp-amd64.c: It's now safe to #include
5448 <mono/metadata/mono-debug-debugger.h>
5450 * debug-mini.c: Don't #define _IN_THE_MONO_DEBUGGER.
5452 2006-02-02 Martin Baulig <martin@ximian.com>
5454 * debug-debugger.h: New header file for debug-debugger.c.
5456 * debug-debugger.c: Big API cleanup; don't run the managed Main()
5457 function is a separate thread anymore; add support for attaching.
5459 2006-02-01 Zoltan Varga <vargaz@gmail.com>
5461 * tramp-x86.c: Fix a warning.
5463 2006-01-31 Zoltan Varga <vargaz@gmail.com>
5465 * mini-amd64.c (mono_arch_compute_omit_fp): Avoid hitting an assertion
5466 on very large methods.
5468 * aot.c (load_patch_info): Fix a warning.
5470 Mon Jan 30 12:51:10 CET 2006 Paolo Molaro <lupus@ximian.com>
5472 * cpu-pentium.md, mini-x86.c, inssel.brg, inssel-x86.brg,
5473 mini-ops.h: alu membase optimizations.
5475 Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
5477 * mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
5478 to speedup StringBuilder.
5480 2006-01-27 Zoltan Varga <vargaz@gmail.com>
5482 * dominators.c (mono_compute_natural_loops): Fix detection of
5483 loop body start blocks.
5485 * mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
5487 2006-01-26 Zoltan Varga <vargaz@gmail.com>
5489 * mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
5492 2006-01-25 Massimiliano Mantione <massi@ximian.com>
5494 * aliasing.c: Fixed aliasing issue on 64 bit archs.
5496 2006-01-25 Martin Baulig <martin@ximian.com>
5498 * debug-debugger.c: Moved the `MonoDebuggerManager' and
5499 `MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
5500 started to cleanup this file a little bit.
5502 Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
5504 * mini.c: optimize a codepath frequently happening in generics code.
5506 2006-01-23 Martin Baulig <martin@ximian.com>
5508 * Makefile.am: Only compile debug-debugger.c on supported platforms.
5510 * debug-debugger.c: Kill the IO_LAYER() hack and use the io-layer
5513 * driver.c: debug-debugger.c is only available if
5514 `MONO_DEBUGGER_SUPPORTED' is defined.
5516 2006-01-23 Martin Baulig <martin@ximian.com>
5518 * debug-debugger.c: Only enable this on platforms where the Mono
5519 Debugger is working (x86 and x86_64).
5521 2006-01-21 Martin Baulig <martin@ximian.com>
5523 The Mono Debugger is now using the normal `mono' instead of the
5524 `mono-debugger-mini-wrapper' when executing managed code.
5526 * debug-debugger.c: New file; previously known as
5527 debugger/wrapper/wrapper.c.
5529 * debug-mini.c (mono_init_debugger): Removed.
5531 * driver.c (mono_main): Added new `--inside-mdb' command line
5532 argument which is used when running inside the debugger.
5534 2006-01-20 Zoltan Varga <vargaz@gmail.com>
5536 * liveness.c (mono_analyze_liveness): Remove some unused data
5539 2006-01-17 Zoltan Varga <vargaz@gmail.com>
5541 * mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
5543 2006-01-16 Zoltan Varga <vargaz@gmail.com>
5545 * mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
5546 depends on implementation details of monobitset.
5548 * mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
5551 2006-01-15 Zoltan Varga <vargaz@gmail.com>
5553 * liveness.c: Update after monobitset changes.
5555 2006-01-14 Zoltan Varga <vargaz@gmail.com>
5557 * mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
5559 2006-01-11 Neale Ferguson <neale@sinenomine.net>
5561 * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
5563 * mini-s390x.c: Remove warning messages.
5565 2006-01-11 Ben Maurer <bmaurer@andrew.cmu.edu>
5567 * mini.c: pass the jitinfo to mono_profiler_method_end_jit.
5569 2006-01-10 Zoltan Varga <vargaz@gmail.com>
5571 * generics.2.cs: Add ldelem/stelem_any test.
5573 2006-01-10 Neale Ferguson <neale@sinenomine.net>
5575 * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
5577 2006-01-07 Zoltan Varga <vargaz@gmail.com>
5579 * inssel-long.brg: Fix int->long ovf conversion rules. Fixes #77172.
5581 2006-01-06 Zoltan Varga <vargaz@gmail.com>
5583 * generics.2.cs: Reenable vtype tests.
5585 * inssel-x86.brg: Remove an icorrect valuetype rule.
5587 2006-01-06 Neale Ferguson <neale@sinenomine.net>
5589 * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
5590 initial support for OP_ABS.
5592 2006-01-05 Neale Ferguson <neale@sinenomine.net>
5594 * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
5596 2006-01-05 Neale Ferguson <neale@sinenomine.net>
5598 * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
5599 conversion and implement LADD/LSUB.
5601 * exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
5604 2006-01-05 Neale Ferguson <neale@sinenomine.net>
5606 * mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.
5608 * exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
5611 2006-01-05 Neale Ferguson <neale@sinenomine.net>
5613 * mini-s390x.c, mini-s390x.h, mini-s390.c, mini-s390.h: Fix lmf handling when
5614 localloc is encountered. Fixes crash in test-183.cs when using gmcs
5615 (stack walk problem).
5617 2006-01-04 Zoltan Varga <vargaz@gmail.com>
5619 * aot.c (mono_aot_load_method): Fix a warning.
5621 2006-01-03 Neale Ferguson <neale@sinenomine.net>
5623 * mini-s390x.h, exceptions-s390x.c, inssel-s390x.brg: Fix compiler warnings
5625 2006-01-03 Zoltan Varga <vargaz@gmail.com>
5627 * iltests.il: Add test for #77148.
5629 * mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
5632 2006-01-03 Neale Ferguson <neale@sinenomine.net>
5634 * mini-s390x.c, inssel-s390x.brg: Remove debug statements
5636 2006-01-03 Neale Ferguson <neale@sinenomine.net>
5638 * mini-s390x.c, mini-s390x.h, exceptions-s390x.c, tramp-s390x.c, inssel-s390x.brg,
5639 cpu-s390x.md, mini-codegen.c, Makefile.am: add 64-bit s390 support to JIT.
5641 * basic-long.cs: Add lconv-to-r4/r8 tests.
5643 2006-01-03 Zoltan Varga <vargaz@gmail.com>
5645 * mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.
5647 * mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
5648 here as on other archs.
5650 2005-12-29 Neale Ferguson <neale@sinenomine.net>
5652 * mini-s390.c (mono_arch_get_inst_for_method): Add memory_barrier support.
5654 2005-12-29 Neale Ferguson <neale@sinenomine.net>
5656 * inssel-s390.brg: Correct register assignment; Rework L[ADD|SUB]_OVF[_UN] for s390.
5658 * cpu-s390.md: Fix lengths of a couple of long instructions; Add memory_barrier.
5660 * mini-s390.c: Fix long add/sub overflow instructions; Fix displacement handling in
5661 instrument_prolog; Add memory_barrier instruction.
5663 2005-12-26 Zoltan Varga <vargaz@gmail.com>
5665 * exceptions-x86.c mini-x86.h: Fix solaris/x86 exception handling.
5667 2005-12-23 Zoltan Varga <vargaz@gmail.com>
5669 * tramp-ia64.c (mono_arch_get_unbox_trampoline): Flush icache.
5671 * aliasing.c inssel.brg: Fix warnings.
5673 * inssel-ia64.brg (OP_MEMSET): Fix an optimization which previously
5674 could skip initialization of some parts of memory.
5676 * mini.c mini-ia64.c: Fix warnings.
5678 * inssel-sparc.brg: Add an implementation of lneg which actually works.
5680 2005-12-22 Zoltan Varga <vargaz@gmail.com>
5682 * aliasing.c (mono_build_aliasing_information): Add a workaround for
5683 a crash seen on sparc.
5685 * mini-sparc.c: Add implementation of Thread.MemoryBarrier.
5687 * cpu-sparc.md: Add memory_barrier opcode. Remove unused opcodes.
5689 2005-12-21 Neale Ferguson <neale@sinenomine.net>
5691 * mini-ops.h: Add s390_backchain instruction
5693 * inssel-s390.brg: Use backchaining instruction for LOADARG/STKARG operations.
5695 * cpu-s390.md: Add s390_backchain instruction
5697 * mini-s390.c: Significant ABI changes
5699 * mini-s390.h: Cater for zero length structures
5701 2005-12-20 Neale Ferguson <neale@sinenomine.net>
5703 * mini-s390.c: ABI fixes
5705 * inssel-s390.brg: Remove debug statements
5707 * cpu-s390.md: Fix length of ATOMIC_xx operations
5709 2005-12-19 Zoltan Varga <vargaz@gmail.com>
5711 * basic-float.cs: Add float<->long conversion tests.
5713 2005-12-16 Neale Ferguson <neale@sinenomine.net>
5715 * mini-s390.c: Fix LOCALLOC processing.
5717 * tramp-s390.c (s390_magic_trampoline): Fix base calculation.
5719 2005-12-15 Zoltan Varga <vargaz@gmail.com>
5721 * iltests.il: Add tests for some opcodes not covered by the other
5724 2005-12-15 Neale Ferguson <neale@sinenomine.net>
5726 * mini-s390.c: Fix ADDCC/SBB bug revealed by test_0_ulong_regress; Correct
5727 register loading for Tail processing; Correct trace output.
5729 * inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.
5731 * cpu-s390.md: Correct size of jmp instruction.
5733 2005-12-13 Neale Ferguson <neale@sinenomine.net>
5735 * mini-s390.c (mono_arch_emit_prolog): Remove some debugging bits.
5737 2005-12-13 Neale Ferguson <neale@sinenomine.net>
5739 * inssel-s390.brg tramp-s390.c cpu-s390.md mini-s390.c mini-s390.h:
5740 Bring s390 up to current level.
5742 2005-12-12 Zltan Varga <vargaz@gmail.com>
5744 * generics.2.cs: Disable the newly added tests as they do not work yet.
5746 * generics.2.cs: Add valuetype tests.
5748 2005-12-09 Zoltan Varga <vargaz@gmail.com>
5750 * basic-long.cs: Add i4->u8 test.
5752 * objects.cs: Add tests for JIT intrinsic.
5754 * mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
5755 optimizations lost by a mistake.
5757 2005-12-07 Zoltan Varga <vargaz@gmail.com>
5759 * basic-long.cs: Remove a test moved to objects.cs.
5761 * arrays.cs: Add more array tests.
5763 2005-12-06 Zoltan Varga <vargaz@gmail.com>
5765 * arrays.cs: Add new tests for multi-dimensional arrays.
5767 2005-12-06 Raja R Harinath <rharinath@novell.com>
5769 * Makefile.am (test_sources2): Add generics.2.cs.
5770 (EXTRA_DIST): Add test_sources2.
5772 2005-12-05 Ben Maurer <bmaurer@ximian.com>
5774 Support for boxing and unboxing nullable types as well as the
5775 isinst operation on nullables, per the CLI ammendment.
5777 * inssel.brg (CEE_ISINST): Special case for nullable
5779 * mini.c (handle_unbox_nullable): new method
5780 (handle_box): Special case for nullable types
5781 (mono_method_to_ir): Call handle_unbox_nullable in correct
5784 * generics.2.cs: New test suite
5786 * Makefile.am: Support for regression tests with generics.
5788 2005-12-03 Zoltan Varga <vargaz@gmail.com>
5790 * mini-amd64.c (emit_load_volatile_arguments): Add loading of arguments
5791 allocated to registers. Fixes #76800.
5793 Thu Dec 1 12:59:40 EST 2005 Paolo Molaro <lupus@ximian.com>
5795 * mini-ppc.c, inssel-ppc.brg: fix ABI issue (pinvoke3.cs).
5797 2005-11-30 Zoltan Varga <vargaz@gmail.com>
5799 * exceptions.cs: Disable test_0_long_cast () test, since it fails on a lot
5802 2005-11-29 Zoltan Varga <vargaz@gmail.com>
5804 * objects.cs basic-calls.cs: Move a test depending on valuetypes to
5807 * inssel-long32.brg (CEE_CONV_I8): Remove unused labels.
5809 * inssel-long32.brg (CEE_CONV_I8): Convert this to a branchless version.
5810 Tue Nov 29 05:41:34 EST 2005 Paolo Molaro <lupus@ximian.com>
5812 * mini-ppc.c, cpu-g4.md: ensure a fp register is converted to
5813 single precision before storing to a single precision location.
5815 2005-11-28 Raja R Harinath <rharinath@novell.com>
5817 * Makefile.am (ILASM): Use profile-dependent location of ilasm.
5819 2005-11-27 Zoltan Varga <vargaz@gmail.com>
5821 * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
5824 * basic.cs: Remove test_0_byte_compares test which was moved to
5825 objects.cs a long time ago.
5827 2005-11-22 Massimiliano Mantione <massi@ximian.com>
5829 * aliasing.c: Fixed aliasing issue on 64 bit archs.
5831 2005-11-20 Zoltan Varga <vargaz@gmail.com>
5833 * mini-ia64.c exceptions-ia64.c: Simplify the way filters/finally
5834 handlers are called.
5836 * mini-ia64.c (mono_arch_emit_exceptions): Optimize size of exception
5839 * mini-ia64.c: Add support for the throw->branch exception
5842 * driver.c (DEFAULT_OPTIMIZATIONS): Add MONO_OPT_EXCEPTION.
5844 2005-11-18 Massimiliano Mantione <massi@ximian.com>
5846 * mini.c: Enabled "fastpath" deadce :-)
5848 2005-11-18 Massimiliano Mantione <massi@ximian.com>
5850 * mini.c: Added "fastpath" deadce (deadce without SSA), and a simple
5851 alias analysis pass to support it.
5854 * liveness.c: Likewise (liveness computation can use aliasing
5855 information to be more accurate).
5856 * driver.c: Added an "ssa" option go tell the JIT to use SSA, and
5857 moreover made so that "--compile-all" uses the given optimization
5858 flags and not the default ones.
5859 * aliasing.c: Alias analysis (new file).
5860 * aliasing.h: Likewise.
5861 * Makefile.am: added "aliasing.c" and "aliasing.h".
5863 2005-11-17 Zoltan Varga <vargaz@gmail.com>
5865 * mini-ops.h: Add missing OP_I opcodes so it is in synch with the
5868 2005-11-13 Zoltan Varga <vargaz@gmail.com>
5870 * mini-exceptions.c (mono_handle_exception_internal): Remove the
5871 fp >= end_of_stack exit condition, as it is not needed, and it might
5872 become true for fp eliminated frames.
5874 2005-11-11 Zoltan Varga <vargaz@gmail.com>
5876 * mini-x86.c (mono_arch_emit_epilog): Use G_STRUCT_OFFSET instead of hard
5879 Tue Nov 8 11:28:20 GMT 2005 Paolo Molaro <lupus@ximian.com>
5881 * mini-arm.c: fixed alignment of doubles/longs to match
5882 the C ABI (bug #76635).
5884 Mon Nov 7 16:13:21 CET 2005 Paolo Molaro <lupus@ximian.com>
5886 * aot.c: fix compilation with --enable-minimal=aot.
5888 Fri Nov 4 12:34:15 GMT 2005 Paolo Molaro <lupus@ximian.com>
5890 * mini-arm.c: fixed compatibility with the new
5891 floating point emulator package for compares.
5893 2005-11-03 Atsushi Enomoto <atsushi@ximian.com?
5895 * mini.c : reverted sig->pinvoke changes (r51396-51397).
5897 2005-11-01 Zoltan Varga <vargaz@freemail.hu>
5899 * mini-exceptions.c (print_stack_frame): Output to stderr.
5900 (mono_handle_native_sigsegv): Ditto.
5902 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
5904 * mini-amd64.c (mono_arch_output_basic_block): Remove unused
5905 OP_LCONV_TO_OVF_I implementation.
5907 * mini-amd64.c: Add support for the throw->branch exception
5910 * branch-opts.c (mono_branch_optimize_exception_target): Allow the case
5911 when the catch clause catches a more general exception, i.e. Object.
5913 2005-10-30 Zoltan Varga <vargaz@gmail.com>
5915 * cpu-ia64.md: Remove unused opcodes.
5917 * mini.c (GET_CONTEXT): Simplify this somewhat by removing arch
5918 specific defines for architectures defining USE_SIGACTION.
5920 * mini-ia64.c: Fix some warnings.
5922 * exceptions-ia64.c (mono_arch_ip_from_context): Fix this, the previous
5923 version seemed to skip a frame.
5925 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
5927 * mini.c: Clean up the usage of sig->pinvoke flag. Now
5928 only calls which are made to native code use this flag.
5930 2005-10-29 Zoltan Varga <vargaz@freemail.hu>
5932 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for
5933 varargs methods as well.
5935 * mini-amd64.c exceptions-amd64.c: Allow fp elimination in methods
5936 which have save_lmf set. Reorganize methods prologs a bit.
5938 * mini-amd64.c (mono_arch_compute_omit_fp): Move the check for the
5939 debugger to the proper place.
5941 2005-10-29 Martin Baulig <martin@ximian.com>
5943 * mini-amd64.c (debug_omit_fp): Temporarily disable fp elimination
5944 when running inside the debugger until the debugger has support
5947 2005-10-26 Zoltan Varga <vargaz@gmail.com>
5949 * mini.h: Fix a warning.
5951 2005-10-24 Miguel de Icaza <miguel@novell.com>
5953 * mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
5954 we expose publicly, this returns the string.
5956 2005-10-22 Zoltan Varga <vargaz@freemail.hu>
5958 * exceptions-amd64.c (mono_arch_find_jit_info): Fix some corner cases
5959 with fp elimination.
5961 2005-10-21 Zoltan Varga <vargaz@gmail.com>
5963 * mini-exceptions.c (mono_handle_native_sigsegv): Try to print a
5964 native stacktrace using the glibc 'backtrace' function if available.
5966 2005-10-20 Zoltan Varga <vargaz@gmail.com>
5968 * mini.h (MonoDebugOptions): Remove 'abort_on_sigsegv' option.
5970 * mini-exceptions.c (mono_handle_native_sigsegv): New function to
5971 handle SIGSEGVs received while in native code.
5973 * mini.c (sigsegv_signal_handler): If the SIGSEGV happened in native
5974 code, call mono_handle_native_sigsegv which will abort the runtime
5975 after printing some diagnostics, instead of converting it into a
5976 confusing NullReferenceException.
5978 2005-10-18 Zoltan Varga <vargaz@gmail.com>
5980 * cpu-pentium.md: Remove unused opcodes.
5982 2005-10-18 Zoltan Varga <vargaz@freemail.hu>
5984 * mini-amd64.h (MonoLMF): Add rsp field.
5986 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Save the sp reg into
5989 2005-10-17 Zoltan Varga <vargaz@gmail.com>
5991 * mini-codegen.c (get_register_spilling): Fix some warnings.
5993 2005-10-16 Zoltan Varga <vargaz@freemail.hu>
5995 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Add support for fp
5996 elimination during exception handling. Enable fp elimination by
5999 * mini-amd64.h mini-amd64.c: Add preliminary support for frame pointer
6002 2005-10-16 Martin Baulig <martin@ximian.com>
6005 (mono_debugger_run_finally): New public method for the debugger.
6007 2005-10-10 Zoltan Varga <vargaz@gmail.com>
6009 * debug-mini.c (mono_debug_init_method): Fix warning.
6011 * mini.h branch-opts.c (mono_branch_optimize_exception_target): Make
6012 the 'exname' parameter const to fix some warnings.
6014 2005-10-09 Zoltan Varga <vargaz@freemail.hu>
6016 * mini-exceptions.c (mono_handle_exception_internal): Fix another bug
6017 introduced by the previous patch.
6019 2005-10-08 Zoltan Varga <vargaz@gmail.com>
6021 * basic-float.cs: Add test for precision of float arithmetic.
6023 * mini-ia64.c (mono_arch_output_basic_block): Convert to/from doubles
6024 when loading/storing single values from/to memory.
6026 * mini.c (mono_jit_compile_method_with_opt): Create the function
6027 pointers in the correct domain.
6029 2005-10-08 Zoltan Varga <vargaz@freemail.hu>
6031 * mini-exceptions.c (mono_handle_exception_internal): Fix bug
6032 introduced by previous patch.
6034 * mini-exceptions.c (mono_handle_exception_internal): Handle the case
6035 when out_filter_idx is NULL.
6037 * mini-exceptions.c: Don't run filter clauses twice during exception
6038 handling. Fixes #75755.
6040 2005-10-07 Zoltan Varga <vargaz@gmail.com>
6042 * aot.c: Add support for ldflda wrappers.
6044 * mini.c (mono_method_to_ir): Use ldflda wrappers for CEE_LDFLDA. Fixes
6047 Tue Oct 4 20:23:25 CEST 2005 Paolo Molaro <lupus@ximian.com>
6049 * mini.c, mini.h: do not consider exception handlers blocks when
6050 setting up interface variables.
6052 2005-10-04 Zoltan Varga <vargaz@freemail.hu>
6054 * aot.c (emit_section_change): Fix emitting of sections on win32. Fixes #76322.
6056 2005-10-03 Zoltan Varga <vargaz@gmail.com>
6058 * liveness.c (mono_analyze_liveness): Revert parts of r51051 since it
6059 causes a regression.
6061 * mini.c (mini_thread_cleanup): Fix reading of freed memory.
6063 2005-10-02 Zoltan Varga <vargaz@freemail.hu>
6065 * mini.h (OP_PCONST): Move the definition of OP_PCONST into the rest
6066 of the OP_P definitions.
6068 * TODO: Add a proposal for dealing with the CEE/OP mess.
6070 * mini-amd64.c (mono_arch_output_basic_block): Merge mul_imm
6071 optimizations from the x86 port.
6073 * cpu-amd64.md: Ditto.
6075 * basic.cs basic-long.cs: Add tests.
6077 Fri Sep 30 20:07:20 CEST 2005 Paolo Molaro <lupus@ximian.com>
6079 * Makefile.am, driver.c, mini-x86.c, mini.c, mini.h, branch-opts.c:
6080 Patrik Torstensson's implementation of my exception-handling
6081 optimization idea, when the exception object is not used
6084 Fri Sep 30 19:10:29 CEST 2005 Paolo Molaro <lupus@ximian.com>
6086 * mini-x86.c, cpu-pentium.md: Patrik Torstensson's port
6087 of the mul_imm optimizations from the old jit.
6089 Fri Sep 30 11:37:51 EDT 2005 Paolo Molaro <lupus@ximian.com>
6091 * mini.c, liveness.c: patch by Patrik Torstensson and
6092 Zoltan Varga to improve performance in methods with
6095 2005-09-30 Zoltan Varga <vargaz@gmail.com>
6097 * driver.c: Remove 'Globalization' entry from --version.
6099 2005-09-28 Zoltan Varga <vargaz@gmail.com>
6101 * mini.c (mono_jit_compile_method_inner): Do not load AOT code when
6102 there is a profiler interested in JIT events.
6104 * aot.c: Load profile files produced by the AOT profiling module, and
6105 reorder methods based on the profiling info. Add a 'method_order' table
6106 to the AOT file to make mono_aot_find_jit_info work with the reordered
6109 * mini.h: Bump AOT file version info.
6111 Wed Sep 28 17:12:48 CEST 2005 Paolo Molaro <lupus@ximian.com>
6113 * mini-arm.h: work around what looks like a gcc bug when optimizations
6116 2005-09-28 Raja R Harinath <rharinath@novell.com>
6118 * Makefile.am (AM_CFLAGS): Don't use += to append inside
6119 conditionals. Use ...
6120 (PLATFORM_CFLAGS, ARCH_CFLAGS): ... these.
6122 2005-09-27 Zoltan Varga <vargaz@freemail.hu>
6124 * mini-amd64.c (mono_arch_call_opcode): Use mono_class_value_size ()
6125 to determine the amount of memory to copy when passing valuetypes.
6127 * inssel-amd64.brg: Remove PUSH(LDIND4) rules since they convert an
6128 4 byte load into a 8 byte load. Fix aligning of size in OP_OUTARG_VT.
6130 2005-09-27 Zoltan Varga <vargaz@gmail.com>
6132 * mini.h mini.c aot.c: Add infrastructure to collect pagefault
6133 information about aot.
6135 2005-09-27 Ben Maurer <bmaurer@ximian.com>
6137 * *.c: Replace the use of {Enter,Leave}CriticalSection with
6138 macros. This will allow a deadlock debugger to easily be plugged
6141 Tue Sep 27 09:32:11 EDT 2005 Paolo Molaro <lupus@ximian.com>
6143 * mini-ppc.c, cpu-g4.md: added memory barrier instruction.
6145 2005-09-27 Raja R Harinath <rharinath@novell.com>
6147 * Makefile.am (AM_CFLAGS): Rename from INCLUDES.
6148 (AM_CFLAGS) [PLATFORM_WIN32): Append to it, don't set it.
6149 (AM_CFLAGS) [ARM]: Add arch/arm directory from the build tree.
6150 ($(arch_built)) [CROSS_COMPILING]: Error out.
6152 2005-09-26 Zoltan Varga <vargaz@gmail.com>
6154 * aot.c: Add support for the no_special_static flag for classes.
6156 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
6158 * Reapply reverted patches.
6160 * *: Revert r50174 as well.
6162 * mini-amd64.c cpu-amd64.md inssel-amd64.brg: Revert r50170 as well.
6164 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
6166 * mini-amd64.c: Revert r50342 to see if this fixed buildbot.
6168 2005-09-23 Miguel de Icaza <miguel@novell.com>
6170 * mini.c (SIG_HANDLER_SIGNATURE): Only dereference info if it is
6171 part of the SIG_HANDLER_SIGNATURE.
6173 2005-09-23 Zoltan Varga <vargaz@gmail.com>
6175 * mini.h mini.c: Add a new MONO_DEBUG option to collect metadata pagefault
6178 * mini-x86.c (mono_arch_call_opcode): Fix vararg calling convention
6179 introduced by previous patch.
6181 2005-09-21 Zoltan Varga <vargaz@gmail.com>
6183 * tramp-x86.c (mono_arch_create_trampoline_code): Restore caller
6184 saved registers too.
6186 * mini-x86.c (mono_arch_allocate_vars): Rewrite this so it works based
6187 upon the information returned by get_call_info ().
6189 * mini-x86.c (add_float): Fix stack size calculation.
6190 (mono_arch_call_opcode): Rewrite this so it works based up the
6191 information returned by get_call_info ().
6192 (mono_arch_get_this_vret_args): Ditto.
6194 2005-09-21 Zoltan Varga <vargaz@freemail.hu>
6196 * mini-amd64.c (mono_arch_emit_this_vret_args): Use the information
6197 in cinfo to determine the registers which need to be used.
6199 2005-09-20 Miguel de Icaza <miguel@novell.com>
6201 * driver.c (mono_main): Add --server and --desktop flags.
6203 2005-09-16 Zoltan Varga <vargaz@gmail.com>
6205 * mini-ia64.h: Make register masks 64 bit. Don't treat argument
6206 registers as global registers.
6208 * inssel-ia64.brg (stmt): Remove OP_OUTARG_REG () rules which are no
6209 longer needed with the new register allocator.
6211 * mini-ia64.c: Use OP_MOVE instead of OP_SETREG for reg-reg moves.
6213 * cpu-ia64.md: Remove unused opcodes.
6215 * regalloc.c mini-codegen.c: Make register masks 64 bit on ia64.
6217 2005-09-16 Zoltan Varga <vargaz@freemail.hu>
6219 * cpu-amd64.md: Remove unused opcodes.
6221 * inssel-amd64.brg: Remove OP_OUTARG_REG () rules which are no longer
6222 needed with the new register allocator.
6224 * inssel-amd64.brg mini-amd64.c: Use OP_MOVE instead of OP_SETREG for
6227 2005-09-16 Raja R Harinath <rharinath@novell.com>
6229 * Makefile.am (check-local): Don't invoke semdel-wrapper.
6231 2005-09-16 Martin Baulig <martin@ximian.com>
6233 * exceptions-amd64.c
6234 (throw_exception): Don't call mono_debugger_throw_exception() if
6235 we're a rethrow - see the FIXME in the code.
6237 2005-09-15 Geoff Norton <gnorton@customerdna.com>
6239 * mini.c (mono_init_exceptions): This only works on some architectures.
6241 2005-09-15 Zoltan Varga <vargaz@gmail.com>
6243 * mini.c (mono_method_to_ir): Add OP_LMUL imm -> OP_LMUL_IMM conversion
6246 * inssel-long.brg mini-ia64.c: Add OP_LMUL_IMM rules.
6248 * mini-ia64.h mini-ia64.c: Remove the altstack support code which is
6249 now in mini-exceptions.c.
6251 2005-09-15 Zoltan Varga <vargaz@freemail.hu>
6253 * mini-amd64.h mini-am64.c: Remove the altstack support code which is
6254 now in mini-exceptions.c.
6256 2005-09-15 Zoltan Varga <vargaz@gmail.com>
6258 * exceptions-x86.c: Applied patch from Patrik Torstensson
6259 <patrik.torstensson@gmail.com>. Add stack overflow handling support for win32.
6261 * mini-exceptions.c mini-x86.c mini.c: Move the altstack setup/teardown
6262 code into mini-exceptions.c. Add some assertions to it.
6264 2005-09-12 Zoltan Varga <vargaz@gmail.com>
6266 * aot.c (emit_section_change): Applied patch from "The Software Team"
6267 (<software@solmersa.com>). Fix as errors on windows.
6269 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
6271 * tramp-amd64.c (mono_arch_create_trampoline_code): Fix saving of
6272 method info into the LMF.
6274 2005-09-11 Zoltan Varga <vargaz@gmail.com>
6276 * mini-ia64.c: Add proper unwind info for method epilogs.
6278 * exceptions-ia64.c: Add some code to help debugging.
6280 * mini-ia64.c mini-ia64.h: Add sigaltstack support.
6282 * mini-exceptions.c: Fix warning.
6284 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
6286 * mini.c: Really fix build.
6288 * mini-x86.c mini-amd64.c: Fix build.
6290 2005-09-11 Zoltan Varga <vargaz@gmail.com>
6292 * mini-ia64.c inssel-ia64.brg: Add InterlockedExchange instrinsics.
6294 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Implement
6295 some Interlocked methods as intrinsics.
6297 * mini.c (mini_get_inst_for_method): Call arch_get_inst_for_method
6298 for Thread methods as well.
6300 * mini-ops.h: Add OP_MEMORY_BARRIER opcode.
6302 * inssel.brg: Add rule for OP_MEMORY_BARRIER.
6304 * mini-ia64.c mini-x86.c mini-amd64.c
6305 cpu-ia64.md cpu-pentium.md cpu-amd64.md: Add implementation of
6308 * mini.c (mono_init_exceptions): Fix build breakage.
6310 2005-09-10 Zoltan Varga <vargaz@gmail.com>
6312 * mini-ia64.c exceptions-ia64.c tramp-ia64.c: Remove 'manual' emitting
6313 of instructions. Use the new ia64_unw_op macros for emitting unwind
6316 * mini.c (mono_init_exceptions): Initialize exception handling
6317 related trampolines at startup.
6319 Fri Sep 9 19:30:37 BST 2005 Paolo Molaro <lupus@ximian.com>
6321 * cpu-arm.md, mini-arm.c: fix for dynamic code (Gtk# apps).
6323 2005-09-09 Zoltan Varga <vargaz@gmail.com>
6325 * mini.c: Handle type loading errors gracefully during compilation and
6326 throw the appropriate exception.
6328 Fri Sep 9 09:49:14 CEST 2005 Paolo Molaro <lupus@ximian.com>
6330 * ldscript.mono, Makefile.am: use anonymous versions in the ldscript
6331 for the mono binary.
6333 2005-09-09 Martin Baulig <martin@ximian.com>
6335 * mini.c (mono_method_to_ir): Comment out the G_BREAKPOINT()'s for
6338 Thu Sep 8 14:53:45 BST 2005 Paolo Molaro <lupus@ximian.com>
6340 * mini-arm.h: use emulation for conv.r.un for the release.
6342 Thu Sep 8 11:28:45 BST 2005 Paolo Molaro <lupus@ximian.com>
6344 * mini-arm.c, objects.cs: more fixes and tests for them.
6346 Wed Sep 7 17:14:26 BST 2005 Paolo Molaro <lupus@ximian.com>
6348 * mini-arm.c: align structures to at least 4 bytes to be able
6349 to keep our current optimized memcpy.
6351 Tue Sep 6 22:51:08 BST 2005 Paolo Molaro <lupus@ximian.com>
6353 * mini-arm.c, cpu-arm.md, inssel-arm.brg: bugfixes.
6355 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6357 * mini.c: ignore SIGPIPE.
6359 2005-09-04 Zoltan Varga <vargaz@gmail.com>
6361 * mini-ia64.c (mono_arch_lowering_pass): Convert 'and_imm 255' to zext1.
6363 * mini-ia64.h mini-ia64.c: Add some minor optimizations.
6365 2005-09-02 Zoltan Varga <vargaz@gmail.com>
6367 * mini.h: Add prototype for mono_allocate_stack_slots_full.
6369 Thu Sep 1 21:05:26 BST 2005 Paolo Molaro <lupus@ximian.com>
6371 * exceptions-arm.c, mini.c, mini-arm.c, mini-arm.h:
6372 exception handling support.
6373 * mini-arm.c, mini-arm.h: bigendian fixes (partially from a
6374 patch by Brian Koropoff <briank@marakicorp.com>).
6376 Thu Sep 1 10:22:44 EDT 2005 Paolo Molaro <lupus@ximian.com>
6378 * mini.c: revert another 'optimization' which breaks when
6379 items on the eval stack need to be saved at a basic block end
6382 Wed Aug 31 17:29:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
6384 * jit-icalls.c: for arrays, ensure we always provide
6387 2005-08-30 Zoltan Varga <vargaz@gmail.com>
6389 * mini.c (mono_allocate_stack_slots_full): Fix ia64 build.
6391 * mini.c (mini_get_inst_for_method): Special case Object:.ctor as well.
6393 2005-08-29 Zoltan Varga <vargaz@gmail.com>
6395 * mini-ia64.h mini-ia64.c: Implement frame pointer elimination. Keep
6396 arguments in their original register.
6398 2005-08-28 Zoltan Varga <vargaz@gmail.com>
6400 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Optimize
6403 * mini.c (mono_method_to_ir): Disable the MUL->MUL_IMM optimization
6404 when ssapre is enabled.
6406 * inssel-long.brg: Fix bug in previous patch.
6408 * mini-ia64.c mini-ia64.h mini.c inssel-long.brg: Optimize
6409 multiplication by a constant.
6411 2005-08-27 Zoltan Varga <vargaz@gmail.com>
6413 * mini-ia64.c (mono_arch_setup_jit_tls_data): Add support for intel
6416 * tramp-ia64.c (mono_arch_create_trampoline_code): Use st8.spill for
6419 Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
6421 * inssel-arm.brg: apply changes tested by Brian Koropoff
6422 <briank@marakicorp.com>.
6424 2005-08-25 Zoltan Varga <vargaz@gmail.com>
6426 * mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.
6428 2005-08-24 Zoltan Varga <vargaz@gmail.com>
6430 * mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
6431 to the same register if dreg is just a base register.
6432 (print_ins): Improve printing of membase opcodes.
6434 * inssel-x86.brg: Add optimized ldind(reg) rules.
6436 * mini-x86.c cpu-pentium.md: Changes required to support the new rules.
6438 Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
6440 * mini.c: when running under valgrind, set the stack bottom for
6441 the GC at the actual approximate stack for the app (fixes running
6442 mono with valgrind).
6444 Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
6446 * mini.c: do no break at the first valuetype to init found
6449 Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
6451 * cpu-arm.md, mini-arm.c: more fixes and LMF support.
6453 Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
6455 * cpu-g4.md: fixed instruction length exposed by the nemerle compiler.
6457 2005-08-23 Zoltan Varga <vargaz@freemail.hu>
6459 * inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.
6461 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
6463 * inssel-x86.brg: Fix assert in patch_delegate_trampoline.
6465 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
6468 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
6471 * mini.c (optimize_branches): Don't quit after 1000 iterations on large
6474 Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
6476 * tramp-arm.c: allocate less memory for the trampoline and fix typo.
6478 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
6480 * mini.c (mono_method_to_ir): Remove instructions inserted after a branch
6481 in the tail recursion optimization.
6483 * mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as
6484 debug info into the assembly file.
6486 * iltests.il: Add test for filter regions.
6488 * mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
6489 initial stack of filter regions. Fixes #75755.
6491 Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
6493 * mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
6496 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
6498 * mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
6499 the check for an already compiled method on non-ia64 platforms.
6500 (mono_create_jump_trampoline): Store the MonoJitInfo structure into the
6503 * mini-x86.h tramp-x86.c: Add support for delegate trampolines.
6505 * inssel-x86.brg: Add some optimized call rules.
6507 2005-08-21 Zoltan Varga <vargaz@freemail.hu>
6509 * mini.c (mono_create_delegate_trampoline): Do not return an already compiled
6512 * mini.h mini-trampolines.c: Pass the trampoline argument to
6513 mono_arch_patch_delegate_trampoline.
6515 * mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.
6517 * mini-trampolines.c: Fix build.
6519 * mini-amd64.h: Add delegate trampolines.
6521 * mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.
6523 * inssel-amd64.brg: Add optimized call rules.
6525 * mini-ia64.c tramp-ia64.c: Improve instruction scheduling.
6527 * inssel-ia64.brg: Add optimized ldind(reg) rules.
6529 2005-08-20 Zoltan Varga <vargaz@freemail.hu>
6531 * mini.c (mono_create_class_init_trampoline): Fix bug caused by last
6534 * mini-ia64.c: Remove LMF fixmes.
6536 * mini-ia64.h: Remove most fields from LMF.
6538 * inssel-ia64.brg (stmt): Fix unaligned access errors.
6540 * mini-trampolines.c: Add support for IA64 function descriptors.
6542 * mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
6543 for IA64 function descriptors.
6545 Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
6547 * tramp-arm.c: patch the vtable for virtual calls. Added
6548 support code to register/unregister the LMF.
6549 * mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
6552 2005-08-19 Dick Porter <dick@ximian.com>
6554 * mini.c: Use a gsize to store the thread ID, so it can hold a 64
6555 bit value if needed.
6557 2005-08-19 Zoltan Varga <vargaz@freemail.hu>
6559 * mini.c (mini_get_method): Move handling of wrapper data here.
6561 * mini.c (mono_method_to_ir): Add support for dynamic methods.
6563 * mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
6566 * mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so
6567 bblock->code does not remain empty.
6569 2005-08-17 Zoltan Varga <vargaz@freemail.hu>
6571 * arrays.cs: Add regression test for #75832.
6573 * inssel-amd64.brg cpu-amd64.md mini-amd64.c: Fix LDELEMA optimization
6574 rules. Fixes #75832.
6576 * mini-ia64.c tramp-ia64.c exceptions-ia64.c: Implement improved
6577 instruction scheduling.
6579 2005-08-12 Zoltan Varga <vargaz@freemail.hu>
6581 * mini-exceptions.c (ves_icall_get_frame_info): Fix IA64 build.
6583 2005-08-11 Zoltan Varga <vargaz@freemail.hu>
6585 * mini-exceptions.c mini-x86.h: Move VC stuff into macros in mini-x86.h.
6587 * mini-codegen.c: Fix VC build.
6589 * cpu-pentium.md: Increase length of atomic_exhange_i4.
6591 2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6593 * mini.h: fix signature for mono_register_opcode_emulation.
6595 2005-08-09 Zoltan Varga <vargaz@freemail.hu>
6597 * mini.c: Get rid of most of the helper_sig_... constants using
6598 mono_create_icall_signature ().
6600 2005-08-08 Zoltan Varga <vargaz@freemail.hu>
6602 * jit-icalls.c (helper_ldstr): New helper function.
6604 * mini.c (get_basic_blocks): Set out_of_line for bblocks containing a throw.
6606 * mini.c (mono_method_to_ir): If an LDSTR instruction is in a bblock with a
6607 throw, load the string using a helper call instead of creating a string object.
6609 * aot.c: Update after LDSTR changes.
6611 * mini.h: Bump AOT file version.
6613 * aot.c: Save class size info into the AOT file. Print more statistics during
6616 * mini.h: Bump AOT file version.
6618 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
6619 ordering of disasm cases. Fixes #74957.
6621 Thu Aug 4 19:47:24 BST 2005 Paolo Molaro <lupus@ximian.com>
6623 * mini-ops.h, mini-arch.h, inssel.brg, mini.c, mini.h,
6624 jit-icalls.c, mini-codegen.c, Makefile.am: changes in
6625 the generic code needed for the ARM port.
6627 Thu Aug 4 19:42:54 BST 2005 Paolo Molaro <lupus@ximian.com>
6629 * exceptions-arm.c, tramp-arm.c, mini-arm.c, mini-arm.h, cpu-arm.md,
6630 inssel-arm.brg: more ARM features and fixes.
6632 Mon Aug 1 18:37:38 BST 2005 Paolo Molaro <lupus@ximian.com>
6634 * tramp-arm.c, mini-arm.c, cpu-arm.md, inssel-arm.brg: more
6635 ARM port work in progress.
6637 2005-07-30 Zoltan Varga <vargaz@freemail.hu>
6639 * mini-ia64.c (mono_arch_call_opcode): Ongoing IA64 work.
6641 * mini-exceptions.c mini-ia64.h: Ongoing IA64 work.
6643 * mini-ia64.c (ia64_emit_bundle): Ongoing IA64 work.
6645 * inssel.brg (mini_emit_memset): Add support for unaligned access.
6647 * *-ia64.*: Ongoing IA64 work.
6649 * mini-ia64.c exceptions-ia64.c: Ongoing IA64 work.
6651 2005-07-28 Zoltan Varga <vargaz@freemail.hu>
6653 * TODO: Remove out-of-data todo stuff.
6655 * mini.h mini.c (mono_create_jit_trampoline_from_token): Remove some
6658 * aot.c: Save/load MonoCachedClassInfo->has_nested_classes.
6660 * mini.h: Bump corlib version.
6662 2005-07-27 Martin Baulig <martin@ximian.com>
6665 (create_copy_ins): Added `const unsigned char *ip' argument; set
6666 `copy->cil_code' from it.
6668 2005-07-27 Martin Baulig <martin@ximian.com>
6670 * mini-exceptions.c (mono_handle_exception): Don't call
6671 mono_debugger_handle_exception() for filters.
6673 2005-07-27 Zoltan Varga <vargaz@freemail.hu>
6675 * mini-trampolines.c (mono_aot_trampoline): Handle AppDomain:InvokeInDomain
6678 2005-07-26 Martin Baulig <martin@ximian.com>
6680 Committing a patch from Michal Moskal <michal.moskal@gmail.com>.
6682 * mini.c (mono_method_to_ir): In `CEE_CALLI', only use
6683 helper_compile_generic_method() if the method is actually virtual
6686 2005-07-26 Martin Baulig <martin@ximian.com>
6689 (trampoline_code): Renamed to `mono_trampoline_code' and made it
6690 public; this is now accessed directly by the debugger.
6691 (mono_generic_trampoline_code): Removed.
6694 (mono_debug_init_method): Also add interncalls and wrappers.
6696 2005-07-23 Zoltan Varga <vargaz@freemail.hu>
6698 * mini-ia64.c mini-ia64.h: Add support for tracing/profiling.
6700 2005-07-22 Zoltan Varga <vargaz@freemail.hu>
6702 * aot.c (mono_aot_get_method_from_token): Fix a potential crash here.
6704 2005-07-21 Zoltan Varga <vargaz@freemail.hu>
6706 * aot.c (load_patch_info): Fix handling of stfld_remote wrapper.
6708 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
6710 * mini-amd64.c (mono_arch_setup_jit_tls_data): Use the nice way of
6711 getting TLS offsets on AMD64 too.
6713 2005-07-20 Kornél Pál <kornelpal@hotmail.com>
6715 * driver.c: Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32
6717 Wed Jul 20 18:05:19 BST 2005 Paolo Molaro <lupus@ximian.com>
6719 * exceptions-arm.c, mini-arm.c, tramp-arm.c, cpu-arm.md,
6720 inssel-arm.brg, mini-arm.h: ARM port work in progress.
6722 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
6724 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix build.
6726 * mini.h mini.c mini-*.h tramp-*.c: Move more cross platform trampoline code
6729 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Call
6730 mono_sparc_is_virtual_call ().
6732 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix warning.
6734 * tramp-sparc.c (mono_arch_create_trampoline_code): Fix order of
6735 trampoline parameters.
6737 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix signature.
6739 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Rename this
6740 to mono_arch_get_vcall_slot_addr.
6742 * Makefile.am tramp-sparc.c: Update the sparc port to use the generic
6745 * *-sparc.*: Merge the mini-xp-regalloc branch for sparc.
6747 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
6749 * mini-ia64.h mini-ia64.c: Finish pinvoke support.
6751 2005-07-19 Martin Baulig <martin@ximian.com>
6753 * exceptions-amd64.c (throw_exception): Call
6754 mono_debugger_throw_exception() here like we're doing it on i386.
6756 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
6758 * mini-ia64.c: Add optimized TLS access support.
6760 2005-07-18 Zoltan Varga <vargaz@freemail.hu>
6762 * mini-exceptions.c: Ongoing IA64 work.
6764 * mini-ia64.c inssel-long.brg: Ongoing IA64 work.
6766 * mini.c: Use the default optimization set when embedding. Fixes
6769 2005-07-11 Zoltan Varga <vargaz@freemail.hu>
6771 * tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts
6772 of trampolines to a separate file.
6774 * mini-trampolines.c: New file.
6776 * mini.h tramp-x86.c: Move arch independent parts of trampolines to a
6779 * tramp-x86.c: Reorganize the trampoline code to be similar to the
6782 * mini-codegen.c: Fix cygwin build.
6784 2005-07-10 Zoltan Varga <vargaz@freemail.hu>
6786 * mini.c: Add some minor changes needed by the IA64 port.
6788 * *-ia64.*: Ongoing IA64 work.
6790 2005-07-09 Zoltan Varga <vargaz@freemail.hu>
6792 * tramp-amd64.c mini-amd64.c: Update after latest AOT changes. Split
6793 trampolines into arch-independent and arch-dependent parts.
6795 * mini-amd64.c (mono_arch_lowering_pass): Fix store_membase_imm -> store_membase_reg rule.
6797 2005-07-08 Zoltan Varga <vargaz@freemail.hu>
6799 * cpu-amd64.md: Merge the xp-regalloc-branch for amd64.
6801 * mini-ops.h mini-amd64.h mini-amd64.c inssel-amd64.brg Makefile.am: Merge
6802 the xp-regalloc-branch for amd64.
6804 * mini-x86.h mini-x86.c cpu-pentium.md Makefile.am: Merge the
6805 xp-regalloc-branch for x86.
6807 2005-07-07 Zoltan Varga <vargaz@freemail.hu>
6809 * inssel.brg (OP_THROW_OR_NULL): Allways rethrow the abort exception.
6811 2005-07-06 Martin Baulig <martin@ximian.com>
6814 (mono_jit_compile_method_inner): Call mono_get_inflated_method().
6815 (mono_jit_runtime_invoke): Likewise.
6817 2005-07-05 Zoltan Varga <vargaz@freemail.hu>
6819 * aot.c (mono_compile_assembly): Allocate the GOT in the .bss segment
6822 * aot.c: Add new mono_aot_get_method_from_token () function to load AOT methods
6823 without loading their metadata. Reorganize the file format so exception handling+
6824 debug info is kept separate from normal method info. Create MonoJitInfo
6825 structures for methods lazily.
6827 * tramp-x86.c (x86_aot_trampoline): Use the new from_token method to avoid
6829 (x86_class_init_trampoline): Patch AOT class init trampolines too.
6831 * mini.c (mini_init): Install the new mono_aot_find_jit_info hook.
6833 * mini.c (mono_method_to_ir): Reduce the number of class init trampoline calls
6836 * mini.h: Bump AOT file version.
6838 2005-07-04 Zoltan Varga <vargaz@freemail.hu>
6840 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
6842 2005-07-01 Raja R Harinath <rharinath@novell.com>
6844 * Makefile.am (check-local): Call semdel-wrapper.
6846 2005-06-29 Zoltan Varga <vargaz@freemail.hu>
6848 * mini-x86.c: Revert the last change as it seems to break the build..
6850 2005-06-28 Zoltan Varga <vargaz@freemail.hu>
6852 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
6854 * mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.
6856 2005-06-27 Ben Maurer <bmaurer@ximian.com>
6858 * mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
6859 outside of the macro, so strange stuff doesn't happen with gcc4
6860 (NEW_AOTCONST_TOKEN): Likewise.
6862 2005-06-28 Martin Baulig <martin@ximian.com>
6864 * mini.c (mini_class_is_system_array): New static method; use this
6865 instead of `klass->parent == mono_defaults.array_class' everywhere
6866 since this also works for the new generic array class.
6868 2005-06-26 Ben Maurer <bmaurer@ximian.com>
6870 * inssel.brg: Remove warnings.
6872 2005-06-24 Zoltan Varga <vargaz@freemail.hu>
6874 * mini-ia64.c: Ongoing IA64 work.
6876 * basic-float.cs: Add float->i1 conversion test.
6878 * iltests.il: Add conv.u4 test.
6880 2005-06-23 Zoltan Varga <vargaz@freemail.hu>
6882 * inssel-long.brg: Fix bug caused by last change.
6884 2005-06-23 Geoff Norton <gnorton@customerdna.com>
6886 * mini-x86.h: Add __APPLE__ to the SC_* redefines with the other
6887 BSDs. Allows the x86 JIT to work on OSX86
6889 2005-06-22 Zoltan Varga <vargaz@freemail.hu>
6891 * inssel-long.brg: Use OP_LSHR_UN_IMM instead of OP_SHR_UN_IMM in
6894 * mini-ia64.c: Ongoing IA64 work.
6896 2005-06-19 Zoltan Varga <vargaz@freemail.hu>
6898 * mini-ia64.c: Ongoing IA64 work.
6900 * driver.c: Clean up jit_code_hash as well when using --regression.
6902 * inssel-long.brg: Fix long->i4/u4 conversion rules.
6904 * basic-long.cs: Add tests for long->u4 conversion.
6906 2005-06-18 Ben Maurer <bmaurer@ximian.com>
6908 * mini.c: Take mono_get_domainvar out of macros. This makes sure
6909 that we do not depend on undefined C behavior: the order stuff
6910 gets evaluated within an expression. Fixes mono when compiled on
6913 2005-06-18 Zoltan Varga <vargaz@freemail.hu>
6915 * *-ia64.*: Ongoing IA64 work.
6917 * aot.c: Lower memory usage while loading AOT methods.
6919 * tramp-x86.c: Avoid allocating+freeing MonoJitInfo structures.
6921 * mini.h: Bump AOT file format version.
6923 2005-06-17 Zoltan Varga <vargaz@freemail.hu>
6925 * mini.c (mono_method_to_ir): Allow STACK_PTR as input to SWITCH.
6927 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
6929 * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
6930 not on callee assembly). Fixed some comments.
6932 2005-06-16 Zoltan Varga <vargaz@freemail.hu>
6934 * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
6935 it gets proper disassembly.
6936 (emit_method_info): Remove some dead code.
6938 * mini.c (mini_method_compile): Allways allocate the GOT var in
6939 mono_method_to_ir for emulating opcodes.
6941 2005-06-13 Zoltan Varga <vargaz@freemail.hu>
6943 * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
6944 before freeing the code memory. Fixes #74990.
6946 * objects.cs: Add regression test for #74992.
6948 * liveness.c: Extend live ranges of arguments to the beginning of the
6949 method. Fixes #74992.
6951 * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
6952 so it points into the faulting instruction.
6954 2005-06-12 Zoltan Varga <vargaz@freemail.hu>
6956 * jit-icalls.c (mono_imul_ovf): Add exception handling.
6958 * *-ia64.*: Ongoing IA64 work.
6960 * mini.c (mini_init): Fix signature of mono_delegate_ctor.
6962 2005-06-11 Zoltan Varga <vargaz@freemail.hu>
6964 * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
6966 * *-ia64.*: Ongoing IA64 work.
6968 2005-06-10 Zoltan Varga <vargaz@freemail.hu>
6970 * basic-long.cs: Add tests for add/sub.ovf.
6972 * basic.cs: Add tests for sub.ovf.
6974 * *-ia64.*: Ongoing IA64 work.
6976 2005-06-09 Zoltan Varga <vargaz@freemail.hu>
6978 * *-ia64.*: Ongoing IA64 work.
6980 * basic.cs: Add conv.ovf.i4.un test.
6982 2005-06-09 Massimiliano Mantione <massi@ximian.com>
6984 * mini.c: (remove_block_if_useless) Fixed bug 75061.
6986 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6988 * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
6990 2005-06-07 Zoltan Varga <vargaz@freemail.hu>
6992 * *-ia64.*: Ongoing IA64 work.
6994 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6997 * mini.c: added the ability to toggle trace on/off using SIGUSR2.
6999 2005-06-04 Zoltan Varga <vargaz@freemail.hu>
7001 * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
7003 2005-06-03 Zoltan Varga <vargaz@freemail.hu>
7005 * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
7007 * mini-amd64.c (amd64_patch): Add an assert to check that the destination
7008 of a call is callable by a near call.
7010 2005-05-31 Zoltan Varga <vargaz@freemail.hu>
7012 * mini-ia64.c: Ongoing IA64 work.
7014 2005-05-29 Zoltan Varga <vargaz@freemail.hu>
7016 * genmdesc.c: Make the generated array non-static.
7018 * inssel-long.brg: Fix LSHR_IMM rule.
7020 * *-ia64.*: Ongoing IA64 work.
7022 * *-ia64.*: Ongoing IA64 work.
7024 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
7026 * *-ia64.*: Ongoing IA64 work.
7028 * *-ia64.*: Ongoing IA64 work.
7030 * mini-ia64.c: Ongoing IA64 work.
7032 * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
7034 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
7036 * objects.cs basic-calls.cs: Move some tests to objects.cs.
7038 * objects.cs basic-long.cs: Move some tests to objects.cs.
7040 2005-05-26 Zoltan Varga <vargaz@freemail.hu>
7042 * *-ia64.*: Ongoing IA64 work.
7044 * iltests.il: Add a new test.
7046 * mini.c (mono_method_to_ir): Initialize valuetypes when created using
7047 newobj. Fixes #75042.
7049 2005-05-22 Zoltan Varga <vargaz@freemail.hu>
7051 * *-ia64.*: Ongoing IA64 work.
7053 * *-ia64.*: Ongoing IA64 work.
7055 * *-ia64.*: Ongoing IA64 work.
7057 * basic.cs objects.cs: Move tests accessing static variables as well.
7059 * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
7061 2005-05-21 Zoltan Varga <vargaz@freemail.hu>
7063 * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
7065 * driver.c: Always print failed tests.
7067 * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
7070 * *ia64*: Ongoing IA64 work.
7072 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
7074 * basic.cs: Add tests for add.ovf. Fix warnings.
7076 2005-05-18 Miguel de Icaza <miguel@novell.com>
7078 * driver.c (mono_main): Avoid crash if no argument is passed to
7079 --break; Do not use g_error, but f_printf. And fix all other
7080 ocurrences of the same crash.
7082 2005-05-17 Zoltan Varga <vargaz@freemail.hu>
7084 * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
7085 and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
7088 2005-05-14 Zoltan Varga <vargaz@freemail.hu>
7090 * *-ia64.*: Add beginnings of IA64 backend.
7092 * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.
7094 2005-05-13 Zoltan Varga <vargaz@freemail.hu>
7096 * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
7099 * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
7101 * mini-amd64.c: Fix a warning.
7103 2005-05-10 Zoltan Varga <vargaz@freemail.hu>
7105 * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
7106 in float_neg. Fixes #74897.
7108 * mini-amd64.c (emit_call): Fix another near call bug.
7110 2005-05-06 Sebastien Pouliot <sebastien@ximian.com>
7112 * declsec.c: Keep the appdomain information in the structure. Added a
7113 missing "return FALSE" for Unmanaged if FullTrust is set (or else the
7114 value gets overwritten).
7115 * declsec.h: Set the default MonoArray for the the stack to 6. Added
7116 an MonoAppDomain member to MonoSecurityFrame.
7117 * mini-exceptions.c: Do not use a glist to keep GC allocated objects
7118 used in the stack walk. Now use a MonoArray which grow (double) when
7121 2005-05-05 Lluis Sanchez Gual <lluis@novell.com>
7123 * mini.c: Re-enabled runtime cleanup, since running threads should
7124 now properly stop when exiting.
7126 2005-05-05 Zoltan Varga <vargaz@freemail.hu>
7128 * mini-codegen.c: New file contaning the arch-independent local
7129 register allocator. Not used by any architectures yet.
7131 * mini.h linear-scan.c: Merge some changes from the
7132 mini-xp-local-regalloc branch.
7134 2005-04-28 Zoltan Varga <vargaz@freemail.hu>
7136 * mini-amd64.c (emit_call): Fix calls to native functions when the
7137 runtime is compiled as a shared library. Fixes #74756.
7139 * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
7140 on a literal field. Fixes #74751.
7142 2005-04-25 Raja R Harinath <rharinath@novell.com>
7144 * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
7146 2005-04-23 Zoltan Varga <vargaz@freemail.hu>
7148 * objects.cs: Add missing null casting test.
7150 2005-04-22 Zoltan Varga <vargaz@freemail.hu>
7152 * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
7153 in wrapper methods. Also rename 'address' variable to 'offset'.
7155 2005-04-20 Zoltan Varga <vargaz@freemail.hu>
7157 * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
7160 * Makefile.am (MCS): Use -unsafe instead of --unsafe.
7162 * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
7165 Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
7167 * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
7169 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
7171 * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
7172 just the last bytes.
7174 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
7176 * aot.c (mono_compile_assembly): Fix warning.
7178 * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
7179 by the _MSC_VER stuff.
7181 2005-04-16 Zoltan Varga <vargaz@freemail.hu>
7183 * inssel-long.brg: Fix #74588.
7185 * cpu-amd64.md: Fix #74591.
7187 * iltests.il: Add new regression tests.
7189 2005-04-13 Zoltan Varga <vargaz@freemail.hu>
7191 * trace.c (mono_trace_enter_method): Print enums as an int, not as a
7194 2005-04-11 Zoltan Varga <vargaz@freemail.hu>
7196 * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
7198 * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches
7199 from Bill Middleton <flashdict@gmail.com>.
7201 2005-04-10 Zoltan Varga <vargaz@freemail.hu>
7203 * arrays.cs: Add new regression test. Fix warnings.
7205 2005-04-09 Zoltan Varga <vargaz@freemail.hu>
7207 * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
7208 and leakage in CKFINITE.
7210 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
7211 this to a null op since it is called on amd64 too.
7213 * exceptions-amd64.c (get_throw_trampoline): Align stack.
7215 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
7216 body since this is not used on amd64.
7218 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
7220 * mini-amd64.c: Remove obsolete fixmes.
7222 * mini.c (print_method_from_ip): Fix debugging support.
7224 2005-2-1 Massimiliano Mantione <massi@ximian.com>
7226 * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
7227 so that expressions that don't give much gain are not reduced.
7228 * ssapre.h: Likewise.
7230 2005-04-04 Zoltan Varga <vargaz@freemail.hu>
7232 * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
7234 * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
7236 * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
7238 2005-04-01 Zoltan Varga <vargaz@freemail.hu>
7240 * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
7242 * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
7244 2005-03-31 Zoltan Varga <vargaz@freemail.hu>
7246 * mini-x86.c: If sigaltstack support is enabled, perform win32 style
7249 * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
7251 * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
7253 * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
7255 * mini-x86.h mini-x86.c exceptions-x86.c: Add support for
7256 MONO_ARCH_USE_SIGACTION. Fixes #74252.
7258 * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
7260 * mini-x86.c: Fix up stack overflow handling.
7262 * exceptions.cs: Add new regression test.
7264 2005-03-30 Zoltan Varga <vargaz@freemail.hu>
7266 * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
7267 mono_jit_thread_attach.
7269 * mini.c (mono_method_to_ir): Verify called method is not abstract.
7271 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
7273 * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
7274 avoid calling constructors using callvirt.
7276 * inssel.brg: Fix #74073.
7278 2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
7280 * aot.c, mini.h: Added mono-compiler.h header to allow/ease
7281 compilation with non-GCC compilers.
7282 * mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
7283 possible using VS.NET. Adapted from the work of J Lothian (for VC6).
7285 Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
7287 * inssel.brg, arrays.cs: fix long standing 64 bit issue in access to
7288 klass->interface_offsets (will likely fix bug#74073).
7290 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
7292 * mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.
7294 2005-03-28 Zoltan Varga <vargaz@freemail.hu>
7296 * mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
7297 to amd64_div_reg_size ().
7299 * mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.
7301 2005-03-27 Zoltan Varga <vargaz@freemail.hu>
7303 * cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.
7305 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
7307 * driver.c: Turn off automatic command line globbing under windows. Fixes #73763.
7309 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
7311 * mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.
7313 * mini.c (mono_precompile_assembly): Load and precompile referenced
7314 assemblies as well. Fixes #74015.
7316 2005-03-23 Zoltan Varga <vargaz@freemail.hu>
7318 * cpu-amd64.md (sin): Fix up maximum lengths of some opcodes.
7320 2005-03-23 Sebastien Pouliot <sebastien@ximian.com>
7322 * declsec.c: Skip linkdemand checks for intra-corlib calls. This skips
7323 a lot of checks and (anyway) permissions cannot work until corlib is
7326 Wed Mar 23 14:29:49 CET 2005 Paolo Molaro <lupus@ximian.com>
7328 * mini-ppc.c: fixed ABI issue on sysv/ppc.
7330 Tue Mar 22 19:03:17 CET 2005 Paolo Molaro <lupus@ximian.com>
7332 * tramp-ppc.c, exceptions-ppc.c: added missing icache flush
7333 calls (fixes bug#72824).
7335 Tue Mar 22 16:28:48 CET 2005 Paolo Molaro <lupus@ximian.com>
7337 * mini.c: fix tail recursion elimination (see test in bug#73936).
7339 2005-03-21 Zoltan Varga <vargaz@freemail.hu>
7341 * mini-amd64.c (mono_arch_output_basic_block): Add inline versions of
7342 some fp functions in sse2 mode.
7344 2005-03-20 Zoltan Varga <vargaz@freemail.hu>
7346 * mini-x86.c (emit_tls_get): Move tls handling into a separate helper function.
7348 2005-03-19 Zoltan Varga <vargaz@freemail.hu>
7350 * mini.h mini.c: Add mono_get_jit_tls_key ().
7352 * mini-x86.c: Enable fast TLS support on windows.
7354 2005-03-17 Sebastien Pouliot <sebastien@ximian.com>
7356 * declsec.c: Renamed aptc to allowpartiallytrustedcallers.
7357 * mini.c: Check for p/invoke method when generating code. If a
7358 p/invoke method, or it's class, isn't decorated with [Suppress
7359 UnmanagedCodeSecurity] then generate code to call System.Security.
7360 UnmanagedDemand (only if the security manager is active).
7362 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
7364 * tramp-amd64.c (create_specific_trampoline): Revert parts of the
7365 last change as it seems to cause strange crashes.
7367 Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <lupus@ximian.com>
7369 * *.c: handle unsafe function pointers where needed.
7371 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
7373 * mini.c (mono_jit_free_method): Remove the fixme too.
7375 2005-03-15 Miguel de Icaza <miguel@novell.com>
7377 * mini.c: As discussed, make the code actually free the delegate
7378 thunk now, to enable the debugging of delegate problems, use
7379 MONO_DEBUG=1 when running Mono.
7381 This takes also care of parts of the leaks as seen by Joe.
7383 2005-03-15 Zoltan Varga <vargaz@freemail.hu>
7385 * mini-amd64.c (mono_arch_setup_jit_tls_data): Enable
7386 thread_tls_offset calculation.
7388 2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
7390 * declsec.c: Reworked linkdemand checks for icall. The previous code
7391 was using the declaration code (untrusted) and didn't work as expected
7392 with the CLR 2.0. We're now more compatible with 2.0 than 1.x for this
7395 2005-03-13 Zoltan Varga <vargaz@freemail.hu>
7397 * iltests.il: Add new localloc test.
7399 * mini-amd64.c: Handle large stack allocations the same way as on
7400 windows if stack overflow handling is working.
7402 * mini-amd64.c: Allocate the signal stack using mmap.
7404 * mini.c (sigsegv_signal_handler): Fix reading of context.
7406 * mini-exceptions.c: Fix up stack overflow handling.
7408 * mini-amd64.h mini-amd64.c: Fix up stack overflow handling.
7410 * tramp-amd64.c (create_specific_trampoline): Optimize trampoline size.
7412 * exceptions-amd64.c (mono_amd64_exceptions_init): Remove this.
7414 * mini.h mini.c tramp-*.c: Move common trampoline code to mini.c.
7416 * mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Get rid of the
7417 tramp_init functions as they are no longer needed.
7419 2005-03-12 Zoltan Varga <vargaz@freemail.hu>
7421 * tramp-amd64.c (mono_amd64_tramp_init): Fix typo.
7423 * tramp-amd64.c (mono_amd64_tramp_init): Init AOT trampoline as well.
7425 * mini-amd64.h mini-amd64.c (mono_amd64_exceptions_init): Remove this.
7427 * mini.c mini-*.h: Remove OUT_OF_LINE_BBLOCK defines since all arches
7430 * mini-ops.h: Add OP_LMUL_IMM.
7432 * mini.c jit-icalls.cmini-amd64.h mini-amd64.c cpu-amd64.md: Implement
7433 long mul/div opcodes as intrinsic.
7435 * mini-amd64.c (emit_call): Handle the case when the callee might be
7438 2005-03-11 Zoltan Varga <vargaz@freemail.hu>
7440 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be
7443 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Fix ordering of cases.
7445 * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
7447 2005-03-09 Ben Maurer <bmaurer@ximian.com>
7449 * mini.c (mono_codegen): Don't leak here, to help people running
7452 2005-03-08 Zoltan Varga <vargaz@freemail.hu>
7454 * mini-amd64.c (mono_arch_output_basic_block): Fix int->float
7455 conversions in sse2 mode.
7457 * basic-float.cs: Add regression test.
7459 * mini-amd64.c: Reenable sse2.
7461 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
7463 * mini-amd64.c: Disable sse2 until some regressions are fixed.
7465 2005-03-07 Joerg Rosenkranz <joergr@voelcker.com>
7467 * driver.c: Copyright text should include 2005.
7469 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
7471 * cpu-amd64.md (load_membase): Fix more max lengths.
7473 2005-03-06 Zoltan Varga <vargaz@freemail.hu>
7475 * cpu-amd64.md (load_membase): Fix max length.
7477 * mini-ops.h: Add OP_F<xx>_MEMBASE opcodes.
7479 * inssel.brg: Add MONO_EMIT_BIALU_MEMBASE macro.
7481 * cpu-amd64.md inssel-amd64.brg mini-amd64.h mini-amd64.brg: Finish SSE2
7482 support and enable it by default. Also add OP_F<xxx>_MEMBASE opcodes.
7484 * basic-float.cs: Add rounding regression test.
7486 * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
7488 2005-03-04 Neale Ferguson <NealeFerguson@earthlink.net>
7490 * inssel-s390.brg, mini-s390.c: Add support for passing/returning small
7491 structures in registers for pinvoke wrappers.
7493 2005-03-04 Zoltan Varga <vargaz@freemail.hu>
7495 * mini-exceptions.c (ves_icall_get_trace): Return wrapper info as well.
7497 2005-03-03 Zoltan Varga <vargaz@freemail.hu>
7499 * mini.h mini.c mini-x86.c: Pass the domain of the native->managed
7500 wrapper to mono_jit_thread_attach.
7502 * mini.c (mini_jit_thread_attach): New jit icall.
7504 * mini-x86.c (mono_arch_emit_prolog): Attach to the VM in
7505 native->managed wrappers.
7507 * exceptions.cs: Add new regression test.
7509 * mini.c (optimize_branches): Check regions in the cbranch to throw
7510 block case as well. Fixes #73242.
7512 Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
7514 * mini.c: thread safety fixes.
7516 2005-02-27 Zoltan Varga <vargaz@freemail.hu>
7518 * tramp-amd64.c (amd64_magic_trampoline): Disable the method_ptr
7519 patching stuff, since delegates use jump trampolines so there is
7522 * tramp-amd64.c (create_trampoline_code): Pass NULL as 'code' in
7525 * tramp-amd64.c: Fix build.
7527 * mini-x86.c tramp-x86.c: Moved get_vtable_slot_addr into mini-x86.c and rename
7528 it to mono_arch_.... Add get_delegate_method_ptr implementation for x86.
7530 * mini-amd64.h mini.h mini-amd64.c tramp-amd64.c (mono_amd64_get_vcall_slot_addr):
7531 Rename this to mono_arch....
7532 (mono_amd64_get_delegate_method_ptr_addr): Ditto.
7534 * mini-amd64.c (mono_amd64_get_delegate_method_ptr_addr): New helper function.
7536 * mini-amd64.c (emit_call): If both the caller and the callee is
7537 guaranteed to have 32 bit addresses, emit a normal call.
7539 * tramp-amd64.c: Adapt to changes in mini-amd64.c.
7541 * tramp-amd64.c (amd64_magic_trampoline): Remove patching of trampolines.
7542 * tramp-amd64.c (amd64_magic_trampoline): Add support for patching the
7543 method_ptr inside delegates.
7545 2005-02-26 Zoltan Varga <vargaz@freemail.hu>
7547 * mini.c (mono_jit_free_method): Free the method info even if the native code is
7548 invalidated. Fixes #73001.
7550 * mini.c: Add a proper icall wrapper for mono_delegate_ctor.
7552 * mini-x86.c: Only use stdcall for pinvokes on windows.
7554 Thu Feb 24 15:22:30 CET 2005 Paolo Molaro <lupus@ximian.com>
7556 * mini.c, mini.h: make mono_lmf_addr a fast-access thread var.
7557 * mini-x86.c: remove unreliable __thread var offset detection,
7558 use the correct accessors and enable by default.
7560 2005-02-23 Zoltan Varga <vargaz@freemail.hu>
7562 * mini.c (mono_jit_free_method): Fix memory leak.
7564 2005-02-22 Zoltan Varga <vargaz@freemail.hu>
7566 * mini.c (mono_method_to_ir): Allocate a GOT var for THROW and RETHROW.
7568 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
7570 * cpu-amd64.md: Fix lengths of atomic opcodes.
7572 Mon Feb 21 16:52:20 CET 2005 Paolo Molaro <lupus@ximian.com>
7574 * driver.c: try to not imply using ICU is any good.
7576 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
7578 * mini-amd64.c (mono_arch_get_inst_for_method): Implement more
7579 functions as inline ops.
7581 * mini-ops.h inssel-amd64.brg cpu-amd64.md mini-amd64.c: Implement
7582 some Interlocked functions as inline ops.
7584 * mini.c (move_basic_block_to_end): Fix bug in last patch.
7586 * mini.h (MonoBasicBlock): Reorganize fields a bit.
7588 * mini-ops.h inssel.brg: Add OP_NOT_REACHED.
7590 * mini.c: Add support for OP_NOT_TAKEN.
7592 * mini-amd64.h mini-amd64.c: Add support for passing/returning small
7593 structures in registers for pinvoke wrappers.
7595 * mini-amd64.c: Fix warnings.
7597 2005-02-19 Zoltan Varga <vargaz@freemail.hu>
7599 * mini.h (MonoCompile): Add 'ret_var_is_local' field.
7601 * mini.h mini.c (mono_arch_create_vars): Add new arch specific hook.
7603 * mini.c (NEW_RETLOADA): If the ret variable is a local, use its
7604 address instead of loading the address from it.
7606 * mini-x86.c: Add support for returning small structs in registers
7607 on Win32. Fixes part of #70864.
7609 2005-02-18 Zoltan Varga <vargaz@freemail.hu>
7611 * trace.c (get_token): Improve error checking.
7613 2005-02-17 Zoltan Varga <vargaz@freemail.hu>
7615 * jit-icalls.c (mono_ldvirtfn): Explicitly check for a NULL obj here.
7617 2005-02-17 Sebastien Pouliot <sebastien@ximian.com>
7619 * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
7620 it can be reused for MonoClass.
7621 * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
7624 2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
7626 * mini.c: Fixed 2 cases where I sent a MonoMethod to managed code
7627 instead of a MonoReflectionMethod. The method information wasn't used
7628 when displaying SecurityException details (but will be now).
7630 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
7632 * Makefile.am : windows build fix.
7634 2005-02-14 Zoltan Varga <vargaz@freemail.hu>
7636 * iltests.il: Add new regression test.
7638 * mini.c (mono_method_to_ir): Allocate a GOT var in CEE_NEWOBJ. Fixes
7641 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
7643 * mini.c: Moved linkdemand check into helper function check_linkdemand
7644 to allow reuse for all intructions (CALL, CALLVIRT, NEWOBJ, JMP,
7647 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
7649 * declsec.c: Added statistics counter for different kinds of
7651 * mini.h: Added CAS statistic counters to MonoJitStats. Removed unused
7652 (and commented) declaration.
7653 * mini.c: Added statistics counter for security Demand code
7654 generation. Added display of security statistics.
7656 2005-02-13 Zoltan Varga <vargaz@freemail.hu>
7658 * declsec.c (mono_declsec_linkdemand_aptc): Applied patch from Robert Jordan (robertj@gmx.net).
7659 Fix compilation errors under gcc-2.95.
7661 2005-02-12 Ben Maurer <bmaurer@ximian.com>
7663 * mini.c, driver.c: Use the new jit trampoline hashtable
7665 Fri Feb 11 18:47:11 CET 2005 Paolo Molaro <lupus@ximian.com>
7667 * mini.c, jit-icalls.c: use the managed implementation of memcpy, too.
7669 2005-02-11 Martin Baulig <martin@ximian.com>
7671 * debug-mini.c (mono_debug_close_method): Free the line number array.
7673 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
7675 * aot.c: Break up large methods into smaller ones. Share GOT slots for
7678 * mini.h: Bump AOT file format version.
7680 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
7682 * declsec.c: Added LinkDemand support and it's special cases for ECMA,
7684 * declsec.h: Added macros to get/set lazyly initialized security
7685 informations about assemblies. Added new enum for different type of
7686 possible LinkDemand violation. Added function to check LinkDemands.
7687 * mini.h: Added a field to MonoCompile to hold any security violation
7688 detected when JITting a method (so it can be thrown later).
7689 * mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL
7690 and CEE_CALLVIRT. Added code to throw exception at the end of
7691 mini_method_compile (note: the exception is unhandled right now).
7693 Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
7695 * mini.c, jit-icalls.c: use the managed implementation of
7696 memset for initobj and memset, to avoid managed <-> unmanaged
7699 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
7701 * inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
7702 optimization if it would need a GOT var.
7704 * basic.cs: Add tests for constant propagation and switch statements.
7706 * ssa.c: Fix out-of-range constant propagation and switch statements.
7708 2005-02-09 <vargaz@freemail.hu>
7710 * inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.
7712 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
7714 * cpu-amd64.md (load_membase): Fix max length of load_membase.
7716 Tue Feb 8 18:21:11 CET 2005 Paolo Molaro <lupus@ximian.com>
7718 * mini.c: update to new signature of mono_class_get_allocation_ftn().
7720 2005-02-06 Neale Ferguson <NealeFerguson@earthlink.net>
7722 * cpu-s390.md, mini-s390.c: Correct bug with register usage on certain
7723 arithmetic operations.
7725 Sun Feb 6 07:10:12 EST 2005 Paolo Molaro <lupus@ximian.com>
7727 * mini-ppc.c: add a workaround for broken user code that
7728 DllImports vararg functions with non-vararg signatures.
7730 2005-02-05 Zoltan Varga <vargaz@freemail.hu>
7732 * mini.c (mono_jit_compile_method_inner): Add detection and a
7733 meaningfull error message for assemblies written in Managed C++.
7735 * tramp-amd64.c mini-amd64.h: Add support for
7736 create_trampoline_from_token ().
7738 * aot.c mini-x86.c abcremoval.c: Applied patch from
7739 Robert Jordan (robertj@gmx.net). Fix compilation errors under gcc-2.95.
7741 2005-02-04 Zoltan Varga <vargaz@freemail.hu>
7743 * mini.h mini.c mini-x86.h tramp-x86.c: Add a new kind of trampoline
7744 which takes a MonoImage/token as parameter instead of a MonoMethod.
7746 * aot.c: Use the new trampoline for initializing vtables.
7748 * aot.c: Add support for ldfld/stfld_remote wrappers.
7750 * mini-ops.h cpu-pentium.md inssel-x86.brg mini-x86.c: Add optimized
7751 rules for compare <MEM>, IMM.
7753 * mini.h (MONO_AOT_FILE_VERSION): Bump it.
7755 * aot.c: Handle inherited finalizers correctly.
7757 2005-02-03 Zoltan Varga <vargaz@freemail.hu>
7759 * inssel.brg (stmt): Add a missing _setup_... ().
7761 * aot.c: Save some parts of the class state to the AOT file and use it
7762 to recompute that state when a class is initialized.
7764 * mini.c: Install AOT hooks into the runtime.
7766 * mini.h: Bump AOT file format version.
7768 * mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
7771 * iltests.il: Add new test.
7773 Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
7777 Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
7779 * mini.c: setup the statistical profiler in the thread attach
7780 callback to cope with the new single thread code.
7782 Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
7784 * mini-ppc.c: ensure we have enough room for the profiler
7785 calls (fixed bug#72084).
7787 2005-02-02 Zoltan Varga <vargaz@freemail.hu>
7789 * aot.c: Get rid of the MonoAotMethod structure and the hashtable holding
7792 2005-2-1 Massimiliano Mantione <massi@ximian.com>
7794 * driver.c: Re-enabled SSAPRE (two commits, I was just dumb).
7796 2005-2-1 Massimiliano Mantione <massi@ximian.com>
7798 * ssapre.c: Fixed an issue with down safety (this allows IronPython
7799 to succesfully execute parrotbench).
7800 * ssapre.h: Likewise.
7802 2005-2-1 Massimiliano Mantione <massi@ximian.com>
7804 * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
7805 variable for stores to method arguments (fixes a SSAPRE issue).
7807 Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
7809 * mini.c: handle value types in dup, fixes gen-112.cs.
7811 Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
7813 * mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
7814 sequence for calls in dynamic methods to avoid thunks.
7816 Tue Feb 1 11:44:01 CET 2005 Paolo Molaro <lupus@ximian.com>
7818 * mini.c: correctly remove dynamic methods from the hashtable.
7820 2005-1-20 Massimiliano Mantione <massi@ximian.com>
7822 * driver.c: Disabled SSAPRE until fix the bug that appears
7823 in IronPython's parrotbench.
7825 2005-01-31 Zoltan Varga <vargaz@freemail.hu>
7827 * aot.c (mono_compile_assembly): Get rid of Skip (other) messages.
7829 * mini.c (mono_method_to_ir): Revert the previous change.
7831 * mini.c (mono_method_to_ir): Do not inline ldfld and stfld wrappers
7834 * tramp-x86.c (x86_magic_trampoline): Avoid calls to
7835 mono_jit_info_table_find () etc. when running under valgrind.
7837 * inssel.brg: Fix warnings.
7839 * mini-exceptions.c: Fix warnings.
7841 2005-01-31 Martin Baulig <martin@ximian.com>
7843 * driver.c (compile_all_methods_thread_main): Don't try to compile
7844 generic methods or anything which has type parameters.
7846 2005-01-30 Zoltan Varga <vargaz@freemail.hu>
7848 * aot.c: Avoid costly calls to mono_method_full_name in tracing code and fix memory leaks.
7850 * TestDriver.cs: Add --verbose flags.
7852 * graph.c ssa.c: Fix 64 bit warnings.
7854 * abcremoval.h ssapre.h abcremoval.c ssapre.c mini.c tramp-amd64.c
7855 trace.c mini-exceptions.c linear-scan.c inssel-amd64.brg inssel.brg:
7856 Fix 64 bit warnings.
7858 * mini-amd64.c (mono_arch_output_basic_block): Fix uninitialized
7859 variable not spotted by gcc.
7861 * mini-amd64.c inssel-amd64.brg: Applied patch from
7862 Willibald Krenn <Willibald.Krenn@gmx.at>. Clean up usage of
7863 X86_COMPARE_MEMBASE opcodes.
7865 * exceptions-amd64.c (mono_arch_find_jit_info): Fix AMD64 build.
7867 2005-01-29 Ben Maurer <bmaurer@ximian.com>
7869 * *: MonoMethod->signature might be NULL now. You *MUST* use
7870 mono_method_signature.
7872 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
7874 * driver.c (compile_all_methods_thread_main): Compile the methods
7875 without invoking cctors.
7877 Fri Jan 28 18:28:26 CET 2005 Paolo Molaro <lupus@ximian.com>
7879 * mini.c: remove ben's "optimizations" to dup+stloc (bug #71905).
7880 * basic-calls.cs: test for the above.
7882 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
7884 * mini.c mini-exceptions.c aot.c exceptions-*.c: Update after
7885 MonoJitInfo changes.
7887 2005-01-27 Zoltan Varga <vargaz@freemail.hu>
7889 * mini-exceptions.c (mono_handle_exception): Compute the stack trace
7890 eagerly if it contains dynamic methods.
7892 * mini-exceptions.c (ves_icall_System_Exception_get_trace): New icall.
7894 * mini-exceptions.c (mono_handle_exception): Avoid computing the stack
7895 trace, it is now computed by an icall from trace_ips.
7897 * mini-exceptions.c: Fix a warning.
7899 Thu Jan 27 13:38:34 CET 2005 Paolo Molaro <lupus@ximian.com>
7901 * mini-exceptions.c: don't bother getting stack trace info if
7902 it's not going to be used.
7904 2005-01-27 Raja R Harinath <rharinath@novell.com>
7906 * Makefile.am (common_sources): Add ssapre-cee-ops.h and
7909 2005-01-26 Zoltan Varga <vargaz@freemail.hu>
7911 * mini.c (remove_block_if_useless): Only print debug stuff with -v -v.
7913 * aot.c: Avoid calling mono_method_get_header () if not needed.
7915 * mini.h: Bump AOT file format version.
7917 * mini.c (mono_emit_native_call): Allocate a GOT var here.
7919 * mini.c (mono_print_tree): Print more info for calls.
7921 2005-01-26 Sebastien Pouliot <sebastien@ximian.com>
7923 * declsec.h: Remove warning by adding missing include for marshal.h
7925 2005-01-26 Martin Baulig <martin@ximian.com>
7927 * mini.c (mono_method_to_ir): In CEE_UNBOX_ANY, don't increase
7930 2005-01-25 Zoltan Varga <vargaz@freemail.hu>
7932 * mini-amd64.c (mono_arch_call_opcode): Add missing MONO_SSA_LOAD/STORE
7935 * ssa.c (mono_ssa_compute): Fix crashes when using AOT.
7937 * aot.c (mono_compile_assembly): Fix a warning.
7939 2005-01-25 Sebastien Pouliot <sebastien@ximian.com>
7941 * declsec.c: Look for security attributes on the original MonoMethod
7942 (and not the wrapped one). This fix permissions on icalls.
7944 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
7946 * mini-amd64.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
7948 * mini.c (mono_allocate_stack_slots): Add a fixme.
7950 * mini-x86.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
7952 Sun Jan 23 16:16:48 CET 2005 Paolo Molaro <lupus@ximian.com>
7954 * inssel.brg: optimize casts of sealed types (more
7955 optimizations waiting for fixes in remoting).
7957 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
7959 * inssel.brg (stmt): Add another dummy rule.
7961 * driver.c: Fix warnings.
7963 * driver.c (mono_main): If running under valgrind, instruct glib to use
7964 the system allocation functions so valgrind can track the memory
7965 allocated by the g_... functions.
7967 * inssel.brg (stmt): Add DUMMY rule for OP_DUMMY_STORE.
7969 * mini-ops.h: Add OP_DUMMY_STORE opcode.
7971 * mini.h (MONO_BBLOCK_IS_IN_REGION): New helper macro.
7973 * liveness.c: Handle OP_DUMMY_STORE. Enable register allocation for
7974 variables in try regions.
7976 * mini.c (mini_method_compile): Don't disable optimizations on large
7977 methods when AOT compiling.
7979 * mini.c (mono_allocate_stack_slots): New arch independent method to
7980 allocate stack slots. Not yet used.
7982 2005-01-22 Ben Maurer <bmaurer@ximian.com>
7984 * debug-mini.c (mono_debug_close_method): Plug some leaks.
7986 Sat Jan 22 13:41:51 EST 2005 Paolo Molaro <lupus@ximian.com>
7988 * mini-ppc.c: make the branch info relative as the code
7989 buffer can be reallocated.
7991 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>
7993 * aot.c: Allow decoding of the new MONO_PATCH_INFO_DECLSEC.
7994 * driver.c: Removed the AOT/security restriction. Now initialize the
7995 security manager (in metadata) if --security is used.
7996 * mini.c|h: Add the MONO_PATCH_INFO_DECLSEC code to use the index,
7997 rather than the pointer to declarative security, when AOT is used.
7999 Sat Jan 22 09:35:19 EST 2005 Paolo Molaro <lupus@ximian.com>
8001 * mini.h, mini-ppc.h, mini-ppc.c: updated to use out of line
8002 basic blocks, reduced intrinsic exception throwing code size.
8004 2005-01-22 Miguel de Icaza <miguel@ximian.com>
8006 * driver.c (mini_usage): Reorder the usage screen.
8008 2005-01-21 Zoltan Varga <vargaz@freemail.hu>
8010 * mini.c (mono_resolve_patch_target): Fix warning.
8012 2005-01-20 Zoltan Varga <vargaz@freemail.hu>
8014 * mini-x86.c (mono_arch_local_regalloc): Fix bug introduced by
8017 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
8019 * mini-amd64.c (mono_arch_local_regalloc): Revert last patch as it
8020 breaks the amd64 build.
8022 * mini-x86.c (mono_arch_local_regalloc): Fix bug in div/rem
8023 register allocation. Fixes #71454.
8025 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
8027 * arrays.cs: Add new regression test.
8029 2005-1-20 Massimiliano Mantione <massi@ximian.com>
8031 * ssapre.c: Turned usage of snprintf to GString.
8032 * ssapre.h: disabled MONO_APPLY_SSAPRE_TO_SINGLE_METHOD
8033 (I left it on by mistake in my previous commit).
8035 Thu Jan 20 12:00:45 CET 2005 Paolo Molaro <lupus@ximian.com>
8037 * mini.c, cfold.c, basic-calls.cs: preserve side effects
8038 on cond branch optimization (fixes bug# 71515).
8040 2005-1-20 Massimiliano Mantione <massi@ximian.com>
8042 * abcremoval.c: Fixed bug 71062.
8043 * abcremoval.h: Likewise.
8045 2005-1-20 Massimiliano Mantione <massi@ximian.com>
8047 * mini.c: Added a new functionality to optimize_branches, the removal
8048 of useless basic blocks, and fixed some problem in the removal of
8049 critical edges; some utility functions added for both purposes.
8050 * ssapre.c: Added complex expression support, and fixed bug 70637.
8051 * ssapre.h: Likewise.
8052 * ssapre-cee-ops.h: Added file with list of "CEE_*" opcodes
8054 * ssapre-mini-ops.h: Likewise, but for "OP_*" opcodes.
8055 * driver.c: Re-enabled SSAPRE.
8057 2005-01-19 Martin Baulig <martin@ximian.com>
8059 * mini.c (mono_method_to_ir): Call mono_get_inflated_method() on
8060 the result of mono_get_method_constrained().
8062 2005-01-18 Neale Ferguson <NealeFerguson@earthlink.net>
8064 * exceptions-s390.c tramp-s390.c: Allocate code using the global code
8067 2005-01-18 Geoff Norton <gnorton@customerdna.com>
8069 * jit-icalls.c (mono_llmult_ovf): Fix other overflow conditions to
8070 be detected. Fixes #59296.
8072 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
8074 * mini-amd64.c (mono_arch_output_basic_block): Remove some assertions
8075 which can happen. Fixes #71361.
8077 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
8079 * exceptions-sparc.c tramp-sparc.c: Allocate code using the global code
8082 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
8084 * mini.c (mono_create_jump_trampoline): Revert last change as it causes
8085 appdomain-unload.exe to fail.
8087 * mini.c: Fix some memory leaks.
8089 Mon Jan 17 16:16:23 CET 2005 Paolo Molaro <lupus@ximian.com>
8091 * inssel.brg: handle the new size of rank, idepth, max_interface_id.
8092 Fixed bug and sped up some codepaths.
8094 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
8096 * mini.c: Fix some memory leaks.
8098 * exceptions.cs basic-long.cs: Add test for checked ulong->int
8101 * inssel-long.brg: Implement long_conv_to_ovf_i4_un. Fixes #71319.
8103 * inssel-long.brg: Fix conv.ovf.i8 when run on an int32. Fixes
8106 * iltests.il: Add regression test for #71320.
8108 2005-01-16 Zoltan Varga <vargaz@freemail.hu>
8110 * mini.c (mono_codegen): Fix installation of profiler hooks.
8112 * mini-sparc.c mini-amd64.c: Don't allocate stack space for dead vars.
8114 Sun Jan 16 12:19:35 CET 2005 Paolo Molaro <lupus@ximian.com>
8116 * mini.h, mini.c, cfold.c: optimize access to enum
8117 readonly fields, too. Eval conditional branches if possible
8118 to perform unreachable code removal in more cases.
8120 2005-01-15 Zoltan Varga <vargaz@freemail.hu>
8122 * tramp-amd64.c exceptions-amd64.c: Use the new global code manager.
8124 * mini.c (mono_global_codeman_reserve): New function to allocate code memory from a global
8127 * tramp-x86.c mini-x86.c exceptions-x86.c: Allocate all code memory so mono works with
8128 WinXP DEP. Fixes #71244.
8130 2005-01-14 Zoltan Varga <vargaz@freemail.hu>
8132 * inssel.brg: Allways convert CEE_CONV_OVF_I4 to a move on 64 bit platforms. Fixes #71236.
8134 2005-01-13 Zoltan Varga <vargaz@freemail.hu>
8136 * mini-x86.c (mono_arch_output_basic_block): Fix OP_ATOMIC_ADD_NEW_I4.
8138 2005-01-11 Zoltan Varga <vargaz@freemail.hu>
8140 * mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo
8143 * mini.h: Bump AOT version.
8145 * mini.h (MonoCompile): Change exvar to a hash table.
8147 * mini.c: Allocate a separate exvar for each handler block.
8149 * mini.c: Get rid of the computation of filter_lengths, its not needed.
8151 * mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
8152 ex var with the pending exception and only throw if the two are equal.
8155 * exceptions.cs: Add tests for rethrow and nested catch clauses.
8157 * mini-x86.c: Fix warnings.
8159 * Makefile.am (common_sources): Move mini-exceptions.c here as it is
8160 used by all the ports now.
8162 * aot.c: Add write-symbols and save-temps options.
8164 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
8166 * mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.
8168 Mon Jan 10 16:11:16 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
8170 * mini-ops.h, inssel-s390.brg, cpu-s390.md: Support OP_ATOMIC__xxx
8173 * tramp-s390.c: Check vtable slot belongs to the domain.
8175 * mini-exceptions.c, exceptions-s390.c: Standardize exception handling
8176 as per other platforms.
8178 * mini-s390.c, mini-s390.h: Enable out-of-line bblock support.
8180 Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
8182 * driver.c: we don't run the Main() code in a subthread anymore.
8184 Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
8186 * mini.c: added experimental rtc support in the statistical
8187 profiler: if the user has the permission, more accurate statistics
8188 are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
8189 The MONO_RTC value must be restricted to what the linux rtc allows:
8190 power of two from 64 to 8192 Hz.
8192 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
8194 * mini-x86.c (mono_arch_emit_exceptions): Fix #71121.
8196 Mon Jan 10 05:20:49 EST 2005 Paolo Molaro <lupus@ximian.com>
8198 * mini-ppc.c: better icache flush for smp.
8200 2005-01-09 Zoltan Varga <vargaz@freemail.hu>
8202 * mini-amd64.c (emit_move_return_value): Fix memory leak.
8204 * mini-x86.c (get_call_info): Add the get_call_info () code from the
8205 amd64 port, not yet used.
8207 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
8209 * mini.c (mono_method_to_ir): Disable inlining of ldfld wrappers with
8212 2005-01-07 Sebastien Pouliot <sebastien@ximian.com>
8214 * driver.c: Added --security option to activate the security manager.
8215 Right now this will allow code generation for declarative demands and
8216 is disabled when AOT is specified.
8217 * mini.c: Add code generation for declarative security demands.
8218 * mini.h: Add mono_use_security_manager as an extern gboolean.
8220 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
8222 * aot.c (mono_compile_assembly): Speed up compilation a bit by
8223 emitting more dense assembly code.
8225 * mini-sparc.c mini-sparc.h exceptions-sparc.c: Enable optimized corlib
8226 exception throwing stuff.
8228 2005-01-06 Zoltan Varga <vargaz@freemail.hu>
8230 * mini-sparc.c (mono_arch_emit_exceptions): Fix typo in previous patch. Remove
8233 * mini-amd64.c (mono_arch_emit_exceptions): Remove duplicate epilog stuff
8236 * driver.c (EXCLUDED_FROM_ALL): Disable SSAPRE until bug #70637 is
8239 * mini-sparc.h mini-sparc.c: Enable out-of-line bblock support.
8241 * tramp-*.c: Only patch vtable slots if the object is in the current
8242 domain. Fixes appdomain-unload.exe.
8244 * mini-amd64.c mini-amd64.h: Enable out-of-line bblock support.
8246 * mini-amd64.c (mono_arch_local_regalloc): Port regalloc fix from
8249 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
8251 * mini.c (reverse_branch_op): New helper function.
8253 * mini.c (optimize_branches): Run the new optimization only on
8254 platforms which support it. Also reverse all kinds of branches.
8256 * mini.h (MonoBasicBlock): Add 'out_of_line' field.
8258 * mini.c (mono_method_to_ir): Set 'out_of_line' for bblocks which have
8261 * mini.c (optimize_branches): Reverse not-equals branches if the false
8262 bblock is a throw. This happens a lot of time with argument checking in
8265 * mini.c (mono_codegen): Add support for placing basic blocks after
8266 the function epilogue.
8268 * mini-x86.c mini-x86.h: Add support for placing basic blocks after the
8271 2005-01-05 Miguel de Icaza <miguel@ximian.com>
8273 * mini.c (setup_stat_profiler): Only set this up if the platform
8274 supports ITIMER_PROF.
8276 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
8278 * mini-x86.c (mono_arch_local_regalloc): Fix a bug introduced by the
8281 * inssel.brg: Fix a warning.
8283 Wed Jan 5 16:40:18 CET 2005 Paolo Molaro <lupus@ximian.com>
8285 * mini.c: added support for statistical profiler
8286 (run with: --profile=default:stat).
8288 2005-01-04 Zoltan Varga <vargaz@freemail.hu>
8290 * mini-x86.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Enable this on x86.
8292 * mini-x86.c cpu-pentium.md: More fixes for usage of global registers.
8294 * mini-amd64.c (mono_arch_local_regalloc): Port some regalloc fixes
8295 related to global registers from the amd64 port.
8297 2005-01-03 Zoltan Varga <vargaz@freemail.hu>
8299 * mini.c (mono_method_to_ir): Handle MONO_CLASSCONST.
8301 * mini-amd64.c (mono_arch_local_regalloc): Fix some regalloc problems
8302 with global registers.
8303 (mono_arch_output_basic_block): Fix SWITCH in the AOT case.
8305 * aot.c (emit_method_code): Fix the 'method emitted as' messages.
8307 2004-12-31 Zoltan Varga <vargaz@freemail.hu>
8309 * debug-mini.c (encode_value): Fix off-by-one.
8311 * aot.c (encode_value): Likewise.
8313 * mini.c (mono_method_to_ir): Disable AOT for methods containing LDPTR.
8315 2004-12-30 Zoltan Varga <vargaz@freemail.hu>
8317 * mini.c linear-scan.c: Add a workaround for the mcs crash when using
8320 * aot.c (mono_aot_load_method): Free up patch info if no longer needed.
8322 * aot.c (emit_method_info): Increase size of temp buffer.
8324 * mini-x86.c cpu-pentium.md mini.c: Load fp constants differently in
8327 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
8329 * aot.c (emit_method_info): Fix build.
8331 * aot.c: Further rework of the AOT file format to reduce the size of
8332 the method info data.
8334 * mini.h: Bump AOT file format version.
8336 2004-12-27 Martin Baulig <martin@ximian.com>
8338 * mini.c (mini_get_method): New static method; call
8339 mono_get_method_full() and mono_get_inflated_method().
8340 (mono_method_to_ir): Use mini_get_method() instead of
8341 mono_get_method_full().
8343 2004-12-26 Patrik Torstensson <patrik.torstensson@gmail.com>
8345 * mini-x86.c (atomic ops): fixed bug interlocked bug #70784.
8347 2004-12-25 Zoltan Varga <vargaz@freemail.hu>
8349 * inssel.brg (ldind_to_load_membase): Handle CEE_LDIND_I8.
8351 * inssel-amd64.brg: Add some optimization rules.
8353 2004-12-24 Ben Maurer <bmaurer@ximian.com>
8355 * aot.c: Remove the use of MonoGHashTable and other GC stuff. The
8356 standard not GC'd stuff is fine.
8358 2004-12-24 Zoltan Varga <vargaz@freemail.hu>
8360 * aot.c: Rework the AOT file format to get rid of most of the global
8361 symbols. This reduces the size of the mscorlib.dll.so by 1MB.
8363 * mini.h: Bump AOT file format version.
8365 2004-12-23 Zoltan Varga <vargaz@freemail.hu>
8367 * mini.h: Bump AOT file format version.
8369 * aot.c (mono_aot_is_got_entry): New function to determine if an
8370 address is inside a GOT.
8372 * aot.c mini-x86.c tramp-x86.c: Make all patches use the GOT.
8374 * cpu-pentium.md: Increase the maximum size of some instructions which
8375 might involve a got access.
8377 * mini.c (get_method_from_ip): Another debug helper function.
8379 * mini.c: Call mono_get_got_var () in a couple places. Handle the case
8380 when got var accesses are created during the decompose phase.
8382 * mini-sparc.c: Change mono_compile_aot to cfg->compile_aot.
8384 * mini.h mini.c mini-x86.c aot.c mini-sparc.c: Add a 'compile_corlib'
8385 argument mini_compile_method and to MonoCompile, and use this to
8386 determine whenever a given method is compiled for AOT. This allows the
8387 other methods compiled during AOT compilation to be free of AOT stuff,
8388 so the backends does not need to add special support for them by
8389 creating a fake GOT etc.
8391 * mini-x86.c (mono_arch_patch_code): Remove fake got stuff as it is no
8394 2004-12-21 Ben Maurer <bmaurer@ximian.com>
8396 * mini.c (mono_method_to_ir): It turns out that some of the
8397 x-appdomain wrappers are lax with types, so just ignore this for
8400 * inssel.brg (OP_CHECK_ARRAY_TYPE): Optimize this by only looking
8401 at the vtable->klass. If it is non-shared code we can just use the
8404 Tue Dec 21 17:43:06 CET 2004 Paolo Molaro <lupus@ximian.com>
8406 * mini-ppc.c: access MonoDomain from tls, too.
8408 2004-12-21 Sebastien Pouliot <sebastien@ximian.com>
8410 * declsec.c: Removed unused variable (and related warning ;-)
8412 2004-12-21 Ben Maurer <bmaurer@ximian.com>
8414 * iltests.il: New test for LDELEMA on an array of ref types.
8416 * mini.c (CEE_LDELEMA): We need to emit OP_CHECK_ARRAY_TYPE for
8417 all ldelema's on reftypes.
8418 (check_call_signature): Remove the OP_CHECK_ARRAY_TYPE from here,
8419 it was the wrong place to put it.
8421 * mini-x86.c (mono_arch_output_basic_block): Just use ecx as the
8422 register to pop to make this cleaner, at the request of Paolo.
8424 2004-12-20 Ben Maurer <bmaurer@ximian.com>
8426 * mini-ops.h (OP_GETHASHCODE): New op.
8428 * inssel.brg (OP_GETHASHCODE): Emit code for the new opcode
8430 * mini.c (mini_get_inst_for_method): Create the intrinsic hash
8433 For a microbenchmark, this reduces the cost of Hashtable.get_Item
8436 * mini-x86.c (mono_arch_output_basic_block): Rather than
8444 The first is 3 bytes while the second is 1. This saves 36 kb on
8445 mscorlib, quite a big saving. When bootstraping mcs, I was able to
8446 see a small boost because of icache locality.
8448 * cfold.c (FOLD_BINOPCOMM): Kill add foo, 0
8450 Mon Dec 20 12:19:40 EST 2004 Paolo Molaro <lupus@ximian.com>
8452 * Makefile.am, mini-ppc.h, mini-exceptions.c, exceptions-ppc.c:
8453 started code sharing with the generic code.
8455 Mon Dec 20 11:08:06 EST 2004 Paolo Molaro <lupus@ximian.com>
8457 * mini-ppc.c, cpu-g4.md: added code for direct access to
8460 Mon Dec 20 10:58:28 EST 2004 Paolo Molaro <lupus@ximian.com>
8462 * mini-ops.h, inssel-x86.brg, cpu-amd64.md, inssel.brg, inssel-amd64.brg,
8463 mini-amd64.c, mini-x86.c, cpu-pentium.md: renamed OP_X86_TLS_GET
8466 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
8468 * declsec.c|h: Added functions to cache the declarative stack modifiers
8469 in MonoJitInfo and to create a security frame from a MonoJitInfo
8471 * mini.c: Initialize jinfo->cas_inited to FALSE when MonoJitInfo is
8472 created. Register internal calls for System.Security.SecurityFrame::
8473 _GetSecurityFrame and _GetSecurityStack.
8474 * mini.h: Added definition for new icalls (in mini-exceptions.c) and
8475 the definitions for the new stack walk/callback mechanism.
8476 * mini-exceptions.c: Added internal call GetSecurityFrame (to get the
8477 first security frame for LinkDemands and InheritanceDemands) and
8478 GetSecurityStack for Demands. Both use the new mono_walk_stack code
8480 * mini-x86.h, mini-amd64.h, mini-sparc.h: Architecture specific stack
8481 walk initialization (lupus).
8483 2004-12-20 Ben Maurer <bmaurer@ximian.com>
8485 * mini.c (mono_method_to_ir): In CEE_DUP, handle the dup / stloc
8487 (handle_loaded_temps): Do not create a temporary variable for
8488 things that we know are temps. They will never be modified.
8489 (mono_spill_call): Set MONO_INST_IS_TEMP
8490 (mono_emulate_opcode): ditto
8492 (mono_method_to_ir.CEE_DUP): ditto
8494 2004-12-19 Ben Maurer <bmaurer@ximian.com>
8496 * mini.c (type_to_eval_stack_type): Make this handle the void type
8497 (mono_emit_call_args): set the call->type with type_to_eval_stack_type
8498 (emit_tree): use ip_in_bb to special case some common idioms
8499 Update all callers to pass in the IP.
8500 (mono_method_to_ir): Make CEE_CALL* do the above as well.
8502 This gives us a nice 2% speedup in mcs bootstrap.
8504 * mini-x86.c (peephole_pass): Peephole pass to make
8513 * mini.c (ip_in_bb): new method.
8514 (mono_method_to_ir): use this method rather than doing the hash
8517 * linear-scan.c (mono_linear_scan): When expiring actives, you
8518 don't need to keep around variables that expire on this
8519 instruction. This makes it so that:
8522 store (ebx add (ebx, 1))
8526 2004-12-19 Zoltan Varga <vargaz@freemail.hu>
8528 * mini.c (mono_method_to_ir): Optimize the common ldobj+stloc
8529 combination to avoid doing two copies. Fix up problems with previous
8532 * mini.c: Fix 64 bit warnings.
8534 * mini-x86.c (INST_IGNORES_CFLAGS): Add OP_STOREI4_MEMBASE_REG.
8536 2004-12-17 Zoltan Varga <vargaz@freemail.hu>
8538 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Port exception handling
8539 changes from the x86 code.
8541 * mini.h: Add prototype for mono_arch_get_throw_corlib_exception ().
8543 2004-12-16 Zoltan Varga <vargaz@freemail.hu>
8545 * mini-x86.c (mono_arch_emit_epilog): Optimize the corlib exception
8546 throwing code to reduce its size, unify the AOT and non-aot code and
8547 get rid of relocations in the AOT case.
8549 * mini-x86.h mini.c exceptions-x86.c
8550 (mono_arch_get_throw_corlib_exception): New arch specific function to
8551 raise corlib exceptions which doesn't require relocations in the
8554 * aot.c (emit_method): Handle PATCH_INFO_NONE as well.
8556 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
8558 * mini.c (mono_emit_method_call): Only allocate the got var when it is
8561 * mini-x86.c (mono_arch_patch_code): Add missing PATCH_INFO_METHOD_REL
8564 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
8566 * mini-x86.c, cpu-pentium.md, inssel-x86.brg: Fixed bug
8567 with add function when used from Inc/dec atomic
8568 functions. Re-enabled optimization on x86.
8569 * mini-ops.h: renamed atomic_add functions to
8570 allow _add to match the Interlocked::Add and
8571 _add_next to match Interlocked::Inc/Dec.
8573 2004-12-15 Massimiliano Mantione <massi@ximian.com>
8575 * mini.c: Fixed a subtle bug in mono_method_to_ir, about the
8576 linking of BBs to the end BB, and enabled SSAPRE also with
8577 consprop and copyprop (which was prevented by that bug).
8579 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
8581 * mini-x86.c: disabling the Interlocked optimizing code.
8583 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
8585 * aot.c (load_aot_module): Move reading of got_addr after the AOT
8588 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
8590 * mini-x86.c, inssel-x86.brg, cpu-pentium.md: removed _imm
8591 interlocked optimization due lack of support on x86, rewrote
8592 exchange to take into account that base may be in eax.
8594 xsp works again; activated Interlocked optimizing code.
8596 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
8598 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
8600 2004-12-13 Zoltan Varga <vargaz@freemail.hu>
8602 * mini-ops.h: Add new opcodes.
8604 * mini.h: Add new patch types. Add got_var to MonoCompile.
8606 * mini.h mini-x86.c mini-amd64.c aot.c: Rename
8607 mono_arch_get_aot_patch_offset () to mono_arch_get_patch_offset () and
8608 make it work with all kinds of patchable code.
8610 * inssel.brg inssel-x86.brg: Add new rules dealing with computing the
8611 address of the GOT, and referencing entries in the GOT.
8613 * mini.c: Add code to load the GOT address if needed by an opcode.
8615 * aot.c mini-x86.h mini-x86.c cpu-pentium.md: Add support for position
8616 independent AOT code on the x86 using an elf-style Global Offset Table.
8618 2004-12-14 Raja R Harinath <rharinath@novell.com>
8620 * Makefile.am (RUNTIME): Set MONO_SHARED_DIR.
8622 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8624 * mini-x86.c: disabling the Interlocked optimizing code. It segfaults
8627 2004-12-13 Patrik Torstensson <patrik.torstensson@gmail.com>
8629 * mini-x86.c,mini-ops.h,inssel-x86.brg,cpu-pentium.md: Implementation
8630 of Interlocked:Increment/Decrement/Add as inline ops.
8631 (mini-x86.c (mono_arch_get_inst_for_method and mono_arch_output_basic_block))
8633 2004-12-12 Geoff Norton <gnorton@customerdna.com>
8635 * exceptions-ppc.c: Reorder code so gcc3.4 can compile it
8636 * mini-ppc.c: Unify mono_arch_patch_code with changes in r37636.
8638 2004-12-12 Duncan Mak <duncan@ximian.com>
8640 * mini-ppc.c (mono_arch_patch_code): Hopefully made this build
8641 again. `patch_info->table_size' is no longer valid after Zoltan's
8644 2004-12-12 Martin Baulig <martin@ximian.com>
8646 * mini.c (mono_method_to_ir): Only call mono_debug_init_method()
8647 if we are the "real" method, ie. not an inlined method inside it.
8649 2004-12-11 Ben Maurer <bmaurer@ximian.com>
8651 * mini.c (CEE_LDSFLD): Make sure that the vtable has been init'd
8652 before we look in the special fields table. This fixes
8653 ../tests/thread-static-init.cs.
8655 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8657 * mini.c: return immediately after setting OP_ARRAY_RANK or CEE_LDLEN
8658 for Array get_Rank and get_Length. Fixes bug #70465.
8660 2004-12-11 Zoltan Varga <vargaz@freemail.hu>
8662 * mini.h mini.c aot.c: Put the bblock table for a SWITCH patch into a
8663 separate structure to reduce the size of MonoJumpInfo.
8665 Fri Dec 10 18:09:22 CET 2004 Paolo Molaro <lupus@ximian.com>
8667 * mini.c, mini.h, aot.c, driver.c: allow disabling the aot code.
8669 2004-12-10 Patrik Torstensson <patrik.torstensson@gmail.com>
8671 * mini.c (mini_get_inst_for_method): Changed to allow ports
8672 to return a MonoInst instead of opcode
8673 (renamed mini_get_opcode_for_method to better reflect the new functionality)
8675 * mini-[x86|s390|s390x|ppc|sparc].c (mono_arch_get_inst_for_method):
8676 Allow ports to return a created MonoInst instead of op-code, will enable
8678 (renamed mini_get_opcode_for_method to better reflected the functionality)
8680 2004-12-09 Zoltan Varga <vargaz@freemail.hu>
8682 * mini.c (NEW_AOTCONST): Share some code between the different NEW_AOTCONST macros.
8684 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
8686 * mini.c jit-icalls.c: Pass generic_context to mono_ldtoken_wrapper.
8689 2004-12-08 Martin Baulig <martin@ximian.com>
8691 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use `fsig->signature'
8692 if we're a CEE_CONSTRAINED call. Fixes gen-118.cs.
8694 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
8696 * mini-sparc.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_<X>
8699 * exceptions.cs: Disable some tests which depend on properties of x86 fp
8702 2004-12-08 Raja R Harinath <rharinath@novell.com>
8704 * Makefile.am (CLEANFILES): Add *.exe, *.dll.
8706 2004-12-07 Zoltan Varga <vargaz@freemail.hu>
8708 * mini-sparc.c (mono_arch_output_basic_block): Fix LOCALLOC_IMM
8709 bug introduced by the previous patch.
8711 Tue Dec 7 11:44:39 CET 2004 Paolo Molaro <lupus@ximian.com>
8713 * mini-ppc.c, objectc.cs: handle large structs passed by value
8716 Tue Dec 7 10:43:31 CET 2004 Paolo Molaro <lupus@ximian.com>
8718 * mini-ppc.c: OP_ARGLIST implementation from
8719 Geoff Norton <gnorton@customerdna.com>.
8721 Tue Dec 7 10:14:25 CET 2004 Paolo Molaro <lupus@ximian.com>
8723 * inssel-x86.brg, inssel-ppc.brg: fix reference to register
8724 in stmt: OP_OUTARG_VT (reg) (should fix bug #69785).
8726 Tue Dec 7 10:06:39 CET 2004 Paolo Molaro <lupus@ximian.com>
8728 * exceptions-ppc.c: avoid calling ppc_patch in exception trampolines.
8730 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
8732 * inssel-s390.brgi, mini-ops.h, mini-s390.c : Add stubs for support of tls offset
8735 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
8737 * mini-sparc.c: Zero out localled-ed memory.
8739 * iltests.il: Add tests for zeroing out localloc-ed memory.
8741 2004-12-04 Martin Baulig <martin@ximian.com>
8743 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
8744 mono_method_get_signature_full().
8746 2004-12-03 Massimiliano Mantione <massi@ximian.com>
8748 * mini.c: Added removal of critical edges (prerequisite for SSAPRE),
8749 and some utility functions (always for SSAPRE), integrated SSAPRE.
8751 * driver.c: Added ssapre option.
8752 * ssa.c: Small fix on OP_ARG handling.
8753 * ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
8754 * Makefile.am: Likewise.
8756 2004-12-02 Zoltan Varga <vargaz@freemail.hu>
8758 * tramp-x86.c (mono_arch_create_jit_trampoline): Remove code which is
8761 * mini.c (mini_init): Register mono_thread_force_interruption_checkpoint
8764 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
8766 * inssel-s390.brg : Add OP_OUTARG_VT (OP_REFANYTYPE (reg)) rule.
8768 * cpu-s390.md : Increase instruction length of oparglist.
8770 * mini-s390.c : Implement vararg and TYPEDEBYREF support.
8772 2004-11-30 Martin Baulig <martin@ximian.com>
8774 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, added support for
8775 virtual generic methods. We call a special helper_compile_generic_method()
8776 icall to retrieve the method from the vtable, inflate and compile
8777 it and then do a CEE_CALLI. Thanks a lot to Paolo for this idea.
8779 * jit-icalls.c (helper_compile_generic_method): New JIT icall.
8781 2004-11-30 Zoltan Varga <vargaz@freemail.hu>
8783 * mini-sparc.c: Fix up vararg corner cases. Fixes #70019.
8785 2004-11-29 Zoltan Varga <vargaz@freemail.hu>
8787 * cpu-sparc.md mini-sparc.c (long_conv_to_ovf_i): Fill missing delay slot.
8790 2004-11-27 Ben Maurer <bmaurer@ximian.com>
8792 * inssel.brg (CEE_SWITCH): The AOT stuff Zoltan added is only for
8793 platforms with PIC aot.
8795 2004-11-28 Martin Baulig <martin@ximian.com>
8797 * mini.c (mono_method_to_ir): In CEE_DUP, added handle_stobj().
8800 2004-11-28 Martin Baulig <martin@ximian.com>
8802 * mini-x86.c (mono_arch_call_opcode): Use the original type, not
8803 the result of mono_type_get_underlying_type() to check whether
8806 2004-11-26 Martin Baulig <martin@ximian.com>
8809 (mono_method_to_ir): Use `!method->signature->has_type_parameters'
8812 2004-11-26 Zoltan Varga <vargaz@freemail.hu>
8814 * mini-amd64.c (mono_arch_emit_this_vret_args): Handle this and vret
8815 the same way as the other arguments so they won't get clobbered.
8817 * mini-amd64.c (mono_arch_output_basic_block): Avoid doing virtual
8818 calls through R11 since it is clobbered by the trampoline code.
8820 2004-11-26 Raja R Harinath <rharinath@novell.com>
8822 * Makefile.am: Consistently use $(RUNTIME) rather than ./mono to
8823 pick up in-tree mscorlib.dll.
8825 2004-11-25 Zoltan Varga <vargaz@freemail.hu>
8827 * aot.c: Rename MonoAOTModule->cleanup to out_of_date.
8829 * mini-amd64.c aot.c: Switch to PIC relative AOT code. References to
8830 runtime data/code are now stored in a table similar to the GOT in ELF.
8831 This allows the code itself to be position independent.
8833 * aot.c: Fix loading of referenced assemblies after the lazy assembly
8836 * aot.c: Attach ELF type (object/function) directives to all global
8839 * tramp-amd64.c (amd64_magic_trampoline): Patch RIP relative calls too.
8841 * inssel.brg (SWITCH): Emit an AOT_CONST in the aot case.
8843 * mini-amd64.h: Turn on PIC AOT code.
8845 * mini.h (mono_arch_get_aot_patch_offset): New arch specific function
8846 returning the offset within an OP_AOTCONST instruction where the GOT
8847 offset needs to be added.
8849 * mini.h: Bump AOT file format version.
8851 2004-11-25 Martin Baulig <martin@ximian.com>
8853 * mini.c (mono_method_to_ir): In CEE_CALL, don't allow calling any
8854 uninflated generic methods.
8856 2004-11-25 Martin Baulig <martin@ximian.com>
8858 * mini.c (mono_method_to_ir): Don't allow any uninflated generic methods.
8860 2004-11-24 Martin Baulig <martin@ximian.com>
8862 * minit.c (type_to_eval_stack_type): Set `inst->klass' to the
8863 original klass (this only applies for generic instances).
8865 2004-11-24 Martin Baulig <martin@ximian.com>
8867 * mini.c (mono_method_to_ir): Use `STACK_OBJ' instead of
8868 `ldind_type [CEE_LDIND_REF]' (which would be beyond the end of
8871 2004-11-24 Zoltan Varga <vargaz@freemail.hu>
8873 * mini.c (mono_method_to_ir): Disable inlining for methods containing
8874 localloc. Fixes #69678.
8876 * iltests.il (test_0_localloc_inline): Add regression test for #69678.
8878 2004-11-23 Zoltan Varga <vargaz@freemail.hu>
8880 * mini-amd64.c (mono_arch_output_basic_block): Set %al to the number of
8881 used SSE registers on pinvoke calls. Fixes #69774.
8883 2004-11-23 Geoff Norton <gnorton@customerdna.com>
8885 * inssel-ppc.brg, mini-ppc.c: Use mono_class_from_mono_type instead of
8886 vt->inst_vtype->data.klass. This fixes generic structs and bug #69766
8888 2004-11-23 Raja R Harinath <rharinath@novell.com>
8890 * Makefile.am (MCS,ILASM): Don't refer to runtime/ directory.
8891 Refer directly to the mcs/ tree.
8893 2004-11-19 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
8895 * mini-s390.c, tramp-s390.c, mini-s390.h: Add LMF processing for trampolines.
8896 Check if a trampoline for a synchronized method is required.
8898 Fri Nov 19 17:34:21 CET 2004 Paolo Molaro <lupus@ximian.com>
8900 * mini-ppc.c, cpu-g4.md: set to zero the memory allocated
8901 with localloc if needed. Throe arithmetric exception in
8902 div an rem if needed. Implement ovf checks in OP_LCONV_TO_OVF_I.
8903 Adapted from a patch by Geoff Norton <gnorton@customerdna.com>.
8905 2004-11-19 Geoff Norton <gnorton@customerdna.com>
8907 * mini-ppc.c: Call mono_type_get_underlying_type to unwrap generic
8908 types before switching on type. Fixes #69622.
8910 2004-11-19 Raja R Harinath <rharinath@novell.com>
8912 * Makefile.am (check-local): New. Integrate into 'make check'.
8913 (MCS,RUNTIME): Define using in-tree mono and mcs.
8915 (%.exe): Use $(ILASM).
8917 Fri Nov 19 14:54:07 CET 2004 Paolo Molaro <lupus@ximian.com>
8919 * mini-ppc.c: adjust initial prolog size (bug #69691).
8921 2004-11-18 Zoltan Varga <vargaz@freemail.hu>
8923 * cpu-pentium.md (localloc): Increase max instruction len. Fixes
8926 2004-11-17 Raja R Harinath <rharinath@novell.com>
8928 * Makefile.am (clean-local): Rename from 'clean'.
8930 2004-11-15 Nelae Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
8932 * mini.c, mini-x86.c, mini-amd64.c, exceptions-s390.c: Add siginfo_t parameter
8933 to mono_arch_is_int_overflow.
8934 * exceptions-s390.c: Add mono_arch_is_int_overflow routine to discern between
8937 2004-11-15 Sebastien Pouliot <sebastien@ximian.com>
8939 * declsec.c|h: New files to support declarative security attributes.
8940 Added function to check if a method has (applicable) security.
8941 * mini.c|h: Add check for declarative security attributes in
8942 mono_method_check_inlining.
8943 * Makefile.am: Added declsec.c and declsec.h to the build.
8945 Mon Nov 15 11:53:46 CET 2004 Paolo Molaro <lupus@ximian.com>
8947 * mini.c, mini.h: update to keep dynamic code info per-domain.
8949 2004-11-12 Zoltan Varga <vargaz@freemail.hu>
8951 * mini.c mini-*.h: Get rid of MONO_ARCH_HAVE_RETHROW since all architectures support it now.
8952 (mini_init): Get rid of it from here too.
8954 Thu Nov 11 20:17:17 CET 2004 Paolo Molaro <lupus@ximian.com>
8956 * mini-ppc.c, mini-ppc,h, cpu-g5.md, exceptions-ppc.c:
8957 implemented OP_RETHROW (patch by Geoff Norton
8958 <gnorton@customerdna.com>).
8960 2004-11-10 Geoff Norton <gnorton@customerdna.com>
8962 * tramp-ppc.c (ppc_magic_trampoline): Don't trampoline methods
8963 between appdomains. Fixes appdomain-unload on PPC.
8965 2004-10-26 Lluis Sanchez Gual <lluis@novell.com>
8967 * exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
8968 mini-exceptions.c: handle the new wrapper types.
8969 * mini.c: The CEE_ISINST and CEE_CASTCLASS opcodes now take the
8970 token value as a MonoClass* when compiling a wrapper.
8971 mono_jit_create_remoting_trampoline now takes an additional
8972 MonoRemotingTarget parameter.
8974 2004-11-10 Martin Baulig <martin@localhost>
8976 * mini.c (mono_method_to_ir): Use `generic_container->context'
8977 rather than creating a new one.
8979 2004-11-09 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
8981 * exceptions-s390.c, mini-s390, cpu-s390.md: Add support for OP_RETHROW.
8983 * inssel-390.md, mini-s390.c: Correct register allocation for globals.
8985 2004-11-09 Zoltan Varga <vargaz@freemail.hu>
8987 * aot.c (mono_aot_init): Add MONO_AOT_CACHE env variable to turn on
8988 the experimental aot cache stuff.
8990 Tue Nov 9 17:30:20 CET 2004 Paolo Molaro <lupus@ximian.com>
8992 * aot.c, mini.c, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
8993 mini-exceptions.c: update to exception clause structure changes.
8995 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
8997 * exceptions-x86.c (throw_exception): Fix warnings.
8999 * mini-x86.h mini-x86.c cpu-pentium.md exceptions-x86.c: Add support
9002 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
9004 * exceptions-sparc.c (get_throw_exception): Really fix this.
9006 2004-11-07 Ben Maurer <bmaurer@ximian.com>
9008 * tramp-*.c: we no longer support icalls without wrappers, so
9009 a bit of code can be removed here
9011 2004-11-07 Zoltan Varga <vargaz@freemail.hu>
9013 * exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
9016 * cpu-sparc.md: Add op_rethrow.
9018 * exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.
9020 * mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.
9022 * mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
9023 * mini-ops.h: Add OP_RETHROW.
9025 * mini.c inssel.brg: Distinguish between THROW and RETHROW.
9027 * cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.
9029 2004-11-05 Geoff Norton <gnorton@customerdna.com>
9031 * helpers.c: Change otool arguments from -V -v -t to -v -t on Darwin
9032 Makes the output much easier to read
9034 2004-11-05 Ben Maurer <bmaurer@ximian.com>
9036 * ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
9037 prevents another huge leak when compiling with ssa. Secondly, the
9038 performance of doing this rather than freeing the lists is much
9039 better. GList does a lock every time you allocate a list link,
9040 so that it can use a memory pool. So, it is better to just use
9041 a memory pool of our own.
9043 * ssa.c, linear-scan.c: replace g_list_remove_link with
9044 g_list_delete. The remove one does not free the GList, so we were
9045 leaking memory. On -O=all --compile-all with corlib, this cut down
9046 3 MB of allocations.
9048 2004-11-05 Zoltan Varga <vargaz@freemail.hu>
9050 * tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.
9052 * tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.
9054 * mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
9055 into a new function mono_create_jit_trampoline ().
9057 2004-11-02 Zoltan Varga <vargaz@freemail.hu>
9059 * trace.c (get_spec): Allow tracing of classes without a namespace.
9061 2004-11-02 Sebastien Pouliot <sebastien@ximian.com>
9063 * mini.c: Fix pointer overwrite in mini_method_compile.
9065 2004-11-2 Geoff Norton <gnorton@customerdna.com>
9067 * inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
9068 The darwin ABI needs some special handling for 1 and 2 byte structs
9069 Lets use lbz/lhz instead of lwz everywhere.
9070 * mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
9071 for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
9072 Use stb/sth for the former, and put the latter always on stack instead of in
9075 2004-10-30 Zoltan Varga <vargaz@freemail.hu>
9077 * trace.c (is_filenamechar): Add '_'.
9079 2004-10-29 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
9081 * mini-s390.c: Fix prolog length to allow for large trace requirements.
9083 * exceptions-s390.c: Remove dwarf unwinding stuff that was unused.
9085 2004-10-29 Zoltan Varga <vargaz@freemail.hu>
9087 * Makefile.am (libgc_libs): Do some automake magic so libmono/mono
9088 depends on libmonogc. Fixes #68805.
9090 2004-10-26 Miguel de Icaza <miguel@ximian.com>
9092 * mini.c (mono_jit_free_method): Provide extra information for
9093 this error. Currently this leaks, but will be turned into a
9094 developer option in the future.
9096 2004-10-26 Zoltan Varga <vargaz@freemail.hu>
9098 * driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
9100 2004-10-25 Zoltan Varga <vargaz@freemail.hu>
9102 * aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
9103 boundary. Fixes reading of PATCH_INFO_R4 and R8.
9104 (mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
9106 2004-10-24 Zoltan Varga <vargaz@freemail.hu>
9108 * mini-amd64.c (mono_arch_patch_code): Fix patching of class init
9109 trampolines for AOT code.
9111 2004-10-22 <vargaz@freemail.hu>
9113 * aot.c (mono_compile_assembly): Disable AOT for methods containing calls to methods of
9114 constructed types. Fixes #68136.
9116 2004-10-21 Martin Baulig <martin@ximian.com>
9118 * exceptions-x86.c (throw_exception): Call mono_debugger_throw_exception();
9119 if it returns true, unwind the stack to the call instruction.
9121 2004-10-21 <vargaz@freemail.hu>
9123 * aot.c: Reorganize the AOT file format to avoid relocations. Fix warnings.
9125 * mini.h: Bump AOT version number.
9127 * objects.cs: Add another test for unbox trampolines.
9129 * tramp-amd64.c (amd64_magic_trampoline): Disable patching of trampolines for
9132 2004-10-20 <vargaz@freemail.hu>
9134 * driver.c: Add SHARED to the set of optimizations tested.
9136 * tramp-amd64.c (amd64_magic_trampoline): Patch trampoline code as well.
9138 * mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
9141 * ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
9143 2004-10-20 Martin Baulig <martin@ximian.com>
9145 * mini-exceptions.c (mono_handle_exception): Call
9146 mono_debugger_handle_exception() to tell the debugger about
9147 catch/finally clauses.
9149 2004-10-18 Zoltan Varga <vargaz@freemail.hu>
9151 * exceptions-amd64.c (mono_arch_find_jit_info): Pop arguments of the stack.
9153 * mini-amd64.c (mono_amd64_get_vcall_slot_addr): Handle extended registers. Fixes
9156 2004-10-15 Geoff Norton <gnorton@customerdna.com>
9158 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
9159 methods as their native size, fixed bug #57543, #57545.
9160 * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
9161 This saves a temporary register and mullw call down into 1 (minor perf
9162 increase for cases like sum = sum * 5; This use to translate into:
9165 It now translates to
9168 2004-10-15 Zoltan Varga <vargaz@freemail.hu>
9170 * trace.c (mono_trace_eval): Use mono_method_desc_full_match. Fixes
9173 2004-10-11 Martin Baulig <martin@ximian.com>
9175 * mini.c (mono_method_to_ir): If we're a generic method, get the
9176 MonoGenericContainer from our MonoMethodNormal and create a
9177 MonoGenericContext from it.
9179 2004-10-08 Zoltan Varga <vargaz@freemail.hu>
9181 * inssel-long32.brg (OP_LCONV_TO_OVF_I2): Fix CONV_I1 -> CONV_I2.
9183 * basic-long.cs: Add test for checked i8->i2 cast.
9185 Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
9187 * inssel-ppc.brg: added a couple of speedup rules.
9189 2004-10-05 Zoltan Varga <vargaz@freemail.hu>
9191 * Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
9192 to speed up rebuilds.
9194 2004-10-04 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
9196 * mini-s390.c: Minor fix to OP_OR_IMM.
9198 2004-10-03 Zoltan Varga <vargaz@freemail.hu>
9200 * tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
9201 better. Fixes appdomain-unload.exe on sparc.
9203 2004-10-02 Massimiliano Mantione <massi@ximian.com>
9205 * ssa.c: Fixed casts to unsigned where the value was of 64 bits in
9206 simulate_long_compare, patch by will@exomi.com (Ville-Pertti Keinonen),
9209 2004-10-02 Zoltan Varga <vargaz@freemail.hu>
9211 * jit-icalls.c: Handle a nonexisting trunc function more correctly.
9213 2004-09-30 Lluis Sanchez Gual <lluis@novell.com>
9215 * mini.c: Always generate a field read/write wrapper for members
9216 of the class MarshalByRefObject since the actual instance could
9219 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
9221 * mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
9223 2004-09-28 Zoltan Varga <vargaz@freemail.hu>
9225 * driver.c mini.h trace.c: Move the setting of the main assembly into
9226 a separate function called mono_trace_set_assembly () and call it after
9227 actually loading the main assembly. Fixes #66872.
9229 2004-09-25 Zoltan Varga <vargaz@freemail.hu>
9231 * mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
9232 using the code manager.
9234 2004-09-24 Zoltan Varga <vargaz@freemail.hu>
9236 * tramp-amd64.c mini-amd64.h: Add support for MONO_ARCH_HAVE_INVALIDATE_METHOD.
9238 2004-09-23 Zoltan Varga <vargaz@freemail.hu>
9240 * cpu-amd64.md: Fix bug in previous patch.
9242 * cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
9245 Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
9247 * mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
9248 mini-exceptions.c: updates for changed stack walk interface.
9250 2004-09-21 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
9252 * mini-s390.c, cpu-s390.md: Minor changes to OP_ARGLIST handling
9254 2004-09-17 Zoltan Varga <vargaz@freemail.hu>
9256 * mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.
9258 2004-09-13 Zoltan Varga <vargaz@freemail.hu>
9260 * driver.c (mini_regression_list): Do not call mono_assembly_close
9261 since assemblies can't be unloaded.
9263 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
9265 * cpu-amd64.md: Fix more instruction lengths.
9267 * cpu-amd64.md: Fix lengths of some instructions.
9269 2004-09-11 Ben Maurer <bmaurer@users.sourceforge.net>
9271 * inssel.brg: Make the array ldelema check aot friendly.
9273 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
9275 * mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.
9277 * cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.
9279 2004-09-10 Zoltan Varga <vargaz@freemail.hu>
9281 * mini-x86.c: Fix build.
9283 * mini-sparc.c mini-x86.c mini-amd64.c: Use the new
9284 mono_type_get_underlying_type () helper function to simplify code.
9286 2004-09-09 Martin Baulig <martin@ximian.com>
9288 * mini-amd64.c: Don't access `type->data.klass' directly, call
9289 mono_class_from_mono_type() instead since the type may be a
9292 2004-09-09 Martin Baulig <martin@ximian.com>
9294 * mini-amd64.c (get_call_info): Fix support for generic instances.
9295 (add_valuetype): Use mono_class_from_mono_type() to get the class
9296 since we can be a generic instance.
9298 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <lupus@ximian.com>
9300 * mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.
9302 2004-09-07 Ben Maurer <bmaurer@users.sourceforge.net>
9304 * liveness.c: reset spill costs on each scan: bug 62107
9306 2004-09-07 Bernie Solomon <bernard@ugsolutions.com>
9308 * exceptions-sparc.c (mono_arch_find_jit_info): remove
9309 unnecessary line that doesn't compile
9311 2004-09-07 Zoltan Varga <vargaz@freemail.hu>
9313 * mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
9314 trampolines, make them call an error function so people can fix their
9317 2004-09-06 Martin Baulig <martin@ximian.com>
9319 * mini.c (mono_method_to_ir): When initializing locals, handle a
9320 generic instances like a valuetype if it's a valuetype and like a
9321 class if it's a class.
9323 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
9325 * exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
9326 stack. Fixes #64674.
9328 * exceptions.cs: Add test for unwinding of call arguments.
9330 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <lupus@ximian.com>
9332 * mini-*.c, mini-ops.h, inssel-long32.brg: introduced
9333 OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
9334 set the carry/borrow flag). The sparc and s390 implementations
9335 can now use optimized versions (and simplify the code). ppc bugfixes.
9337 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
9339 * exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.
9341 2004-09-05 Zoltan Varga <vargaz@freemail.hu>
9343 * inssel-amd64.brg: Remove leftover 32 bit rule.
9345 * mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.
9347 2004-09-04 Zoltan Varga <vargaz@freemail.hu>
9349 * mini-exceptions.c (mono_find_jit_info): Refactor common code from
9350 mono_arch_find_jit_info functions into a new function. Fix a memory
9353 * exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
9356 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
9358 * exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
9361 * exceptions.cs: Add array size tests.
9363 * mini.c: Allocate a separate icall wrapper for each arity of
9364 mono_array_new_va. Fixes #59509.
9366 * exceptions.cs: Add testcase for 64578.
9368 * inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.
9370 * trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.
9372 2004-09-02 Martin Baulig <martin@ximian.com>
9374 * mini.c (mono_method_to_ir): When initializing the locals, call
9375 handle_initobj() on the generic instance itself, not its
9378 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
9380 * mini.h (MonoJitDynamicMethodInfo): New structure, extension of
9381 MonoJitInfo for dynamic methods.
9383 * mini.c: Rename trampoline_hash_mutex to jit_mutex.
9385 * mini.c: Add support for freeing JIT data for dynamic methods.
9387 2004-09-01 Martin Baulig <martin@ximian.com>
9389 * mini-x86.c (is_regsize_var): Added support for generic
9391 (mono_arch_emit_prolog): Make this compile again, use
9392 `x86_push_imm_template (code)'.
9394 2004-08-30 Ben Maurer <bmaurer@users.sourceforge.net>
9396 * mini-x86.c: make all push_imm instructions that get
9397 patched always emit the long form
9399 2004-08-30 Zoltan Varga <vargaz@freemail.hu>
9401 * mini.c (mono_create_jump_trampoline): Store the jump trampolines
9402 in a per-domain hash.
9404 * mini-amd64.c (merge_argument_class_from_type): Handle generic
9407 2004-08-29 Zoltan Varga <vargaz@freemail.hu>
9409 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
9412 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
9415 * mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
9416 Beginnings of SSE2 support.
9418 * exceptions.cs: Add more tests for checked int<->uint casts.
9420 2004-08-28 Martin Baulig <martin@ximian.com>
9422 * mini-x86.c (mono_arch_instrument_epilog): Added support for
9426 (mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
9427 Handle generic instances recursively.
9429 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
9431 * iltests.il: test for conv.u8 on a constant
9433 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
9435 * inssel-long32.brg: c&p rules for LCONV_x4 (membase) and
9436 LCONV_x4 (shrun_32 (membase)).
9438 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
9440 * inssel-x86.brg: c&p rules for push/setret of long
9442 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
9444 * inssel-x86.brg: c&p rules for compare (base, regvar) and
9445 compare (regvar, base)
9447 * inssel-x86.brg: more burg love
9449 * inssel.brg: more cleanup
9451 * inssel-x86.brg, inssel-long32.brg: burg cleanup.
9453 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
9455 * basic-long.cs, basic-calls.cs: new tests for optimization.
9457 2004-08-26 Zoltan Varga <vargaz@freemail.hu>
9459 * mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
9462 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
9464 * mini-amd64.c (read_tls_offset_from_method): Add another case.
9466 2004-08-25 Bernie Solomon <bernard@ugsolutions.com>
9468 * inssel.brg (mini_emit_memcpy): use
9469 NO_UNALIGNED_ACCESS to disable memcpy optimization
9471 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
9473 * mini-amd64.c: Handle generic types in various places.
9475 * mini.c (mono_method_to_ir): Handle generic types in init locals.
9477 2004-08-24 Zoltan Varga <vargaz@freemail.hu>
9479 * mini.c (handle_box): Fix warning.
9481 * mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.
9483 * mini-amd64.h: Enable the emit_state optimization.
9485 * mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.
9487 * mini-amd64.c: Add some new 64 bit peephole opts.
9489 * inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.
9491 * cpu-amd64.md: sreg1 of div instructions must be %rax.
9493 * mini-amd64.c: Register allocator fixes.
9495 * mini.c: Add an optimization to emit_state to avoid allocation of new
9496 registers on some platforms.
9498 2004-08-23 Zoltan Varga <vargaz@freemail.hu>
9500 * inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.
9502 * mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
9503 allocation. Fixes #63085.
9505 * basic-long.cs: Add new regression test.
9507 * mini-amd64.c: Register allocator improvements.
9509 2004-08-21 Zoltan Varga <vargaz@freemail.hu>
9511 * mini-amd64.c (read_tls_offset_from_method): Add another code
9514 * tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
9515 instruction sequence for nullifying class init trampolines.
9517 * objects.cs: Add new regalloc test.
9519 * mini-amd64.c inssel-amd64.brg: Optimize parameter passing.
9521 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
9523 * mini-amd64.c (mono_arch_call_opcode): Refactor this a little.
9525 * mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
9528 * driver.c: Fix profiling after TLS changes.
9530 * driver.c (mono_main): Set mono_stats.enabled if needed.
9532 * mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
9535 2004-08-20 Ben Maurer <bmaurer@users.sourceforge.net>
9537 * mini-x86.c: use a 1 op rather than a 2 op tls access
9538 instruction -> faster.
9540 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
9542 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
9545 2004-08-19 Bernie Solomon <bernard@ugsolutions.com>
9547 * exceptions-sparc.c (throw_exception): fix typo
9549 2004-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
9551 * mini-x86.c, cpu-pentium.md, inssel-x86.brg:
9552 set tree->dreg correctly with tls. Allow any
9553 register to be used.
9555 * mini-x86.c (read_tls_offset_from_method): add new code
9556 generation pattern seen with GCC.
9559 Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
9561 * mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
9562 exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
9563 exceptions-sparc.c: fix some performance issues in exception
9564 handling and setting of the stack trace for exceptions that were
9567 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
9569 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
9572 * mini-amd64.c (mono_arch_is_int_overflow): Handle all possible
9575 2004-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
9577 This patch inlines tls access, when possible.
9579 * mini.h: new arch functions for TLS intrinsics.
9580 All platforms updated with a stub.
9582 * mini.c: use the new intrinsics
9584 * mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
9585 arch specific intrinsic for tls variables
9587 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
9589 * Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
9592 2004-08-17 Ben Maurer <bmaurer@users.sourceforge.net>
9594 * mini.c: thread local allocation
9596 2004-08-16 Zoltan Varga <vargaz@freemail.hu>
9598 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.
9600 * Makefile.am: Link against the static version of libmonogc.
9602 * Makefile.am: Link the static versions of the convenience libraries
9603 into the mono executable.
9605 * mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.
9607 2004-08-15 Zoltan Varga <vargaz@freemail.hu>
9609 * mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
9610 on integer overflow.
9612 * mini-amd64.c: Reorganize function call code.
9614 * mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.
9616 2004-08-14 Ben Maurer <bmaurer@ximian.com>
9618 * inssel-x86.brg: use xor eax,eax.
9620 * basic.cs: new tests
9622 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
9624 * mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
9625 in exception throwing code.
9627 2004-08-14 Ben Maurer <bmaurer@ximian.com>
9629 * inssel-x86.brg: use xor esi,esi.
9631 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
9633 * driver.c (mono_main): Call mono_trace_parse_options earlier so it
9634 can trace methods compiled during mini_init () too.
9636 * cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle
9639 2004-08-14 Ben Maurer <bmaurer@ximian.com>
9641 * Makefile.am: static link on x86 (r=zoltan)
9643 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
9645 * tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
9646 code since it causes some programs to fail.
9648 2004-08-12 Zoltan Varga <vargaz@freemail.hu>
9650 * mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
9652 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
9654 * mini.c: ovfops_op_map - add STACK_OBJ case for
9656 * basic.cs: add test_0_pin_string as test
9659 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
9661 * Makefile.am: build C# if srcdir != builddir
9663 Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
9665 * dominators.c, mini.h, mini-x86.c: fix loop alignment with
9666 fall-through blocks.
9668 Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
9670 * driver.c: enable loop by default again and include abcrem in -O=all.
9672 2004-08-08 Zoltan Varga <vargaz@freemail.hu>
9674 * iltests.il: Add some localloc tests.
9676 * mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
9678 * inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
9681 * inssel-amd64.brg: Add some optimizations.
9683 * mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
9686 * Makefile.am: Statically link mono against libmono on AMD64.
9688 * mini-amd64.c inssel-amd64.brg: Optimizations.
9690 2004-08-07 Zoltan Varga <vargaz@freemail.hu>
9692 * mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.
9694 * tramp-amd64.c: Patch calling code in trampolines.
9696 2004-08-06 Zoltan Varga <vargaz@freemail.hu>
9698 * mini-amd64.c: pinvoke struct passing fixes.
9700 2004-08-05 Bernie Solomon <bernard@ugsolutions.com>
9702 * mini-sparc.c: redo change, make mono_arch_cpu_init call
9703 mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
9705 2004-08-05 Duncan Mak <duncan@ximian.com>
9707 * mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
9710 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
9712 * mini-amd64.c (emit_move_return_value): Move return value for normal
9715 2004-08-05 Martin Baulig <martin@ximian.com>
9717 * mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
9718 `type->type'; just modify `type' itself when dealing with enums
9719 and generic instances.
9720 (check_call_signature): Make `simple_type' a `MonoType *'.
9722 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
9724 * mini.c: Use OP_PADD to add offsets to addresses.
9726 * mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.
9728 2004-08-04 Bernie Solomon <bernard@ugsolutions.com>
9730 * mini-sparc.c (mono_arch_emit_epilog): fix check
9731 for folding last op into restore instruction
9733 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
9735 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
9736 helper methods using the code manager.
9738 * exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.
9740 * mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.
9742 Tue Aug 3 23:50:00 EST 2004 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
9744 * mini-s390x.c mini-s390x.h tramp-s390x.c inssel-s390x.brg
9745 cpu-s390x.md exceptions-s390x.c Makefile.am: S/390 64-bit JIT
9747 * mini-s390.c: fix tail processing
9749 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <lupus@ximian.com>
9751 * mini-ppc.c: mul.ovf.un exception name fix.
9753 2004-08-03 Martin Baulig <martin@ximian.com>
9755 * mini-x86.c (mono_arch_call_opcode): Correctly handle generic
9756 instances; before jumping to `handle_enum', also modify `ptype'.
9758 2004-08-02 Bernie Solomon <bernard@ugsolutions.com>
9760 * cpu-sparc.md: fcall maximal length too small.
9762 2004-08-02 Zoltan Varga <vargaz@freemail.hu>
9764 * mini-amd64.c mini.h: Add initial support for passing/returning
9765 structures to/from pinvoked methods.
9767 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <lupus@ximian.com>
9769 * mini-ppc.c: reg allocator fix.
9771 2004-07-31 Zoltan Varga <vargaz@freemail.hu>
9773 * mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.
9775 * inssel.brg: Optimize memset on 64 bit machines.
9777 * mini-amd64.c: Fix some vararg cases.
9779 2004-07-30 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
9781 * mini-s390.c: Corrected macro in emit_float_to_int
9783 * s390-abi.cs: Tests to exercise the s390 ABI
9785 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
9787 * exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
9790 * basic.cs: Add a test for add.ovf.un.
9792 2004-07-30 Bernie Solomon <bernard@ugsolutions.com>
9794 * mini-sparc.c: add case for OP_IDIV_UN
9796 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
9798 * mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.
9800 * mini-amd64.c cpu-amd64.md: Ongoing JIT work.
9802 2004-07-30 Ben Maurer <bmaurer@ximian.com>
9804 * basic.cs: regression tests.
9806 * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
9809 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
9811 * basic.cs: Add a new test.
9813 * mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling
9814 and AOT. Various fixes and optimizations.
9816 * inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.
9818 Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
9820 * mini-ppc.c: make sure temp regs are not used for global reg
9823 2004-07-29 Bernie Solomon <bernard@ugsolutions.com>
9825 * cpu-sparc.md: conv_i8 fix for 64bits
9827 * mini-sparc.c: add cases for OP_IXXX codes for 64bits
9829 2004-07-29 Ben Maurer <bmaurer@ximian.com>
9831 * cpu-pentium.md, mini-x86.c, inssel-x86.brg, mini-ops.h:
9832 add opcode for cmp BYTE PTR [eax], imm.
9834 * inssel.brg: Make memcpy and memset takes bases.
9836 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
9838 * *-amd64.*: More AMD64 work.
9840 2004-07-28 Ben Maurer <bmaurer@ximian.com>
9842 * cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:
9843 add a compare-not-equal opcode.
9845 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
9847 * mini.c: Use mono_init_from_assembly instead of mono_init.
9849 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
9851 * mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
9853 * mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
9855 * mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
9857 * inssel.brg: 64 bit fixes.
9859 * mini.h (MonoCallInst): Add some AMD64 specific data.
9861 * mini.h: Add some OP_P opcodes.
9863 2004-07-28 Ben Maurer <bmaurer@ximian.com>
9865 * basic.cs: tests for 61797 and 61740
9867 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
9869 * mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
9870 numbers in the debug info (spotted by Geoff Norton, <gnorton@customerdna.com>).
9872 2004-07-24 Zoltan Varga <vargaz@freemail.hu>
9874 * mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.
9876 * *-amd64*.*: Ongoing AMD64 work.
9878 2004-07-23 Zoltan Varga <vargaz@freemail.hu>
9880 * inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.
9882 * *-amd64*: Ongoing AMD64 work.
9884 * mini-arch.h: Add AMD64 support.
9886 * mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.
9888 * mini.h: Add new arch dependent function mono_arch_is_inst_imm.
9890 * mini-ops.h: Add new opcodes.
9892 * Makefile.am: Add AMD64 support.
9894 * inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
9895 rules into the inssel-long*.brg files.
9897 * *-amd64.*: Add beginnings of AMD64 backend.
9899 2004-07-22 Ben Maurer <bmaurer@ximian.com>
9901 * mini.c (print_dfn): commenting out the code that prints
9902 the cil. With -O=deadce, this makes -v -v crash.
9904 * cpu-pentium.md: make checkthis have a length of 2
9906 2004-04-21 Bernie Solomon <bernard@ugsolutions.com>
9908 * mini-sparc.h: fix implementations of __builtin
9909 functions for Sun compiler for V9.
9911 2004-07-16 Ben Maurer <bmaurer@ximain.com>
9913 * mini.c: use the new stelem.ref wrapper
9914 * exceptions.cs, arrays.cs: new stelem.ref tests
9916 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
9918 * mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
9919 new XSP should work with these changes).
9921 2004-07-14 Ben Maurer <bmaurer@ximain.com>
9923 * inssel-{long32,x86,}.brg: trivial optimizations.
9925 Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <lupus@ximian.com>
9927 * mini.c: load value when emitting box operation in
9930 2004-07-12 Ben Maurer <bmaurer@ximian.com>
9932 * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
9933 is one byte shorter than cmp DWORD PTR [eax], 0.
9935 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
9937 * inssel-ppc.brg: arguments on the stack are always
9938 relative to the stack pointer (spotted by Neale Ferguson).
9940 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9942 * exceptions-x86.c: delay appending the method name to the trace until
9943 after mono_jit_info_table_find is called, as this gets the real
9946 2004-07-09 Ben Maurer <bmaurer@ximian.com>
9948 * aot.c: register roots
9950 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
9952 * aot.c : I could just use PLATFORM_WIN32 flag.
9954 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
9956 * aot.c : Reverting the previous fix. This time it broke linux build.
9958 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
9960 * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
9962 2004-07-08 Zoltan Varga <vargaz@freemail.hu>
9964 * mini.c (handle_stack_args): Remove some more debugging code.
9966 * mini.c (handle_stack_args): Remove debug output left in by mistake.
9968 * driver.c mini.h aot.c: Allow additional options to be specified with
9969 --aot and pass them to mono_compile_assembly.
9971 * aot.c: Add experimental code to AOT compile all loaded assemblies
9972 on demand and save the code into a cache in the filesystem.
9974 * aot.c: Add support for more wrapper methods.
9976 * mini.c (handle_stack_args): Handle some corner cases. Fixes
9979 * cpu-*.md: Remove removed opcodes.
9981 * mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
9982 CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
9983 related icalls to marshal.c.
9985 2004-07-06 Zoltan Varga <vargaz@freemail.hu>
9987 * mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.
9989 * Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.
9991 * inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.
9993 2004-07-06 Ben Maurer <bmaurer@ximian.com>
9994 * liveness.c: If liveness is recomputated we need to reset the information
9995 for each variable. This way, if the liveness range has been narrowed
9996 by optimizations that happened after the last computation, we can return
9999 For example, if you have
10004 // Tons of code that does not affect i
10010 i = 0 is dead code and will be removed by SSA. However, when
10011 linear scan gets to the code, i will still appear to be live
10012 throughout the entire block. This prevents good register allocation.
10014 2004-07-06 Martin Baulig <martin@ximian.com>
10016 * debug-mini.c (mono_debug_init_method): Allow
10017 MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
10018 (mono_debug_add_icall_wrapper): New method.
10020 * mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().
10022 2004-07-05 Zoltan Varga <vargaz@freemail.hu>
10024 * mini.c (optimize_branches): Fix linking of bblocks in branch->branch
10027 2004-07-03 Zoltan Varga <vargaz@freemail.hu>
10029 * aot.c (mono_aot_load_method): Fix loading of debug info.
10031 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
10033 * aot.c: Add logging support.
10035 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
10037 * mini.h: Add prototype for mono_print_method_from_ip.
10039 * mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
10041 * inssel.brg: 64 bit fixes.
10043 * inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
10046 * Makefile.am: Add SPARC64 support.
10048 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
10050 * aot.c: Fix alignment problems on 32 bit platforms.
10052 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
10054 * helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
10057 * aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
10060 * mini.h: Bump AOT file version. Some 64 bit fixes.
10062 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
10064 * inssel-sparc.brg: Add new rule to avoid register moves.
10066 * inssel.brg: Add ldind_to_load_membase helper function.
10068 2004-06-30 Ben Maurer <bmaurer@ximian.com>
10070 * mini.c: OffsetToStringData intrinsic.
10072 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
10074 * ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.
10076 * objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
10079 * mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.
10080 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
10082 * mini.c: reinstated mono_compile_get_interface_var()
10083 on x86, too, since the change breaks the Gtk# build there as well.
10085 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10087 * driver.c: remove loop from the default optimizations: it seems to
10088 interact badly with some of the other options (see bug #60613).
10090 2004-06-25 Zoltan Varga <vargaz@freemail.hu>
10092 * mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann
10093 (fld@informatik.uni-bremen.de): Add Solaris x86 support.
10095 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <lupus@ximian.com>
10097 * mini-ppc.c, cpu-g4.md: small updates to be able to compile
10098 vararg-using methods.
10100 2004-06-21 Martin Baulig <martin@ximian.com>
10102 * mini/mini-exceptions.c
10103 (mono_handle_exception): Added `gpointer original_ip' argument.
10104 After calling mono_unhandled_exception(), call
10105 mono_debugger_unhandled_exception() and if that returns true,
10106 restore the context and return.
10108 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <lupus@ximian.com>
10110 * mini-ppc.c: prefer the use of relative branches so
10111 they won't need to be patched in aot code (patch from Patrick Beard).
10113 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
10115 * aot.c: patch from Patrick Beard to make the output assembly
10116 more correct for the MacOSX assembler. Small tweak to
10117 generate sane images on Linux/PPC, too.
10119 Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10121 * mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
10122 case until bug #59509 is fixed (shows up in #60332).
10124 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
10126 * mini.c: make sure the needed wrappers are compiled, too, with
10129 Mon Jun 14 18:36:08 CEST 2004 Paolo Molaro <lupus@ximian.com>
10131 * driver.c: remove NPTL reference in --version output.
10133 Sun Jun 13 17:25:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10135 * aot.c: patch from Patrick Beard (pcbeard@mac.com) to
10136 generate valid assembly for the Mach-O assembler.
10138 Sun Jun 13 15:59:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
10140 * driver.c: don't include abcrem in the all optimization specifier
10141 since it slows down jit compilation too much for now.
10143 2004-06-12 Ben Maurer <bmaurer@users.sourceforge.net>
10145 * mini.c: use BIGMUL only if both operands have the same signage.
10146 * iltests.il: Test for bug 60056. (errors related to signage in
10151 Thu Jun 10 16:06:42 CEST 2004 Paolo Molaro <lupus@ximian.com>
10153 * mini.c, aot.c: memory leak fixes.
10155 Tue Jun 8 16:37:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
10157 * inssel-long32.brg: implemented a few missing ulong cast opcodes.
10159 Tue Jun 8 15:36:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
10161 * Makefile.am: remove the -static hack completely, it links in
10162 statically glib as well.
10164 Sat Jun 5 16:32:33 CEST 2004 Paolo Molaro <lupus@ximian.com>
10166 * iltests.il, mini.c: fixed bug#59580 in branch optimization.
10167 * exceptions.cs: make it compile with new mcs/csc.
10169 2004-06-03 Massimiliano Mantione <massi@ximian.com>
10170 * cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
10171 and added relevant test case.
10173 Mon May 31 19:41:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
10175 * mini.c revert Zoltan's fix to bug#58863 on ppc, since it causes
10176 regressions in gtk-sharp.
10178 2004-05-29 Zoltan Varga <vargaz@freemail.hu>
10180 * exceptions.cs: New regression tests.
10182 * jit-icalls.c (mono_llmult_ovf): Fix some boundary conditions.
10184 Sat May 29 10:45:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
10186 * mini.c: emit castclass/isinst in their own trees (bug #54209/59057).
10188 2004-05-28 Zoltan Varga <vargaz@freemail.hu>
10190 * mini-sparc.h (MONO_ARCH_NEED_DIV_CHECK): Define this.
10192 * cpu-sparc.md mini-sparc.c: Add overflow detection to div opcodes.
10194 2004-05-28 Patrik Torstensson <totte@hiddenpeaks.com>
10196 * mini.c (mono_jit_runtime_invoke): Init class in this
10197 method instead of trusting mono_jit_compile_method to
10198 do the work (because wrappers can be in object class)
10200 2004-05-27 Zoltan Varga <vargaz@freemail.hu>
10202 * mini-sparc.c (mono_arch_output_basic_block): Fix sub.imm.
10204 * basic-long.cs: New regression test.
10206 Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
10208 * cpu-g4.md, mini-ppc.c: fixes to long add/sub ovf opcodes
10209 and div/rem checks.
10211 Thu May 27 12:36:53 CEST 2004 Paolo Molaro <lupus@ximian.com>
10213 * Makefile.am: fix miguel's change to build mono statically against
10214 libmono (track build dependencies).
10216 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
10218 * cfold.c: Some glib versions do not have G_MININT32.
10220 2004-05-26 Massimiliano Mantione <massi@ximian.com>
10222 * mini-x86.c cpu-pentium.md Makefile.am basic-math.cs: Fixed problem
10223 with precision of tan, atan, sin and cos, and implemented related
10224 regressions tests (fixes bug 54467, but one new problem appeared and
10227 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
10229 * cfold.c (FOLD_BINOPZ): Avoid division by zero.
10231 * exceptions.cs: Add test for constant folding && division by zero.
10233 * driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
10234 since driver.c is in libmono too, so the optimization was useless.
10236 * driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
10237 variable to driver.c so the compiler can emit more efficient code to
10240 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10242 * Makefile.am: don't distribute generated inssel.[ch] files.
10244 2004-05-25 Zoltan Varga <vargaz@freemail.hu>
10246 * mini.c (mono_jit_compile_method_with_opt): Really emit icall wrappers
10247 into the default appdomain. Fixes #58707.
10249 * jit-icalls.c: Remove the broken approximation for truncl, doing
10250 no conversion is better.
10252 * mini.c (handle_stack_args): Avoid reusing variables for stack slots.
10255 Tue May 25 14:33:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
10257 * mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
10258 of the mcrxr instruction which is not available on some processors
10259 even if it's documented to be. Implement add and sub overflow correctly
10260 (still not complete for long unsigned). Speed up icalls a bit.
10262 2004-05-25 13:01 CET Patrik Torstenson <totte@hiddenpeaks.com>
10264 * mini.c (mono_jit_compile_method_with_opt): Make sure that
10265 we run .cctor in the current domain instead of target_domain.
10267 Fixes bug #58558, .cctor not being called in -O=shared.
10269 Tue May 25 12:46:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
10271 * mini-ppc.h, jit-icalls.c: added explicit checks for divide by zero.
10273 2004-05-24 Ben Maurer <bmaurer@users.sourceforge.net>
10275 * mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
10276 which can be done with an imm8, do it that way.
10277 (mono_arch_output_basic_block): ditto for a jmp
10278 (mono_arch_emit_prolog): Computate maximum offset of a label.
10280 2004-05-24 18:18 CET Patrik Torstenson <totte@hiddenpeaks.com>
10282 * mini-x86.c (mono_arch_local_regalloc): the reg allocator
10283 now tries to allocate prefered physical reg's for virtual
10284 regs. This reduces the number of emited spills/loads with
10285 20-30% on our core assemblies.
10287 Mon May 24 18:21:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
10289 * jit-icalls.c: truncl() is not needed and trunc() is
10290 the correct thing to do anyway (bug #58287).
10292 2004-05-24 Zoltan Varga <vargaz@freemail.hu>
10294 * mini-sparc.c (mono_arch_flush_icache): Call sync_instruction_memory
10297 Mon May 24 12:49:45 CEST 2004 Paolo Molaro <lupus@ximian.com>
10299 * driver.c: enable loop optimizations by default.
10301 Mon May 24 11:13:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
10303 * mini-x86.c: fix calc of max loop size when aligning loops start.
10305 2004-05-23 Zoltan Varga <vargaz@freemail.hu>
10307 * ssa.c (mono_ssa_cprop): Allocate carray dynamically instead of on
10310 2004-05-22 Zoltan Varga <vargaz@freemail.hu>
10312 * mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
10315 * basic-long.cs: Add tests for add/subtract of immediates with carry.
10317 * mini.c exceptions-x86.c: Remove MONO_USE_EXC_TABLES stuff.
10319 * mini.c (inline_method): Allways inline some wrappers even if the cost
10320 is too large. Fixes #58785.
10322 * mini.c: Add support for MARSHAL_CONV_FTN_DEL.
10324 2004-05-21 Zoltan Varga <vargaz@freemail.hu>
10326 * mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
10327 (crichton@gimp.org). Beginning of support for sparc/linux.
10329 * mini-sparc.c: Optimize retrieval of LMF address.
10331 Fri May 21 08:00:12 EDT 2004 Paolo Molaro <lupus@ximian.com>
10333 * exceptions-ppc.c: handle alloca in methods with clauses.
10335 Fri May 21 07:35:30 EDT 2004 Paolo Molaro <lupus@ximian.com>
10337 * mini-ppc.c: cleanups, off-by-one fixes, avoid recursive thunks.
10339 2004-05-20 Lluis Sanchez Gual <lluis@ximian.com>
10341 * mini.c: Delegate most of the abort signal work to
10342 mono_thread_request_interruption, which also handles Stop and Suspend
10345 2004-05-20 Zoltan Varga <vargaz@freemail.hu>
10347 * mini.c mini.h: Allow inlining of icall wrappers if the backend
10348 supports the save/restore lmf opcodes.
10350 2004-05-19 Zoltan Varga <vargaz@freemail.hu>
10352 * mini-x86.c (mono_arch_setup_jit_tls_data): Handle code generated
10353 by gcc-3.4 as well.
10355 * mini-x86.h mini-x86.c tramp-x86.c: Optimize lmf restoring code.
10357 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
10359 * mini.h mini.c (mini_method_compile): Only run abc removal pass on
10360 methods which contain array accesses.
10362 * mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
10363 boundaries. Fixes #58537.
10365 * iltests.il: Add regression test for #58537.
10367 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
10369 * mini-x86.c (mono_arch_local_regalloc): Last part of
10370 fix for bug #58633 (releasing register to early).
10372 2004-05-18 Miguel de Icaza <miguel@ximian.com>
10374 * basic-long.cs: Add new regression test.
10376 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
10378 * mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
10379 register too early on the chain.
10381 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
10383 * mini.c (create_helper_signature): Use a helper function to reduce
10384 the code which needs to be written. Also set the calling convention of
10385 icalls on windows. Fixes #57840.
10387 Tue May 18 11:05:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
10389 * mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
10390 exceptions-ppc.c: added helper function to get the instruction address
10391 from a signal handler context.
10393 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
10395 * helpers.c: use g_get_tmp_dir. Invokes happyness
10398 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
10400 * helpers.c: Add new env variable to pass args to objdump.
10401 Specifically for those of us who love -Mintel. r=miguel, gonzalo.
10403 2004-05-17 Radek Doulik <rodo@ximian.com>
10405 * Makefile.am (common_sources): added abcremoval.h so it get
10406 disted and daily mono packages on go-mono.com will build again
10408 2004-05-17 Massimiliano Mantione <massi@ximian.com>
10410 * abcremoval.c: Fixed coding style, added copyright header.
10412 * abcremoval.h: Fixed style and moved prototype to mini.h, added copyright header.
10414 * mini.h: Added prototype for abc removal main function.
10416 * build_relations_propagation_table.pl: Added copyright header.
10418 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
10420 * basic-long.cs: reg test for complex ceq_long bug.
10422 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
10424 * mini-x86.c (mono_arch_local_regalloc): Correctly free
10425 reg in long and clob case (bug #58343). Fixed/added comments.
10427 2004-05-14 Ben Maurer <bmaurer@users.sourceforge.net>
10429 * mini.c (mono_jit_runtime_invoke): Follow new convention
10430 of calling the invoke method with an function pointer.
10432 2004-05-14 Zoltan Varga <vargaz@freemail.hu>
10434 * ChangeLog: Fix author of memory leak patch.
10436 Fri May 14 15:13:06 CEST 2004 Paolo Molaro <lupus@ximian.com>
10438 * Makefile.am: fix make dist as well...
10441 2004-05-14 Massimiliano Mantione <massi@ximian.com>
10443 * cfold.c: Made so that conversions from pointer to int4 are no-ops
10444 on archs where pointers are 4 bytes long.
10446 * Makefile.am: Added abcremoval.c source file.
10448 * abcremoval.c: Added abcremoval.c.
10450 * abcremoval.h: Added abcremoval.h.
10452 * build_relations_propagation_table.pl: Added build_relations_propagation_table.pl.
10454 * inssel.brg: Enabled bounds check removal.
10456 * mini.c: Added support for abcrem optimization.
10458 * mini.h: Added abcrem optimization label.
10460 * driver.c: Added support for abcrem optimization.
10462 * propagated_relations_table.def: Added propagated_relations_table.def.
10464 Fri May 14 14:30:13 CEST 2004 Paolo Molaro <lupus@ximian.com>
10466 * mini.c, cfold.c: fix style.
10468 Fri May 14 14:28:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
10470 * mini.c: handle issue with the low-level implementation of
10471 some long opcodes (bug #54209).
10473 2004-05-13 Ben Maurer <bmaurer@users.sourceforge.net>
10475 * basic.cs: test for my new cmov stuff.
10477 2004-05-13 Patrik Torstensson
10479 * mini-x86.c: added OP_X86_COMPARE_MEMBASE_IMM peephole
10480 opt and added peephole documentation.
10482 Thu May 13 11:41:49 CEST 2004 Paolo Molaro <lupus@ximian.com>
10484 * tramp-ppc.c: rewrote the generic trampoline code.
10486 2004-05-11 Patrik Torstensson
10488 * mini-x86.c: optimize long shl/shr asm code (one less branch)
10490 2004-05-11 Zoltan Varga <vargaz@freemail.hu>
10492 * basic.cs basic-long.cs objects.cs: Make these compile under MS csc.
10494 * mini.h mini.c dominators.c: Applied patch from Derek Woo
10495 (derek@eecg.toronto.edu): Fix memory leaks in loop optimizations.
10497 * mini.c: Add new icalls for AsAny marshalling.
10499 Tue May 11 16:00:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
10501 * tramp-ppc.c, mini-ppc.c: more cleanups.
10503 2004-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10505 * mini.c: no warnings.
10507 Tue May 11 13:59:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10509 * mini-ppc.c, mini.c: use mono_resolve_patch_target ().
10511 2004-05-11 Lluis Sanchez Gual <lluis@ximian.com>
10513 * mini.c: In the thread abort signal handler, if the thread is in the
10514 process of being stoped, don't throw the Abort exception, just stop the
10517 Tue May 11 12:15:24 CEST 2004 Paolo Molaro <lupus@ximian.com>
10519 * tramp-ppc.c: removed old code.
10521 Tue May 11 12:02:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10523 * mini.h, mini-ppc.c, cfold.c: export mono_is_power_of_two().
10524 do some simple speed optimizations on ppc.
10526 Mon May 10 17:21:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
10528 * mini-ppc.c, cpu-g4.md: fixes to handle large stack frames
10529 and large offsets in load/store.
10531 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
10533 * mini-x86.c (mono_arch_local_regalloc): Remove the previous fix, since
10534 it causes regressions.
10536 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
10538 * mini-sparc.c: Fix vararg support + add beginnings of sigaltstack
10541 Fri May 7 13:25:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
10543 * jit-icalls.c: remove warnings.
10544 * inssel-x86.brg, inssel.brg, mini-x86.c, cfold.c: some simple
10545 speedups for unsafe code.
10547 2004-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
10549 * inssel.brg: Optimize Stind.[ui][12]. r=zoltan.
10551 2004-05-06 Zoltan Varga <vargaz@freemail.hu>
10553 * basic-calls.cs: Add new regression test.
10555 * mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
10558 * mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
10560 * mini-x86.c (mono_arch_local_regalloc): Free new_dest register when it
10563 2004-05-06 Patrik Torstensson
10565 * mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
10566 long reg allocation in any reg (not only eax:edx) and implemented
10567 long shl/shr ops in asm instead of helpers.
10569 2004-05-05 Zoltan Varga <vargaz@freemail.hu>
10571 * mini-sparc.h: Fix warnings.
10573 * exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
10576 * mini-exceptions.c (mono_handle_exception): Call the filter in a
10577 separate statement for clarity.
10579 * mini-sparc.c: Update status.
10581 2004-05-04 Zoltan Varga <vargaz@freemail.hu>
10583 * mini-exceptions.c (ves_icall_get_frame_info): Flush register windows
10586 Mon May 3 22:58:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
10588 * inssel-ppc.brg: another small pre-release workaround:
10589 we don't do overflow detection for long_sub_un.
10591 Sun May 2 20:12:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
10593 * mini.c, mini-ops, inssel-long32.brg: speedup ulong >> 32
10594 (also works around a weird ppc bug: 57957).
10596 Sat May 1 16:56:10 EDT 2004 Paolo Molaro <lupus@ximian.com>
10598 * tramp-ppc.c: trampoline fixes.
10600 Fri Apr 30 15:54:26 EDT 2004 Paolo Molaro <lupus@ximian.com>
10602 * mini-ppc.c: fixed typos.
10604 Thu Apr 29 20:15:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
10606 * mini-ppc.c, exceptions-ppc.c: more code saves registers
10607 at the top of the stack. Fixed typos. Use a frame registers
10608 for all the methods with exception clauses.
10610 Thu Apr 29 18:52:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
10612 * exceptions-ppc.c: restore fp registers.
10614 Thu Apr 29 18:26:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
10616 * mini-ppc.c, exceptions-ppc.c: save the registers in reverse
10617 order from the stack top (moved the stack room to save the
10618 return value for trace after the param area). Fixed corruption
10619 in restoring registers on unwind.
10621 Thu Apr 29 16:47:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
10623 * mini-ppc.c, cpu-g4.md: fixed unisgned -> double conversion.
10625 Thu Apr 29 13:50:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
10627 * exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
10628 and prolog/epilog for methods that use it. Allow
10629 enough param area room for varargs methods. Fix miguel's
10630 breakage in exception handling.
10632 Thu Apr 29 12:06:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
10634 * Makefile.am: run genmdesc only on current arch.
10636 2004-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10638 * exceptions-x86.c:
10639 * mini-x86.h: fix the build on windows.
10641 2004-04-28 Zoltan Varga <vargaz@freemail.hu>
10643 * Makefile.am mini.h mini-exceptions.c mini-x86.h mini-sparc.h exceptions-sparc.c: Move parts of the sparc exception handling code to XP code.
10645 * exceptions-sparc.c exceptions-ppc.c exceptions-s390.c mini-ppc.h mini-s390.h mini-sparc.h: Fix up ports after changes.
10647 * mini-exceptions.c: New file.
10649 * mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
10650 Move some parts of the x86 exception handling code to an
10651 arch-independent file so it can be shared with other ports.
10653 Tue Apr 27 12:15:59 CEST 2004 Paolo Molaro <lupus@ximian.com>
10655 * trace.c, cpu-g4.md, inssel-ppc.brg, mini-ppc.c: some fixes for FP code.
10657 2004-04-26 David Waite <mass@akuma.org>
10659 * driver.c: remove comma from end of enumeration declaration
10661 2004-04-26 Jackson Harper <jackson@ximian.com>
10663 * driver.c: parse config file before loading first assembly. This
10664 allows the user gac to be enabled/disabled.
10666 2004-04-23 Miguel de Icaza <miguel@ximian.com>
10668 * mini-ppc.c (ppc_patch): Replaced the branch code patching with a
10669 simpler mechanism: we do not care what is encoded initially
10670 (branch absolute or relative), we care about the code and its
10671 target. I kept the old code for reference for now.
10673 The new code tries first to determine if the jump is anywhere in
10674 the -/+32 absolute meg range, if it succeeds, it encodes using the
10675 absolute branch; If not, it tried to find something in the
10676 relative range, if not, it uses the handle_thunk code.
10678 Fri Apr 23 14:20:40 EDT 2004 Paolo Molaro <lupus@ximian.com>
10680 * exceptions-ppc.c: use the correct ip register on macosx.
10682 Thu Apr 22 13:23:16 EDT 2004 Paolo Molaro <lupus@ximian.com>
10684 * exceptions.c, mini.c, mini-ppc.h: adapt code to macosx.
10686 Thu Apr 22 18:08:37 CEST 2004 Paolo Molaro <lupus@ximian.com>
10688 * mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
10689 Raise exception on integer divide by zero by hand since the hw
10690 doesn't support it. Handle NaNs in FP compares.
10692 Thu Apr 22 16:10:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
10694 * exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
10695 code reducing duplication between the platforms and enabled
10696 signal exception handling (on linux for now).
10698 Wed Apr 21 12:27:48 EDT 2004 Paolo Molaro <lupus@ximian.com>
10700 * exceptions-ppc.c: more macosx support.
10702 Wed Apr 21 16:38:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
10704 * mini-ppc.h, mini-ppc.c, cpu-g4.md: enable bigmul optimization.
10706 Wed Apr 21 16:20:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
10708 * mini.h, mini-ppc.c, cpu-g4.md: support for implicit exceptions.
10710 2004-04-19 Ben Maurer <bmaurer@users.sourceforge.net>
10712 * iltests.il: more tests.
10714 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
10716 * mini-*.c (mono_arch_get_allocatable_int_vars): Skip written-only
10719 Mon Apr 19 19:39:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
10721 * mini-ppc.c: some fixes to bootstrap mcs/corlib/etc.
10723 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
10725 * liveness.c: Mark variables as volatile in all basic blocks reachable
10726 from exception clauses.
10728 2004-04-18 Zoltan Varga <vargaz@freemail.hu>
10730 * exceptions.cs (test_0_rethow_stacktrace): Make this work with
10733 2004-04-18 Ben Maurer <bmaurer@users.sourceforge.net>
10735 * iltests.il, basic.cs: more tests for regalloc.
10737 2004-04-17 Ben Maurer <bmaurer@users.sourceforge.net>
10739 * iltests.il: Some tests for register allocation modifications
10742 2004-04-16 Zoltan Varga <vargaz@freemail.hu>
10744 * exceptions.cs: Add regression test for bug #56782.
10746 * exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
10747 original stack trace if an exception is rethrown. Fixes #56782. Oh,
10748 the beauty of fixing the same thing in 5 different files...
10750 2004-04-15 Zoltan Varga <vargaz@freemail.hu>
10752 * mini.c (mono_method_to_ir): Do not compute coverage for inlined
10755 2004-04-14 Zoltan Varga <vargaz@freemail.hu>
10757 * mini.c: Add support for STRWLPARRAY marshalling convention.
10759 Wed Apr 14 18:15:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
10761 * exceptions-ppc.c: missing fixes in mono_jit_walk_stack (need
10762 to init the context to setup the regs pointer).
10764 Wed Apr 14 17:59:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
10766 * exceptions-ppc.c: more exceptions work.
10768 Wed Apr 14 17:46:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
10770 * mini.c: avoid reusing the same MonoInst on multiple trees: this is
10773 2004-04-13 Miguel de Icaza <miguel@ximian.com>
10775 * inssel-x86.brg (reg): Add new rules for add, sub and mul that
10776 can use the memory directly.
10778 * cpu-pentium.md: Update documentation from a post from Zoltan.
10780 add x86_add_membase, x86_sub_membase, x86_mul_membase
10782 2004-04-13 Miguel de Icaza <miguel@ximian.com>
10784 * mini-ppc.c: Remove unused definitions FLOAT_REGS and
10785 GENERAL_REGS they were also hardcoded for all PPC ports.
10787 (add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
10789 Remove hard-coded limit for floating point registers, use
10790 PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
10792 Notice that in MacOS X calling conventions you can fit a lot more
10793 floating point values in registers, so I should update the PInvoke
10794 test to excercise the passing of floating point values on the
10795 stack (currently broken).
10797 2004-04-06 Miguel de Icaza <miguel@ximian.com>
10799 * tramp-ppc.c (create_trampoline_code): Added
10800 JUMP_TRAMPOLINE_SIZE.
10801 (ppc_magic_trampoline): Follow the pattern from
10802 x86_magic_trampoline: if code is set to zero, return.
10803 (create_trampoline_code): Always pass MonoMethod to the jump
10804 trampoline, before it was passing a null.
10805 (mono_arch_create_jump_trampoline): Implement the jump stub, could
10806 share the code with mono_arch_create_jit_trampoline.
10808 * mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
10810 (mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
10813 * cpu-g4.md: Added length for jmp instruction, the worst case
10814 scenario is 92 bytes (4 mandatory bytes, potential 19 registers
10817 2004-04-08 Zoltan Varga <vargaz@freemail.hu>
10819 * aot.c (mono_compile_assembly): Add back unlink removed by mistake.
10821 2004-04-07 Zoltan Varga <vargaz@freemail.hu>
10823 * mini.c: Only set bblock->real_offset when adding a new bblock, and
10824 before each IL instruction.
10826 * mini.c (CEE_BOX): Fix warnings.
10828 2004-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10830 * mini.c: removed a few unused vars and extra whitespace.
10832 2004-04-05 Ben Maurer <bmaurer@users.sourceforge.net>
10834 * inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
10836 (MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
10838 (OP_GETCHR): use the above
10839 (CEE_LDELEMA): use the above.
10841 * inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
10842 version of the generic impl.
10843 (MONO_EMIT_BOUNDS_CHECK_IMM): the same
10844 (CEE_LDELEMA): use the above.
10846 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
10848 * inssel-long32.brg (CEE_CONV_OVF_I8): Sign extend the i4 value to i8.
10851 * iltests.il: Added new regression test for #56317.
10853 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
10855 * mini-x86.c (mono_arch_setup_jit_tls_data): Use pthread_attr_get_np
10856 under NetBSD. Fixes #56450.
10858 * liveness.c (update_gen_kill_set): Fix previous patch.
10860 2004-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10862 * mini-x86.h: SA_STACK defined as SA_ONSTACK. Fixed build under NetBSD.
10864 2004-04-02 Zoltan Varga <vargaz@freemail.hu>
10866 * mini.c (mono_method_to_ir): Avoid handle_loaded_temps in
10867 ldsfld and ldsflda.
10869 * inssel-sparc.brg: Add more optimizations.
10871 * mini-sparc.c: Replace multiply/divide with shifts if possible.
10873 2004-04-01 Martin Baulig <martin@ximian.com>
10875 * mini.c (handle_box): New static function; moved the
10876 implementation of CEE_BOX here.
10877 (mono_method_to_ir): Added `constrained_call' variable.
10878 (mono_method_to_ir:CEE_CONSTRAINED_): Set it.
10879 (mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
10880 mono_method_get_constrained() to get the method.
10882 2004-04-01 Martin Baulig <martin@ximian.com>
10884 * mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
10885 (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
10886 (mono_method_to_ir): We don't need these macros anymore since
10887 mono_class_get_full() already takes care of it.
10889 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10891 * aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
10892 use @function (as doesn't accept #function here) and check the return
10893 value of system and stop if fails.
10895 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10897 * mini.c: set the timeout to 2s when calling mono_domain_finalize.
10899 2004-03-31 Zoltan Varga <vargaz@freemail.hu>
10901 * mini-ppc.c (mono_arch_patch_code): Fix ppc build.
10903 * inssel-sparc.brg mini-sparc.c aot.c: Implement AOT support.
10905 * inssel-long32.brg (OP_LNEG): Use ADC instead of ADD here. Fixes
10908 * basic-long.cs: Add test for negation of Int64.MinValue.
10910 2004-03-30 Zoltan Varga <vargaz@freemail.hu>
10912 * mini-sparc.c: Update status.
10914 * mini-sparc.c tramp-sparc.c: Save lmf in trampolines.
10916 * exceptions-sparc.c: Fix return value in filters.
10918 * inssel-sparc.brg: Fix register allocation in some rules.
10920 2004-03-28 Martin Baulig <martin@ximian.com>
10922 * mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
10925 2004-03-28 Zoltan Varga <vargaz@freemail.hu>
10927 * mini-x86.c (mono_arch_patch_code): Fix warnings.
10929 * mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
10930 dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
10931 remove unused conv_u4 opcode.
10933 * mini-x86.c: Remove valgrind workaround since it slows down things
10934 even when mono is not run under valgrind.
10936 2004-03-26 Zoltan Varga <vargaz@freemail.hu>
10938 * mini-sparc.c: Update status.
10940 * inssel-sparc.brg: Add some optimizations.
10942 * inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
10943 future delay slot filling. Add support for varargs, tail calls and JMP.
10945 * inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
10946 CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
10948 * inssel.brg: Fix register allocation in OP_ARGLIST.
10950 * inssel.brg: Fix warnings.
10952 2004-03-25 Martin Baulig <martin@ximian.com>
10954 * mini.c (inflate_generic_field): Removed.
10955 (mini_get_method): Removed, use mono_get_method_full(),
10956 (mini_get_class): Removed, use mono_class_get_full().
10957 (mono_method_to_ir): Pass our generic context to
10958 mono_field_from_token().
10960 2004-03-25 Martin Baulig <martin@ximian.com>
10962 * mini.c (mini_get_class): Take a `MonoGenericContext *' instead
10963 of a `MonoMethod *'.
10964 (mini_get_method): Take a `MonoGenericContext *' instead
10965 of a `MonoMethod *'.
10966 (TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
10967 a new local variable called `generic_context' which holds the
10968 current `MonoGenericContext *'; use it to lookup things.
10970 2004-03-24 Martin Baulig <martin@ximian.com>
10972 * mini.c (mini_get_class): New static method; if we're inside a
10973 generic instance, inflate the class if neccessary.
10974 (mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
10976 2004-03-24 Zoltan Varga <vargaz@freemail.hu>
10978 * iltests.il: New regression test for #55976.
10980 * mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
10983 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
10985 * exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
10988 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
10990 * liveness.c: Consider SSA stores as well as loads when making vars
10993 * exceptions.cs: New regression tests for register allocation.
10995 2004-03-22 Lluis Sanchez Gual <lluis@ximian.com>
10997 * mini-ppc.c, tramp-ppc.c: Added lock for accessing the domain code manager.
10998 * mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
10999 domain lock only to protect puntual access to data structures.
11000 Added access lock for sighash, jit_icall_hash_name,
11001 jit_icall_hash_addr and domain->code_mp.
11003 2004-03-20 Zoltan Varga <vargaz@freemail.hu>
11005 * driver.c: Print SIGSEGV handling method.
11007 * mini-x86.c (mono_arch_free_jit_tls_data): Add missing ifdef.
11009 * mini.c (setup_jit_tls_data): Handle case when this is called
11010 multiple times for a thread.
11012 * mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
11013 is different from fbxx_un. Fixes #54303. Also use constants instead of
11014 magic numbers in a lot of places.
11016 2004-03-19 Zoltan Varga <vargaz@freemail.hu>
11018 * exceptions.cs: Fix cctor test when --regression is used.
11020 Thu Mar 18 19:57:56 CET 2004 Paolo Molaro <lupus@ximian.com>
11022 * mini-ppc.c, exceptions-ppc.c: basic exceptions support
11025 Thu Mar 18 19:56:19 CET 2004 Paolo Molaro <lupus@ximian.com>
11027 * inssel-ppc.brg: fixed register assignments for some rules.
11029 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
11031 * exceptions.cs: Add test for exceptions in static constructors.
11033 * mini.c (mono_jit_compile_method_with_out): Move the calling of
11034 static constructors outside the domain lock. Fixes #55720.
11036 2004-03-17 Martin Baulig <martin@ximian.com>
11038 * mini.c (get_generic_field_inst): Removed, this'll never happen.
11039 (inflate_generic_field): Take the `MonoMethod *' instead of the
11040 `MonoClass *' and added support for generic method.
11041 (mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
11042 have a `field->parent->gen_params', only inflate the field if it's
11043 an open constructed type.
11045 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
11047 * exceptions-x86.c (mono_arch_handle_exception): Allocate a new
11048 exception object instead of the preconstructed ones.
11050 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11052 * mini.c: reverted changed to sigsegv_signal_handler commited
11053 accidentally in the previous patch.
11055 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11058 (mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
11059 running --aot with an old assembly.
11061 2004-03-16 Zoltan Varga <vargaz@freemail.hu>
11063 * mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
11066 * mini-sparc.c: Add support for v9 branches with prediction.
11068 2004-03-15 Bernie Solomon <bernard@ugsolutions.com>
11070 * mini.c (mini_init): #warning is GNUC only
11072 * mini-sparc.h: implement __builtin_frame_address
11073 and __builtin_return_address for Sun C compiler
11075 2004-03-15 Zoltan Varga <vargaz@freemail.hu>
11077 * exceptions-sparc.c (mono_arch_has_unwind_info): Add missing function.
11079 2004-03-14 Zoltan Varga <vargaz@freemail.hu>
11081 * basic-calls.cs: Add test for unaligned byref long argument passing.
11083 * mini-ops.h: Add sparcv9 compare and branch instructions.
11085 * inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
11086 v9 instructions if we have a v9 cpu.
11088 * mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
11089 registers for global allocation.
11091 * exceptions-sparc.c: Fixes.
11093 2004-03-11 Zoltan Varga <vargaz@freemail.hu>
11095 * liveness.c (mono_analyze_liveness): Optimized version.
11097 * inssel-sparc.brg cpu-sparc.md: Ongoing sparc work.
11099 * mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Ongoing
11102 * basic-float.cs basic-calls.cs: New regression tests.
11104 2004-03-10 Zoltan Varga <vargaz@freemail.hu>
11106 * mini-x86.h: Define SIGSEGV_ON_ALTSTACK only if we have a working
11107 sigaltstack implementation.
11109 * mini-x86.c (mono_arch_setup_jit_tls_data): Fix previous patch.
11111 * mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
11112 stuff if SIGSEGV_ON_ALTSTACK is not defined.
11114 2004-03-09 Zoltan Varga <vargaz@freemail.hu>
11116 * mini.c: Fix warnings.
11118 * mini.c (mono_resolve_patch_target): New function which contains the
11119 arch independent part of the patching process.
11121 * mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
11122 patching code to a separate function.
11124 2004-03-09 Bernie Solomon <bernard@ugsolutions.com>
11126 * mini.c (add_signal_handler): ifdef out on Windows
11128 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
11130 * mini-sparc.h mini-sparc.c inssel-sparc.brg exceptions-sparc.c
11131 cpu-sparc.md: Add exception handling support + other fixes.
11133 * driver.c: Print --help output to stdout. Fixes #55261. Also fix
11134 typed GC detection in --version.
11136 * basic.cs exceptions.cs: New regression tests.
11138 * mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
11139 the arch specific code can store data during a compilation.
11141 * mini-ops.h: Add OP_SETFRET.
11143 * mini.c (mini_get_ldelema_ins): Instead of allways calling the same
11144 function, register a separate icall for each arity, so the icalls can
11147 * mini.c (mono_print_tree): Print negative offsets in a more readable
11150 * mini.c: Make signal handling work on sparc.
11152 * mini.c (mini_init): Add emulation for lconv_to_r8_un.
11154 * inssel-long32.brg: Fix OP_LSUB_OVF_UN rule.
11156 * jit-icalls.c: Emulate truncl by aintl on solaris.
11158 * jit-icalls.c (mono_lconv_to_r8_un): New icall emulation function.
11160 2004-03-05 Zoltan Varga <vargaz@freemail.hu>
11162 * mini.c (mini_init): fconv_to_ovf can raise exceptions.
11164 2004-03-04 Lluis Sanchez Gual <lluis@ximian.com>
11166 * mini.c: In CEE_ISINST and CEE_CASTCLASS, if the type is an interface or
11167 a MarshalByRef type, inline a method that performs the check, taking into
11168 account that the object can be a proxy. Also implemented tow new opcodes:
11169 CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
11170 * inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
11171 OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
11173 Tue Mar 2 17:23:48 CET 2004 Paolo Molaro <lupus@ximian.com>
11175 * mini-ppc.c: if a relative branch displacement is too big
11176 but it points to and area reachable with an absolute branch,
11179 Tue Mar 2 16:59:40 CET 2004 Paolo Molaro <lupus@ximian.com>
11181 * mini.c: optimize small copies in cpblk.
11183 2004-03-01 Zoltan Varga <vargaz@freemail.hu>
11185 * basic-calls.cs basic-float.cs: New regression tests.
11187 * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
11188 negative offsets from %fp. Implement localloc. Fix local register
11189 allocation. Fix the case when the this argument needs to be saved to
11190 the stack. Implement some missing opcodes.
11192 2004-02-26 Zoltan Varga <vargaz@freemail.hu>
11194 * mini.c (mini_method_compile): Reenable global regalloc in methods
11195 with exception handlers.
11197 * linear-scan.c (mono_varlist_sort): Fix warning.
11199 * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
11201 * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
11204 * liveness.c: Make all variables uses in exception clauses volatile, to
11205 prevent them from being allocated to registers. Fixes #42136.
11207 2004-02-25 Zoltan Varga <vargaz@freemail.hu>
11209 * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
11210 causes regressions.
11212 * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
11213 argument to mono_arch_regalloc_cost.
11215 * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs
11218 2004-02-24 Zoltan Varga <vargaz@freemail.hu>
11220 * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
11221 Make the cost of allocating a variable to a register arch dependent.
11223 * basic-calls.cs: Fix compilation of tests.
11225 * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
11226 helper function to cut back on the number of #ifdefs needed.
11228 * mini-ppc.c: Fix compilation.
11230 * basic-calls.cs: New regression tests.
11232 * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
11234 * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
11235 of l0 since that is callee saved.
11237 * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
11240 * mini-sparc.c: Ongoing work + flag virtual calls with a special kind
11241 of delay instruction.
11243 * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
11245 * mini.h (MonoCallInst): Add 'virtual' flag.
11247 * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
11249 2004-02-23 Zoltan Varga <vargaz@freemail.hu>
11251 * *.cs: New regression tests.
11253 * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc
11256 * mini.c (mono_runtime_install_handlers): Fix build.
11258 * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
11259 'signal_stack_size' members.
11261 * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an
11262 alternate signal stack.
11264 * exceptions-x86.c: Add stack overflow handling.
11266 * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing
11267 functions to arch independent code.
11269 * mini.c (mono_print_tree): Print more detailed info for load_membase
11272 2004-02-23 Martin Baulig <martin@ximian.com>
11274 * mini.c (mini_get_method): Set `gmethod->generic_inst'.
11276 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
11278 * mini-x86.c: fixed reg allocation for div/rem.
11280 2004-02-22 Miguel de Icaza <miguel@ximian.com>
11282 * driver.c (mono_main): Report some configuratio options on --version.
11284 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
11286 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
11287 low in the address space. Correctly flush memory in thunks where we
11288 output native code.
11290 2004-02-20 Martin Baulig <martin@ximian.com>
11292 * mini.c (mini_get_method): New static method; inflate all generic
11293 methods and methods in open generic instances.
11294 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
11295 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
11297 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
11299 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
11301 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
11303 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
11305 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
11307 * mini-sparc.c (flushi mono_arch_output_basic_block): make
11308 it compile using Sun's compiler.
11310 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
11312 * 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.
11314 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
11316 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
11318 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
11320 * mini-ppc.c: handle calls outside of the allowed range with thunks
11321 allocated using the code manager.
11322 * tramp-ppc.c: use the code manager to hold generated native code.
11323 Fixed the magic trampoline to just patch vtable entries.
11325 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
11327 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
11330 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
11332 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
11335 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
11336 if we have a working __thread implementation.
11338 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
11339 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
11341 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
11343 * mini-x86.c: Fix compilation under gcc 2.
11345 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
11347 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
11348 contains a call to the wrapped function.
11350 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
11351 OP_<CALL>_IMM opcodes, and use them under X86.
11353 * mini.c (mono_jit_find_compiled_method): Fix warning.
11355 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
11357 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
11359 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
11360 functionality to mini.c.
11362 * mini.c (mono_create_jump_trampoline): New function to create a jump
11363 trampoline. Return a compiled method instead of a trampoline if it
11364 exists. Add a cache for jump trampolines.
11366 * mini.c (mono_jit_find_compiled_method): New function to return a
11367 compiled method if it exists.
11369 * mini-x86.c: Call mono_create_jump_trampoline instead of
11370 mono_arch_create_jit_trampoline.
11372 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
11373 a jump trampoline. Fixes #52092.
11375 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
11377 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
11378 which is not up-to-date. Add check_corlib_version () instead.
11380 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
11383 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
11384 since newer valgrind versions do not need it.
11386 * mini.c (mono_jit_compile_method_with_opt): New helper function to
11387 compile a method with a given set of optimizations.
11389 * mini.c: Compile icall wrappers on-demand instead of at startup.
11391 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
11392 wrapper for an icall.
11394 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
11396 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
11399 * iltests.il: Add test for non-empty stack before switch instruction.
11401 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
11403 * mini.c: Add support for new stringbuilder marshalling conventions.
11405 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
11407 2004-02-01 Martin Baulig <martin@ximian.com>
11409 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
11410 in `ginst->mtype_argv'.
11412 2004-01-31 Miguel de Icaza <miguel@ximian.com>
11414 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
11415 facilitate grepping.
11417 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
11419 * mini.c: fixed buglet in initobj generic implementation for references.
11421 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
11423 * Makefile.am: make the version script conditional.
11424 * jit-icalls.c: handle missing truncl().
11426 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
11428 * exceptions.cs: Add more tests for double->int conversion.
11430 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
11431 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
11433 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
11435 * driver.c: make --verbose --version emit an error
11436 if the loaded corlib doesn't match the runtime version.
11438 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
11440 * mini-ppc.h: export ppc_patch().
11441 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
11442 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
11443 on par or better than on MacOSX.
11445 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
11447 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
11448 mono_lookup_pinvoke_call.
11450 * mini-x86.c: Under windows, the default pinvoke calling convention is
11451 stdcall. Fixes #52834.
11453 * mini.c (optimize_branches): Add an upper bound to the number of
11454 iterations to prevent infinite loops on strange loops. Fixes #53003.
11456 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
11458 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
11459 and ISINST. Fixes #52093.
11461 * objects.cs (test_0_vector_array_cast): New tests.
11463 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
11465 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
11466 checking in Array.Set ().
11468 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
11471 * object.cs (test_0_multi_array_cast): New regression test.
11473 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
11475 * exceptions-ppc.c: fix build on Linux/PPC.
11477 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
11479 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
11480 running under valgrind.
11481 (x86_magic_trampoline): Fix build bustage.
11483 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
11484 negative values as well. This is needed for the encoding of the line number
11485 info, since sometimes the line numbers are not in increasing order.
11487 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
11489 * cpu-pentium.md (localloc): Increase the size of the localloc
11490 instruction since it is a loop under Win32.
11492 * debug-mini.c (record_line_number): Get rid of unneccesary memory
11495 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
11497 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
11498 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
11499 Max Horn (max@quendi.de). Fix file names in comments.
11501 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
11503 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
11504 avoid stack overflow.
11505 (replace_usage): Avoid uninitialized variable warnings.
11507 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
11508 and taking the address of valuetype variables.
11510 2004-01-03 Patrik Torstensson
11512 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
11513 for other purposes than FP later on.
11515 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
11517 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
11520 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
11522 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
11524 2003-12-30 Patrik Torstensson <p@rxc.se>
11526 * mini-x86.h: Decreased number of availiable fp regs.
11527 Solves corner cases with FP spilling.
11529 2003-12-23 Patrik Torstensson <p@rxc.se>
11531 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
11532 for floating point stack tracking / spilling on x86.
11535 * basic-float.cs: added float mul overflow test.
11537 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
11539 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
11541 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
11543 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
11544 supports for cond branches that overflow the immediate
11545 overflow offset. mcs can compile simple programs.
11547 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
11549 * exceptions-ppc.c: exception handling support wip:
11550 finally handlers get run on exception.
11552 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
11554 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
11557 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
11559 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
11560 initial support for stack walking and unwinding.
11562 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
11564 * driver.c (mono_main): Make corlib-out-of-sync message more
11565 descriptive. Also remove verify_corlib call.
11567 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
11569 * mini.c: make CEE_NEWARR calls and other emulated opcodes
11570 not overlap with other call's arguments, too.
11572 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
11574 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
11575 move to arch-specific code the choice of arch-specific
11576 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
11577 * mini.c: ensure emulation calls will not interleave
11580 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
11582 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
11583 the magic trampoline stack frame is dropped before executing
11586 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
11588 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
11589 and integer to fp conversions. Added support for overflowing
11590 arguments on the stack. Reserve a couple more registers as temps.
11591 Added support for aot compilation (as output still needs to be
11594 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
11596 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
11597 Don't overwrite return register in some corner cases.
11599 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
11601 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
11602 static constructors when AOT compiling.
11604 * driver.c (mono_main): Call mono_check_corlib_version.
11606 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
11608 * cpu-g4.md, basic.cs: fixed div target register.
11610 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
11612 * mini-ppc.c, basic.cs: shl_imm fix with test.
11614 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
11616 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
11617 structures by value. Misc fixes.
11618 * objects.cs: more tests.
11620 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
11622 * mini-ppc.c: lconv.ovf.i implemented.
11624 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11627 (mini_init): don't error out if someone already called g_thread_init.
11629 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
11631 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
11632 to be any type per the spec. Fix abnormal memory usage when
11633 the same object is repeatedly thrown.
11635 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
11637 * mini.c: check for overruns in IL code.
11639 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
11641 * TODO: Add/remove some todo entries.
11643 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
11645 * driver.c (mono_main): Call mono_verify_corlib.
11647 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
11649 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
11650 This has been moved to mini.c
11651 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
11652 type being casted is marshalbyref it could be a proxy, so instead of
11653 emitting the type check code, emit a call to a runtime method that will
11654 perform the check by calling CanCastTo if needed.
11656 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
11658 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
11659 methods with large stack frames under Win32.
11661 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
11663 * Makefile.am: Distribute regression tests.
11665 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
11666 at the end instead of inserting each variable into the sorted list.
11668 * linear-scan.c (mono_varlist_sort): New helper function.
11670 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
11672 * mini.c: ensure arguments and locals are within bounds.
11674 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
11676 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
11679 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
11681 * mini.c (mono_cprop_copy_values): Fix crash.
11683 * aot.c: Set verbosity back to 0.
11685 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
11687 * regalloc.c: complete memory leak fix by Laurent Morichetti
11690 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
11692 * driver.c (main_thread_handler): Revert the previous patch.
11694 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
11697 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
11698 memory from the memory pool.
11700 * driver.c (main_thread_handler): Turn on all optimizations when
11703 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
11704 an array for better performance.
11706 * regalloc.c (mono_regstate_assign): Fix memory leak.
11708 * debug-mini.c (mono_debug_serialize_debug_info): New function to
11709 serialize the debug info.
11711 * debug-mini.c (mono_debug_add_aot_method): New function to load the
11712 debug info from the serialized representation.
11714 * aot.c: Save debug info into the generated file and load it when
11717 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
11719 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
11721 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
11722 More FP-related fixes.
11724 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
11726 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
11727 and register allocation buglet. Hello world now runs.
11729 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
11731 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
11732 * tramp-ppc.c: fixed class init trampoline.
11733 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
11735 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
11737 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
11738 mini.c: more ppc changes/fixes.
11740 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
11742 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
11743 Also optimize the case when the arguments are the same in the caller
11746 * iltests.il: Add tests for tail calls with valuetype arguments.
11748 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
11750 * mini-ppc.c: fixes for struct return type.
11752 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
11754 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
11755 mono_spillvar_offset() to arch-specific code.
11757 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
11759 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
11761 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
11763 * exceptions-x86.c: Fix stack space leaks.
11765 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
11766 registers from the lmf if the method has save_lmf set.
11768 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
11770 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
11771 of icall wrappers into InvokeInDomain, since these are now per-domain.
11773 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
11775 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
11776 make some opcode emulation and intrinsic ops enabled/disabled
11777 according to the architecture. More fixes.
11779 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
11781 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
11783 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
11785 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
11786 arch-specific handling for 'this' and struct return type to
11787 arch-specific code.
11789 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11791 * aot.c: prevent divide by zero error when reporting (it happened with
11792 Accessibility.dll).
11794 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
11796 * mini.h (inst_switch): Remove unused macro.
11798 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
11801 (load_aot_module): free 'info->methods' and 'info' properly. No more
11802 "free(): invalid pointer blah" messages when you have an old aot
11805 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
11807 * jit-icalls.c, mini.c: Added support for context static fields.
11809 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
11811 * mini.c (mono_method_blittable): Methods which set LastError are not
11812 blittable either. Fixes #51108.
11814 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
11816 * mini.c: flush icache.
11817 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
11819 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
11821 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
11823 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
11825 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
11828 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
11831 * inssel.brg (CEE_MKREFANY): Fix AOT case.
11833 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
11835 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
11836 instruction when the result is discarded.
11838 * iltests.il (test_0_div_regalloc): New regression test.
11840 * arrays.cs: Fix compilation error.
11842 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
11844 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
11845 float rules to inssel-x86.brg: sane architectures with FP registers
11846 don't need to implement these rules.
11848 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
11850 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
11852 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
11854 * mini.h, inssel-long32.brg: fixed endianess issues in int64
11855 implementation of 32 bit systems.
11857 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
11859 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
11860 (Jeroen Zwartepoorte).
11862 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
11864 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
11865 the caller and the callee matches.
11867 * mini.c (mono_method_to_ir): Add comment.
11869 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
11870 signbit is missing on some platforms.
11872 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
11874 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
11876 * mini.c (setup_jit_tls_data): Call the new function.
11878 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
11880 * mini-x86.c: Add experimental support for fast access to the lmf
11881 structure under NPTL/Linux 2.6.x.
11883 2003-11-06 Martin Baulig <martin@ximian.com>
11885 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
11886 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
11889 2003-11-02 Martin Baulig <martin@ximian.com>
11891 * mini.c (inflate_generic_field): New static method.
11892 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
11893 generic instance and the field is declared in a generic type, call
11894 inflate_generic_field() to inflate it. Fixes gen-28.cs.
11896 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
11898 * mini.h mini.c (mono_method_same_domain): New function to return
11899 whenever the caller and the callee are in the same domain.
11901 * tramp-x86.c (x86_magic_trampoline): Use the new function.
11903 2003-10-30 Martin Baulig <martin@ximian.com>
11905 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
11906 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
11908 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
11909 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
11911 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
11913 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
11916 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
11917 object here, so it is in the correct appdomain etc.
11919 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
11921 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
11923 (mono_method_to_ir): Avoid freeing the type created returned from
11924 mono_type_create_from_typespec, since it is put into an internal cache
11925 by the function. Fixes pointer.exe.
11927 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
11928 trampolines for icalls and pinvokes as well. Fixes #33569.
11930 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
11932 * mini.c: Update after appdomain changes.
11934 * mini.c (mono_jit_compile_method_inner): Allways compile native
11935 method wrappers in the root domain, since there can only be one
11936 instance of them, whose address is stored in method->info.
11938 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
11940 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
11941 environment variable. Instead detect automatically whenever running
11942 under valgrind using the magic macro RUNNING_ON_VALGRIND from
11945 2003-10-16 Miguel de Icaza <miguel@ximian.com>
11947 * trace.c, trace.h: New files that implement the new trace option
11950 * driver.c: Document new --trace options.
11952 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
11955 - if (mono_jit_trace_calls)
11956 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
11958 * mini.h: prototypes.
11960 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
11962 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
11964 * mini.c inssel.brg: Implement typedefbyref opcodes.
11966 * mini.c (mono_jit_compile_method): Remove unused local variable.
11968 * mini.c (mono_jit_compile_method_inner): Ditto.
11970 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
11972 * tramp-x86.c (x86_class_init_trampoline): Fix build.
11974 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
11976 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
11978 * mini.c (mono_no_aot): Remove unused global variable.
11980 * mini.c: Thread safety fixes.
11982 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
11984 * mini.c (mono_create_class_init_trampoline): Add a lock around
11985 class_init_hash_addr.
11987 * arrays.cs (test_0_newarr_emulation): Add new regression test for
11990 * mini.c: Decompose the NEWARR instruction before decomposing its
11991 arguments. Fixes #30073.
11993 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
11995 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
11998 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
12000 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
12002 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
12004 * driver.c: Add support for compiling icall wrappers to --compile.
12006 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
12008 * inssel.brg: The empty value in class->interface_offsets is -1, not
12011 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
12013 * objects.cs: New test for 'is' operator on an array of interfaces.
12015 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
12017 * tramp-ppc.c: update trampoline code to support jumps
12018 and class initialization.
12020 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
12022 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
12024 * inssel.brg (OP_UNBOXCAST): Fix #46027.
12026 * inssel.brg (OP_UNBOX): Remove unused rule.
12028 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
12029 region instead of one for each method. Fixes #47813.
12031 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
12033 * exceptions.cs (test_0_nested_finally): New regression test for
12034 nested exception handlers.
12036 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
12038 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
12040 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
12043 * mini.c (mono_method_check_inlining): Make the inlining limit
12044 configurable by an environment variable.
12046 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
12048 * mini.h: Bump AOT file version.
12050 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
12051 token, store the image along with the token, since the token might not
12052 refer to the same image as the method containing the relocation,
12053 because of inlining.
12055 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
12057 * mini.c (mono_precompile_assemblies): New function to compile
12058 all methods in all loaded assemblies.
12060 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
12062 * regalloc.h regalloc.c (MonoRegState): Change the type of
12063 iassign and fassign to int*, since they can contain large negative
12064 values if the register is spilled. Also added some comments. Fixes
12067 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
12068 under Win32. Fixes #42964.
12070 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
12072 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
12074 * aot.c: Added support for AOT compiling methods which contain calls
12075 to wrappers. Currently, only remoting-invoke-with-check wrappers are
12078 * driver.c (compile_all_methods): Run the compilation in a thread
12079 managed by mono. Fixes #44023.
12081 * mini.c (mono_codegen): Print full method name in verbose output.
12083 * mini-x86.c (mono_arch_patch_code): Fix warning.
12085 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
12086 jumps, since the method we are jumping to might be domain-specific.
12088 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
12090 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
12092 * inssel.brg: string chars are unsigned.
12094 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
12096 * TODO: New todo item.
12098 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
12099 which calls mono_runtime_class_init and patches the call site to
12100 avoid further calls.
12101 (mono_arch_create_class_init_trampoline): New arch specific function
12102 to create a class init trampoline.
12103 (create_trampoline_code): Generalized so it can create
12104 class init trampolines as well.
12106 * mini.c (helper_sig_class_init_trampoline): New helper variable.
12107 (mono_create_class_init_trampoline): New function to create and cache
12108 class init trampolines.
12109 (mono_find_class_init_trampoline_by_addr): New function to lookup the
12110 vtable given the address of a class init trampoline. Used by the
12112 (mono_codegen): Generate a call to a trampoline instead of
12113 mono_runtime_class_init in LDSFLD[A].
12114 (mono_codegen): Add relocations for the new trampoline.
12116 * mini.h mini-x86.c aot.c: Added a new relocation type:
12117 MONO_PATCH_INFO_CLASS_INIT.
12119 * mini.h: Bump AOT version number.
12121 * aot.c: Create a copy of the loaded code instead of using the original
12122 so methods which call each other will be close in memory, improving
12125 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
12126 patch since it breaks the regression tests.
12128 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
12129 for the register saving instruction sequence since the
12130 frame_state_for function in glibc 2.3.2 don't seem to detect it.
12132 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
12134 * TODO: Fix todo item && remove another.
12136 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
12138 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
12141 * aot.c: Moved the check for MONO_LASTAOT into the initialization
12142 function of the module.
12144 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
12145 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
12146 --no-aot command line option.
12148 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
12150 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
12151 by Bernie Solomon (bernard@ugsolutions.com).
12153 * inssel.brg: Refactor the interface offset table related code into
12154 its separate functions and add support for the AOT case.
12156 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
12158 * aot.c (mono_aot_get_method_inner): Fix memory leak.
12160 * aot.c: Added mono_aot_verbose variable and made all debugging
12161 output depend on the value of this variable.
12163 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
12164 method_label and info_label.
12166 * mini.h mini-x86.c aot.c: Added a new relocation type
12167 MONO_PATCH_INFO_IID for klass->interface_id.
12169 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
12170 the MonoJitInfo structure.
12172 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
12173 a non-root appdomain in shared mode.
12175 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
12177 * aot.c: make aot loader less verbose. Remove free of unused variable.
12179 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
12181 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
12183 * .cvsignore: Added *.dll.
12185 * mini.c (mono_print_tree_nl): New function callable while debugging.
12187 * mini.c (mono_print_code): Export this.
12189 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
12192 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
12194 * mini.h (MonoCompile): Added 'jit_info' field.
12196 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
12197 the cfg structure, since it is needed by the AOT compiler.
12199 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
12201 * aot.c: A major rewrite. Changes include:
12202 - save exception tables for methods which have them.
12203 - cache failed lookups in aot_get_method () to avoid the (slow) calls
12204 to g_module_symbol.
12205 - reworked the file format so it is now much smaller and needs
12206 fewer relocation entries.
12208 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
12210 * aot.c (load_aot_module): Fix build bustage on platforms without
12213 2003-09-04 Martin Baulig <martin@ximian.com>
12215 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
12217 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
12219 * TODO: Some new optimization ideas.
12221 * aot.c: Move AOT module loading logic here from mono_assembly_open.
12223 * aot.c: Save the optimization flags used to compile the code into
12226 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
12227 support emitting domain specific code.
12229 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
12230 no longer domain neutral. It can be made domain neutral by compiling
12231 with --optimize=shared.
12233 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
12234 between appdomains.
12236 * driver.c mini.h mini.c: New --no-aot debugging option which disables
12237 loading of AOT code.
12239 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
12241 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
12242 if there is no domain neutrality information.
12244 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
12246 * aot.c (mono_compile_assembly): Emit a symbol containing the file
12247 format version into the generated library.
12249 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
12250 callee method into the caller since one of them could be shared.
12252 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
12253 system exceptions from AOT code now works.
12255 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
12256 method if it is domain neutral and the callee is not.
12258 * graph.c (cfg_emit_one_loop_level): Fix warning.
12260 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
12262 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
12265 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
12267 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
12268 is needed by code which is executed before mono_runtime_init ().
12269 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
12271 * mini.c (mono_thread_abort): Fix warning.
12272 (mono_jit_compile_method): Call static constructor in the AOT case too.
12274 * aot.c (mono_compile_assembly): Fix warning.
12276 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12278 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
12280 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
12282 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
12284 * cpu-pentium.md: Fix the length of call opcodes so they include the
12285 ESP restoring instruction. Fixes #47968.
12287 2003-08-28 Martin Baulig <martin@ximian.com>
12289 * mini-x86.c (mono_arch_call_opcode): Added support for
12290 MONO_TYPE_GENERICINST.
12292 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
12294 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
12296 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
12297 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
12299 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
12302 2003-08-26 Martin Baulig <martin@ximian.com>
12304 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
12305 when reporting an error, set this to the actual error location.
12306 (mono_method_to_ir): Report the correct error location if
12307 get_basic_blocks() returned an error.
12309 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
12311 * mini.c (mono_type_blittable): OBJECT is not blittable.
12312 (mono_method_blittable): Methods which have marshalling descriptors
12313 are not blittable either. Fixes #47842.
12315 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
12317 * driver.c mini.c: Use an environment variable instead of a global
12318 variable. Also fix the build.
12320 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
12321 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
12324 * driver.c mini.c: Added --with-valgrind option to turn off some
12325 code which prevents mono from running under valgrind.
12327 * mini.c (mono_emit_call_args): Fixed warning.
12329 * mini.c (mono_emulate_opcode): Fixed warning.
12331 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
12333 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
12334 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
12335 regalloc.c, regalloc.h: specify available registers in arch-specific
12336 code and support floats in the regallocator (patch by Laurent Morichetti
12339 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
12341 * mini.c: mono_thread_current() can be called only after
12342 mono_runtime_init(): rearrange code to not call it early on.
12344 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
12346 * mini.c: allocate jump tables in the code mempools.
12348 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
12350 * mini.c, mini.h: make sure per-thread data allocated by the jit is
12353 2003-08-10 Miguel de Icaza <miguel@ximian.com>
12355 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
12356 12 to 16. This fixes bug #47453.
12359 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
12361 * mini-ppc.c: fixed indexed load and unsigned compares.
12363 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
12365 * mini.c: reenabled installation of handler for
12366 thread abort signal.
12368 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
12370 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
12371 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
12372 until it's fixed and actually useful.
12374 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
12376 * inssel-long32.brg: couple more opcodes implemented.
12378 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
12380 * mini-sparc.c: Even more opcodes implemeted.
12382 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
12384 * mini-sparc.c: More opcodes implemented.
12386 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
12388 * mini-sparc.c: More opcodes implemented.
12390 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
12392 * inssel-sparc.brg: Add some needed rules. Direct
12394 * Makefile.am: Use inssel-sparc.brg
12395 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
12396 an assert happy for now.
12398 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
12400 * mini-sparc.c: Fixed compile errors.
12401 * exceptions-sparc.c: Same. We now produce a mono binary
12402 on sparc-linux. Yea.
12404 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
12406 * mini-sparc.c: Renamed registers. Also some macro cleanups.
12407 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
12408 They compile, but do not work.
12410 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
12412 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
12413 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
12414 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
12417 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
12419 * mini.c: more opcodes implemented and better support for generics.
12421 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
12423 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
12424 * mini.c, mini.h: first cut at generics support: some new instructions
12425 added and changed the behaviour of some of the existing ones.
12427 2003-07-21 Miguel de Icaza <miguel@ximian.com>
12429 * mini.c: Removed definition of metadata_shared mutex here.
12431 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
12433 * mini-x86.c: make vararg calls work for instance methods.
12435 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
12437 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
12438 returns the arguments in a separte list, now.
12440 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
12442 * aot.c, mini.c: updates for array type representation changes.
12444 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
12446 * mini.c: register function to perform jit shutdown.
12448 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
12450 * mini.c: use a faster allocator if possible.
12452 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
12454 * aot.c: some cleanups and portability changes.
12456 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
12458 * mini.c: use faster allocation for CEE_BOX if possible.
12460 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
12462 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
12463 Moved inlined mempcy code to its own function so that is can be
12464 reused. Added an inline memset function as well (optimized initobj).
12465 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
12467 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
12469 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
12471 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
12473 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
12474 arch code can setup the cpu for CLR execution, if needed.
12475 We use it on x86 to set the precision of FP operations.
12477 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
12479 * mini.c: disable some optimizations if we can guess they'll cost too
12480 much for a given method.
12482 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
12484 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
12486 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
12487 * mini.h mini.c mini-x86.c: Added instruction level coverage
12488 info collection support.
12490 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
12492 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
12493 is now implemented in the profiling API. Get rid of a couple of
12494 unnecessary global variables.
12496 2003-06-15 Nick Drochak <ndrochak@gol.com>
12498 * basic-long.cs: tests for negative values for bigmul, and unsigned.
12499 * cpu-g4.md: add op_bigmul and op_bigmul_un
12500 * cpu_pentium.md: add op_bigmul_un
12501 * inssel-long32.brg: add rule for unsigned bigmul
12502 * mini-ops.h: define OP_BIGMUL_UN
12503 * mini-x86.c: THE BUG: handle (un)signed properly
12504 * mini.c: choose unsigned opcode if needed.
12505 This set of patches fixes bug #44291
12507 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
12509 * mini.c (optimize_branches): improved to handle all kinds of
12510 conditional branches.
12512 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
12514 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
12515 don't raise exceptions.
12517 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
12519 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
12520 to arch-specific files.
12522 2003-06-09 Martin Baulig <martin@ximian.com>
12524 * Makefile.am (libs): Added $(LIBGC_LIBS).
12526 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
12528 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
12529 and OP_ATAN (fixes bug#44293).
12531 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
12533 * Makefile.am, mini-x86.c: rename cpu description array to
12534 pentium_desc, since some compilers define the 'pentium' preprocessor
12537 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
12539 * mini.c (mini_select_instructions): add explicit branch if the
12540 following block is not the false target of a conditional branch -
12541 we need this with any optimization that reorder or remove bblocks
12543 * mini.c (optimize_branches): bug fixes
12545 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
12547 * mini.c (mono_method_to_ir): inline static readonly fields
12549 * ssa.c (fold_tree): start cfold support for long (very simple
12552 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
12554 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
12556 * inssel.brg: fixed memcpy (bug #44219).
12558 2003-06-05 Dick Porter <dick@ximian.com>
12560 * driver.c: Set the glib log levels to not abort if g_message
12563 g_set_prgname() has to happen before mini_init() so that the
12564 process handle gets the info.
12566 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
12568 * driver.c: add intrins to the default optimizations to get wider
12571 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
12573 * mini.h: some large basic blocks will overflow a 16-bit
12574 integers for symbolic registers.
12576 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
12578 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
12579 (mono_arch_output_basic_block): fix bug 43499
12581 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
12583 * mini.c: kill duplicated definition of mono_debug_format.
12585 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
12587 * mini-x86.c, arrays.cs: fixed register allocation bug.
12589 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
12591 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
12593 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
12595 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12598 (print_method_from_ip): also print source location information if
12601 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
12603 * mini.c (mono_find_block_region): bug fix in region code
12604 (mini_method_compile): enable removing unreachable code again, but
12605 only in methods without exception clauses.
12607 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
12609 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
12610 Implemented arglist opcode and handling of TypedReference type.
12611 Fixed x86 call convention when a structure is returned.
12612 Minimal support for calling static vararg methods.
12614 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
12616 * mini.c (mini_method_compile): always remove unreachable code,
12617 because the code in them may be inconsistent (access to dead
12618 variables for example).
12620 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
12622 * driver.c, debug-mini.c: warning fixes.
12624 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
12626 * Makefile.am, jit.h, mini.h: install header for embedding mono.
12628 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
12630 * mini.c: thread-static fields are registered in mono_class_vtable(),
12631 so ensure the function is called before checking for them.
12633 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
12635 * mini.c (optimize_branches): fix for bug 43586
12637 * jit-icalls.c (mono_llmult_ovf): added an additional check for
12638 overflow (fixes Bug #43639)
12640 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
12642 * mini.c, objects.cs: allow the use of stobj for primitive types.
12644 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
12646 * mini.c: be less strict about argument checking until we support
12647 running the verifier.
12649 2003-05-27 Nick Drochak <ndrochak@gol.com>
12651 * basic-long.cs: tests for (ulong)int * (ulong)int also
12652 * mini.c: use the same trick for (ulong)int * (ulong)int
12654 2003-05-27 Nick Drochak <ndrochak@gol.com>
12656 * basic-long.cs: add regression test for (long)int * (long)int
12657 * cpu-pentium.md: add op_bigmul specification
12658 * inssel-long32.brg: add OP_BIGMUL rule
12659 * mini-ops.h: add OP_BIGMUL
12660 * mini-x86.c: register allocator: handle case where src1 needs to be
12662 * mini.c: substitute special BIGMUL opcode in the tree for
12663 (long)int * (long)int
12665 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
12667 * jit-icalls.c: call the type ctor on field access if needed.
12669 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
12671 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
12672 to a method (including results of ldelema, bug#43207).
12674 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
12676 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
12677 colors to show exception handler blocks.
12679 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
12680 (fix for pinvoke7.cs).
12682 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
12684 * mini.h, mini.c: ensure correct initialization order for types that
12685 require it. Prepare for lazy compilation of jit icall wrappers.
12686 Provide a name for opcode emulation to reduce unneeded mallocing.
12688 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
12690 * mini-x86.c: better register restoring code and profiling
12691 support for tail calls.
12693 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
12695 * mini.h, driver.c: prepare for leaf methods optimization.
12697 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
12699 * mini.c: get targets of branches before converting a method.
12701 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
12703 * mini.c (optimize_branches): added some experimental code (disbaled)
12705 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
12707 * mini.c (optimize_branches): fix branch to branch optimization
12709 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
12711 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
12713 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
12715 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
12718 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
12720 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
12721 enable use of interface variables again.
12723 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
12724 I1 to registers because there is no simply way to sign extend 8bit
12725 quantities in caller saved registers on x86.
12727 * inssel-float.brg: set costs of some rules to 2 so
12728 that monobure always select the arch. specific ones if supplied,
12729 regardless of the order we pass the files to monoburg.
12731 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
12733 * mini.c, mini-x86.c: since the magic trampoline for jumps
12734 can't patch the code directly, we do it as soon as the
12735 method gets compiled.
12737 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
12739 * mini-x86.c, mini.h: introduce a new patching method
12740 to support CEE_JMP and tail calls.
12741 * mini.c: obey tail.call. Don't precompile methods target
12743 * tramp-x86.c: new trampoline code to handle methods
12744 reached through a jump.
12746 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
12748 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
12749 bit values to registers
12751 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
12753 * mini.c (mono_compile_get_interface_var): share interface
12754 variables if possible.
12756 2003-05-16 Martin Baulig <martin@ximian.com>
12758 * debug-mini.c (mono_init_debugger): New function to initialize
12759 the debugger. This is not in the debugger since it needs to
12760 access some of mini's internals.
12762 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
12764 * mini.c (mono_method_to_ir): inlining fixes/cleanups
12766 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
12768 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
12769 for value type handling.
12771 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
12773 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
12774 (mono_method_check_inlining): enable inlining of all kinds of wrappers
12776 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
12778 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
12779 the constructor through a proxy.
12781 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
12783 * jit-icalls.c, inssel.brg: fixes to array element address
12786 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
12788 * mini-x86.c (is_regsize_var): allocate pointer to registers
12790 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
12792 * driver.c: fixed typo, added intrins to the set of optimizations
12793 tested with regressions.
12795 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
12797 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
12798 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
12801 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
12803 * inssel.brg: remove some common pop instructions without side effects
12805 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
12807 * inssel-x86.brg: fixed thinko in int to double conversions.
12809 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
12811 * mini.c, jit-icalls.c: added runtime thread-static variable support.
12813 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
12815 * inssel-long32.brg: two more missing instructions.
12817 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
12819 * mini.c (mono_emit_call_args): set the cil_code for all arguments
12820 if not already set.
12822 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
12824 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
12827 * basic-float.cs: Added tests for negative zero.
12829 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
12831 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
12832 a couple of missing operations for long casts, with test cases.
12834 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12836 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
12838 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
12840 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
12841 code size estimation.
12843 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
12845 * mini.c (mono_jit_create_remoting_trampoline): make it work with
12846 abstract methods (fix bug 42542)
12848 * aot.c: add ability to handle array types
12850 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
12852 * mini.c: Call the _specific versions of the object allocation
12853 functions if possible.
12855 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
12857 * driver.c: call setlocale ().
12859 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
12861 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
12864 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
12866 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
12868 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
12869 wrappers (fix bug 42122)
12871 2003-05-04 Martin Baulig <martin@ximian.com>
12873 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
12875 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
12876 s/mini_set_defaults/mono_set_defaults/g.
12878 2003-05-04 Martin Baulig <martin@ximian.com>
12880 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
12882 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
12884 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
12885 (reported by Don Roberts).
12887 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
12889 * mini.c: temporarily work around two bugs for this release.
12891 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
12893 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
12894 that contains -export-dynamic and it makes using the ld script
12896 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
12898 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
12900 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
12903 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
12905 * mini.c: make sure leave calls all the needed finally blocks,
12906 even when the target jumps out of multiple exception clauses.
12908 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
12910 * ldscript, Makefile.am: add linker script to reduce the number of
12911 exported symbols (should also fix the issues with libwine defining
12912 some of the same symbols in io-layer).
12914 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
12916 * driver.c (mini_main): Avoid assertion when no file name is given on
12919 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
12921 * driver.c: added --version/-V command line option.
12922 Added the inline optimization in the regression tests.
12924 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
12926 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
12927 to the type in the method signature (fixes bug#42134).
12929 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
12931 * mini.c: when inlining, check this is not null only when needed (bug #42135).
12933 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
12935 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
12937 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12939 * driver.c: fixed bug #42100.
12941 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
12943 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
12945 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
12947 * mini.c: moved most of the code required to do inlining to its own
12948 function so it can be reused. Inline also ctors if appropriate.
12950 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
12952 * Makefile.am: Link with -export-dynamic so shared libs loaded by
12953 the runtime can call mono API functions.
12955 2003-04-27 Martin Baulig <martin@ximian.com>
12957 * debug-mini.c (mono_debug_init_method): Added
12958 `guint32 breakpoint_id' argument; if the method has a breakpoint,
12959 send a notification to the debugger.
12961 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
12962 running in the Mono Debugger, just pass the breakpoint number to
12963 mono_debug_init_method().
12965 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
12967 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
12969 * mini.c: allow some more unsafe compares.
12971 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
12973 * mini-x86.c, Makefile.am: make distcheck works (partially from
12974 a patch by Richard Lee <r.h.lee@attbi.com>).
12975 * regset.c, regset.h: removed, they are unused.
12977 2003-04-25 Dick Porter <dick@ximian.com>
12979 * driver.c: Usage reports the name as 'mono' not 'mini'
12980 * exceptions-x86.c: Build and run on freebsd
12982 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
12984 * Makefile.am: install the program with the 'mono' name and
12985 the library as libmono instead of mini and libmini.
12987 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
12989 * driver.c: provide the APIs for the embedding interface of the old jit.
12991 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
12993 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
12995 2003-04-23 Martin Baulig <martin@ximian.com>
12997 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
12999 * driver.c: Added `--debug' command line argument to enable
13002 2003-04-23 Martin Baulig <martin@ximian.com>
13004 * debug.[ch]: Removed. The code is now in
13005 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
13007 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
13010 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
13012 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
13014 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13017 (mini_cleanup): moved mono_runtime_cleanup call after the call to
13018 mono_domain_finalize.
13019 (mini_method_compile): use mono_method_profile* if the the option is
13022 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
13024 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
13025 methods with their wrapper.
13027 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
13028 methods with their wrapper.
13030 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
13033 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
13036 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
13039 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
13041 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
13043 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
13045 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
13046 of the mempool. This is slightly faster and uses less memory
13048 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
13050 * mini.c: avoid O(n) allocation for variables.
13052 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
13054 * mini.c: handle items on the stack after inlining methods.
13056 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
13058 * mini.c: make the method->opcode optimization dependent
13059 on MONO_OPT_INSTRINS and do it lazily.
13061 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
13063 * driver.c: print overall results at the end of regression run.
13065 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
13067 * inssel.brg: don't overwrite symbolic registers.
13069 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
13071 * inssel-x86.brg: fix conversion from long to float.
13073 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
13075 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
13077 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
13079 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
13081 * driver.c: Added --print-vtable option as in the old JIT.
13083 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
13085 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
13087 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
13089 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
13091 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
13093 * mini.c regalloc.c regalloc.h: Fix memory leak.
13095 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
13097 * aot.c (mono_aot_get_method): register all used strings
13099 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
13101 * mini.c: always intern strings references with ldstr at compile time.
13103 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
13105 * Makefile.am: add BUILT_SOURCES.
13107 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
13109 * driver.c: give a better error message when the assembly to execute
13110 doesn't have an entry point.
13112 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
13114 * Makefile.am: added hack for automake
13116 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
13119 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
13121 22003-04-07 Martin Baulig <martin@ximian.com>
13123 * Makefile.am: Added Makefile.am.
13125 * debugger-main.c: Removed, this is now in the debugger where it
13128 * mini.pc.in: Call this package `mini' for the moment.