2009-06-15 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mono / mini / ChangeLog
index fbac9ae4ea1f347562d6d08a739ebc8edd171288..413f76f89a82efed515ac05215887c77ad487bbf 100644 (file)
@@ -1,3 +1,231 @@
+2009-06-15  Zoltan Varga  <vargaz@gmail.com>
+
+       * exceptions-mips.c (mono_arch_get_throw_exception_by_name): Fix the
+       mips build.
+
+2009-06-13  Zoltan Varga  <vargaz@gmail.com>
+
+       * mini.h (struct MonoBasicBlock): Add 'has_jump_table' and 
+       'has_call_handler' fields.
+
+       * method-to-ir.c (mono_method_to_ir): Set them if needed.
+
+       * branch-opts.c (mono_merge_basic_blocks): Avoid iterating through the
+       first bblock if not needed. Fixes #512790.
+       
+2009-06-11  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c (mono_compile_assembly): Fix a warning.
+       
+       * aot-compiler.c (add_wrappers): Don't emit remoting-invoke-with-check
+       wrappers.
+
+       * aot-runtime.c (mono_aot_get_method): Use the original method's code for
+       remoting-invoke-with-check wrappers, which are not needed when running with
+       full-aot, since it doesn't support remoting.
+       
+2009-06-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c (emit_got_info): Don't emit offsets for the plt got entries.
+
+       * aot-compiler.c aot-runtime.c: Don't emit the first got offset in the
+       method info, it is not used anymore.
+
+       * mini.h: Bump AOT file format version.
+       
+       * aot-compiler.c (arch_emit_plt_entry): Make the arm plt entries one
+       word smaller.
+
+       * aot-runtime.c (mono_aot_get_plt_info_offset): Update after the
+       change above.
+       
+       * tramp-arm.c (mono_arch_patch_plt_entry): Ditto.
+
+       * mini.h: Bump AOT file format version.
+       
+2009-06-10  Zoltan Varga  <vargaz@gmail.com>
+
+       * image-writer.c (asm_writer_emit_symbol_diff): Disable the 
+       TARGET_ASM_APPLE stuff for now, as it doesn't seem to work on the
+       iphone.
+
+       * mini-arm.c (mono_arch_output_basic_block): Fix the implementation
+       of CKFINITE and FBGE for VFP.
+
+2009-06-09  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c: Don't align code to 16 bytes on arm.
+       
+       * aot-compiler.c (emit_method_code): Emit the unbox trampolines right
+       before the methods they belong to.
+
+       * aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
+       the full-aot case if possible, since the trampoline will be called right 
+       away.
+
+       * aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
+       trampolines to 1024 after the change above.
+
+       * aot-compiler.c (arch_emit_specific_trampoline): Rework the arm
+       trampoline to save 8 bytes per trampoline.
+
+       * tramp-arm.c (mono_arch_create_trampoline_code_full): Update after the
+       change above.
+
+2009-06-08  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c: Use acfg->temp_prefix instead of .L to prefix labels.
+
+2009-06-08  Martin Baulig  <martin@ximian.com>
+
+       * debug-mini.c
+       (MonoDebuggerExceptionAction): Moved into debug-mini.h.
+       (_mono_debugger_throw_exception): Don't make this static.
+       (_mono_debugger_unhandled_exception): Likewise.
+       (mono_debugger_handle_exception): Moved to mini-exceptions.c
+
+       * debug-mini.c
+       (MonoDebuggerExceptionAction): Moved here from debug-mini.c.
+       (_mono_debugger_throw_exception): Add function prototype.
+       (_mono_debugger_unhandled_exception): Likewise.
+
+       * mini-exceptions.c
+       (mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
+       arg; return the first exception handler if the exception is caught
+       and we're running inside the debugger.
+       (mono_debugger_handle_exception): Moved here from debug-mini.c;
+       improve exception handle inside runtime-invoke, check whether the
+       exception is actually caught in the method being invoked and not
+       by the runtime-invoke-wrapper.
+
+2009-06-08  Zoltan Varga  <vargaz@gmail.com>
+
+       * image-writer.c: Improve support for the osx assembler.
+
+       * dwarfwriter.c: Avoid the usage of subsections if the assembler doesn't
+       support them.
+
+2009-06-07  Zoltan Varga  <vargaz@gmail.com>
+
+       * image-writer.c (append_subsection): Don't align subsections of the
+       debug_line section as a workaround.
+
+       * dwarfwriter.c: Emit line number info in the AOT case as well.
+
+2009-06-06  Steven Munroe  <munroesj@us.ibm.com>
+
+       This patch is contributed under the terms of the MIT/X11 license
+
+       * mini-ppc.c (mono_arch_emit_exceptions): Change assert to
+       code_len <= code_size
+
+2009-06-06  Zoltan Varga  <vargaz@gmail.com>
+
+       * mini-mips.c (mips_emit_exc_by_name): Fix the mips build.
+
+2009-06-04  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c aot-runtime.c: Delete references to static rgctx
+       invoke wrappers, we now use trampolines instead.
+
+2009-06-04  Mark Probst  <mark.probst@gmail.com>
+
+       * mini-darwin.c: The exception thread must not be registered with
+       the GC.
+
+2009-06-04  Mark Probst  <mark.probst@gmail.com>
+
+       * mini-gc.c: Disable the code because it makes SGen crash.
+
+2009-06-03  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c (mono_compile_assembly): Handle file open errors gracefully
+       instead of asserting.
+
+2009-05-31  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c (mono_compile_assembly): Move the creation of the
+       output file after the code has been compiled.
+
+2009-05-30  Zoltan Varga  <vargaz@gmail.com>
+
+       * tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Fix 64 bit support.
+
+2009-05-31  Zoltan Varga  <vargaz@gmail.com>
+
+       * aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
+       entries distinction to simplify the code.
+
+       * mini.h: Bump AOT file format version.
+       
+2009-05-28  Zoltan Varga  <vargaz@gmail.com>
+
+       * objects.cs: Fix the signature of one of the tests.
+
+       * mini.c (mini_create_ftnptr): New helper function, moved here from
+       object.c.
+       (mini_get_addr_from_ftnptr): Ditto.
+       (mini_init): Install the new helpers.
+
+2009-05-28  Martin Baulig  <martin@ximian.com>
+
+       Correctly initialize the debugger when embedding Mono.
+
+       * mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
+       `MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
+       see documentation in mini_debug_running_inside_mdb().
+
+       * debug-debugger.c
+       (mini_debug_running_inside_mdb): New function to check whether
+       we're running inside mdb.
+
+       * mini.c (mini_init): Call mini_debugger_init() if we're running
+       inside the debugger.
+
+       * driver.c (mono_main): Moved the call to mini_debugger_init()
+       into mini_init() to make this work when embedding Mono.
+
+       * debug-debugger.c (mini_debugger_init): Warn about duplicate
+       calls to mini_debugger_init().
+
+       * mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
+       mono_debugger_main() -> mini_debugger_main() and put them inside a
+       `MONO_DEBUGGER_SUPPORTED' conditional.
+
+2009-05-26 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * mini-trampolines.c: Kill mono_find_delegate_trampoline_by_addr as
+       this is no longer in use.
+       * mini.h: Same.
+
+2009-05-26  Zoltan Varga  <vargaz@gmail.com>
+
+       * mini-sparc.c (add_outarg_load): Fix the sparc build.
+
+       * aot-compiler.c (emit_method_code): Always write out C style symbols for
+       methods.
+
+2009-05-27  Martin Baulig  <martin@ximian.com>
+
+2009-05-25 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * mini-x86.c (mono_arch_output_basic_block): Fix the precision of
+       long_conv_to_r_un to 64 bits.
+
+       * cpu-x86.md: Increase the instruction size due to the changes.
+
+       * iltests.il.in: Add regression test.
+
+       Fixes #467201.
+
+2009-05-25 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * objects.cs: Move the previous test from basic.cs to here.
+
+2009-05-25 Rodrigo Kumpera  <rkumpera@novell.com>
+
+       * basic.cs: Add regression test for #506915.
+
 2009-05-25 Rodrigo Kumpera  <rkumpera@novell.com>
 
        * method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj