1 2010-04-06 Zoltan Varga <vargaz@gmail.com>
3 * mini-llvm.c: Update after the memset/memcpy intrinsics changes in LLVM SVN.
5 2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
7 * method-to-ir.c (mono_method_to_ir): Handle call to virtual final methods
8 of marshalbyref classes.
12 2010-04-05 Rodrigo Kumpera <rkumpera@novell.com>
14 * aot-compiler.c (emit_exception_debug_info): Encode try holes
17 * aot-runtime.c (decode_exception_debug_info): Decode try holes
20 * mini.h: Increase AOT version.
22 2010-04-04 Andreas Faerber <andreas.faerber@web.de>
24 * mini-x86.h: Only enable soft debugger when using sigaction or on
25 Windows. Fixes build on Haiku (lacks siginfo_t).
27 Code is contributed under MIT/X11 license.
29 2010-04-02 Andreas Faerber <andreas.faerber@web.de>
31 * mini.h, mini-x86.h: Suppress sigaction for Haiku, add support for
32 BeOS-style signal handlers.
34 Code is contributed under MIT/X11 license.
36 2010-04-02 Zoltan Varga <vargaz@gmail.com>
38 * mini-posix.c (sigusr1_signal_handler): Fix openbsd support.
40 2010-04-01 Rodrigo Kumpera <rkumpera@novell.com>
42 * mini-exceptions.c: Fix win32 build.
44 2010-04-01 Mark Probst <mark.probst@gmail.com>
46 * mini.c, driver.c: Call mono_gc_base_init() before
49 2010-04-01 Sebastien Pouliot <sebastien@ximian.com>
51 * method-to-ir.c (ensure_method_is_allowed_to_[access_field|
52 call_method]): Delegate the actual work in security-core-clr.c
55 2010-04-01 Zoltan Varga <vargaz@gmail.com>
57 * decompose.c (mono_decompose_opcode): Set the cfg exception if the unsupported
58 float conv.ovf.un opcodes are encountered, instead of asserting later.
61 2010-04-01 Zoltan Varga <vargaz@gmail.com>
63 * decompose.c (mono_decompose_opcode): Add OP_ICONV_TO_U4_UN as a no-op.
65 * iltests.il.in: Add a test.
67 2010-04-01 Zoltan Varga <vargaz@gmail.com>
69 * mini-amd64.c (mono_arch_emit_call): Fail compilation if an argument is too
72 * method-to-ir.c: Call CHECK_CFG_EXCEPTION after emitting a call.
74 2010-04-01 Zoltan Varga <vargaz@gmail.com>
76 * method-to-ir.c (handle_ccastclass): Call save_cast_details (). Fixes
79 2010-03-31 Rolf Bjarne Kvinge <RKvinge@novell.com>
81 * mini-trampolines.c: Surround mono_handler_block_guard_trampoline and
82 mono_create_handler_block_trampoline with the proper #ifdef so that it
85 2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
87 * mini-exceptions.c: Introduce mono_walk_stack_full, which
88 allows to select if it's new or old context that is passed to
91 * mini-exceptions.c (mono_handle_exception_internal): Handle the
92 case when executing a guarded handler from the EH machinery.
94 * mini-exceptions.c (mono_install_handler_block_guard): New function
95 responsible for checking for handler blocks, installing the guard and
98 * mini-posix.c (sigusr1_signal_handler): Call mono_install_handler_block_guard
99 to check for handler blocks and skip interruption logic if one was found.
101 * mini-trampolines.c (mono_handler_block_guard_trampoline): Function called
102 by the handler block guard trampoline. Resumes interruption by raising the
103 pending ThreadAbortException.
105 * mini.c (create_jit_info): Calculate the end address of a finally block.
107 * mini-x86.c (mono_arch_install_handler_block_guard): Patch the return address
108 of a finally block to a specified address and return the old one.
110 * tramp-x86.c (mono_arch_create_handler_block_trampoline): The handler block
111 trampoline patches the original return address and calls the trampoline function.
113 2010-03-30 Zoltan Varga <vargaz@gmail.com>
115 * mini-trampolines.c (mono_aot_trampoline): Remove some dead code.
117 * aot-runtime.c (mono_aot_patch_plt_entry): New helper function, which only
118 does the patching if the callee is in the same domain.
120 * aot-runtime.c mini-trampolines.c: Call mono_aot_patch_plt_entry instead
121 of mono_arch_patch_plt_entry ().
123 2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
125 * mini.c (create_jit_info): Fix try block hole length encoding.
127 2010-03-30 Rodrigo Kumpera <rkumpera@novell.com>
129 * mini.c (create_jit_info): Emit saner debug spew. Now it doesn't
130 duplicate information and print offsets instead of absolute addresses.
132 2010-03-29 Zoltan Varga <vargaz@gmail.com>
134 * debugger-agent.c (jit_end): Send type loads for types loaded before the VMStart
135 event is sent. Fixes #591733.
137 2010-03-26 Zoltan Varga <vargaz@gmail.com>
139 * mini-posix.c (SIG_HANDLER_SIGNATURE): Handle the case when ctx is NULL on
142 2010-03-26 Zoltan Varga <vargaz@gmail.com>
144 * debugger-agent.c (mono_debugger_agent_init): Set the GC type of the
145 thread_to_tls hash table.
147 * image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
148 section. Fixes #591000.
150 2010-03-26 Andreas Faerber <andreas.faerber@web.de>
152 * Makefile.am (version.h): Check for pure .git directory only,
153 fixes SVN revision when using git without git-svn.
155 Contributed under MIT/X11 license.
157 2010-03-26 Zoltan Varga <vargaz@gmail.com>
159 * aot-runtime.c: Apply some openbsd changes from openbsd ports.
161 2010-03-24 Rodrigo Kumpera <rkumpera@novell.com>
163 * basic-simd.cs: Test for vector x scalar binary operators.
165 2010-03-24 Rodrigo Kumpera <rkumpera@novell.com>
167 * simd-intrincs.c (simd_intrinsic_emit_binary): Support binary
168 intrinsics with expanded scalar arguments.
170 2010-03-24 Rodrigo Kumpera <rkumpera@novell.com>
172 * mini-exceptions.c (get_exception_catch_class): Non catch clauses
173 don't have an exception class, so don't decode it. This would crash
176 2010-03-24 U-anarquia\miguel <miguel@anarquia>
178 Make sure that trunk builds with DISABLE_JIT, an update to the
181 * mini.c (mini_get_shared_method): this code seems to be necessary
182 regardless of whether DISABLE_JIT has been defined.
184 (mono_jit_compile_method_inner): it seems that this method is
185 required even in full AOT mode, so ifdef out only the pieces that
186 try to genrate code (the body of code that applies patches to the
189 (mini_method_compile): do not compile when using DISABLE_JIT.
191 * mini-ppc.c (mono_arch_get_allocatable_int_vars)
192 (mono_arch_output_basic_block, mono-arch_emit_exceptions): Do not
193 compile when DISABLE_JIT is set.
195 2010-03-24 Mark Probst <mark.probst@gmail.com>
197 * mini.c (mono_create_tls_get): Only create a TLS operation if the
198 arch really supports it.
200 2010-03-24 Mark Probst <mark.probst@gmail.com>
202 * mini-x86.c, mini-x86.h, mini.c: CEE_MONO_TLS support for Darwin/x86.
204 2010-03-23 Neale Ferguson <neale@sinenomine.net>
206 * exceptions-s390x.c: Add support for
207 mono_arch_get_throw_corlib_exception and fix throw by name.
209 * mini-s390x.c: Add IMT support; Fix stack parameter passing
210 logic (especially for varargs); Correct localloc sizing; Add
211 mono_arch_get_this_arg_from_call and
212 mono_arch_get_this_arg_from_call.
214 * mini-s390x.h: Add support for facility list extraction;
215 Correct/update MONO_ARCH_xxx settings.
217 * mini-s390.c: Minor corrections to instruction output for
218 varargs. No IMT implementation - I think it's time to deprecate
219 s390 and just leave s390x.
221 * tramp-s390x.c: Correct creation of trampoline instruction
224 * cpu-s390x.md: Update some instruction lengths
226 2010-03-23 Zoltan Varga <vargaz@gmail.com>
228 * mini-generic-sharing.c (fill_in_rgctx_template_slot): Remove an assert which
229 can be hit with partial sharing.
231 * mini-generic-sharing.c (get_shared_class): Handle partially shared methods
232 in non-shared classes correctly.
233 (generic_inst_is_sharable): Allow all primitive types in partial sharing.
234 Turn on partial sharing.
236 2010-03-23 Zoltan Varga <vargaz@gmail.com>
238 * mini-amd64.h: Put back MONO_ARCH_NOMAP32BIT for OpenBSD which was removed
241 2010-03-23 Zoltan Varga <vargaz@gmail.com>
243 * method-to-ir.c (mono_method_to_ir): Handle the failure of
244 mono_method_signature ().
246 * mini-trampolines.c (mono_delegate_trampoline): Ditto.
248 * mini.c (mini_method_compile): Get the signature of cfg->method early with
249 error checking, so later calls do not need error checking.
251 2010-03-22 Zoltan Varga <vargaz@gmail.com>
253 * exceptions-amd64.c: Add support for OpenBSD which has no UCONTEXT_GREGS.
255 * mini-amd64.h: Enable MONO_ARCH_USE_SIGACTION on OpenBSD as well.
257 2010-03-22 Rodrigo Kumpera <rkumpera@novell.com>
259 * mini-exceptions.c (mono_handle_exception_internal): Don't
260 check try_end for archs different than s390.
262 * mini.c (create_jit_info): Don't crash if the finallt block is the
265 2010-03-22 Rodrigo Kumpera <rkumpera@novell.com>
267 * driver.c (mono_main): Don't free global codeman under linux since
268 glic now peeks at code on stack for more archs than just amd64.
270 Mon Mar 22 18:09:09 CET 2010 Paolo Molaro <lupus@ximian.com>
272 * mini.c, method-to-ir.c: changes to support compressed interface
275 2010-03-22 Zoltan Varga <vargaz@gmail.com>
277 * mini-x86.h: Applied patch from Robert Nagy (Robert@openbsd.org).
278 Use sigaction on OpenBSD too.
280 2010-03-22 Zoltan Varga <vargaz@gmail.com>
282 * debugger-agent.c (event_req_matches_assembly): Handle request modifiers too.
284 2010-03-21 Andreas Faerber <andreas.faerber@web.de>
286 * debugger-agent.c: #include sys/select.h for fd_set.
288 Code is contributed under MIT/X11 license.
290 2010-03-21 Zoltan Varga <vargaz@gmail.com>
292 * mini.c (SIG_HANDLER_SIGNATURE): Fix the build on platforms without sigaction
295 2010-03-21 Zoltan Varga <vargaz@gmail.com>
297 * mini-ppc.c (mono_arch_emit_exceptions): Avoid an assert in ppc_patch () for
298 some large methods with lots of exception handlers. Fixes #440924.
300 Sat Mar 20 11:56:24 CET 2010 Paolo Molaro <lupus@ximian.com>
302 * method-to-ir.c: remove code duplication for interface checks.
304 2010-03-19 Zoltan Varga <vargaz@gmail.com>
306 * debugger-agent.c (clear_event_requests_for_assembly): New helper function.
307 (assembly_unload): Clear all event requests referencing the to-be unloaded
311 Fri Mar 19 16:45:20 CET 2010 Paolo Molaro <lupus@ximian.com>
313 * mini.h, mini-exceptions.c: restore the state of the stack
314 guard page permissions.
316 2010-03-19 Zoltan Varga <vargaz@gmail.com>
318 * mini-trampolines.c (common_call_trampoline): Remove the condition guarding the
319 call site patching code, it doesn't appear to be needed.
321 2010-03-19 Zoltan Varga <vargaz@gmail.com>
323 * mini-generic-sharing.c: Add infrastructure for partial sharing, ie.
324 sharing generic methods whose type arguments are a mix of reference and
325 non-reference types. Not yet turned on.
327 * mini.c (mini_get_shared_method): New helper function to return
328 the method which will be compiled/registered in the JIT tables when doing
330 (mono_domain_lookup_shared_generic): Moved to mini.c from mini-generic-sharing.c,
331 use mini_get_shared_method ().
333 * mini.c (mini_method_compile): Register the same method which is compiled when
334 doing generic sharing.
336 * mini.c aot-compiler.c aot-runtime.c: Add support for partial sharing.
338 * generics.cs: Add partial sharing tests.
340 2010-03-17 Jerry Maine <crashfourit@gmail.com>
342 * mini.h : Changed the SIMD_VERSION* enum values to match those in Mono.Simd.AccelMode.
343 Add an enum value that or's all possable values together. Add an enum value
344 that marks the end of the used bit indexes.
346 * mini-amd64.c : Make changes to match the changes in mini.h
348 * mini-x86.c : Make changes to match the changes in mini.h
350 * simd-intrinsics.c : Reorder the SimdIntrinsc struct to add more bits to
351 simd_version to support more simd versions. Changed the name of
352 simd_version to simd_version_flags to make it more intuitive that
353 it now contains bit flags. Reordered the *_intrinsics arrays to
354 match the changes above. Changed emit_intrinsics() to use the new
355 setup mentioned above.
357 Code is contributed under MIT/X11 license.
359 2010-03-17 Rodrigo Kumpera <rkumpera@novell.com>
361 * mini-*.c (mono_arch_output_basic_block): Record try block holes on all
362 remaining archs. Alpha and hppa maintainers, please stand up.
364 2010-03-17 Zoltan Varga <vargaz@gmail.com>
366 * mini-ppc.c (mono_arch_build_imt_thunk): Always save and restore r11 since it
367 is needed even when fail_tramp!=NULL.
369 2010-03-17 Zoltan Varga <vargaz@gmail.com>
371 * debugger-agent.c (insert_breakpoint): Write a log message.
373 2010-03-16 Rodrigo Kumpera <rkumpera@novell.com>
375 * iltests.il.in: Add a few tests for LEAVE going over multiple
378 2010-03-16 Rodrigo Kumpera <rkumpera@novell.com>
380 * mini-x86.c (mono_arch_output_basic_block): Record try block holes.
382 2010-03-16 Rodrigo Kumpera <rkumpera@novell.com>
384 * mini.h (MonoBasicBlock): Add native_length field.
385 * mini.h (MonoCompile): Add try_block_holes field.
386 * mini.h (MonoInst): Add exception_clause pointer to
389 * mini.c (mono_codegen): Calculate MonoBasicBlock::native_length.
390 * mini.c (mono_cfg_add_try_hole): New function to register possible
392 * mini.c (create_jit_info): Fill in the holes information.
394 * mini-exceptions.c: Verify for holes when checking if an IP is covered
397 * method-to-ir.c: Add the EH clause to the CALL_HANDLE instruction.
399 Tue Mar 16 13:16:16 CET 2010 Paolo Molaro <lupus@ximian.com>
401 * jit-icalls.c: adjusted for the array API changes.
403 2010-03-16 Zoltan Varga <vargaz@gmail.com>
405 * iltests.il.in: Disable the fconv_to_i test on sparc too.
407 2010-03-16 Zoltan Varga <vargaz@gmail.com>
409 * debugger-agent.c: Simplify the way breakpoints are processed by removing
410 the 'pending' flag. This fixes support for appdomains too.
413 Mon Mar 15 18:25:49 CET 2010 Paolo Molaro <lupus@ximian.com>
415 * mini-amd64.c, mini-ia64.c: remove direct access to method->header.
417 2010-03-12 Zoltan Varga <vargaz@gmail.com>
419 * simd-intrinsics.c (simd_intrinsic_emit_getter): Don't emit shuffle opcodes
420 when using LLVM, LLVM generates it itself when needed.
422 * mini-llvm-cpp.cpp (mono_llvm_build_aligned_load): New helper function.
424 * mini-llvm.c: Use an unaligned load for OP_LOADX_MEMBASE. Add zero extension
425 to some OP_EXTRACT_ opcodes. Fix the naming of some sse intrinsics. Fix
428 2010-03-11 Zoltan Varga <vargaz@gmail.com>
430 * tramp-x86.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code' for
431 the pc instead of 'buf'. Fix the call to mono_arch_flush_icache ().
432 (mono_arch_create_monitor_exit_trampoline_full): Ditto.
434 2010-03-11 Martin Baulig <martin@ximian.com>
436 * debugger-agent.c (type_commands): Add NULL check to
437 `CMD_TYPE_GET_SOURCE_FILES'.
439 2010-03-09 Zoltan Varga <vargaz@gmail.com>
441 * mini-ppc.c (mono_arch_decompose_opts): Fix OP_ICONV_TO_R_UN when cross-compiling.
443 2010-03-09 Zoltan Varga <vargaz@gmail.com>
445 * mini-codegen.c (mono_peephole_ins): Fix the OP_FMOVE optimization. Fixes
448 * iltests.il.in: Add a test.
450 2010-03-05 Martin Baulig <martin@ximian.com>
452 Add support for aborting invocations.
455 (InvokeData): Added `InvokeData *last_invoke'.
456 (DebuggerTlsData): Renamed `invoke' into `pending_invoke' and
457 added a new `invoke' field to keep the `InvokeData *' throughout
459 (ErrorCode): Added `ERR_NO_INVOCATION'.
460 (CmdVM): Added `CMD_VM_ABORT_INVOKE'.
461 (mono_debugger_agent_handle_exception): Don't report any exception
462 if an abort was requested.
463 (invoke_method): Store the `InvokeData *' in `tls->invoke'; reset
464 a thread abort if necessary.
465 (vm_commands): Implement `CMD_VM_ABORT_INVOKE'.
467 2010-03-08 Rodrigo Kumpera <rkumpera@novell.com>
469 * method-to-ir.c: Store the initial basic block returned by mono_basic_block_split
470 so we can release the whole list and not just the first one. Free
471 it in more places as well.
473 2010-03-08 Rodrigo Kumpera <rkumpera@novell.com>
475 * method-to-ir.c: Revert r153222 as it doesn't belong here.
477 Mon Mar 8 17:58:26 CET 2010 Paolo Molaro <lupus@ximian.com>
479 * mini.h, *.c: prepare for MonoMethodHeader to become a transient entity.
481 Mon Mar 8 17:35:26 CET 2010 Paolo Molaro <lupus@ximian.com>
483 * driver.c: report also other misc build options.
485 2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
487 * method-to-ir.c: Generate better code for the NewObject
490 2010-03-07 Zoltan Varga <vargaz@gmail.com>
492 * branch-opts.c (mono_if_conversion): Disable one of the cases when deadce
493 is disabled. Fixes #582322.
495 * iltests.il.in: Add a test.
497 2010-03-06 Zoltan Varga <vargaz@gmail.com>
499 * tramp-amd64.c (mono_arch_create_monitor_exit_trampoline_full): Delegate
500 the handling of obj->synchronization == null and owner != current thread to
501 mono_monitor_exit ().
503 * tramp-x86.c (mono_arch_create_monitor_exit_trampoline_full): Ditto.
506 Sat Mar 6 18:14:15 CET 2010 Paolo Molaro <lupus@ximian.com>
508 * mini.c: change the way emulated opcode info is stored and save about
509 4 KB of runtime memory.
511 2010-03-04 David S. Miller <davem@davemloft.net>
513 * mini-sparc.h: Always use MONO_ARCH_USE_SIGACTION. Linux kernels
514 that don't provide the siginfo in the second signal handler argument
515 are buggy, and this has been fixed for years.
516 * mini.h (GET_CONTEXT): Remove __sparc__ special case.
517 (SIG_HANDLER_SIGNATURE, SIG_HANDLER_PARMS): Likewise.
519 2010-03-04 Zoltan Varga <vargaz@gmail.com>
521 * aot-runtime.c (find_symbol): Fix a leak.
522 (decode_patch): Ditto.
524 2010-03-04 Zoltan Varga <vargaz@gmail.com>
526 * mini.h (MONO_INST_IS_TEMP): Kill this unused define.
528 2010-03-04 Zoltan Varga <vargaz@gmail.com>
530 * mini.c (mono_resolve_patch_target): Fix an uninitialized variable.
532 Wed Mar 3 19:19:21 CET 2010 Paolo Molaro <lupus@ximian.com>
534 * method-to-ir.c: MONO_PROFILE_STRING_ALLOC is dead.
536 2010-03-03 Rodrigo Kumpera <rkumpera@novell.com>
538 * method-to-ir.c (mono_method_to_ir): Don't create a runtime vtable
539 to check for errors, it's enough to create the metadata open.
543 2010-03-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
546 * mini-exceptions.c: Add support for printing stack traces when handling
547 exceptions, and when printing exceptions thrown while tracing also print
548 the exception message.
550 2010-03-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
552 * trace.c: We need to parse exclude tokens ('-') before string tokens,
553 since the exclude token is a valid string character.
555 2010-03-02 Levi Bard <levi@unity3d.com>
557 * debugger-agent.c: Invalidate thread stacks on domain unload.
559 2010-03-02 Mark Probst <mark.probst@gmail.com>
561 * method-to-ir.c: Emit dummy_use for stored reference after write
562 barriers to make sure the object is pinned if the GC interrupts
563 before the write barrier is done.
565 2010-03-02 Zoltan Varga <vargaz@gmail.com>
567 * cpu-<ARCH>.md: dummy_use was missing src1:i.
569 2010-03-01 Zoltan Varga <vargaz@gmail.com>
571 * debugger-agent.c: Add a log message printing the protocol version.
573 2010-03-01 Zoltan Varga <vargaz@gmail.com>
575 * debugger-agent.c: Add a new command to communicate the protocol version used
576 by the client. This could be used to allow newer runtimes to communicate with
579 2010-03-01 Zoltan Varga <vargaz@gmail.com>
581 * debugger-agent.c (domain_commands): Add a new command to create a boxed value.
583 2010-03-01 Zoltan Varga <vargaz@gmail.com>
585 * debugger-agent.c (type_commands): Fix the setting of fields with a reference
588 Mon Mar 1 15:20:44 CET 2010 Paolo Molaro <lupus@ximian.com>
590 * mini-arm.c: make the arm cpu arch configurable with the
591 MONO_CPU_ARCH env var (for example: "armv4 thumb").
594 Mon Mar 1 14:48:35 CET 2010 Paolo Molaro <lupus@ximian.com>
596 * mini.c, mini.h, driver.c: added the --jitmap option to enable
597 support for the perf tool on Linux.
599 Mon Mar 1 14:43:55 CET 2010 Paolo Molaro <lupus@ximian.com>
601 * method-to-ir.c: make string.InsertenalSetChar() specialization
604 2010-03-01 Robert Jordan <robertj@gmx.net>
606 * Makefile.am: fix the non-static build.
608 2010-02-26 Zoltan Varga <vargaz@gmail.com>
610 * mini-generic-sharing.c: Move the contents of ../metadata/generic-sharing.c
613 2010-02-26 Robert Jordan <robertj@gmx.net>
615 * tasklets.c (continuation_store): Return from an error condition
618 2010-02-26 Martin Baulig <martin@ximian.com>
620 * debug-debugger.c (MonoDebuggerInfo): Added `abort_runtime_invoke'.
623 (MonoDebuggerThreadInfo): Added `internal_flags'.
624 (MonoDebuggerInternalThreadFlags): New enum.
625 (_mono_debugger_throw_exception): Don't signal the debugger if a
626 type abort was requested.
627 (_mono_debugger_unhandled_exception): Likewise.
628 (mono_debugger_abort_runtime_invoke): New method to abort an invocation.
629 (mono_debugger_runtime_invoke): If the debugger requested a thread
630 abort during the invocation, reset it here.
632 2010-02-26 Martin Baulig <martin@ximian.com>
634 * debug-mini.c (MonoDebuggerThreadInfo): Use `MonoInternalThread *'
635 instead of `MonoThread *'.
637 2010-02-25 Zoltan Varga <vargaz@gmail.com>
639 * aot-runtime.c (mono_aot_find_jit_info): Use a merge sort for sorting the
640 code offsets table, as it is mostly sorted.
642 2010-02-25 Zoltan Varga <vargaz@gmail.com>
644 * debugger-agent.c (do_invoke_method): Fix invoking of static methods on vtypes.
647 2010-02-25 Zoltan Varga <vargaz@gmail.com>
649 * driver.c (mono_main): Get rid of mono_setup_vtable_in_class_init.
651 Wed Feb 24 15:58:03 CET 2010 Paolo Molaro <lupus@ximian.com>
653 * Makefile.am: build the new ABI version of the libmono library.
654 * debugger-agent.c, mini.c: fix warnings with the new API.
655 * jit.h: don't depend on glib.h being included.
657 2010-02-24 Zoltan Varga <vargaz@gmail.com>
659 * method-to-ir.c (mono_method_to_ir): Implement AOT support for fast TLS access.
661 2010-02-24 Zoltan Varga <vargaz@gmail.com>
663 * method-to-ir.c (mono_method_to_ir): Implement support for fast access to
664 ThreadStatic variables.
666 2010-02-24 Zoltan Varga <vargaz@gmail.com>
668 * debugger-agent.c (notify_thread): Skip terminated threads, since their tls
669 data is not freed yet. Fixes #582460.
671 2010-02-23 Zoltan Varga <vargaz@gmail.com>
673 * debugger-agent.c: Add support for the caught/uncaught flags on exception
674 event requests. Bump protocol minor version.
676 2010-02-22 Zoltan Varga <vargaz@gmail.com>
678 * decompose.c (mono_decompose_long_opts): Handle OP_LCONV_TO_OVF_I8 here too.
680 2010-02-22 Zoltan Varga <vargaz@gmail.com>
682 * decompose.c (mono_decompose_opcode): Handle OP_LCONV_TO_OVF_I8. Fixes
685 * iltests.il.in: Add a test.
687 2010-02-22 Rodrigo Kumpera <rkumpera@novell.com>
689 * mini.c (inline_method): Check for loader errors.
691 2010-02-22 Rodrigo Kumpera <rkumpera@novell.com>
693 * mini.c (mono_method_check_inlining): Use !mono_method_get_header_summary
694 instead of mono_method_get_header as it doesn't decode locals
695 so the called method can have unresolved dependencies that will only
696 be satisfied after the current method is JIT'd.
700 2010-02-22 Zoltan Varga <vargaz@gmail.com>
702 * basic.cs (test_0_div_opt): Speed this up a bit.
704 2010-02-20 Zoltan Varga <vargaz@gmail.com>
706 * mini-amd64.c: Fix DISABLE_JIT support after the latest changes.
708 * mini.c (mono_jit_create_remoting_trampoline): Call
709 mono_create_specific_trampoline () instead of
710 mono_arch_create_specific_trampoline ().
712 * mini-trampolines.c tramp-arm.c: Disable more stuff when DISABLE_JIT is set.
714 2010-02-20 Zoltan Varga <vargaz@gmail.com>
716 * unwind.c (mono_unwind_get_cie_program): New function, moved here from
717 aot-compiler.c, so it can be found even if DISABLE_JIT is set.
719 * aot-compiler.c xdebug.c: Update callers of mono_arch_unwind_get_cie_program ().
721 * mini-amd64.c: Fix DISABLE_JIT support.
723 2010-02-20 Geoff Norton <gnorton@novell.com>
725 * aot-runtime.c: Ensure we dont leak a held lock when unwinding exceptions.
727 2010-02-20 Zoltan Varga <vargaz@gmail.com>
729 * debugger-agent.c (mono_debugger_agent_handle_exception): Receive two contexts,
730 one for the throw and one for the catch. Mark uncaught exceptions by a NULL
731 CATCH_TXT. Send normal exception events for unhandled exceptions too.
732 (mono_debugger_agent_handle_unhandled_exception): Remove this, merged into
735 2010-02-18 Zoltan Varga <vargaz@gmail.com>
737 * exceptions-x86.c (mono_arch_get_restore_context): Changes this so it restores
738 edx/ecx too. This is needed to support OP_SEQ_POINT.
740 2010-02-18 Zoltan Varga <vargaz@gmail.com>
742 * exceptions-amd64.c (get_throw_trampoline): Add xdebug info.
744 * method-to-ir.c (mono_method_to_ir): Fix SIZEOF in dynamic methods.
746 2010-02-16 Zoltan Varga <vargaz@gmail.com>
748 * mini-llvm.c aot-compiler.c aot-runtime.c unwind.c: Finish support
749 LLVM+AOT+exceptions, not enabled yet.
751 2010-02-15 Zoltan Varga <vargaz@gmail.com>
753 * mini.c (SIG_HANDLER_SIGNATURE): Fix the windows build.
755 2010-02-15 Zoltan Varga <vargaz@gmail.com>
757 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Emit
758 xdebug info for these.
760 * mini-trampolines.c (common_call_trampoline): Use mini_jit_info_table_find ()
763 * mini.c (mini_get_vtable_trampoline): Make this take a 'slot_index' argument,
766 2010-02-13 Zoltan Varga <vargaz@gmail.com>
768 * aot-compiler.c (load_profile_files): Update after the profiler changes.
770 2010-02-13 Zoltan Varga <vargaz@gmail.com>
772 * mini.c (mono_jit_compile_method_inner): Avoid passing icall wrappers to
773 mono_profiler_method_end_jit, since the profiler has no way to process wrappers.
775 * aot-runtime.c mini.c: Resurrect the aot pagefault profiling stuff, it is useful
778 2010-02-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
780 * debugger-agent.c: handle incomplete reads and EINTR in
781 recv()/send(). This could have been causing random
784 2010-02-13 Zoltan Varga <vargaz@gmail.com>
786 * aot-runtime.c (decode_exception_debug_info): Fix aot support for sequence
789 * mini-arm.c (mono_arch_allocate_vars): Allocate the seq point related vars first
790 so they have small offsets. Fixes #566311.
792 2010-02-12 Rodrigo Kumpera <rkumpera@novell.com>
794 * method-to-ir.c (mono_method_check_inlining): Check for loader errors.
796 2010-02-11 Zoltan Varga <vargaz@gmail.com>
798 * mini-amd64.c: Remove the special casing of byref in a few places now that
799 mini_type_get_underlying_type () handles it.
801 * mini-generic-sharing.c (mini_type_get_underlying_type): Handle byref as well
802 by returning native int. Fixes #577984.
804 2010-02-11 Zoltan Varga <vargaz@gmail.com>
806 * method-to-ir.c (handle_isinst): Factor out the is_complex_isinst check into
809 * mini-llvm.c (exception_cb): Put the clause index into the type info instead
810 of putting the clause itself.
812 * mini-arm.c mini.c linear-scan.c: Disable more stuff when DISABLE_JIT is used.
814 2010-02-09 Zoltan Varga <vargaz@gmail.com>
816 * unwind.c (mono_unwind_frame): Use read32 for reading a 32 bit value, since it
819 2010-02-10 Geoff Norton <gnorton@novell.com>
821 * aot-compiler.c: Make the number of IMT trampolines configurable as well.
823 2010-02-08 Zoltan Varga <vargaz@gmail.com>
825 * aot-compiler.c (emit_code): Create the ut trampolines here, so they work for
828 * aot-compiler.c (emit_code): Don't add the llvm label prefix to 'methods', since
829 it is not an LLVM generated symbol.
831 * mini-llvm.c (emit_entry_bb): Fix the handling of simd types.
833 * method-to-ir.c (handle_castclass): Turn off the more efficient isinst/castclass
834 implementation in gshared mode because it causes regressions.
836 * mini-trampolines.c: Add a stat for the number of calls to trampolines.
838 * image-writer.c (asm_writer_emit_global): Don't prepend the global prefix, it
839 should be done by the caller.
841 * mini-llvm.c (mono_llvm_emit_method): Don't make the debug symbols global.
843 * aot-compiler.c (emit_code): Add the llvm label prefix before 'methods'.
845 * mini-exceptions.c (mini_jit_info_table_find): Search the root domain as well,
846 since mono_jit_info_table_find () doesn't do it anymore.
848 * mini-generic-sharing.c debugger-agent.c: Call mini_jit_info_table_find ()
849 instead of mono_jit_info_table_find ().
851 2010-02-07 Zoltan Varga <vargaz@gmail.com>
853 * aot-compiler.c aot-runtime.c: Add support for MONO_WRAPPER_WRITE_BARRIER.
855 * aot-compiler.c (encode_method_ref): Update after the removal of
856 mono_gc_get_managed_allocator_type ().
858 * method-to-ir.c (mono_method_to_ir): Place a seq point just before a RET.
861 2010-02-06 Zoltan Varga <vargaz@gmail.com>
863 * method-to-ir.c (handle_castclass): Use the icall for classes with variant
864 generic params as well.
865 (handle_isinst): Ditto.
867 * method-to-ir.c: Make isninst/castclass checks in gshared code more efficient
868 instead of always calling an icall.
870 * aot-compiler.c (emit_llvm_file): Take into account trampolines etc when
871 computing the size of the got.
873 * aot-compiler.c (emit_code): Change the way the 'methods' symbol is emitted
874 when using LLVM. Instead of emitting it as an LLVM method, emit it using
875 the assembly directive '.set' so it points to the first LLVM emitted method.
877 2010-02-04 Rodrigo Kumpera <rkumpera@novell.com>
879 * mini.c (mini_method_verify): Report the method which failed to verify.
881 2010-02-04 Rodrigo Kumpera <rkumpera@novell.com>
883 * method-to-ir.c (mono_method_to_ir): Use the new basic block formation pass
884 to avoid JIT'ng dead basic blocks. This is the same behavior as the
887 2010-02-04 Zoltan Varga <vargaz@gmail.com>
889 * debugger-agent.c (decode_value): Fix decoding of vtype instances. Fixes
892 2010-02-04 Zoltan Varga <vargaz@gmail.com>
894 * mini-llvm.c: Init the jit module only when first JITting.
896 * aot-compiler.c (emit_plt): Fix the naming of plt entries of llvm+darwin.
898 * mini-llvm.c (get_plt_entry): Make the plt entries have hidden visibility.
900 * mini-llvm.c (mono_llvm_emit_aot_module): Remove the dummy got after it is
901 replaced with the real got.
903 * debugger-agent.c (type_commands): Return the enumness if the type as well.
905 * image-writer.c: Reduce the amount of #ifdefs a bit.
907 * aot-compiler.c: Reduce the amount of #ifdefs. Add beginnings of support for
910 * aot-compiler.c (mono_compile_assembly): Handle asmonly+llvm mode.
912 * mini-llvm.c (mono_llvm_emit_method): Don't make the 'type_info' symbols
915 2010-02-02 Zoltan Varga <vargaz@gmail.com>
917 * mini-llvm.c (mono_llvm_emit_method): Add support for unaligned loads.
918 (mono_llvm_emit_method): Fix unaligned stores too.
920 * mini-amd64.c (mono_arch_emit_prolog): Initialize lmf->rsp in the prolog too
921 so async stack walks don't crash.
923 2010-02-02 Zoltan Varga <vargaz@gmail.com>
925 * mini-trampolines.c (common_call_trampoline): Fix a problem where the callsite
926 was not patched if the callee needed an rgctx trampoline.
928 2010-02-01 Zoltan Varga <vargaz@gmail.com>
930 * mini-ppc.c (mono_arch_get_global_int_regs): Reserve r29 for holding the
931 vtable address in AOT code.
933 2010-02-01 Zoltan Varga <vargaz@gmail.com>
935 * mini-codegen.c: Remove support for CEE_ opcodes which cannot occur in
938 Mon Feb 1 16:29:10 CET 2010 Paolo Molaro <lupus@ximian.com>
940 * genmdesc.pl: remove dependency on external cpp.
942 2010-02-01 Zoltan Varga <vargaz@gmail.com>
944 * method-to-ir.c (mini_emit_ldelema_1_ins): Avoid emitting an OP_SEXT_I4 when
945 using LLVM, its not needed, and abcrem can't handle it.
947 Mon Feb 1 14:29:43 CET 2010 Paolo Molaro <lupus@ximian.com>
949 * genmdesc.c, genmdesc.pl, cpu-x86.md: introduced templates to make
950 it easier to group instructions and reduce duplication.
952 2010-02-01 Zoltan Varga <vargaz@gmail.com>
954 * decompose.c: Move the array/soft float decompose routines here from
957 * method-to-ir.c: Export a few functions so they can be used from decompose.c.
959 2010-01-31 Zoltan Varga <vargaz@gmail.com>
961 * mini-llvm.c (mono_llvm_emit_method): Add a call to llvm.invariant.start
962 to tell LLVM that the got is constant, not used yet.
964 * aot-compiler.c: Pass more optimization flags to llvm's 'opt'.
966 2010-01-30 Zoltan Varga <vargaz@gmail.com>
968 * mini-ppc.c (mono_arch_emit_prolog): Fix full aot support for native to
971 2010-01-30 Zoltan Varga <vargaz@gmail.com>
973 * aot-compiler.c (add_wrappers): Commit the hack which generates
974 native-to-managed wrappers for methods decorated with the MonoPInvokeCallback
977 2010-01-29 Zoltan Varga <vargaz@gmail.com>
979 * mini.h (MONO_INST_FAULT): New instruction flag for loads which can cause
980 a fault, only used by the LLVM backend.
982 * ir-emit.h: Add _FAULT variants of the LOAD_MEMBASE macros. Mark
983 OP_CHECK_THIS with OP_IMPLICIT_EXCEPTION.
985 * method-to-ir.c: Use the new LOAD_MEMBASE_FAULT opcodes, get rid of the
986 calls to MONO_EMIT_NULL_CHECK which is automatically done by the new macros.
988 * mini-llvm.c: Only generate volatile loads from load instructions which have
989 the MONO_INST_FAULT flag set.
991 2010-01-29 Zoltan Varga <vargaz@gmail.com>
993 * unwind.c (mono_unwind_decode_fde): Fix the decoding of the LSDA offset on
996 2010-01-28 Zoltan Varga <vargaz@gmail.com>
998 * mini.c (mono_save_seq_point_info): Fix the handling of bblocks without
999 sequence points. Fixes #571236.
1001 2010-01-28 Zoltan Varga <vargaz@gmail.com>
1003 * debugger-agent.c (mono_debugger_agent_init): Call appdomain_unload at the
1004 end of the appdomain unload process, after assemblies have been unloaded.
1007 2010-01-27 Zoltan Varga <vargaz@gmail.com>
1009 * abcremoval.c (process_block): Fix the if (region) check so abcrem actually
1012 * mini-amd64.c: Make the soft debugger work on platforms without MAP_32BIT.
1015 2010-01-26 Zoltan Varga <vargaz@gmail.com>
1017 * dwarfwriter.c (emit_type): Treat MONO_TYPE_PTR as 'I' not 'I4'.
1019 2010-01-26 Geoff Norton <gnorton@novell.com>
1021 * aot-compiler.c: Fix a logic error introduced when guarding against enums
1022 with struct marshalability.
1024 2010-01-24 Zoltan Varga <vargaz@gmail.com>
1026 * mini.c (mini_method_compile): Improve the processing MONO_VERBOSE_METHOD so
1027 it supports class names as well.
1029 * mini.h (MonoCompile): Add a few flags to control JIT behavior which are
1030 needed by the GC map code.
1032 * mini.c (mini_method_compile): Call a function in mini-gc.c to set the new
1035 * method-to-ir.c (mono_method_to_ir): Emit initialization code for ref variables
1036 if cfg->init_ref_vars is set.
1038 * liveness.c (optimize_initlocals): Disable the initlocals opt for ref vars if
1039 cfg->disable_initlocals_op_refs is set.
1041 * method-to-ir.c (mono_spill_global_vars): Compute more precise live ranges
1042 using liveness info if cfg->compute_precise_live_ranges is set.
1044 * mini-gc.c: Ongoing work. Improve logging and debugging support. Handle
1045 volatile variables correctly. Add comments about the live ranges. Not enabled
1048 2010-01-24 Zoltan Varga <vargaz@gmail.com>
1050 * mini.h (MonoDebugOptions): Add an option to init stack frames by writing
1051 0x2a into them in method prologs.
1053 * mini-amd64.c (mono_arch_emit_prolog): Implement it.
1055 2010-01-22 Zoltan Varga <vargaz@gmail.com>
1057 * mini-llvm-cpp.cpp: Remove uses of dynamic_cast, it no longer works with llvm
1058 classes, since llvm is compiled with -fno-rtti.
1060 * mini.h (COMPILE_SOFT_FLOAT): New macro, similar to COMPILE_LLVM.
1062 * method-to-ir.c ir-emit.h: Use if (COMPILE_SOFT_FLOAT) in a few places since
1063 llvm does not require it.
1065 * aot-runtime.c (load_method): Print the full name of the last aot method.
1067 2010-01-21 Zoltan Varga <vargaz@gmail.com>
1069 * exceptions-amd64.c (mono_arch_notify_pending_exc): Avoid a crash if the
1070 thread has not fully started yet.
1072 2010-01-21 Zoltan Varga <vargaz@gmail.com>
1074 * aot-compiler.c (can_marshal_struct): Allow marshalling enums.
1076 2010-01-21 Miguel de Icaza <miguel@novell.com>
1078 * driver.c: Do not abort if LLVM is not supported, print a
1079 warning and add the information to the Mono JIT information.
1081 2010-01-21 Zoltan Varga <vargaz@gmail.com>
1083 * ir-emit.h (MONO_EMIT_NULL_CHECK): Don't emit an OP_IMPLICIT_EXCEPTION when
1084 using explicit null checks.
1086 2010-01-20 Zoltan Varga <vargaz@gmail.com>
1088 * xdebug.c: New file extracted from aot-compiler.c, containing the XDEBUG
1091 * aot-compiler.c (encode_method_ref): Use mono_marshal_wrapper_info_from_wrapper
1093 (mono_aot_wrapper_name): Remove the special handling of delegate invoke wrappers,
1094 its no longer needed.
1096 * method-to-ir.c (mono_method_to_ir): Fix a warning.
1098 * exceptions-<ARCH>.c: Introduce a MONO_ARCH_HAVE_THROW_EXCEPTION_BY_NAME
1099 define for platforms still using it (s390). Get rid of the
1100 mono_arch_get_throw_exception_by_name () routines on all other platforms.
1102 * exceptions-x86.c: Rework the throw trampolines so there is only one function
1103 which can generate throw/rethrow/corlib trampolines for llvm/not llvm code.
1105 * exceptions-x86.c: Add LLVM specific throw trampolines which doesn't assume
1106 the caller pushed the arguments.
1108 * mini-llvm.c: Enable throwing exceptions on x86.
1110 * mini-posix.c (SIG_HANDLER_SIGNATURE): Avoid
1111 "Thread (nil) may have been prematurely finalized" messages if this is called
1112 on a thread not registered with the runtime.
1114 * mini-exceptions.c (mono_handle_native_sigsegv): Ditto.
1116 2010-01-19 Zoltan Varga <vargaz@gmail.com>
1118 * jit-icalls.c (mono_array_new_3): New jit icall.
1120 * aot-compiler.c aot-runtime.c: Add support for ElementAddr wrappers.
1122 * arrays.cs: Add a test for 3 dimensional arrays.
1124 2010-01-19 Zoltan Varga <vargaz@gmail.com>
1126 * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Emit xdebug info.
1127 (mono_arch_find_jit_info_ext): Disable the popping of arguments when LLVM is
1130 * mini-llvm.c (emit_cond_system_exception): Abort when an implicit exception is
1133 * unwind.c (mono_unwind_decode_fde): Fix an assert on x86.
1135 * mini-x86.h (MONO_CONTEXT_SET_LLVM_EXC_REG): Define this for x86.
1137 * mini-llvm.c: Disable OP_THROW on x86, it doesn't work yet.
1139 2010-01-18 Bill Holmes <billholmes54@gmail.com>
1141 * debugger-agent.c : Changing the PLATFORM_WIN32 preprocessor check to
1142 HOST_WIN32. Also including winsock2. to define struct in_addr.
1144 * mini-amd64.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.
1146 * mini-x86.h : Changing the PLATFORM_WIN32 preprocessor check to HOST_WIN32.
1148 Code is contributed under MIT/X11 license.
1150 2010-01-18 Zoltan Varga <vargaz@gmail.com>
1152 * mini.h (MonoCompile): Add 'disable_out_of_line_bblocks' flag.
1154 * branch-opts.c (mono_optimize_branches): Honor the new flag.
1156 * mini.c (mini_method_compile): Set the new flag when running under the
1159 2010-01-18 Zoltan Varga <vargaz@gmail.com>
1161 * mini-gc.c: Change the GC map to use a ref/noref/pin value instead of just
1162 a ref/noref value + a global pin flag, so parts of stack frames can still be
1163 precisely marked even if they include stuff which needs pinning. Improve logging.
1164 Fix many bugs. Not enabled yet.
1166 * gc-test.cs: Add a few tests.
1168 * liveness.c (mono_analyze_liveness): Make the debug output controllable by
1169 the normal -v options. Avoid propagating liveness information through bblocks
1170 which end with a NOT_REACHED opcode.
1172 * mini.c (mono_jit_compile_method_inner): Avoid reading cfg->prof_options
1173 after cfg has been freed.
1175 2010-01-17 Zoltan Varga <vargaz@gmail.com>
1177 * branch-opts.c (mono_branch_optimize_exception_target): Stop the optimization
1178 if a clause is skipped because it uses the exception object, since it could
1179 have caught the exception.
1181 * exceptions.cs: Add a test.
1183 2010-01-16 Zoltan Varga <vargaz@gmail.com>
1185 * mini-trampolines.c (mono_create_static_rgctx_trampoline): Add an assert.
1187 * aot-runtime.c (mono_aot_get_method): Handle ftnptr's correctly for the
1188 ICollection<T> wrappers.
1190 2010-01-16 Zoltan Varga <vargaz@gmail.com>
1192 * debugger-agent.c (decode_value): Fix the decoding of I/U/PTR.
1194 2010-01-16 Zoltan Varga <vargaz@gmail.com>
1196 * mini-amd64.c (emit_call_body): Always use near calls when AOTing even if
1197 NOMAP32BIT or optimize_for_xen is set.
1199 2010-01-16 Zoltan Varga <vargaz@gmail.com>
1201 * aot-compiler.c aot-runtime.c: Get rid of mono_aot_str_hash (), use
1202 mono_metadata_str_hash () instead.
1204 2010-01-15 Zoltan Varga <vargaz@gmail.com>
1206 * ir-emit.h (MONO_EMIT_NEW_ICOMPARE_IMM): Use sizeof (mgreg_t) instead of
1209 * unwind.c (mono_unwind_frame): Use mgreg_t instead of gssize.
1211 2010-01-15 Zoltan Varga <vargaz@gmail.com>
1213 * ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): Emit an explicit null check if the
1216 * mini-ppc.c (mono_arch_emit_exceptions): Compute the size of the exception
1217 throwing code correctly.
1219 * mini.h (MONO_AOT_FILE_VERSION): Bump this because of the IMT hashing changes.
1221 2010-01-15 Zoltan Varga <vargaz@gmail.com>
1223 * aot-runtime.c (mono_aot_plt_resolve): Reenable the previous assert for
1224 ftnptrs created by us, handle RGCTX_FETCH correctly.
1225 (mono_aot_get_lazy_fetch_trampoline): Add an ftnptr.
1227 * mini-trampolines.c (mono_create_generic_class_init_trampoline): Remove the
1228 ftnptr added by mono_aot_get_named_code ().
1230 2010-01-14 Zoltan Varga <vargaz@gmail.com>
1232 * mini-arm.c: Fix a few LLVM problems.
1234 * mini-llvm.c (simd_class_to_llvm_type): Fix compilation on !x86/amd64.
1236 2010-01-13 Mark Probst <mark.probst@gmail.com>
1238 * method-to-ir.c (mini_emit_stobj): Use EMIT_NEW_CLASSCONST when
1241 Wed Jan 13 15:54:53 CET 2010 Paolo Molaro <lupus@ximian.com>
1243 * jit.h, method-to-ir.c: added ability to set the policy for
1244 inserting breakpoints from the break IL instruction or the
1245 Debugger.Break () API call.
1247 2010-01-13 Zoltan Varga <vargaz@gmail.com>
1249 * aot-runtime.c (load_aot_module): Add more comments to explain why referenced
1250 assemblies need to be eagerly loaded.
1252 2010-01-12 Zoltan Varga <vargaz@gmail.com>
1254 * dwarfwriter.c (emit_line_number_info): Fix the eglib case so it doesn't crash.
1256 2010-01-11 Zoltan Varga <vargaz@gmail.com>
1258 * debugger-agent.c (mono_debugger_agent_parse_options): Allow onthrow without
1259 an argument which matches any exception.
1261 2010-01-10 Zoltan Varga <vargaz@gmail.com>
1263 * method-to-ir.c (mono_emit_method_call_full): Avoid the virt->nonvirt
1264 optimization if the called method is gshared and marshalbyref, since gshared
1265 methods can' have wrappers. Fixes #569390.
1267 * generics.cs: Add a test.
1269 2010-01-10 Zoltan Varga <vargaz@gmail.com>
1271 * mini-exceptions.c (mono_print_thread_dump_from_ctx): New helper function
1274 2010-01-10 Zoltan Varga <vargaz@gmail.com>
1276 * mini.c (mono_print_method_from_ip): Fix the lookup of trampolines.
1278 2010-01-09 Zoltan Varga <vargaz@gmail.com>
1280 * debugger-agent.c (transport_connect): comment out freeaddrinfo calls under win32,
1281 since it is not supported in win2000.
1283 2010-01-08 Zoltan Varga <vargaz@gmail.com>
1285 * aot-runtime.c (load_image): Add a SET_ERROR argument to set the loader
1286 error if loading an assembly fails.
1287 (mono_aot_plt_resolve): Return NULL instead of asserting if loading fails.
1289 * mini-trampolines.c (mono_aot_plt_trampoline): Throw a pending loader error
1292 * aot-runtime.c (decode_exception_debug_info): Set jinfo->from_llvm for LLVM
1295 * mini-llvm-cpp.cpp: Remove the unused ctx variable.
1297 * mini-llvm.c (mono_llvm_emit_method): Add some comments about why aot+clauses
1298 is not supported yet.
1300 * unwind.c (DW_EH_PE_absptr): Add more DW_EH_PE_ constants.
1302 2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
1304 * method-to-ir.c: All types with variant arguments must fallback to the
1305 slow path. This makes cast of variant delegates work.
1307 * mini-trampolines.c (mono_get_vcall_slot_addr): Add new variance_used out
1308 argument that is set to TRUE is the returned vtable slot is for a variant
1309 interface. Changed a g_print + g_assert_not_reached to a g_error.
1311 * mini-trampilines.c (common_call_trampoline): Handle variant interfaces in
1312 a similar fashion of generic virtual methods.
1314 2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
1316 * helpers.c (mono_disassemble_code): Fix a g_hash_table warning
1319 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Convert a given
1320 method using a variance aware function.
1322 * mini-x86.c: Add support for dumping IMT thunks if DEBUG_IMT is defined.
1324 2010-01-07 Rodrigo Kumpera <rkumpera@novell.com>
1326 * method-to-ir.c (mono_method_to_ir): Casts to variant interfaces
1327 do an icall for now.
1329 2010-01-07 Zoltan Varga <vargaz@gmail.com>
1331 * mini-llvm-cpp.cpp (mono_llvm_create_ee): Add an ugly hack to fix #564695.
1332 If LLVM decides to set the code model to Large, reset it to Default.
1334 2010-01-07 Zoltan Varga <vargaz@gmail.com>
1336 * aot-compiler.c (mono_xdebug_flush): Export it so it is present in
1337 stripped binaries as well.
1339 2010-01-07 Zoltan Varga <vargaz@gmail.com>
1341 * mini-trampolines.c (common_call_trampoline): Add an rgctx trampoline if a shared
1342 method is called from LLVM compiled code, as that code can't pass an rgctx arg.
1344 * mini-llvm.c (mono_llvm_emit_method): Enable calls to methods needing an rgctx
1347 2010-01-06 Zoltan Varga <vargaz@gmail.com>
1349 * mini.c (mini_method_compile): Extract the JIT info creation code into a
1352 * mini-llvm.c (mono_llvm_emit_method): Pass the info in MonoExceptionClause
1353 as the type info to llvm.eh.selector.
1354 (exception_cb): Use the type info for filling out some fields of
1355 MonoJitExceptionInfo like the flags and the exception class. This is needed
1356 because the LLVM produced exception handling clauses might not match the original
1357 IL clauses, i.e. there might be more than one LLVM clause for one IL clause.
1359 * unwind.c (mono_unwind_decode_fde): Extract the LSDA decoding code into a
1360 separate function. Add an extra argument which returns the type infos
1361 corresponding to the exception clauses.
1363 * mini.c (mini_method_compile): Enable LLVM compilation of methods having
1364 exception handling clauses.
1366 2010-01-04 Zoltan Varga <vargaz@gmail.com>
1368 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
1369 mono_method_get_vtable_slot () instead of accessing imt_method->slot directly,
1372 2010-01-04 Rodrigo Kumpera <rkumpera@novell.com>
1374 * mini.c (mono_compile_is_broken): Skip methods from serialization's
1377 2010-01-04 Zoltan Varga <vargaz@gmail.com>
1379 * mini.c (mini_method_compile): Fix a few memory leaks introduced by the
1382 2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
1384 * mini.c (mini_method_compile): Verify the method before calling
1385 mono_compile_create_vars as this might crash since it uses method
1390 2010-01-04 Zoltan Varga <vargaz@gmail.com>
1392 * method-to-ir.c (mono_method_to_ir): Avoid calling mono_class_vtable () in
1393 one case if AOTing, since the class might not be a concrete class.
1395 2010-01-03 Zoltan Varga <vargaz@gmail.com>
1397 * mini-codegen.c abcremoval.c: Remove the duplicate g_slist_append_mempool
1398 functions which are now defined in mempool-internals.h.
1400 * mini.c (mini_free_jit_domain_info): Free the seq point hash tables.
1402 * mini-llvm.c (mono_llvm_emit_method): Handle OP_ABS.
1404 2009-12-30 Rodrigo Kumpera <rkumpera@novell.com>
1408 * mini-*.c: Properly handle generic enums.
1412 2009-12-28 Zoltan Varga <vargaz@gmail.com>
1414 * method-to-ir.c (mono_method_to_ir): Handle the failure of mono_class_vtable ()
1415 in a few more places.
1417 2009-12-27 Zoltan Varga <vargaz@gmail.com>
1419 * aot-compiler.c (add_wrappers): Don't use dyn runtime invoke for methods with
1420 nullable parameters. Fixes #567351.
1422 2009-12-26 Rodrigo Kumpera <rkumpera@novell.com>
1424 * mini-trampolines.c (common_call_trampoline): Add assert for NULL resolved generic method.
1426 2009-12-26 Zoltan Varga <vargaz@gmail.com>
1428 * mini-trampolines.c: Use mono_arch_get_this_arg_from_call () to avoid the slow
1429 mono_get_generic_context_from_code () call.
1431 * mini-<ARCH>.c: Get rid of mono_arch_find_this_arg (), it is no longer used.
1433 2009-12-25 Zoltan Varga <vargaz@gmail.com>
1435 * aot-runtime.c (decode_klass_ref): Don't call mono_class_init (), its not
1438 2009-12-24 Sebastien Pouliot <sebastien@ximian.com>
1440 * method-to-ir.c (mono_method_to_ir): Avoid SIGSEGV when
1441 mono_method_get_signature returns NULL. Fix #567084
1443 2009-12-25 Zoltan Varga <vargaz@gmail.com>
1445 * aot-runtime.c (find_extra_method): Call mono_aot_wrapper_name only once,
1446 instead of once for each module.
1448 2009-12-22 Zoltan Varga <vargaz@gmail.com>
1450 * debugger-agent.c (ss_start): Implement step over for the last sequence
1453 * mini.c (mono_save_seq_point_info): Don't link sequence points which don't
1454 have the STEP_LOC flag set.
1456 * aot-runtime.c (decode_klass_ref): Avoid a crash if a decode_klass_ref () call
1457 fails. Fixes #566689.
1459 2009-12-21 Zoltan Varga <vargaz@gmail.com>
1461 * mini.c (mono_add_seq_point): New helper function.
1462 (mono_save_seq_point_info): New function to save sequence point info, extracted
1463 from mini_method_compile ().
1465 * mini-<ARCH>.c: Call mono_add_seq_point to remember sequence points.
1467 * mini.h (MonoSeqPointInfo): New structure containing information about
1468 the sequence points of a JITted method.
1469 (MonoBasicBlock): Add 'seq_points' and 'last_seq_point' fields. Remove unused
1472 * mini.c debugger-agent.c aot-compiler.c aot-runtime.c: Change the way sequence
1473 point information is stored, use a MonoSeqPointInfo structure instead of a
1474 GPtrArray. For each seq point, compute a list of successor seq points.
1476 * debugger-agent.c: Use the successor list to implement step-over more
1477 efficiently: instead of single stepping until a different line/IL offset is
1478 reached, place breakpoints into all successor seq points.
1480 * mini.h: Bump AOT file format version.
1482 2009-12-21 Zoltan Varga <vargaz@gmail.com>
1484 * Makefile.am (AM_CFLAGS): Include LLVM_CFLAGS.
1486 * mini-llvm.c: Avoid defining the __STDC_... macros if already defined.
1488 2009-12-21 Zoltan Varga <vargaz@gmail.com>
1490 * exceptions-ppc.c (mono_ppc_set_func_into_sigctx): Fix the cross-compiler
1493 2009-12-18 Zoltan Varga <vargaz@gmail.com>
1495 * mini-x86.c (mono_arch_get_argument_info): Allocate memory for CallInfo using
1496 alloca as g_malloc is not signal safe.
1498 2009-12-18 Zoltan Varga <vargaz@gmail.com>
1500 * tramp-x86.c (mono_arch_patch_callsite): Fix the call to
1501 VALGRIND_DISCARD_TRANSLATIONS.
1503 * *.c: Include mono/utils/memcheck.h, and remove #ifdef HAVE_VALGRIND_MEMCHECK_H
1504 checks, they are no longer needed.
1506 * exceptions-ppc.c (mono_ppc_set_func_into_sigctx): New helper function to set
1507 a function into a sigctx which can handle function pointers.
1509 * mini-ppc.c: Implement soft debugger support on ppc64.
1511 * mini-ppc.c: Implement soft debugger support.
1513 2009-12-17 Zoltan Varga <vargaz@gmail.com>
1515 * mini-llvm.c: Handle OP_LADD_OVF_UN. Place all alloca's into the entry bb.
1517 2009-12-17 Marek Habersack <mhabersack@novell.com>
1519 * mini.c (mono_get_runtime_build_info): include Mono version in
1522 * driver.c (mono_main): VERSION is now included in the string
1523 returned from mono_get_runtime_build_info()
1525 2009-12-17 Zoltan Varga <vargaz@gmail.com>
1527 * method-to-ir.c (mono_method_to_ir): Add support for CALLI with unmanaged
1528 signatures. Fixes #565143.
1530 * jit-icalls.c (mono_get_native_calli_wrapper): New JIT icall.
1532 2009-12-16 Zoltan Varga <vargaz@gmail.com>
1534 * aot-compiler.c (arch_emit_autoreg): Align code to 4 in the ppc case.
1536 2009-12-16 Rodrigo Kumpera <rkumpera@novell.com>
1538 * mini-x86.h: Forgot to add a 0x to MONO_ARCH_MAX_FRAME_SIZE define
1539 making max stack 10x smaller.
1541 2009-12-16 Zoltan Varga <vargaz@gmail.com>
1543 * mini.c (mono_resolve_patch_target): Comment out an assert which could be hit.
1545 2009-12-15 Rodrigo Kumpera <rkumpera@novell.com>
1547 * method-to-ir.c (mini_emit_memcpy): Assert if size is too big.
1549 2009-12-15 Rodrigo Kumpera <rkumpera@novell.com>
1551 * mini-x86.c (mono_arch_allocate_vars): Fail compilation if the frame size is
1552 bigger than MONO_ARCH_MAX_FRAME_SIZE.
1554 * mini-x86.c (mono_arch_emit_prolog): Handle huge frames.
1556 * mini-x86.h: Define MONO_ARCH_MAX_FRAME_SIZE to be 1Mb.
1558 * mini-amd64.c / mini-amd64.h: Same fixes as of above.
1560 * mini.c (mini_method_compile): Check if mono_arch_allocate_vars failed
1563 2009-12-14 Miguel de Icaza <miguel@novell.com>
1565 * method-to-ir.c (mono_method_to_ir): CEE_UNUSUED opcodes now
1566 raise an invalid program exception.
1568 For other opcodes that we might not handle use a g_warning and
1569 raise the exception. Beats termination.
1573 2009-12-14 Zoltan Varga <vargaz@gmail.com>
1575 * method-to-ir.c (mono_emit_rgctx_method_call_full): Fix a warning.
1577 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix the LLVM support
1578 by merging the LLVM and !MAP_32BIT cases.
1580 2009-12-13 Jonathan Chambers <joncham@gmail.com>
1582 * debugger-agent.c (mono_debugger_agent_thread_interrupt): Handle a NULL
1583 sigctx being passed in, as we have no CONTEXT available in the APC.
1585 (mono_debugger_agent_cleanup): Use explicit cond wait implementation
1588 Code contributed under MIT/X11 license.
1590 2009-12-13 Zoltan Varga <vargaz@gmail.com>
1592 * method-to-ir.c mini-llvm.c: Fix support for monitor enter/exit trampolines
1593 in the LLVM backend on AMD64.
1595 * aot-runtime.c (decode_eh_frame): Initialize the clauses from the info in the
1598 * unwind.c (mono_unwind_decode_fde): Implement decoding of a couple more formats.
1600 * mini-llvm.c: Export mono_personality for AOT.
1602 * mini.c (mini_method_compile): Fix some problems with llvm+aot+clauses.
1604 * mini-ops.h (OP_IMPLICIT_EXCEPTION): New opcode marking the place where an
1605 implicit exception can occur.
1607 * ir-emit.h (MONO_EMIT_NEW_IMPLICIT_EXCEPTION): New macro to emit an
1608 OP_IMPLICIT_EXCEPTION instruction.
1610 * ir-emit.h (MONO_EMIT_NEW_CHECK_THIS): New macro.
1612 * method-to-ir.c: Use MONO_EMIT_NEW_CHECK_THIS in a few places.
1614 * mini-llvm.c: Handle OP_IMPLICIT_EXCEPTION by disabling llvm if it occurs
1615 inside a protected block.
1617 * mini-llvm.c: Revert the last change, the signature of monitor entry/exit
1618 trampolines doesn't include the argument.
1620 * mini-llvm.c (mono_llvm_emit_method): Enable calls to monitor entry/exit
1621 trampolines on amd64.
1623 * mini-amd64.h (MONO_ARCH_MONITOR_OBJECT_REG): Use MONO_AMD64_ARG_REG1 instead
1626 * mini.c (mini_method_compile): Add some comments as to why LLVM is currently
1627 disabled for methods with clauses.
1629 * mini-llvm.c: Enable support for catch clauses.
1631 * mini-exceptions.c (mono_resume_unwind): New function to resume unwinding at the
1632 end of an LLVM compiled finally clause.
1633 (mono_handle_exception_internal): Save the exception handling state in TLS
1634 before calling an LLVM compiled finally clause, so mono_resume_unwind () can
1635 resume unwinding from that point.
1637 * unwind.c (mono_unwind_get_ops_from_fde): Rename this to
1638 mono_unwind_decode_fde, decode the Language Specific Data Area (LSDA) too,
1639 to obtain the addresses of the exception handling regions.
1641 * mini-llvm.c: Add beginnings of support for exception handling, currently only
1642 finally clauses are supported.
1644 * mini.c (mini_method_compile): Add support for LLVM code with exception
1647 2009-12-12 Zoltan Varga <vargaz@gmail.com>
1649 * mini-llvm.c (mono_llvm_emit_method): Allocate the 'pindexes' array with the
1652 2009-12-12 Zoltan Varga <vargaz@gmail.com>
1654 * debugger-agent.c: Encode the this argument of vtype methods as a struct, not
1655 as a primitive type.
1657 2009-12-11 Zoltan Varga <vargaz@gmail.com>
1659 * driver.c: Applied patch from Matt McClellan (matt@mc-c.net). Add a check
1660 for 2 parameter sched_setaffinity in older glibc versions. Fixes
1663 2009-12-11 Marek Habersack <mhabersack@novell.com>
1665 * method-to-ir.c (mini_redirect_call): do not redirect the
1666 InternalAllocateStr internal call if string profiling is enabled.
1668 2009-12-10 Zoltan Varga <vargaz@gmail.com>
1670 * aot-compiler.c (add_wrappers): Avoid generating synchronized wrappers for
1673 * unwind.h: Rename this to mini-unwind.h to avoid conflicts with the gcc
1674 unwind.h header file.
1676 * tramp-x86.c (mono_arch_patch_callsite): Patch the code when using valgrind,
1677 newer valgrind versions seems to handle this fine.
1679 2009-12-09 Zoltan Varga <vargaz@gmail.com>
1681 * debugger-agent.c (start_runtime_invoke): Fix a crash if this is called
1682 on the debugger thread.
1684 2009-12-08 Zoltan Varga <vargaz@gmail.com>
1686 * mini-llvm.c (mono_llvm_emit_method): Add more SIMD opcodes.
1688 * mini.c (mono_print_method_from_ip): Fix the lookup of trampolines.
1690 * mini-codegen.c (mono_local_regalloc): Allow non-call opcodes with cloc:c.
1692 * cpu-<ARCH>.md: Make call_handler clob:c.
1694 * mini.c: Reenable SSA for methods with clauses.
1696 * mini.c (mini_method_compile): Disable SSA for now for methods with clauses,
1697 as it causes failures on x86.
1699 2009-12-08 Sebastien Pouliot <sebastien@ximian.com>
1701 * driver.c: Fail gracefully with --compile-all if mono_method_signature
1702 returns NULL (e.g. a bad assembly).
1704 2009-12-08 Geoff Norton <gnorton@novell.com>
1706 * debugger-agent.c: Refactor the mono_runtime_invoke guarding against
1707 stepping out into native code. There were issues with nested invokes
1710 2009-12-07 Zoltan Varga <vargaz@gmail.com>
1712 * mini.c (mini_method_compile): Do the disable_llvm checks early
1713 and avoid the LLVM compile pass if the checks fail.
1715 * mini.c ssa.c abcremoval.c: Enable SSA for methods with exception clauses.
1717 * mini-llvm.c: Put our methods/globals into the 'llvm.used' array, so the
1718 LLVM optimizations don't try to remove them.
1720 * aot-compiler.c (emit_llvm_file): Save the result of opt into a
1721 different file so the original remains.
1723 2009-12-06 Zoltan Varga <vargaz@gmail.com>
1725 * mini-llvm.c mini.c: Fix alignment issues with SIMD vars.
1727 * aot-runtime.c (decode_arm_exidx): Handle most descriptors created by gas.
1729 * aot-runtime.c (decode_arm_exidx): Refactor this into two functions, add
1730 support for non-inline unwind descriptors.
1732 2009-12-07 Geoff Norton <gnorton@novell.com>
1734 * debugger-agent.c: Darwin can colesce signals, so we need to handle
1735 the interrupt_count slightly differently. Native threads were never
1738 2009-12-05 Zoltan Varga <vargaz@gmail.com>
1740 * aot-runtime.c (decode_arm_exidx): New function to initialize a MonoJitInfo
1741 based on the contents of the ARM .exidx section. Not yet used since llvm doesn't
1742 yet generate this info.
1744 * mini-llvm.c: Fix the conversion of call results if they are unsigned.
1746 * debugger-agent.c (buffer_add_value): Treat I/U as a valuetype, so the
1747 client can distinguish between intptrs and longs.
1749 2009-12-05 Zoltan Varga <vargaz@gmail.com>
1751 * aot-compiler.c (emit_trampoline): Emit the trampoline info into the global
1754 * aot-runtime.c (load_function): Update after the change above.
1756 * mini.h: Bump AOT file format version.
1758 * method-to-ir.c (mono_method_to_ir): Disallow the delegate optimization
1759 if the delegate class is dynamic.
1761 * method-to-ir.c (handle_delegate_ctor): Allow the method_code optimization
1762 in gshared code too using the new rgctx info type
1763 MONO_RGCTX_INFO_METHOD_DELEGATE_CODE.
1765 2009-12-04 Geoff Norton <gnorton@novell.com>
1767 * debugger-agent.c: When doing a func-eval invoke on a suspended runtime,
1768 we need to track the original suspend count so the thread properly
1769 wakes up in resume_thread.
1771 2009-12-04 Zoltan Varga <vargaz@gmail.com>
1773 * method-to-ir.c (handle_delegate_ctor): Add support for using this from gshared
1776 * generics.cs: Add a test.
1778 * method-to-ir.c (emit_get_rgctx_method): Make this work even if context_used
1779 is 0. Simplify a lot of code using this.
1781 * mini-trampolines.c (mono_delegate_trampoline): Call
1782 mono_create_static_rgctx_trampoline () before saving the final address in
1783 delegate->method_code, to avoid calling it each time a delegate is first called.
1785 * method-to-ir.c (mono_method_to_ir): Allow fast delegate creation for methods
1786 which need static rgctx trampolines.
1788 * mini-trampolines.c (mono_create_static_rgctx_trampoline): Use a cache
1789 keyed on the method+addr pair, since addr could be either the method addr or
1790 an unbox trampoline in the AOT case. Fixes #560246.
1792 2009-12-03 Zoltan Varga <vargaz@gmail.com>
1794 * mini.c (mini_method_compile): Call handle_exception_clauses () in the same
1795 place it was called before too.
1797 2009-12-03 Zoltan Varga <vargaz@gmail.com>
1799 * mini.c (mono_jit_runtime_invoke): Avoid the call to mono_class_setup_vtable ()
1800 if no security manager is present, to speed up the AOT case. Call
1801 mono_class_vtable () full with raise_on_error == TRUE instead.
1803 2009-12-03 Zoltan Varga <vargaz@gmail.com>
1805 * mini.c (mini_method_compile): Call handle_exception_clauses earlier so
1806 the local optimization passes can take its result into account. Fixes
1809 * exceptions.cs: Add a test.
1811 2009-01-24 Steven Munroe <munroesj@us.ibm.com>
1813 This patch is contributed under the terms of the MIT/X11 license
1815 * cpu-ppc64.md (load_memindex): Add loadi8_memindex.
1817 2009-12-03 Zoltan Varga <vargaz@gmail.com>
1819 * mini.h (MonoInst): Remove unused 'ssa_op' field.
1821 * debugger-agent.c: Rework the handling of stack traces of running threads to
1822 avoid crashes if compute_frames () tries to walk the stack of running thread.
1824 * mini.c (mono_print_method_from_ip): Use mini_jit_info_table_find.
1826 * mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): Set frame->lmf.
1828 * mini.h (StackFrameInfo): Add an 'lmf' field.
1830 2009-12-02 Zoltan Varga <vargaz@gmail.com>
1832 * debugger-agent.c (suspend_current): Always set really_suspended.
1834 * debugger-agent.c (clear_event_request): Clear method entry/exit requests too.
1836 * exceptions-x86.c (mono_arch_get_restore_context): Restore EAX too.
1838 2009-12-01 Zoltan Varga <vargaz@gmail.com>
1840 * debugger-agent.c (vm_commands): Don't allow invokes on threads which are not
1843 2009-12-01 Zoltan Varga <vargaz@gmail.com>
1845 * cpu-ppc64.md (store_memindex): Add storei8_memindex.
1847 2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
1849 * mini-trampolines.c: Fix MSVC build.
1851 2009-12-01 Rodrigo Kumpera <rkumpera@novell.com>
1853 * mini-trampolines.c: Check for mono_method_get_vtable_slot failures.
1855 2009-11-30 Zoltan Varga <vargaz@gmail.com>
1857 * mini-arm.c (mono_arch_lowering_pass): Fix an assert which is hit when
1858 the instruction following an OP_FCOMPARE is optimized away.
1860 2009-11-30 Zoltan Varga <vargaz@gmail.com>
1862 * aot-compiler.c (arch_emit_autoreg): Extract the auto-registration code from
1863 emit_autoreg () into this arch-specific function.
1865 * aot-compiler.c (emit_exception_debug_info): Don't emit the length of the
1866 code, it is no longer needed.
1868 * aot-runtime.c (decode_exception_debug_info): Don't read the code length.
1870 * mini.h: Bump AOT file format version.
1872 * aot-runtime.c (mono_aot_find_jit_info): Compute the length of the method
1873 using the sorted_code_offsets array, instead of reading it from the
1874 exception debug info.
1875 (load_method): Call mono_aot_find_jit_info instead of
1876 decode_exception_debug_info ().
1878 * aot-compiler.c (emit_exception_debug_info): Emit whenever the method was
1879 LLVM compiled as a flag.
1881 2009-11-29 Zoltan Varga <vargaz@gmail.com>
1883 * debugger-agent.c (resume_thread): Fix a warning.
1885 * aot-compiler.c: Add an option to set the number of static rgctx trampolines
1888 2009-11-28 Zoltan Varga <vargaz@gmail.com>
1890 * aot-compiler.c aot-runtime.c: Get rid of a few global symbols, move their
1891 contents to MonoAotFileInfo.
1893 2009-11-27 Zoltan Varga <vargaz@gmail.com>
1895 * aot-compiler.c aot-runtime.c: Reorganize the AOT file format once again.
1896 Put all binary data into a giant blob, similarly to the way .net assemblies
1897 store binary data. Emit offset tables in a compact form to reduce their size.
1899 * mini.h: Bump AOT file format version.
1901 * aot-compiler.c (emit_globals_table): Use temp_prefix instead of .L in a few
1904 * aot-compiler.c (emit_globals_table): Emit a hash table for the globals, to
1905 avoid linear searches at runtime.
1907 * aot-runtime.c (find_symbol): Update this to use the hash.
1909 * mini.h: Bump AOT file format version.
1911 2009-11-26 Zoltan Varga <vargaz@gmail.com>
1913 * aot-compiler.c (emit_klass_info): Save whenever the class has a generic
1916 * aot-runtime.c (decode_cached_class_info): Set the is_generic_container field
1919 * aot-compiler.c (mono_compile_assembly): Add a 'stats' option to print out
1920 the distribution of got slot types.
1922 * mini.h (MonoDebugOptions): Add 'explicit_null_checks' option.
1924 * method-to-ir.c: Add support for generating explicit null checks.
1926 2009-11-25 Zoltan Varga <vargaz@gmail.com>
1928 * debugger-agent.c (vm_commands): Implement EXIT by invoking Environment.Exit ()
1929 on a random thread if possible.
1931 * aot-runtime.c (mono_aot_plt_resolve): Clean up the handling of function
1932 descriptors a bit, add comments, handle RGCTX_FETCH/GENERIC_CLASS_INIT_TRAMPOLINE
1935 * exceptions-ppc.c (mono_arch_find_jit_info_ext): Use mgreg_t as the type of
1936 regs. Pass the real size of the regs array to mono_unwind_frame ().
1938 * unwind.c (mono_unwind_frame): Remove an incorrect assert, add more correct
1941 2009-11-24 Geoff Norton <gnorton@novell.com>
1943 * mini-darwin.c: Work around apple bug rdar://7209349 See
1944 http://openradar.appspot.com/7209349 for details. Synopsis,
1945 CoreFoundation SIGTRAP's if you dlopen it off the main thread if its
1946 never been initialized before.
1948 2009-11-24 Zoltan Varga <vargaz@gmail.com>
1950 * tramp-arm.c: Use blx instead of mov pc, reg to improve support for thumb.
1952 * mini-arm.c (mono_arm_thumb_supported): New helper function.
1954 2009-11-24 Zoltan Varga <vargaz@gmail.com>
1956 * cfold.c (mono_constant_fold_ins): Fix a problem in the previous change,
1957 OP_SHL_IMM is not 32 bit.
1959 2009-11-24 Zoltan Varga <vargaz@gmail.com>
1961 * aot-compiler.c (encode_patch): Fix the encoding of R8 on big-endian systems.
1963 2009-11-24 Zoltan Varga <vargaz@gmail.com>
1965 * aot-compiler.c: Avoid infinite recursion when generic virtual recursion is
1968 * debugger-agent.c (resume_vm): Signal the suspend_cond even if suspend_count
1969 > 0 since some threads can resume if their resume_count is > 0.
1970 (invoke_method): Avoid reading freed memory.
1972 * debugger-agent.c (process_suspend): Extract the suspend code from
1973 process_single_step_inner () to a separate function. Rework the code to prevent
1974 races between this function and thread interrupts.
1976 * debugger-agent.c (suspend_current): Check the resume_count field instead
1977 of resume_one so suspends+resumes during single threaded invokes work
1980 2009-11-23 Zoltan Varga <vargaz@gmail.com>
1982 * aot-compiler.c (emit_llvm_file): Enable some llvm optimizations which seem
1983 to make the generated code smaller.
1985 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Add a code
1986 sequence generated by recent LLVM versions.
1988 * mini-llvm.c: Add support for a few simple cases which weren't supported
1991 * mini-trampolines.c (mono_magic_trampoline): Don't call
1992 mono_arch_get_vcall_slot () when llvm is enabled.
1994 * aot-compiler.c (emit_llvm_file): Add code to run the 'opt' llvm tool.
1996 * mini-trampolines.c (mono_magic_trampoline): Extract the bulk of this function
1997 into a new function called common_call_trampoline () which is used by the
1998 llvm vcall trampoline as well.
2000 * debugger-agent.c: Implement single threaded invokes.
2002 * debugger-agent.c: Revert change which broke the agent on linux.
2004 * method-to-ir.c (inline_method): Prevent infinite recursion. Fixes
2007 * generics.cs: Add a test.
2009 2009-11-22 Zoltan Varga <vargaz@gmail.com>
2011 * debugger-agent.c: Fix the cygwin build.
2013 2009-11-21 Zoltan Varga <vargaz@gmail.com>
2015 * cprop.c: Remove this unused file.
2017 2009-11-21 Zoltan Varga <vargaz@gmail.com>
2019 * cfold.c (mono_constant_fold_ins): Fix constant folding of shr_imm. Fixes
2022 * basic.cs: Add a test.
2024 2009-11-21 Zoltan Varga <vargaz@gmail.com>
2026 * method-to-ir.c (mono_method_to_ir): Use mono_use_llvm instead of ENABLE_LLVM
2029 2009-11-20 Zoltan Varga <vargaz@gmail.com>
2031 * mini.c mini-trampolines.c driver.c: Add a 'mono_use_llvm' flag to control
2032 whenever the runtime uses LLVM code. Add a '--llvm' command line option to set
2033 it. Use this flag to control llvm related code paths instead of #ifdef
2034 ENABLE_LLVM, so a runtime configured without --enable-llvm can use LLVM compiled
2037 * aot-runtime.c aot-compiler.c: Add a 'flag' field to MonoAotFileInfo.
2039 * mini.h: Bump AOT file format version.
2041 * tramp-ppc.c (mono_arch_create_generic_class_init_trampoline_full): These
2042 receive their argument in MONO_ARCH_VTABLE_REG, not in the first argument reg.
2044 * debugger-agent.c (create_event_list): Fix a crash if an empty assembly list
2045 was used as an assembly filter.
2047 2009-11-19 Zoltan Varga <vargaz@gmail.com>
2049 * unwind.c: Fix support for ppc.
2051 * exceptions-ppc.c (mono_arch_find_jit_info): Change this to use dwarf frame
2052 unwind info. Change to the mono_arch_find_jit_info_ext () interface.
2054 2009-11-19 Zoltan Varga <vargaz@gmail.com>
2056 * mini-ppc.c (mono_arch_emit_prolog): Fix a copy-paste error to fix the ppc64
2058 (mono_arch_cpu_init): Don't set cpu_hw_flags to 0 at the end, this was somehow
2059 added by the ps3 changes.
2061 2009-11-19 Zoltan Varga <vargaz@gmail.com>
2063 * mini-gc.c: Resurrect this, so at least it compiles.
2065 * debugger-agent.c (assembly_commands): Implement GET_NAME command.
2067 2009-11-18 Zoltan Varga <vargaz@gmail.com>
2069 * debugger-agent.c (mono_debugger_agent_handle_exception): Pass a MonoJitInfo to
2070 create_event_list () so assembly filters can be used.
2072 * exceptions-ppc.c (mono_arch_find_jit_info): Fix the restoration of registers
2075 2009-11-17 Zoltan Varga <vargaz@gmail.com>
2077 * debugger-agent.c (mono_debugger_agent_breakpoint_hit): Fix a warning.
2078 (mono_debugger_agent_thread_interrupt): Make this return FALSE if the agent
2081 * aot-compiler.c (add_generic_instances): Emit instances of common generic
2082 classes for char/bool too.
2084 * debugger-agent.c (DebuggerTlsData): Honor the DISABLE_SOFT_DEBUG option.
2086 * debugger-agent.c (DebuggerTlsData): Add a 'really_suspended' flag, not yet
2089 * debugger-agent.c: Add some definitions to make backporting to 2.6 easier.
2092 2009-11-15 Andreas Faerber <andreas.faerber@web.de>
2094 * debugger-agent.c (mono_debugger_agent_thread_interrupt): Signature fix.
2096 Code contributed under MIT/X11 license.
2098 2009-11-14 Zoltan Varga <vargaz@gmail.com>
2100 (mono_debugger_agent_thread_interrupt): Save the context so stacktraces for
2101 threads in native code work.
2103 * debugger-agent.c: Pass the 'flags' argument to VM_INVOKE_METHOD earlier in
2104 the parameter list, so it can be acted upon by vm_commands (). Bump protocol
2107 2009-11-13 Jonathan Chambers <joncham@gmail.com>
2109 * debugger-agent.c: Implementation for Windows platform.
2111 * mini-x86.c: Add support for Windows. Use mono-* synchronization
2112 primitives. Use SEH to implement breakpoints and single stepping.
2114 * mini-x86.h: Enable soft debugger on Windows.
2116 Code contributed under MIT/X11 license.
2118 2009-11-13 Zoltan Varga <vargaz@gmail.com>
2120 * mini-amd64.c (emit_call_body): Disable usage of near calls when running
2121 under XEN. Fixes #522894.
2123 * patch-info.h: Add LLVM_IMT_TRAMPOLINE.
2125 * mini-llvm.c aot-compiler.c aot-runtime.c mini.c: Add support for making
2126 interface calls in LLVM AOT code.
2128 * aot-compiler.c mini-llvm.c: Abort llvm compilation if a non-encodable patch
2131 * mini-llvm.c: Add support for OP_VPHI.
2133 * objects.cs: Add a test.
2135 2009-11-13 Zoltan Varga <vargaz@gmail.com>
2137 * debugger-agent.c (mono_debugger_agent_single_step_event): Avoid a crash if
2138 this is called on the debugger thread.
2140 2009-11-12 Zoltan Varga <vargaz@gmail.com>
2142 * mini-llvm.c: Add soft-float support.
2144 * method-to-ir.c (mono_decompose_soft_float): Restart after decomposing an
2145 FCALL which returns an R4.
2147 * driver.c (mono_main): Add a missing '\n'.
2149 * mini-trampolines.c (mono_create_llvm_imt_trampoline): Fix the build on
2150 platforms which doesn't support the LLVM IMT trampoline.
2152 2009-11-11 Zoltan Varga <vargaz@gmail.com>
2154 * mini-llvm.c (mono_llvm_emit_method): Fix LOCALLOC.
2156 * mini-llvm-cpp.cpp: Update to latest LLVM SVN.
2158 * mini-llvm.c (mono_llvm_emit_method): Avoid creating plt entries for
2161 * aot-runtime.c: Don't define HAVE_DL_ITERATE_PHDR, configure now does that.
2163 2009-11-10 Zoltan Varga <vargaz@gmail.com>
2165 * aot-compiler.c aot-runtime.c: Change how mono_arch_find_jit_info () works.
2166 Instead of emitting a method_order table, sort the contents of the code_offsets
2167 table and do a binary search in the sorted table. The previous approach doesn't
2168 work with LLVM which emits methods in a arbitrary order.
2170 * aot-runtime.c: Add support for creating MonoJitInfo structures by searching
2171 in the .eh_frame section in ELF files.
2173 * mini.h: Bump corlib file format version.
2175 * mini-llvm.c aot-compiler.c: Add support for AOT to the LLVM back end.
2177 * exceptions-arm.c (mono_arch_get_call_filter_full): Update after the
2178 LDMIA->LDM macro name change.
2180 2009-11-09 Zoltan Varga <vargaz@gmail.com>
2182 * tramp-x86.c (mono_arch_get_llvm_imt_trampoline): Fix and enable this for
2185 * mini-llvm-cpp.cpp (JITMemoryManager): Fix compilation with LLVM 2.7
2188 * aot-compiler.c: Ditto.
2190 * mini-arm.c (mono_arch_allocate_vars): Fix the previous change by passing
2191 &align to mini_type_stack_size_full ().
2193 * mini-arm.c (mono_arch_emit_prolog): Implement support for varargs.
2195 * mini-ops.h: Add documentation for the OP_ARGLIST opcode.
2197 2009-11-08 Zoltan Varga <vargaz@gmail.com>
2199 * mini-arm.c: Compute the stack space used by arguments using
2200 mini_type_stack_size_full ().
2202 2009-11-08 Zoltan Varga <vargaz@gmail.com>
2204 * optflags-def.h: Remove dead TREEPROP optimization.
2206 2009-11-08 Rodrigo Kumpera <rkumpera@novell.com>
2208 * mini-ppc.h: Make mono compiler under FreeBSD/ppc64.
2210 Patch by Justin Hibbits <chmeeedalf@gmail.com>.
2212 2009-11-07 Zoltan Varga <vargaz@gmail.com>
2214 * driver.c (mono_jit_parse_options): New public API function to parse options
2215 as done by the runtime executable.
2217 * debugger-agent.c (buffer_add_cattrs): Fix reading an uninitialized variable
2218 when handling named arguments.
2220 2009-11-07 Zoltan Varga <vargaz@gmail.com>
2222 * mini-arm.c: Implement support for returning vtypes in registers, fix support
2223 for passing small vtypes in registers, make the CallInfo structures more
2224 similar to the code on the other platforms.
2226 * mini-arm.c (mono_arch_allocate_vars): Align small vtypes to 4 bytes too since
2227 the code in the prolog requires it.
2229 2009-11-06 Zoltan Varga <vargaz@gmail.com>
2231 * mini-arm.c debugger-agent.c: Android changes from Koushik K. Dutta
2232 (koush@koushikdutta.com).
2234 * mini-arm.c (handle_thunk): Add a domain argument to control the domain
2235 where the thunk memory should be allocated from. Fixes appdomain unloading
2238 2009-11-06 Zoltan Varga <vargaz@gmail.com>
2240 * mini-arm.c exceptions-arm.c: Make ctx->regs map directly to the 16 hardware
2241 registers, instead of r4..r11,ip,lr. Make restore_context () restore r0..r3 too.
2243 2009-11-05 Zoltan Varga <vargaz@gmail.com>
2245 * mini-amd64.c (mono_arch_output_basic_block): Don't allow OP_SEQ_POINT in
2246 AOT, as it is not implemented yet.
2248 * mini-x86.c (mono_arch_output_basic_block): Ditto.
2250 2009-11-05 Rodrigo Kumpera <rkumpera@novell.com>
2252 * debugger-agent.c: Fix windows build.
2254 2009-11-05 Zoltan Varga <vargaz@gmail.com>
2256 * debugger-agent.c (debugger_thread): Call mono_set_is_debugger_attached ()
2257 after the client connects/disconnects.
2259 * debugger-agent.c: Add an 'onthrow' option to start the debugger agent
2260 when an exception of a given type is thrown.
2262 * debugger-agent.c: Add a 'onuncaught' option to start the debugger agent
2263 only on an uncaught exception.
2265 * mini-exceptions.c: Notify the debugger agent on an uncaught exception.
2267 * debugger-agent.c: Add a 'launch' option.
2269 2009-11-05 Zoltan Varga <vargaz@gmail.com>
2271 * debugger-agent.c: Add a 'timeout' option.
2273 2009-11-05 Zoltan Varga <vargaz@gmail.com>
2275 * debugger-agent.c: Implement the 'server' and 'suspend' options supported by
2278 2009-11-05 Zoltan Varga <vargaz@gmail.com>
2280 * debugger-agent.c (set_breakpoint): Emit a log message.
2282 2009-11-04 Zoltan Varga <vargaz@gmail.com>
2284 * mini-arm.c: Fix the arm build.
2286 2009-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
2288 * aot-compiler.c: don't leak the value returned from
2289 mono_type_full_name().
2291 2009-11-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
2293 * debugger-agent.c: defer including mono-mutex.h until we know the
2296 2009-11-04 Jonathan Chambers <joncham@gmail.com>
2298 * debugger-agent.c: Changes to build on windows. Use mono-mutex instead
2299 of pthreads directly.
2301 * mini.c (mono_sigfpe_signal_handler): Changed signature of Windows
2302 exception handlers. Pass info argument.
2304 * mini.h: Adjust signatures of soft debugger functions to pass void*
2305 instead of siginfo_t. Adjust SIG_HANDLER_SIGNATURE on Windows.
2307 * mini-amd64.c (mono_arch_is_single_step_event): Adjust signature to pass void*
2308 instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
2309 (mono_arch_is_breakpoint_event): Adjust signature to pass void*
2310 instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
2312 * mini-amd64.h: Adjust MonoW32ExceptionHandler signature.
2314 * mini-x86.c (mono_arch_is_single_step_event): Adjust signature to pass void*
2315 instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
2316 (mono_arch_is_breakpoint_event): Adjust signature to pass void*
2317 instead of siginfo_t. Value is EXCEPTION_RECORD on Windows.
2319 * mini-x86.h: Adjust MonoW32ExceptionHandler signature.
2321 * exceptions-x86.c: Adjust W32_SEH_HANDLE_EX for new signature.
2323 * exceptions-amd64.c: Adjust W32_SEH_HANDLE_EX for new signature.
2325 * mono-semaphore.h: Skeleton implementation for Windows.
2327 Code contributed under MIT/X11 license.
2329 2009-11-04 Jonathan Chambers <joncham@gmail.com>
2331 * simd-intrinsics.c (simd_intrinsic_emit_setter): Unfix my fix.
2333 Code contributed under MIT/X11 license.
2335 2009-11-04 Jonathan Chambers <joncham@gmail.com>
2337 * simd-intrinsics.c (simd_intrinsic_emit_setter): Fix windows build.
2339 Code contributed under MIT/X11 license.
2341 2009-11-04 Zoltan Varga <vargaz@gmail.com>
2343 * aot-compiler.c (mono_save_xdebug_info): Bump the threshold for flushing
2344 debug info to 100 because 10 still slows down gdb too much.
2346 * method-to-ir.c (mono_method_to_ir): Avoid rethrowing thread abort exceptions
2347 inside runtime invoke wrappers. This avoids the need to call ResetAbort () on
2348 them in the wrappers.
2350 2009-11-03 Zoltan Varga <vargaz@gmail.com>
2352 * mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.
2354 * simd-intrinsics.c (simd_intrinsic_emit_setter): Fix a warning.
2356 * aot-runtime.c (mono_aot_get_method): Refactor some code into a new helper
2357 function mono_aot_get_array_helper_from_wrapper ().
2359 * aot-compiler.c (add_generic_class): Refactor the code a bit, really emit
2360 array helper methods.
2362 2009-11-03 Rodrigo Kumpera <rkumpera@novell.com>
2364 * simd-intrinsics.c (load_simd_vreg): Add extra argument to signal if
2365 the value was loaded from memory.
2367 * simd-intrinsics.c (simd_intrinsic_emit_setter): Store back to memory if
2368 the value was loader from there.
2370 * simd-intrinsics.c (simd_intrinsic_emit_shuffle): Fail correctly for Shuffle
2371 without constant swizzle.
2373 2009-11-02 Jonathan Chambers <joncham@gmail.com>
2375 * mini-amd64.c: Put soft debugger functions behind a
2376 #ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED.
2378 * mini-amd64.h: disable the soft debugger in windows.
2380 Code contributed under MIT/X11 license.
2382 2009-11-02 Jonathan Chambers <joncham@gmail.com>
2384 * mini-x86.c: Put soft debugger functions behind a
2385 #ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED.
2387 Code contributed under MIT/X11 license.
2389 2009-11-02 Jonathan Chambers <joncham@gmail.com>
2391 * exceptions-x86.c (win32_handle_stack_overflow): Fix parameters
2392 to mono_arch_find_jit_info_ext.
2394 Code contributed under MIT/X11 license.
2396 2009-11-03 Zoltan Varga <vargaz@gmail.com>
2398 * debugger-agent.c: Include netinet/in.h to fix the bsd build.
2400 * debugger-agent.c: Add support for filtering events by assemblies.
2402 * debugger-agent.c (mono_debugger_agent_thread_interrupt): Return false if
2403 the agent is not enabled.
2405 2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
2407 * exceptions-x86.c: hopefully last change to fix the windows build.
2408 This one courtesy of Jonathan Chambers.
2410 2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
2412 * debugger-agent.c: remove unused function.
2414 2009-11-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
2416 * debugger-agent.c: add #ifdefs for a few header files.
2417 * mini-x86.h: disable the soft debugger in windows.
2418 Step 1 of 2 to make this compile on windows with gcc.
2420 2009-11-02 Zoltan Varga <vargaz@gmail.com>
2422 * tramp-x86.c (mono_arch_get_llvm_imt_trampoline): Comment this out for now
2423 as it breaks the build.
2425 2009-07-01 Zoltan Varga <vargaz@gmail.com>
2427 Merge the soft debugger branch.
2429 * debugger-agent.h debugger-agent.c: New files containing the soft
2430 mode debugger module.
2432 * method-to-ir.c (mono_method_to_ir): Generate OP_SEQ_POINT opcodes
2433 at the appropriate locations.
2435 * mini-<ARCH>.c (mono_arch_output_basic_block): Handle OP_SEQ_POINT
2438 * mini-<ARCH>.c: Add new arch-specific functions to set/clear breakpoints,
2439 enable/disable single stepping.
2441 * exceptions-<ARCH>.c (mono_arch_find_jit_info_ext): New stack unwinding api
2442 which returns all information in a StackFrameInfo structure, and can handle the
2443 LMF frames added by the debugger.
2445 * mini-<ARCH>.h (MonoLMFExt): New structure containing additional information
2448 * mini-exceptions.c (mono_jit_walk_stack_from_ctx_in_thread): New stack
2449 walker function which works on a specific thread and passes a StackFrameInfo
2450 structure to its callback.
2452 * mini.c (mini_init): Initialize the debugger agent.
2454 * aot-compiler.c aot-runtime.c: Add soft-debug support.
2456 * mini-ops.h: Add OP_SEQ_POINT opcode.
2458 * driver.c (mono_main): Add new '--debugger-agent' option for passing
2459 arguments to the debugger agent.
2461 2009-11-02 Zoltan Varga <vargaz@gmail.com>
2463 * mini.c (mini_method_compile): Disable llvm for methods with an lmf here to
2466 * mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOCALLOC.
2468 * tramp-x86.c (mono_arch_get_llvm_imt_trampoline): Implement this for x86.
2470 * mini.c (mini_init): Avoid using the IMT trampoline in the LLVM case.
2472 * mini-trampolines.c (mono_llvm_vcall_trampoline): Add a static rgctx trampoline
2474 (mono_create_llvm_imt_trampoline): New function to create a trampoline which
2475 sets the IMT argument and makes a virtual call.
2477 * mini-llvm.c: Enable interface calls using the llvm imt trampoline.
2479 2009-11-01 Zoltan Varga <vargaz@gmail.com>
2481 * Makefile.am (llvm_sources): Enable the llvm option since it no longer breaks
2484 2009-10-30 Zoltan Varga <vargaz@gmail.com>
2486 * mini.c (mini_cleanup): Call profiler shutdown before shutting down the
2487 runtime. Fixes #551228.
2489 2009-10-29 Zoltan Varga <vargaz@gmail.com>
2491 * mini-x86.c (mono_arch_output_basic_block): Fix % 1. Fixes #550970.
2493 * basic.cs: Add a test.
2495 * method-to-ir.c (mono_method_to_ir): Use EMIT_NEW_LOAD_MEMBASE_TYPE to
2496 load vtypes instead if OP_LOADV_MEMBASE in the implementation of
2497 CONSTRAINED. Fixes #550964.
2499 * generics.cs: Add a test.
2501 2009-10-28 Mark Probst <mark.probst@gmail.com>
2503 * mini-posix.c (add_signal_handler): Use
2504 mono_gc_get_suspend_signal() instead of GC_get_suspend_signal().
2506 2009-10-28 Jerry Maine <crashfourit@gmail.com>
2508 Contributed under the terms of the MIT/X11 license by
2509 Jerry Maine <crashfourit@gail.com>.
2511 * mini-x86.c (mono_arch_cpu_enumerate_simd_versions): Added code to detect
2512 sse4a for simd intrinsics.
2514 * mini-amd64.c (mono_arch_cpu_enumerate_simd_versions): Added code to detect
2515 sse4a for simd intrinsics.
2517 2009-10-27 Zoltan Varga <vargaz@gmail.com>
2519 * ir-emit.h method-to-ir.c: Change a few _IMM macros to assign to inst_imm
2520 instead of inst_p1 which is not the same on ILP32 platforms.
2522 2009-10-24 Zoltan Varga <vargaz@gmail.com>
2524 * mini-ppc.c (mono_arch_emit_prolog): Load the current got address,
2525 not the mscorlib one before calling mono_get_lmf_addr.
2527 * tramp-ppc.c (mono_arch_create_trampoline_code_full): Fix the storing
2528 of the ip to the LMF.
2530 * method-to-ir.c (mono_method_to_ir): Fix the handling of the
2531 immediate in the op->op_imm optimization.
2533 * mini-ppc.c: Add a 'vtregs' field to ArgInfo to make the code easier to
2534 understand. VTypes now work, but are not abi compliant, as they are
2535 split into 4 byte parts instead of 8.
2536 (emit_memcpy): Fix the unrolled case to work on the PS3.
2538 * mini-ppc.c (get_delegate_invoke_impl): Fix this for the PS3.
2540 * aot-compiler.c (mono_compile_assembly): Make the autoreg option
2541 the default when static linking.
2543 * mini-ppc.c (mono_arch_emit_prolog): Fix handling of I8 arguments.
2545 * aot-compiler.c: Add an autoreg option to automatically register
2546 statically linked aot modules using ELF .ctors.
2548 * genmdesc.pl: Add __ppc64__ to allowed defines.
2550 2009-10-25 Zoltan Varga <vargaz@gmail.com>
2552 * mini-posix.c (add_signal_handler): Delay the GC suspend signal while
2553 executing a SIGSEGV handler on an altstack, since libgc can't handle that.
2555 2009-10-24 Mark Probst <mark.probst@gmail.com>
2557 * exceptions-x86.c (mono_arch_find_jit_info): Fix build.
2559 2009-10-24 Zoltan Varga <vargaz@gmail.com>
2561 * mini-exceptions.c (mini_jit_info_table_find): Add an 'out_domain' argument
2562 which will contain the domain where the method was found.
2564 * exceptions-<ARCH>.c mini-exceptions.c: Update callers of
2565 mini_jit_info_table_find ().
2567 * aot-compiler.c (xdebug_end_emit): Remove so stray debug code.
2569 * branch-opts.c (mono_if_conversion): Avoid running deadce if it is disabled.
2571 2009-10-22 Zoltan Varga <vargaz@gmail.com>
2573 * mini-x86.c (mono_arch_emit_prolog): Disable aot for methods with save_lmf
2574 set, its not supported yet.
2576 2009-10-22 Zoltan Varga <vargaz@gmail.com>
2578 * aot-runtime.c (mono_aot_get_method): Avoid asserting if a array generic
2579 iface wrapper is not found.
2580 (mono_aot_get_method): Ditto for GetGenericValueImpl.
2582 2009-10-21 Zoltan Varga <vargaz@gmail.com>
2584 * aot-runtime.c (mono_aot_get_method): Fix support for the IList<T> wrappers,
2585 which have a different name.
2587 * aot-runtime.c (mono_aot_get_method): Special case the array generic iface
2588 wrappers and Array.GetGenericValueImpl ().
2590 * aot-compiler.c: Avoid emitting some wrappers which are not needed anymore
2591 because of the change above.
2593 * generics.cs: Add a test for full aot + generic array ifaces.
2595 2009-10-19 Sebastien Pouliot <sebastien@ximian.com>
2597 * aot-compiler.c (emit_plt): Remove duplicate 'debug_sym' variable
2598 that hides the previous one.
2600 2009-10-18 Zoltan Varga <vargaz@gmail.com>
2602 * aot-compiler.c (can_marshal_struct): Allow some System.dll structs to be
2603 marshalled. Fixes #541623.
2605 2009-10-16 Zoltan Varga <vargaz@gmail.com>
2607 * aot-compiler.c (emit_extra_methods): Remove some asserts which are not needed.
2609 2009-10-15 Zoltan Varga <vargaz@gmail.com>
2611 * mini.c (mono_op_imm_to_op): Handle OP_AND/OR/XOR_IMM.
2613 2009-10-14 Massimiliano Mantione <massi@ximian.com>
2615 * mini-posix.c (sigprof_signal_handler):
2616 Implemented support for building stat call chans in different ways.
2618 2009-10-14 Massimiliano Mantione <massi@ximian.com>
2620 * mini-exceptions.c (mono_find_jit_info):
2621 Also check that a jit info has been found (fixes a profiler crash).
2623 2009-10-14 Massimiliano Mantione <massi@ximian.com>
2625 * mini.c (mono_codegen):
2626 Call mono_profiler_code_buffer_new with correct code address.
2628 2009-10-14 Zoltan Varga <vargaz@gmail.com>
2630 * driver.c (mono_main): Change the date in the copyright.
2632 2009-10-14 Mark Probst <mark.probst@gmail.com>
2634 * method-to-ir.c (mono_method_to_ir): Don't use a managed array
2635 allocator in shared generic code for open classes, because we
2636 can't get those classes' vtables. We need to make managed
2637 allocators not depend on the vtable at compile-time to solve this.
2639 2009-10-13 Martin Baulig <martin@ximian.com>
2641 * debug-mini.c (mono_debugger_trampoline_compiled): Add
2642 `const guint8 *trampoline' argument; send both the old and the new
2645 2009-09-30 Zoltan Varga <vargaz@gmail.com>
2647 * aot-compiler.c (add_wrappers): Add a runtime invoke wrapper which is used by
2648 mono_runtime_capture_context () without calling mono_runtime_invoke ().
2649 (can_marshal_struct): Skip structures with auto layout.
2651 * tramp-arm.c (GEN_TRAMP_SIZE): Increase this by 4.
2653 2009-10-02 Zoltan Varga <vargaz@gmail.com>
2655 * mini-sparc.c (mono_arch_emit_setret): Emit long return values using OP_LMOVE.
2656 (mono_arch_create_vars): Instead of allocating a stack slot by hand, allocate
2657 a variable to hold the stack slot used by the int<->float conversion opcodes.
2659 * mini-sparc.c (mono_arch_build_imt_thunk): Implement support for fail_tramp.
2661 2009-10-04 Zoltan Varga <vargaz@gmail.com>
2663 * aot-compiler.c (add_generic_class): Only add GetGenericValueImpl wrappers
2664 when using full-aot.
2666 2009-10-06 Zoltan Varga <vargaz@gmail.com>
2668 * aot-compiler.c (add_generic_class): Add an instance of GenericComparer<T> for
2669 each instance of Comparer<T>.
2671 * generics.cs: Add a new test.
2673 2009-10-09 Zoltan Varga <vargaz@gmail.com>
2675 * driver.c (parse_debug_options): Add a 'gdb' option.
2677 * mini.c (mini_parse_debug_options): Add a 'gdb' option.
2679 * image-writer.c: Add support for emitting the image into a memory buffer.
2681 * dwarfwriter.c: Add support for sharing one IL file between multiple images.
2683 * aot-compiler.c: Add support for registering debug info with GDB using the
2684 new JIT debugging interface in GDB 7.0. It can be turned on by setting
2685 MONO_XDEBUG to 'gdb'.
2687 2009-10-10 Zoltan Varga <vargaz@gmail.com>
2689 * aot-compiler.c (mono_save_trampoline_xdebug_info): Implement this for the
2692 2009-10-11 Zoltan Varga <vargaz@gmail.com>
2694 * aot-compiler.c (mono_save_xdebug_info): Emit a symbol for the method which
2695 can be used to set breakpoints in gdb.
2697 * image-writer.c (bin_writer_emit_writeout): Add support for setting the text
2698 segment to an absolute address.
2700 2009-10-13 Mark Probst <mark.probst@gmail.com>
2702 * method-to-ir.c: Use the managed array allocator method if
2705 2009-10-13 Bill Holmes <billholmes54@gmail.com>
2707 * aot-compiler.c : Fix the MSVC builds
2709 Code is contributed under MIT/X11 license.
2711 2009-10-13 Zoltan Varga <vargaz@gmail.com>
2713 * aot-compiler.c (mono_save_xdebug_info): Group methods into groups of 10 to
2714 avoid registering 1 symbol file per method with gdb.
2716 2009-09-29 Zoltan Varga <vargaz@gmail.com>
2718 * mini-sparc.c: Fix the handling of enums with base type long.
2720 * mini-sparc.c (mono_arch_output_basic_block): Fix IREM_UN_IMM.
2722 * mini-sparc.c (mono_arch_allocate_vars): Use mono_class_from_mono_type ()
2723 instead of using type->data.klass as the later doesn't work with generics.
2725 2009-09-25 Mark Probst <mark.probst@gmail.com>
2727 * method-to-ir.c, mini.h, mini-alpha.c, mini-amd64.c, mini-arm.c,
2728 mini-hppa.c, mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c,
2729 mini-s390x.c, mini-sparc.c, mini-x86.c: Thread.get_CurrentThread
2730 works differently now and we don't handle it in the JIT anymore.
2732 * mini.c, mini-exceptions.c, mini-posix.c, debug-debugger.c,
2733 debug-mini.c, tramp-amd64.c, tramp-x86.c: Changes resulting from
2734 the Thread class split.
2736 2009-09-25 Zoltan Varga <vargaz@gmail.com>
2738 * driver.c: Don't run tests with the obsolete treeprop optimization.
2740 * mini-sparc.c (mono_arch_create_vars): Make the component vars of a long ret
2741 variable volatile. Fixes #541577.
2743 * basic-calls.cs: Add a new test.
2745 * basic-long.cs: Remove tests which are now in basic-calls.cs.
2747 2009-09-24 Zoltan Varga <vargaz@gmail.com>
2749 * dwarfwriter.c (emit_debug_info_end): Disable this as it doesn't seem to
2750 work/required with recent iphone sdk versions.
2752 * aot-compiler.c (add_wrappers): Generate PtrToStructure wrappers for more
2755 * decompose.c (mono_decompose_vtype_opts): Avoid reading uninitialized memory
2756 in the VCALL decomposition code.
2758 2009-09-22 Zoltan Varga <vargaz@gmail.com>
2760 * mini-ia64.c (mono_arch_output_basic_block): Fix ISHR/ISHR_IMM.
2762 * basic.cs: Add a test.
2764 * mini-ia64.c (mono_arch_build_imt_thunk): Implement support the virtual
2767 * mini-exceptions.c (mini_jit_info_table_find): New helper function which
2768 searches all the domains of the current thread.
2770 * exceptions-<ARCH>.c: Use it. Fixes #539394.
2772 2009-09-21 Zoltan Varga <vargaz@gmail.com>
2774 * exceptions-arm.c (mono_arm_throw_exception): Set ctx->ebp to fp instead of sp
2775 so catching exceptions thrown in the same method works. Fixes exception17.exe.
2777 * tramp-arm.c (mono_arch_create_trampoline_code_full): Store NULL into lmf->method
2778 for non-jit trampolines.
2780 * mini.c (mono_jit_runtime_invoke): Allow string ctors with dyn runtime invoke.
2782 * aot-compiler.c (add_wrappers): Ditto.
2784 * mini-arm.c: Implement support for passing vtypes and floats, and increase
2785 the size of the param area used by dyn_call to 6 which covers the majority of
2788 * mini.c aot-compiler.c: Allow dyn_call for string methods except ctors.
2790 * mini-arm.c: Implement support for passing/receiving
2791 longs and receiving floats in the dyn_call code.
2793 * mini-amd64.c: Implement support for receiving vtypes in registers in
2796 * mini.c mini-amd64.c: Implement partial support for passing vtypes in
2799 2009-09-20 Zoltan Varga <vargaz@gmail.com>
2801 * mini-arm.c (get_call_info): Return more precise information in
2803 (dyn_call_supported): Use the information in CallInfo.
2805 * mini-arm.c: Enable support for returning vtypes in the dyn_call code.
2807 * mini.c mini-amd64.c: Enable support for returning vtypes in the dyn_call
2810 * mini-arm.c: Update after the dyn_call api changes.
2812 * mini.c (mini_create_jit_domain_info): Register a destructor function
2813 for the runtime_invoke_hash.
2815 * mini-amd64.c (mono_arch_get_dyn_call_args): Rename this to
2816 'mono_arch_dyn_call_start'. Pass the pointer to the return value buffer to
2818 (mono_arch_get_dyn_call_ret): Rename this to 'mono_arch_dyn_call_finish'.
2819 (dyn_call_supported): Simplify this by using get_call_info ().
2820 (mono_arch_dyn_call_free): New destructor function.
2822 * generics.cs: Remove a printf.
2824 * method-to-ir.c (mono_method_to_ir): Allocate some param area for DYN_CALL.
2826 * mini-arm.c: Add support for enum return values and passing a few arguments
2829 * mini.c (mono_jit_runtime_invoke): Add support for enum return values to
2832 * mini-amd64.c (mono_arch_get_dyn_call_ret): Ditto.
2834 * aot-compiler.c (add_wrappers): Add a few restrictions for the use of
2835 the dynamic invoke wrappers.
2837 * mini-arm.c: Implement OP_DYN_CALL for arm.
2839 * aot-compiler.c (add_wrappers): Avoid aot-ing runtime invoke wrappers
2840 supported by the dynamic runtime invoke wrapper.
2842 * aot-compiler.c aot-runtime.c: Add support for encoding the dynamic
2843 runtime invoke wrapper.
2845 * mini.c (mono_jit_runtime_invoke): Use the dynamic runtime invoke wrappers
2846 if possible when running with full-aot.
2848 * mini-ops.h: Add OP_DYN_CALL opcode.
2850 * mini-amd64.c method-to-ir.c: Add infrastructure for making method calls
2851 with dynamic arguments lists similar to libffi.
2853 2009-09-19 Zoltan Varga <vargaz@gmail.com>
2855 * method-to-ir.c: Fix the previous change on 64 bit platforms.
2857 * method-to-ir.c: Applied patch from Rodrigo Kumpera. Allow an i8 argument
2860 * iltests.il.in: Add a new test.
2862 2009-09-18 Zoltan Varga <vargaz@gmail.com>
2864 * aot-compiler.c (add_generic_instances): Add more instances of
2865 GenericEqualityComparer.
2867 2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
2869 * mini.c: Add asserts for mono_class_vtable calls that are not meant to fail.
2871 2009-09-18 Rodrigo Kumpera <rkumpera@novell.com>
2873 * method-to-ir.c: Handle failures from mono_class_vtable. Added some
2874 comments on some functions that now can fail.
2876 2009-09-17 Andrew Jorgensen <ajorgensen@novell.com>
2878 * Makefile.am: Add Info.plist to EXTRA_DIST
2880 2009-09-16 Zoltan Varga <vargaz@gmail.com>
2882 * method-to-ir.c (mono_method_to_ir): Allow AOT for CEE_LDTOKEN in
2883 static synchronized wrappers. Fixes #539500.
2885 2009-09-14 Rodrigo Kumpera <rkumpera@novell.com>
2887 * jit-icalls.c (mono_class_static_field_address): handle vtable failure
2890 2009-09-16 Zoltan Varga <vargaz@gmail.com>
2892 * mini-exceptions.c (mono_handle_exception_internal): Store the computed
2893 lmf before calling filter clauses as well. Fixes #539550.
2895 * exceptions.cs: Add a test.
2897 2009-09-14 Zoltan Varga <vargaz@gmail.com>
2899 * aot-compiler.c (add_generic_class): Add instances of
2900 Array.GetGenericValueImpl as well.
2902 * Makefile.am (fullaotcheck): Copy and aot more assemblies so linq
2905 * generics.cs: Add a fullaot linq test.
2907 2009-09-10 Zoltan Varga <vargaz@gmail.com>
2909 * aot-compiler.c (arch_emit_static_rgctx_trampoline): Don't clobber argument
2912 2009-09-10 Bill Holmes <billholmes54@gmail.com>
2914 * mini-trampolines.c (mono_delegate_trampoline) : Call
2915 mono_cominterop_get_invoke if the delegate target object
2918 Code is contributed under MIT/X11 license.
2920 2009-09-09 Sebastien Pouliot <sebastien@ximian.com>
2922 * method-to-ir.c: For CoreCLR throw a SecurityException if an
2923 internal call is defined outside platform code. Reduce code
2924 duplication with existing [Method|Field]AccessException
2926 2009-09-08 Rodrigo Kumpera <rkumpera@novell.com>
2928 * mini-x86.c (mono_arch_emit_call): Don't reduce stack usage by 4
2929 if the return value is a small struct passed on regs.
2931 2009-09-09 Zoltan Varga <vargaz@gmail.com>
2933 * cpu-arm.md mini-arm.c: Remove unused opcodes.
2935 * mini-codegen.c: Enable the cpu description validation for arm.
2937 2009-09-08 Zoltan Varga <vargaz@gmail.com>
2939 * basic-calls.cs: Move the test_0_float_load_and_store_with_big_offset ()
2940 test which depends on structs to objects.cs.
2942 * basic-calls.cs: Remove calls to Console.WriteLine and throws, since those
2943 require object model related stuff working.
2945 * cpu-x86.md mini-x86.c: Remove more unused opcodes.
2947 * mini-ops.h: Fix OP_BIGMUL instruction descriptions.
2949 * mini-codegen.c (mono_local_regalloc): Validate the cpu description
2950 against the instruction metadata in mini-ops.h. amd64 only for now.
2952 * mini-ops.h: Fix some instruction descriptions.
2954 * mini-ops.h mini-x86.c mini-amd64.c cpu-<ARCH>.md: Remove some
2955 unused instructions.
2957 2009-09-06 Zoltan Varga <vargaz@gmail.com>
2959 * exceptions.cs: Add a new test.
2961 2009-09-05 Rodrigo Kumpera <rkumpera@novell.com>
2963 * mini-x86.c (needs_stack_frame): OSX requires full frames to keep proper alignment.
2965 2009-09-06 Zoltan Varga <vargaz@gmail.com>
2967 * mini-llvm.c (mono_llvm_emit_method): Add a few more missing casts,
2968 skip empty phi opcodes.
2970 * mini-llvm.c (mono_llvm_emit_method): Handle unsigned volatile variables
2971 correctly by zero extending after loads. Skip methods containing calls
2972 to the monitor enter/exit trampolines.
2974 * tramp-x86.c (mono_arch_create_trampoline_code): Align the stack
2975 when calling mono_thread_force_interruption_checkpoint ().
2977 * mini.c (mini_method_compile): Disable llvm when AOT compiling.
2979 * tramp-amd64.c (mono_arch_patch_callsite): Add support for 32 bit ->
2981 (mono_arch_nullify_class_init_trampoline): Read 'buf' instead of 'code'.
2983 * mini-llvm.c (mono_llvm_emit_method): Add a few missing conversions so a
2984 bootstrap could run.
2986 2009-09-04 Zoltan Varga <vargaz@gmail.com>
2988 * mini.c (mini_init): Set callbacks.get_runtime_build_info ().
2990 2009-09-03 Zoltan Varga <vargaz@gmail.com>
2992 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass the start
2994 mono_breakpoint_clean_code () when using LLVM as the prologues generated by
2995 LLVM might be very short.
2997 * mini-x86.c (mono_arch_output_basic_block): Maintain stack alignment
2998 in OP_THROW/RETHROW.
3000 * exceptions-x86.c: Rewrite the throw trampolines so they maintain stack
3003 2009-09-03 Zoltan Varga <vargaz@gmail.com>
3005 * mini-amd64.c (mono_arch_get_vcall_slot): Pass the start of the method to
3006 mono_breakpoint_clean_code () when using LLVM as the prologues generated by
3007 LLVM might be very short.
3009 2009-09-01 Zoltan Varga <vargaz@gmail.com>
3011 * exceptions-x86.c (throw_exception): Fix the previous change by substracting
3012 the alignment for the value of sp.
3014 2009-09-01 Geoff Norton <gnorton@novell.com>
3016 * mini.c (mono_get_lmf_addr): Fix jit_thread_attach for native to
3017 managed wrappers in full aot.
3019 2009-08-31 Zoltan Varga <vargaz@gmail.com>
3021 * exceptions-x86.c (get_throw_exception): Align the stack on osx.
3023 2009-08-28 Zoltan Varga <vargaz@gmail.com>
3025 * mini-llvm-cpp.cpp mini-llvm.c: Update to latest llvm api.
3027 2009-08-25 Zoltan Varga <vargaz@gmail.com>
3029 * aot-compiler.c (emit_exception_debug_info): Emit ei->flags too.
3031 * aot-runtime.c (decode_exception_debug_info): Decode ei->flags from the
3034 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
3036 * aot-runtime.c aot-compiler.c: Emit exception causes fully so we don't
3037 depend on the info MonoMethodHeader which could be missing in IL stripped
3040 2009-08-25 Zoltan Varga <vargaz@gmail.com>
3042 * mini-arm.c (add_general): Fix the passing of 64 bit values on darwin, where
3043 they are only 4 byte aligned.
3045 2009-08-21 Zoltan Varga <vargaz@gmail.com>
3047 * mini-arm.c (mono_arch_allocate_vars): Use FP as the frame pointer as
3048 was done previously, since using SP causes too many problems.
3050 * exceptions-arm.c: Fix the handling of sp/fp so unwinding through
3051 frames without a frame pointer works.
3053 * mini-arm.c (mono_arch_get_global_int_regs): Avoid using V5 as a
3054 global register in methods with calls, since the calls can go through
3055 a static rgctx trampoline which doesn't save it.
3057 2009-08-19 Zoltan Varga <vargaz@gmail.com>
3059 * mini-arm.c (mono_arch_context_get_int_reg): Handle SP as well.
3061 2009-08-18 Zoltan Varga <vargaz@gmail.com>
3063 * aot-compiler.c (add_generic_instances): Fix the net 1.1 build.
3065 2009-08-18 Christian Hergert <chris@dronelabs.com>
3067 * method-to-ir.c: Fix warnings for uninitialized variables.
3069 2009-08-18 Christian Hergert <chris@dronelabs.com>
3071 * mini-exceptions.c:
3072 * aot-compiler.c: Fix printf warnings.
3074 2009-08-18 Zoltan Varga <vargaz@gmail.com>
3076 * aot-compiler.c (add_generic_instances): Add string[] wrapper methods.
3077 Add GetGenericValueImpl<string>.
3079 * aot-compiler.c (add_generic_instances): Add instances of
3080 GenericEqualityComparer<T> for primitive types. Only emit the array
3081 wrappers into the mscorlib image.
3083 2009-08-15 Zoltan Varga <vargaz@gmail.com>
3085 * aot-runtime.c (load_method): Rename 'aot_module' -> 'amodule'. Allocate
3086 the methods_loaded array using amodule->info->nmethods.
3088 * mini.h (MonoAotFileInfo): Add an 'nmethods' field.
3089 (MONO_AOT_FILE_VERSION): Bump this.
3091 * aot-compiler.c: Emit more generic instances allowing some parts of linq
3094 * aot-runtime.c (mono_aot_get_unwind_info): Handle the case when the
3095 MonoJitInfo doesn't belong to its methods aot image.
3097 2009-08-14 Zoltan Varga <vargaz@gmail.com>
3099 * mini-arm.c (mono_arch_allocate_vars): Use SP as the default frame reg.
3101 * mini-arm.c: Fix warnings.
3103 * mini-arm.c (mono_arm_emit_load_imm): Only emit a movt if needed.
3105 * mini-arm.c (mono_arm_emit_load_imm): Use movt/movw if the cpu
3108 2009-08-12 Zoltan Varga <vargaz@gmail.com>
3110 * aot-compiler.c (arch_emit_imt_thunk): Rework the arm code to
3111 avoid clobbering IP.
3113 * mini-trampolines.c (mono_magic_trampoline): Allocate a local to
3114 hold the trampoline argument, so its initial value is available during
3117 2009-08-11 Gonzalo Paniagua Javier <gonzalo@novell.com>
3120 * exceptions-hppa.c:
3122 * exceptions-s390x.c:
3123 * exceptions-mips.c:
3125 * exceptions-sparc.c:
3126 * exceptions-alpha.c:
3128 * mini-trampolines.c:
3130 * exceptions-s390.c: add and use #define's instead of sizeof()
3131 for MonoJitInfo and MonoJitInfoTable.
3133 2009-08-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
3138 * tramp-x86.c: use a #define instead of sizeof() for a few
3139 structures that use a zero-length array.
3141 2009-08-07 Rodrigo Kumpera <rkumpera@novell.com>
3143 * method-to-ir.c (mono_method_to_ir/CEE_CONSTRAINED_): Handle the
3144 case when the method is dynamic. Fixes #529238.
3146 2009-08-06 Zoltan Varga <vargaz@gmail.com>
3148 * mini.c (mono_jit_compile_method_inner): Throw an exception instead
3149 of asserting when a method is JIT compiled in full-aot mode.
3151 2009-08-03 Jerry Maine <crashfourit@gmail.com>
3153 Contributed under the terms of the MIT/X11 license by
3154 Jerry Maine <crashfourit@gail.com>.
3156 * fixed wrong dates in changelog.
3158 2009-08-03 Jerry Maine <crashfourit@gmail.com>
3160 Contributed under the terms of the MIT/X11 license by
3161 Jerry Maine <crashfourit@gail.com>.
3163 * basic-simd.cs: added test for packed double square root.
3164 * cpu-amd64.md: added opcode info for packed double square root.
3165 * cpu-x86.md: added opcode info for packed double square root.
3166 * mini-ops.h: added IR opcode for packed double square root.
3167 * mini-x86.c: added IR to native translation code for packed double square root.
3168 * mini-amd64.c: removed todo for packed double square root.
3169 * simd-intrinsics.c: added method to IR opcode converstion for
3170 packed double square root.
3172 2009-08-03 Jerry Maine <crashfourit@gmail.com>
3174 Contributed under the terms of the MIT/X11 license by
3175 Jerry Maine <crashfourit@gail.com>.
3177 * mini-amd64.c: Added a change to help tell the difference as
3178 to what perpose the xmm register is being used--mainly to help
3180 * mini-amd64.h: Changed callee regs to use 15 out of 16
3181 (one used for special cases) xmm registers for both fp
3182 and simd ops. Added define to turn on new feature in the regalloc
3183 that allows fp and simd ops to share the xmm regs happily.
3184 * codegen.c: Added code to detect for which perpose an xmm reg is
3185 being used (fp or simd) and to translate back and forth to the
3186 correct logical reg bank (fp or simd) for 'spill load's.
3188 2009-08-03 Jerry Maine <crashfourit@gmail.com>
3190 Contributed under the terms of the MIT/X11 license by
3191 Jerry Maine <crashfourit@gail.com>.
3193 * basic-simd.cs: Added tests for stressing the regalloc when running with
3194 16 simd regs and when simd and fp ops share the same reg bank.
3196 2009-08-01 Mark Probst <mark.probst@gmail.com>
3198 * method-to-ir.c (mini_emit_stobj): If we call mono_value_copy()
3199 in shared generic code, we might have to look up the class in the
3200 RGCTX. If we use the class directly, compute its GC descriptor.
3202 2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
3204 * mini.c (mono_jit_runtime_invoke): Fix a warning.
3206 2009-07-31 Rodrigo Kumpera <rkumpera@novell.com>
3208 * mini.c (mono_jit_runtime_invoke): Initialize the class and
3209 check for errors. Fixed the case when the class with the Main
3212 2009-07-31 Jerry Maine <crashfourit@gmail.com>
3214 Contributed under the terms of the MIT/X11 license by
3215 Jerry Maine <crashfourit@gail.com>.
3217 * cpu-amd64.md: Fixed simple bug in machine discrition file.
3219 2009-07-31 Zoltan Varga <vargaz@gmail.com>
3221 * mini-sparc.c (mono_arch_output_basic_block): Implement OP_IREM_UN_IMM.
3223 2009-08-30 Rodrigo Kumpera <rkumpera@novell.com>
3225 * method-to-ir.c: Fix naming of stelem and ldelem.
3227 2009-07-30 Zoltan Varga <vargaz@gmail.com>
3229 * driver.c (main_thread_handler): Check that the assembly loaded
3230 matches the filename when doing AOT.
3232 2009-07-30 Mark Probst <mark.probst@gmail.com>
3234 * mini.c: get_ip_from_sigctx installer has been removed, so don't
3237 * mini-x86.h, mini-amd64.h, mini-ppc.h: UCONTEXT macros moved (to
3238 utils/mono-sigcontext.h).
3240 * exceptions-amd64.c: Use the UCONTEXT_GREGS macro instead of an
3243 2009-07-29 Massimiliano Mantione <massi@ximian.com>
3245 * mini.c (mono_codegen):
3246 Call profiler hook to keep track of method code buffers.
3248 2009-07-27 Mark Probst <mark.probst@gmail.com>
3250 * method-to-ir.c: Invoke write barriers for the
3251 Interlocked.(Compare)Exchange JIT intrinsics.
3253 2009-07-26 Raja R Harinath <harinath@hurrynot.org>
3255 * Makefile.am (version.h): Fix issues when built out of tree.
3256 Remove some redundant 'grep's piped through 'sed's.
3258 Fri Jul 24 17:28:37 CEST 2009 Steven Munroe <munroesj@us.ibm.com>
3260 This patch is contributed under the terms of the MIT/X11 license
3262 * mini-ppc.c (mono_arch_output_basic_block):
3263 (OP_STOREI1_MEMBASE_REG): Handle 32-bit offsets combining addis
3264 for bits 32-47 with signed load/store diplacements for bits
3265 48-63. Use prefered base/offset order for indexed form.
3266 (OP_STOREI2_MEMBASE_REG, OP_STORE_MEMBASE_REG): Same.
3267 (OP_LOAD_MEMBASE, OP_LOADI4_MEMBASE, OP_LOADU4_MEMBASE,
3268 OP_LOADI1_MEMBASE, OP_LOADU1_MEMBASE, OP_LOADU2_MEMBASE,
3269 OP_LOADI2_MEMBASE): Same.
3270 (OP_STORER8_MEMBASE_REG, OP_LOADR8_MEMBASE,
3271 OP_STORER4_MEMBASE_REG, OP_LOADR4_MEMBASE): Same.
3272 (OP_STOREI1_MEMINDEX): Use prefered base/offset order for
3274 (OP_STOREI2_MEMINDEX, OP_STORE_MEMINDEX): Same.
3275 (OP_LOAD_MEMINDEX, OP_LOADI4_MEMINDEX, OP_LOADU4_MEMINDEX,
3276 OP_LOADU2_MEMINDEX, OP_LOADI2_MEMINDEX, OP_LOADU1_MEMINDEX,
3277 OP_LOADI1_MEMINDEX): Same
3278 (OP_LOADR4_MEMINDEX, OP_LOADR8_MEMINDEX, OP_STORER4_MEMINDEX,
3279 OP_STORER8_MEMINDEX): Same
3280 (OP_JMP): Use addis/addi sequence for int cfg->stack_usage
3282 (mono_arch_emit_prolog): Handle 32-bit offsets combining addis
3283 for bits 32-47 with signed load/store diplacements for bits
3284 48-63. Use prefered base/offset order for indexed form.
3286 Fri Jul 24 16:57:12 CEST 2009 Steven Munroe <munroesj@us.ibm.com>
3288 This patch is contributed under the terms of the MIT/X11 license
3290 * mini-ppc.c: Define PPC_MOVE_FPR_GPR and PPC_ISA_64.
3291 (mono_arch_get_vcall_slot): Fx pointer to int cast warning.
3292 (mono_arch_decompose_opts): Make OP_ICONV_TO_R4 and
3293 OP_ICONV_TO_R8 decompose conditional on !PPC_ISA_64.
3294 (mono_arch_output_basic_block) [OP_JMP]: Use ppc_load32 for
3295 cfg->stack_usage to avoid size warnings.
3296 (mono_arch_output_basic_block) [__mono_ppc64__]: Replace
3297 store/load sequence with mffgpr if PPC_MOVE_FPR_GPR is true.
3298 (mono_arch_output_basic_block) [!__mono_ppc64__]: For
3299 OP_ICONV_TO_R4 or OP_ICONV_TO_R8 and PPC_ISA_64 use fcfid
3301 (mono_arch_emit_prolog): Move mono_emit_unwind_op_def_cfa
3302 after code varible is initialized.
3303 Add g_assert ppc_is_imm16 for ainfo->offset. Handle
3304 ainfo->size == 8 when ainfo->offset !ppc_is_imm16.
3305 (mono_arch_emit_epilog):
3306 Move Use ppc_load32 for cfg->stack_usage to avoid size
3309 2009-07-24 Mark Probst <mark.probst@gmail.com>
3311 * method-to-ir.c: The write barrier doesn't do the store anymore,
3312 so we have always to emit it. Also, emit the wbarrier after the
3315 2009-07-24 Zoltan Varga <vargaz@gmail.com>
3317 * mini-arm.c (mono_arch_get_delegate_invoke_impls): Add a trampoline
3318 for argument count 3 too.
3320 2009-07-23 Zoltan Varga <vargaz@gmail.com>
3322 * mini.c (mono_jit_compile_method_with_opt): Add an 'ex' argument to let
3323 the caller handle the exceptions.
3324 (mono_jit_runtime_invoke): Handle exceptions thrown while compiling the
3325 method. Fixes #524498.
3327 2009-07-22 Geoff Norton <gnorton@novell.com>
3329 * mini-exceptions.c: Fix build on ia64.
3331 2009-07-22 Mark Probst <mark.probst@gmail.com>
3333 * mini-exceptions.c (ves_icall_get_frame_info): Use write
3336 2009-07-21 Zoltan Varga <vargaz@gmail.com>
3338 * mini-arm.c (mono_arch_emit_prolog): Fix thread attaching in aot
3341 2009-07-20 Zoltan Varga <vargaz@gmail.com>
3343 * basic-simd.cs (Main): Pass args to the test driver.
3345 2009-07-20 Geoff Norton <gnorton@novell.com>
3347 * mini-x86.h: Fix the x86 version guards to use Apple's
3348 properly defined macros.
3350 2009-07-20 Geoff Norton <gnorton@novell.com>
3352 * mini-x86.c: Fix --trace on darwin-x86 and other systems which require
3355 2009-07-20 Zoltan Varga <vargaz@gmail.com>
3357 * mini.c (mono_jit_runtime_invoke): Speed this up by adding a hash to
3358 MonoJitDomainInfo which maps MonoMethod's to a structure containing all
3359 the information which is needed for invokes, so only one locking+hash table
3362 * aot-compiler.c: Add a 'tool-prefix' option to be used when cross-compiling.
3364 * aot-compiler.c (add_generic_instances): Emit instances of
3365 GenericComparer<T> for primitive types.
3367 2009-07-19 Rodrigo Kumpera <rkumpera@novell.com>
3369 * mini-posix.c: Fix linux build.
3371 2009-07-19 Geoff Norton <gnorton@novell.com>
3373 * mini.h: Add prototypes for mono_runtime_syscall_fork and
3374 mono_gdb_render_native_backtraces
3375 * mini-darwin.c: Apple's syscall(SYS_fork) is very weird on x86,
3376 so we implement the sane semantics to the runtime here
3377 (mono_gdb_render_native_backtraces). Apple also uses an ancient gdb
3378 so we need to call it differently (mono_gdb_render_native_backtraces)
3379 * mini-posix.c: Move the old semantics from mini.c to the prototypes
3380 here for default implementations.
3381 * mini.c: Refactor mono_handle_native_sigsegv so that we can properly
3382 support Apple's weird syscall (SYS_fork) implementation and not busy
3383 loop in abort() on native crashes on OSX anymore.
3385 2009-07-18 Zoltan Varga <vargaz@gmail.com>
3387 * aot-runtime.c (load_method): Change the handling of the
3388 MONO_LASTAOT env variable so MONO_LASTAOT=0 means that no aot methods
3391 * mini.c (mono_patch_info_equal): Really fix the handling of RGCTX_FETCH.
3393 2009-07-17 Zoltan Varga <vargaz@gmail.com>
3395 * mini.c (mono_patch_info_equal): Revert the last change for now as it
3396 seems to break the aot tests.
3398 * mini.c (mono_patch_info_equal): Fix the handling of
3399 MONO_PATCH_INFO_RGCTX_FETCH.
3401 2009-07-16 Zoltan Varga <vargaz@gmail.com>
3403 * unwind.c: Use TARGET_AMD64 instead of __x86_64__.
3405 * mini.c (mono_patch_info_hash): Fix the handling of
3406 MONO_PATCH_INFO_INTERNAL_METHOD.
3407 (mono_patch_info_equal): Ditto.
3409 2009-07-16 Zoltan Varga <vargaz@gmail.com>
3411 * mini-llvm.c (mono_llvm_emit_method): Use module instead of ctx->module
3414 * mini-llvm.c: Add some infrastructure for AOT support.
3416 2009-07-15 Zoltan Varga <vargaz@gmail.com>
3418 * mini-llvm-cpp.c: Update to the latest llvm api.
3420 * mini-llvm-cpp.cpp (mono_llvm_create_ee): Set the EnablePrettyStackTrace
3421 option to false to prevent llvm from installing signal handlers which
3424 2009-07-15 Rodrigo Kumpera <rkumpera@novell.com>
3427 * cpu-amd64.md: Revert previous change as those instructions
3428 take 2 separate arguments. Remember to read the arch docs more
3429 carefully next time.
3431 2009-07-15 Zoltan Varga <vargaz@gmail.com>
3433 * mini-llvm-cpp.cpp (mono_llvm_build_alloca): Update to latest llvm api.
3435 Wed Jul 15 17:20:27 CEST 2009 Paolo Molaro <lupus@ximian.com>
3437 * mini-ppc.c: exploit multiple load/store units if available (rest of
3438 the change from Steven Munroe (<munroesj@us.ibm.com>) first patch at
3439 http://bugzilla.novell.com/show_bug.cgi?id=487846).
3441 Wed Jul 15 16:24:57 CEST 2009 Paolo Molaro <lupus@ximian.com>
3443 * mini-ppc.c: integrate most of Steven Munroe (<munroesj@us.ibm.com>)
3444 first patch at http://bugzilla.novell.com/show_bug.cgi?id=487846.
3446 2009-07-14 Rodrigo Kumpera <rkumpera@novell.com>
3448 * cpu-x86.md: Fix missing clobbering from trancendental simd
3451 * cpu-amd64.md: Same.
3453 2009-07-14 Jerry Maine <crashfourit@gmail.com>
3455 Contributed under the terms of the MIT/X11 license by
3456 Jerry Maine <crashfourit@gail.com>.
3458 * basic-simd.cs: Added tests for single and doulble indexers.
3460 * cpu-amd64.md: Added simd opcode information.
3462 * mini-amd64.c: Added IR to native simd generation code.
3463 Added simd register names and function that returns them.
3465 * mini-amd64.h: Added marcos to turn on simd code compilation in
3466 amd64. Added max simd register count marco. Added caller/callee
3467 register mask marcos. Added marcos to use simd register bank.
3469 * mini.h: Added helper marco for shufling dwords and simple
3472 2009-07-14 Zoltan Varga <vargaz@gmail.com>
3474 * mini-llvm-cpp.cpp: Update to latest llvm SVN api.
3476 * Makefile.am (mono_LDADD): Pass LLVM_LDFLAGS to the linked.
3478 * unwind.c (mono_unwind_get_ops_from_fde): Make this return
3479 the length of the native code as well.
3481 * basic-simd.cs: Add a test for #521662.
3483 Mon Jul 13 17:58:50 CEST 2009 Paolo Molaro <lupus@ximian.com>
3485 * mini-ppc.c: fixed bug introduced by Steven's TLS changes.
3487 2009-07-13 Mark Probst <mark.probst@gmail.com>
3489 * mini.c: Register function for getting the IP from a signal
3490 context with metadata.
3492 2009-07-13 Zoltan Varga <vargaz@gmail.com>
3494 * method-to-ir.c (mono_method_to_ir): When calling a gshared method,
3495 call a generic class init trampoline if needed. Fixes #519336.
3497 * generics.cs: Add a test.
3499 2009-07-09 Mark Probst <mark.probst@gmail.com>
3501 * method-to-ir.c: When doing a call which might be remote from
3502 shared generic code to other shared code with open type arguments,
3503 get the remoting invoke wrapper from the RGCTX and do an indirect
3506 2009-07-03 Zoltan Varga <vargaz@gmail.com>
3508 * mini-trampolines.c (get_unbox_trampoline): Add an rgctx trampoline
3509 after the unbox trampoline in the full-aot case.
3511 2009-07-02 jonas echterhoff <jonas@unity3d.com>
3513 * mini.c: Move initialization of jit_mutex before debugger initialization
3518 * Info.plist: added Info.plist and link flag to enable the mono executable
3519 to access other processes. Requires codesigning of the executable to work.
3521 * mdb-debug-info32-darwin.s: The same as mdb-debug-info32.s, changed to
3526 2009-06-30 Zoltan Varga <vargaz@gmail.com>
3528 * driver.c (mini_regression): Handle loading errors. Fixes #508869.
3530 2009-06-29 Zoltan Varga <vargaz@gmail.com>
3532 * mini-exceptions.c (get_generic_context_from_stack_frame): Fix the case
3533 when the generic instance is an instantiation of a subclass of the
3534 methods class. Fixes #517166.
3536 2009-06-26 Zoltan Varga <vargaz@gmail.com>
3538 * mini-amd64.c (mono_arch_emit_prolog): Fix thread attaching in AOTed
3541 * mini.c (mono_jit_thread_attach): Allow domain to be NULL for calls from
3544 * CMakeLists.txt: Add minimal support for installation.
3546 2009-06-25 Zoltan Varga <vargaz@gmail.com>
3548 * aot-compiler.c (emit_and_reloc_code): Factor out the code to
3549 determine whenever a method is directly callable to a separate function.
3551 * mini-<ARCH>.c tramp-<ARCH>.c: Remove needless casts and add new
3552 needed ones as a result of the previous change.
3554 * mini-<ARCH>.c tramp-<ARCH>.c: Use mgreg_t* as the
3555 type of register arrays.
3557 * mini-trampolines.c tramp-<ARCH>.c aot-runtime.c: Use mgreg_t* as the
3558 type of register arrays.
3560 2009-06-24 Jerry Maine <crashfourit@gmail.com>
3562 Contributed under the terms of the MIT/X11 license by
3563 Jerry Maine <crashfourit@gail.com>.
3565 * mini-amd64.c: Added code to convert simd IR to native amd64 sse.
3567 2009-06-24 Zoltan Varga <vargaz@gmail.com>
3569 * aot-compiler.c (emit_plt): Define debug labels for most plt entries.
3571 2009-06-24 Neale Ferguson <neale@sinenomine.net>
3573 * mini-s390x.c: Correct LCONV_TO_Ix and ICONV_TO_Ix routines. Fix leave_method
3574 dump of structure return value. Fix some formatting.
3575 * cpu-s390x.md: Fix lengths of instruction sequences.
3576 * mini-s390.c: Minor formatting changes.
3578 2009-06-24 Zoltan Varga <vargaz@gmail.com>
3580 * mini-x86.h: Applied patch from Romain Tartiere (romain@blogreen.org).
3581 Use sigaction on freebsd as well.
3583 2009-06-23 Zoltan Varga <vargaz@gmail.com>
3585 * mini.h: Don't define MONO_ARCH_HAVE_TLS_GET to 0, as some code
3588 * mini.c (mini_init): Revert a change which breaks cross-compilation.
3590 2009-06-22 Mark Probst <mark.probst@gmail.com>
3592 * mini-ppc.c, cpu-ppc.md: Enable TLS on Darwin/G4.
3594 2009-06-22 Mark Probst <mark.probst@gmail.com>
3596 * mini.c, mini.h: Tell the runtime whether we support MONO_TLS.
3598 2009-06-20 Martin Baulig <martin@ximian.com>
3601 (MonoDebuggerThreadFlags): New enum typedef.
3602 (MonoDebuggerThreadInfo): Added `guint32 thread_flags'.
3603 (mono_debugger_thread_created): Added `gpointer func' argument;
3604 initialize the new `thread_flags' field.
3606 2009-06-18 Martin Baulig <martin@ximian.com>
3608 * debug-debugger.h (MonoDebuggerRuntimeFlags): New enum typedef.
3609 (MonoDebuggerInfo): Renamed the `dummy' field info `runtime_info'.
3612 (mini_debugger_set_attach_ok): New function; sets the attach-ok
3613 flag in `MONO_DEBUGGER__info.runtime_info'.
3616 (mono_main): Call mini_debugger_set_attach_ok() if generics
3617 sharing is disabled.
3619 2009-06-22 Zoltan Varga <vargaz@gmail.com>
3621 * aot-compiler.c (add_wrappers): Fix a warning.
3623 * mini-ppc.c tramp-ppc.c exceptions-ppc.c aot-compiler.c: Update after
3624 the ppc load/store macro changes.
3626 2009-06-21 Zoltan Varga <vargaz@gmail.com>
3628 * tramp-ppc.c (mono_arch_patch_plt_entry): Implement this.
3630 * aot-compiler.c (mono_compile_assembly): Sanitize the plt symbol too,
3631 not just the got symbol.
3633 * mini-ppc.c aot-compiler.c unwind.c: Implement generation of unwind info
3636 * aot-compiler.c unwind.c: Add infrastructure for unwind support on
3639 * aot-compiler.c: Remove some fixmes.
3641 * driver.c (mono_main): Print a helpful message when cross-compiling.
3643 * mini.c (mini_init): Disable signal handlers when cross-compiling.
3645 * method-to-ir.c (initialize_array_data): Do the optimization if the
3646 target byte order is little endian, instead of the host byte order.
3648 * aot-compiler.c: Emit sizes for most symbols, only emit runtime-invoke
3649 wrappers into the mscorlib image, Emit a unique plt symbol for each
3650 image, emit symbols for plt entries.
3652 * image-writer.c (img_writer_emit_symbol_size): New function to emit
3655 2009-06-20 Zoltan Varga <vargaz@gmail.com>
3657 * aot-compiler.c (add_wrappers): Avoid calling
3658 mono_marshal_get_type_info () since it can assert for some types.
3660 * method-to-ir.c (mono_method_to_ir): Disable aot when some forms of
3661 ldtoken are used inside wrappers.
3663 * helpers.c: Add support for prefixing tools with the arch name.
3665 * mini.h (OP_LOADR_MEMBASE): New opcodes to load/store pointer sized
3666 quantities when using ilp32.
3668 * mini-codegen.c: Use OP_LOADR_MEMBASE/OP_STORER_MEMBASE for loading/storing
3669 spill slots. Use sizeof(mgreg_t) for the spill slot size.
3671 * image-writer.c: Use .long on ilp32.
3673 * aot-compiler.c: Use 32 bit loads on ilp32.
3675 2009-06-19 Zoltan Varga <vargaz@gmail.com>
3677 * tramp-ppc.c (mono_arch_create_trampoline_code): Fix the ppc build.
3679 * mini-ops.h: Use TARGET_POWERPC define for consistency.
3681 * patch-info.h: Add 'MSCORLIB_GOT_ADDR' patch type.
3683 * aot-compiler.c aot-runtime.c: Put the mscorlib got address into the
3684 second got slot of every aot image.
3686 * aot-compiler.c aot-runtime.c mini-trampolines.c: Add support for
3687 aot on platforms with function pointers.
3689 * mini-ppc.h mini-ppp.c cpu-ppc.md exceptions-ppc.c tramp-ppc.c: Add
3690 support for aot/full aot on ppc/ppc64.
3692 * tramp-<ARCH>.c (mono_arch_patch_plt_entry): Add 'got' and 'regs'
3693 arguments which are needed on ppc.
3695 * tramp-arm.c (mono_arch_nullify_class_init_trampoline): Add 'regs'
3698 * mini-trampolines.c aot-runtime.c: Update after the above changes.
3700 * liveness.c (BITS_PER_CHUNK): Use MONO_BITSET_BITS_PER_CHUNK.
3702 * regalloc2.c (BITS_PER_CHUNK): Ditto.
3704 * aot-compiler.c (emit_got_info): Fix reading unused memory.
3706 * ir-emit.h (alloc_dreg): Add a 'return -1' to quiet some compilers.
3708 2009-06-17 Geoff Norton <gnorton@novell.com>
3710 * aot-compiler.c: Ensure we dont try to close a null dwarf writer.
3712 2009-06-17 Zoltan Varga <vargaz@gmail.com>
3714 * dwarfwriter.c (mono_dwarf_writer_create): Add an 'appending' parameter
3715 to control whenever the dwarf writer is in xdebug or aot mode.
3716 (emit_class_dwarf_info): Use a separate abbrev for structures without
3719 * aot-compiler.c: Pass the appending parameter to
3720 mono_dwarf_writer_create ().
3722 * branch-opts.c (mono_merge_basic_blocks): Fix the case when bbn
3723 falls through to its next bblock. Fixes #513931.
3725 * iltests.il: Add a test.
3727 * dwarfwriter.c (mono_dwarf_writer_emit_base_info): Emit some line number
3728 infor even if emit_line is FALSE, as the apple linker seems to require it.
3730 * image-writer.c (asm_writer_emit_symbol_diff): Call get_label ().
3732 * dwarfwriter.c (emit_cie): Emit a separate symbol for the cie start, as
3736 2009-06-15 Zoltan Varga <vargaz@gmail.com>
3738 * exceptions-mips.c (mono_arch_get_throw_exception_by_name): Fix the
3741 2009-06-13 Zoltan Varga <vargaz@gmail.com>
3743 * mini.h (struct MonoBasicBlock): Add 'has_jump_table' and
3744 'has_call_handler' fields.
3746 * method-to-ir.c (mono_method_to_ir): Set them if needed.
3748 * branch-opts.c (mono_merge_basic_blocks): Avoid iterating through the
3749 first bblock if not needed. Fixes #512790.
3751 2009-06-11 Zoltan Varga <vargaz@gmail.com>
3753 * aot-compiler.c (mono_compile_assembly): Fix a warning.
3755 * aot-compiler.c (add_wrappers): Don't emit remoting-invoke-with-check
3758 * aot-runtime.c (mono_aot_get_method): Use the original method's code for
3759 remoting-invoke-with-check wrappers, which are not needed when running with
3760 full-aot, since it doesn't support remoting.
3762 2009-06-10 Zoltan Varga <vargaz@gmail.com>
3764 * aot-compiler.c (emit_got_info): Don't emit offsets for the plt got entries.
3766 * aot-compiler.c aot-runtime.c: Don't emit the first got offset in the
3767 method info, it is not used anymore.
3769 * mini.h: Bump AOT file format version.
3771 * aot-compiler.c (arch_emit_plt_entry): Make the arm plt entries one
3774 * aot-runtime.c (mono_aot_get_plt_info_offset): Update after the
3777 * tramp-arm.c (mono_arch_patch_plt_entry): Ditto.
3779 * mini.h: Bump AOT file format version.
3781 2009-06-10 Zoltan Varga <vargaz@gmail.com>
3783 * image-writer.c (asm_writer_emit_symbol_diff): Disable the
3784 TARGET_ASM_APPLE stuff for now, as it doesn't seem to work on the
3787 * mini-arm.c (mono_arch_output_basic_block): Fix the implementation
3788 of CKFINITE and FBGE for VFP.
3790 2009-06-09 Zoltan Varga <vargaz@gmail.com>
3792 * aot-compiler.c: Don't align code to 16 bytes on arm.
3794 * aot-compiler.c (emit_method_code): Emit the unbox trampolines right
3795 before the methods they belong to.
3797 * aot-runtime.c (mono_aot_plt_resolve): Avoid creating trampolines in
3798 the full-aot case if possible, since the trampoline will be called right
3801 * aot-compiler.c (mono_compile_assembly): Decrease the number of full aot
3802 trampolines to 1024 after the change above.
3804 * aot-compiler.c (arch_emit_specific_trampoline): Rework the arm
3805 trampoline to save 8 bytes per trampoline.
3807 * tramp-arm.c (mono_arch_create_trampoline_code_full): Update after the
3810 2009-06-08 Zoltan Varga <vargaz@gmail.com>
3812 * aot-compiler.c: Use acfg->temp_prefix instead of .L to prefix labels.
3814 2009-06-08 Martin Baulig <martin@ximian.com>
3817 (MonoDebuggerExceptionAction): Moved into debug-mini.h.
3818 (_mono_debugger_throw_exception): Don't make this static.
3819 (_mono_debugger_unhandled_exception): Likewise.
3820 (mono_debugger_handle_exception): Moved to mini-exceptions.c
3823 (MonoDebuggerExceptionAction): Moved here from debug-mini.c.
3824 (_mono_debugger_throw_exception): Add function prototype.
3825 (_mono_debugger_unhandled_exception): Likewise.
3828 (mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
3829 arg; return the first exception handler if the exception is caught
3830 and we're running inside the debugger.
3831 (mono_debugger_handle_exception): Moved here from debug-mini.c;
3832 improve exception handle inside runtime-invoke, check whether the
3833 exception is actually caught in the method being invoked and not
3834 by the runtime-invoke-wrapper.
3836 2009-06-08 Zoltan Varga <vargaz@gmail.com>
3838 * image-writer.c: Improve support for the osx assembler.
3840 * dwarfwriter.c: Avoid the usage of subsections if the assembler doesn't
3843 2009-06-08 Martin Baulig <martin@ximian.com>
3846 (MonoDebuggerExceptionAction): Moved into debug-mini.h.
3847 (_mono_debugger_throw_exception): Don't make this static.
3848 (_mono_debugger_unhandled_exception): Likewise.
3849 (mono_debugger_handle_exception): Moved to mini-exceptions.c
3852 (MonoDebuggerExceptionAction): Moved here from debug-mini.c.
3853 (_mono_debugger_throw_exception): Add function prototype.
3854 (_mono_debugger_unhandled_exception): Likewise.
3857 (mono_handle_exception_internal): Added `MonoJitInfo **out_ji'
3858 arg; return the first exception handler if the exception is caught
3859 and we're running inside the debugger.
3860 (mono_debugger_handle_exception): Moved here from debug-mini.c;
3861 improve exception handle inside runtime-invoke, check whether the
3862 exception is actually caught in the method being invoked and not
3863 by the runtime-invoke-wrapper.
3865 2009-06-07 Zoltan Varga <vargaz@gmail.com>
3867 * image-writer.c (append_subsection): Don't align subsections of the
3868 debug_line section as a workaround.
3870 * dwarfwriter.c: Emit line number info in the AOT case as well.
3872 2009-06-06 Steven Munroe <munroesj@us.ibm.com>
3874 This patch is contributed under the terms of the MIT/X11 license
3876 * mini-ppc.c (mono_arch_emit_exceptions): Change assert to
3877 code_len <= code_size
3879 2009-06-06 Zoltan Varga <vargaz@gmail.com>
3881 * mini-mips.c (mips_emit_exc_by_name): Fix the mips build.
3883 2009-06-04 Zoltan Varga <vargaz@gmail.com>
3885 * aot-compiler.c aot-runtime.c: Delete references to static rgctx
3886 invoke wrappers, we now use trampolines instead.
3888 2009-06-04 Mark Probst <mark.probst@gmail.com>
3890 * mini-darwin.c: The exception thread must not be registered with
3893 2009-06-04 Mark Probst <mark.probst@gmail.com>
3895 * mini-gc.c: Disable the code because it makes SGen crash.
3897 2009-06-03 Zoltan Varga <vargaz@gmail.com>
3899 * aot-compiler.c (mono_compile_assembly): Handle file open errors gracefully
3900 instead of asserting.
3902 2009-05-31 Zoltan Varga <vargaz@gmail.com>
3904 * aot-compiler.c (mono_compile_assembly): Move the creation of the
3905 output file after the code has been compiled.
3907 2009-05-30 Zoltan Varga <vargaz@gmail.com>
3909 * tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Fix 64 bit support.
3911 2009-05-31 Zoltan Varga <vargaz@gmail.com>
3913 * aot-compiler.c aot-runtime.c: Get rid of the shared/non-shared got
3914 entries distinction to simplify the code.
3916 * mini.h: Bump AOT file format version.
3918 2009-05-28 Zoltan Varga <vargaz@gmail.com>
3920 * objects.cs: Fix the signature of one of the tests.
3922 * mini.c (mini_create_ftnptr): New helper function, moved here from
3924 (mini_get_addr_from_ftnptr): Ditto.
3925 (mini_init): Install the new helpers.
3927 2009-05-28 Martin Baulig <martin@ximian.com>
3929 Correctly initialize the debugger when embedding Mono.
3931 * mdb-debug-info32.s, mdb-debug-info64.s: Add a global variable
3932 `MONO_DEBUGGER__using_debugger' to the `.mdb_debug_info' section;
3933 see documentation in mini_debug_running_inside_mdb().
3936 (mini_debug_running_inside_mdb): New function to check whether
3937 we're running inside mdb.
3939 * mini.c (mini_init): Call mini_debugger_init() if we're running
3940 inside the debugger.
3942 * driver.c (mono_main): Moved the call to mini_debugger_init()
3943 into mini_init() to make this work when embedding Mono.
3945 * debug-debugger.c (mini_debugger_init): Warn about duplicate
3946 calls to mini_debugger_init().
3948 * mini.h: Rename mono_debugger_init() -> mini_debugger_init(),
3949 mono_debugger_main() -> mini_debugger_main() and put them inside a
3950 `MONO_DEBUGGER_SUPPORTED' conditional.
3952 2009-05-26 Rodrigo Kumpera <rkumpera@novell.com>
3954 * mini-trampolines.c: Kill mono_find_delegate_trampoline_by_addr as
3955 this is no longer in use.
3958 2009-05-26 Zoltan Varga <vargaz@gmail.com>
3960 * mini-sparc.c (add_outarg_load): Fix the sparc build.
3962 * aot-compiler.c (emit_method_code): Always write out C style symbols for
3965 2009-05-27 Martin Baulig <martin@ximian.com>
3967 2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
3969 * mini-x86.c (mono_arch_output_basic_block): Fix the precision of
3970 long_conv_to_r_un to 64 bits.
3972 * cpu-x86.md: Increase the instruction size due to the changes.
3974 * iltests.il.in: Add regression test.
3978 2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
3980 * objects.cs: Move the previous test from basic.cs to here.
3982 2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
3984 * basic.cs: Add regression test for #506915.
3986 2009-05-25 Rodrigo Kumpera <rkumpera@novell.com>
3988 * method-to-ir.c (mono_method_to_ir): When doing the ldobj+stobj
3989 optimization we must check the bb of the first byte of stobj as
3990 it's the only one set in cil_offset_to_bb.
3994 2009-05-25 Zoltan Varga <vargaz@gmail.com>
3996 * image-writer.c: Fix pointer directive on ppc64.
3998 2009-05-24 Zoltan Varga <vargaz@gmail.com>
4000 * image-writer.c (asm_writer_emit_section_change): Avoid using
4001 .bss subsections on ppc too.
4003 2009-05-23 Zoltan Varga <vargaz@gmail.com>
4005 * image-writer.c: Fix the definition of TARGET_ASM_....
4007 * image-writer.c: Fix the emission of assembler directives in the last
4010 * mini-ppc.c (mono_arch_emit_exceptions): Increase the size of the
4011 exception throwing code to accomodate ppc64.
4013 * tramp-ppc.c (mono_arch_get_nullified_class_init_trampoline): Increase the
4014 size to work on ppc64 too.
4016 * mini-ppc.h (MonoCompileArch): Enable static rgctx trampolines on ppc64
4019 * image-writer.c: Clean up the #ifdef hell a bit by adding defines for
4020 the assembler dialect instead of using platform specific defines.
4022 2009-05-22 Geoff Norton <gnorton@novell.com>
4024 * mini-arm.c (get_call_info): If a structure is split between the stack
4025 and argument registers, we should not advance the stack pointer by the entire
4026 native size, but just by the amount that spilled.
4028 2009-05-22 Zoltan Varga <vargaz@gmail.com>
4030 * mini-arm.c (get_call_info): Handle structures with alignment requirements
4033 2009-05-21 Zoltan Varga <vargaz@gmail.com>
4035 * aot-compiler.c (emit_extra_methods): Encode direct runtime invoke
4038 * aot-compiler.c (add_extra_method): Fix up the collection of extra
4039 methods so wrapper don't get added twice.
4040 (add_generic_instances): Don't add methods of arrays.
4042 * generics.cs: Mark one test as !FULLAOT.
4044 2009-05-21 Rodrigo Kumpera <rkumpera@novell.com>
4046 * mini-x86.c (emit_move_return_value): Remove unused vars.
4048 2009-05-21 Rodrigo Kumpera <rkumpera@novell.com>
4050 * mini-x86.c (mono_arch_emit_call): The decompose code now supports
4051 decomposing 8 bytes structs into a LCALL.
4053 * mini-x86.c (emit_move_return_value): We no longer push the vtype
4054 pointer for where to store the returned regs.
4056 * decompose.c (mono_decompose_vtype_opts): Fix the comment to properly
4059 Fixes #471747, #471751 and #4734530 (in fact, it's a bunch of dups).
4061 2009-05-20 Miguel de Icaza <miguel@novell.com>
4063 * aot-runtime.c (mono_aot_init): Use g_getenv to work on systems
4066 2009-05-21 Zoltan Varga <vargaz@gmail.com>
4068 * aot-compiler.c (add_wrappers): Add StructureToPtr/PtrToStructure wrappers.
4070 * basic.cs: Move the test_2_cprop_bug () test to generics.cs as it involves
4073 2009-05-20 Rodrigo Kumpera <rkumpera@novell.com>
4075 * local-propagation.c (mono_local_cprop): Avoid local propagation
4076 across paired add/sub if the first instruction dest reg is it's
4077 source reg. For example:
4079 int_add_imm R12 <- R12 [1] clobbers: 1
4080 int_sub_imm R42 <- R12 [1] clobbers: 1
4082 The cprop pass would wrongly const prop + 1 to int_sub_imm which doesn't
4083 maintain the math identify.
4087 2009-05-20 Andreia Gaita <avidigal@novell.com>
4089 * Makefile.am: avoid going on the network just to get the revision,
4092 2009-05-19 Massimiliano Mantione <massi@ximian.com>
4094 Fixed estimate for short branches on amd64 (they were off mark, and
4095 enabling call prolog-epilog instrumentations caused assertions).
4096 * mini.h (struct MonoBasicBlock): added max_length field to hold the
4097 estimate for the maximum length of this basic block.
4099 - mono_arch_emit_prolog: compute max_length for each basic block
4100 (instead of max_offset), and inflate size estimate also for entry bb
4101 in case of code instrumentation.
4102 - mono_arch_output_basic_block: get rid of "cpos" (the current
4103 estimated "position" in the code), and always use "offset" instead,
4104 which is accurate; at the beginning of the function quickly recompute
4105 max_offset for all the remaining blocks, starting from the current
4106 cfg->code_len (which is correct, and not estimated) and using the
4107 estimated block lengths computed previously.
4109 2009-05-17 Zoltan Varga <vargaz@gmail.com>
4111 * exceptions-ppc.c: Remove the caching from the trampoline creation
4112 functions, it is already done in the caller.
4114 * mini-trampolines.c (mono_llvm_vcall_trampoline): Fix the llvm build.
4116 * mini-ppc.h mini-arm.h mini-x86.h mini-amd64.h: Add
4117 MONO_ARCH_GSHARED_SUPPORTED define.
4119 * mini.c (mini_init): Use the MONO_ARCH_GSHARED_SUPPORTED define.
4121 * mini-arm.c mini.c: Get rid of the unused mono_arch_fixup_jinfo ()
4124 2009-05-16 Zoltan Varga <vargaz@gmail.com>
4126 * jit-icalls.c (mono_helper_compile_generic_method): Get rid of the
4127 call to mono_marshal_get_rgctx_invoke ().
4129 * mini.c method-to-ir.c mini-trampolines.c: Get rid of the usage of
4130 mono_marshal_get_static_rgctx_invoke (), all platforms which support
4131 gshared use the static rgctx trampolines now.
4133 * mini.c (mini_init): Call mono_set_generic_sharing_supported () if the
4134 platform supports it.
4136 2009-05-15 Zoltan Varga <vargaz@gmail.com>
4138 * mini-arm.c (mono_arch_allocate_vars): Correctly save R5 when using AOT.
4140 * aot-compiler.c (emit_method_code): Avoid duplicate labels for methods.
4142 2009-05-15 Zoltan Varga <vargaz@gmail.com>
4144 * mini-ppc.c (mono_arch_emit_exceptions): Nullify the processed patches.
4146 * tramp-ppc.c (mono_arch_nullify_class_init_trampoline): Implement this
4149 2009-05-15 Massimiliano Mantione <massi@ximian.com>
4151 Made it possible for mono_arch_instrument_epilog to preserve
4152 argument registers, otherwise instrumenting the "epilogue" before
4153 a tail call would clobber them.
4154 * mini.h: Added "mono_arch_instrument_epilog_full" prototype, which
4155 if like mono_arch_instrument_epilog but with an additional parameter
4156 that states if argument registers must be preserved.
4157 * mini.c: implemented mono_arch_instrument_epilog as a call to
4158 mono_arch_instrument_epilog_full without asking to preserve argument
4159 registers (this makes the existing code work as usual).
4161 - mono_arch_instrument_epilog: add parameter to transform it into
4162 mono_arch_instrument_epilog_full, and preserve argument registers
4164 - mono_arch_output_basic_block, OP_TAILCALL case: call
4165 mono_arch_instrument_epilog_full.
4166 * mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
4167 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c, mini-x86.c:
4168 only transformed mono_arch_instrument_epilog into
4169 mono_arch_instrument_epilog_full.
4171 2009-05-15 Geoff Norton <gnorton@novell.com>
4173 * mini-darwin.c: This works on arm now.
4175 2009-05-14 Geoff Norton <gnorton@novell.com>
4177 * jit.h, driver.c: Allow full-aot to be decided programatically by the
4180 2009-05-15 Zoltan Varga <vargaz@gmail.com>
4182 * aot-compiler.c (emit_method_code): Skip a few more characters in the debug
4185 * mini-trampolines.c (mono_magic_trampoline): Handle static rgctx invoke
4186 wrappers during full aot mode correctly.
4188 * aot-runtime.c (mono_aot_get_unbox_trampoline): Handle shared generic
4191 * aot-compiler.c (mono_aot_method_hash): Use our internal version of
4192 mono_metadata_type_hash ().
4194 2009-05-14 Massimiliano Mantione <massi@ximian.com>
4196 * mini.h, mini-codegen.c, mini-alpha.c, mini-amd64.c, mini-arm.c,
4197 mini-hppa.h, mini-hppa.c, mini-ia64.c, mini-mips.h, mini-mips.c,
4198 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c, mini-886.c:
4199 Removed MONO_INST_BRLABEL from the instruction flags, and the
4200 remaining code that used it, because we do not support branches inside
4201 basic blocks (and branch target labels) anymore.
4202 * Makefile.am: As part of the above cleanup, remove reference to
4203 BURG files which don't exist anymore.
4205 2009-05-14 Zoltan Varga <vargaz@gmail.com>
4207 * image-writer.c (asm_writer_emit_local_symbol): Make this a nop on
4210 * mini-mips.c mini-mips.h exceptions-mips.c: Transition the mips backend
4211 to use mono_arch_throw_corlib_exception.
4213 * mini-ppc.c mini-ppc.h exceptions-ppc.c: Use
4214 mono_arch_throw_corlib_exception for throwing corlib exceptions.
4216 * aot-runtime.c (decode_patch): Allocate the data for R4/R8 from the
4219 * mini.c (mono_patch_info_dup_mp): Copy the table of switch targets too.
4221 * aot-compiler.c: Emit a local symbol prefixed with the assembly name
4222 for the got to make debugging easier and to avoid confusing it with the
4225 * aot-compiler.c (emit_method_code): Emit a C style symbol for each
4226 method so a breakpoint can be set when using gdb.
4228 2009-05-13 Zoltan Varga <vargaz@gmail.com>
4230 * aot-compiler.c (mono_aot_method_hash): Implement this properly based
4231 on mono_method_get_imt_slot ().
4233 * aot-runtime.c (find_extra_method_in_amodule): Get rid of the
4234 num_decodes variables.
4236 * aot-compiler.c (mono_aot_method_hash): Revert part of the last
4237 change as it doesn't seem to work.
4239 * aot-compiler.c (mono_aot_method_hash): Improve the hashing of
4242 2009-05-12 Zoltan Varga <vargaz@gmail.com>
4244 * aot-compiler.c mini.c mini-amd64.h mini-arm.h: Kill
4245 MONO_ARCH_FULL_AOT_IMT_SUPPORTED define, both platforms now support imt.
4247 * mini.c (mini_init): Install mono_aot_get_imt_thunk as the IMT thunk
4248 builder when using full aot.
4250 * mini-amd64.c (mono_arch_build_imt_thunk): Don't handle the full-aot case
4251 here, it is already handled.
4253 * mini-arm.c (mono_arch_emit_imt_argument): Pass the dynamic imt arg
4256 * aot-compiler.c (arch_emit_imt_thunk): Implement this for ARM.
4258 * mini-arm.h: Enable IMT for full aot.
4260 * aot-compiler.c (mono_compile_assembly): Don't emit imt thunk if the
4261 arch doesn't support it.
4263 * mini.c (mini_init): Don't disable IMT for full aot if the
4264 architecture supports it.
4266 * mini.h (MonoAotTrampoline): New enum containing the different types
4267 of 'numerous' trampolines.
4268 (MONO_AOT_FILE_VERSION): Bump this.
4270 * aot-compiler.c aot-runtime.c: Unify the handling of specific and
4271 static rgctx trampolines. Add support for full-aot IMT thunks.
4273 * mini-amd64.h: Enable IMT for full aot.
4275 * TestDriver.cs: Add a CategoryAttribute class and an --exclude option
4276 to exclude tests belonging to a category.
4278 * generics.cs: Mark some tests with a !FULLAOT category.
4280 * Makefile.am (fullaotcheck): Run tests with --exclude !FULLAOT. Include
4283 2009-05-11 Zoltan Varga <vargaz@gmail.com>
4285 * aot-compiler.c (emit_and_reloc_code): Move the implementation of
4286 MONO_PATCH_INFO_GOT_OFFSET to a separate arch-specific function.
4287 (emit_plt): Fix a warning.
4289 2009-05-10 Zoltan Varga <vargaz@gmail.com>
4291 * aot-compiler.c aot-runtime.c: Fix the build by moving is_shared_got_patch
4292 back into aot-compiler.c to a place where the other functions shared by
4293 the runtime and aot compiler are.
4295 * aot-compiler.c aot-runtime.c: Emit the got addr using a separate symbol,
4296 as done previously, instead of in MonoAotFileInfo, since pointers might have
4297 alignment requirements.
4299 * mini.h: Bump AOT file format version.
4301 2009-05-10 Miguel de Icaza <miguel@novell.com>
4303 * aot-runtime.c (mono_aot_is_shared_got_patch): Move this routine
4304 that is used at runtime from the aot-compiler.c, this makes it
4305 work on setups that remove the AOT compiler from the output
4308 2009-05-09 Zoltan Varga <vargaz@gmail.com>
4310 * tramp-ppc.c (mono_arch_get_static_rgctx_trampoline): Implement this for
4313 * mini-ppc.h: Enable static rgctx trampolines for ppc.
4315 * mini-<ARCH>.h: Kill the MONO_ARCH_ENABLE_EMIT_STATE_OPT define.
4317 * decompose.c (mono_decompose_long_opts): Move the ppc/sparc specific
4318 stuff to mono_arch_decompose_long_opts ().
4319 (mono_decompose_opcode): Remove some dead code.
4321 2009-05-08 Rodrigo Kumpera <rkumpera@novell.com>
4323 * method-to-ir.c (mono_method_to_ir): Fix boostrap of non amd64 builds
4324 cmethod can be null for quite a some reasons.
4326 2009-05-08 Rodrigo Kumpera <rkumpera@novell.com>
4328 * method-to-ir.c (mono_method_to_ir): Fix non amd64 builds.
4330 2009-05-08 Zoltan Varga <vargaz@gmail.com>
4332 * aot-compiler.c (arch_emit_got_access): Fix the aot-not-supported build.
4334 2009-05-08 Zoltan Varga <vargaz@gmail.com>
4336 * method-to-ir.c (mono_emit_call_args): Add a 'tail' flag argument.
4337 (mono_method_to_ir): Use MONO_ARCH_USE_OP_TAIL_CALL macro to determine
4338 whenever to make tail calls using OP_TAIL_CALL. Enable support for tail
4339 calls returning structures by addr on amd64.
4341 * mini-amd64.h (MONO_ARCH_USE_OP_TAIL_CALL): New arch-specific macro.
4343 * iltests.il.in: Restructure the tail call tests a bit.
4345 2009-05-07 Zoltan Varga <vargaz@gmail.com>
4347 * aot-compiler.c (add_wrappers): Add remoting-invoke-with-check wrappers
4348 for virtual methods too.
4350 2009-05-06 Raja R Harinath <harinath@hurrynot.org>
4352 * method-to-ir.c (mono_method_to_ir): Revert change of 2009-05-02
4353 due to regression in verifying System.dll.
4355 2009-05-06 Zoltan Varga <vargaz@gmail.com>
4357 * debug-mini.c (mono_debugger_method_has_breakpoint): Allow breakpoints
4360 * dwarfwriter.c (emit_class_dwarf_info): Add support for generic
4363 * aot-compiler.c aot-runtime.c: Use our own hash function instead of
4364 g_str_hash () which can change.
4366 * driver.c (mini_regression): Disable optimizations not supported by
4367 the cpu. Fixes #500019.
4369 * aot-runtime.c (mono_aot_get_unwind_info): Fix the --enable-minimal=aot
4372 2009-05-06 Zoltan Varga <vargaz@gmail.com>
4374 * mini-llvm.c (mono_llvm_emit_method): Update the OP_TLS_GET implementation
4375 to the latest LLVM code.
4377 2009-05-05 Zoltan Varga <vargaz@gmail.com>
4379 * genmdesc.pl (load_opcodes): Fix this after the TARGET_... changes.
4381 2009-05-04 Zoltan Varga <vargaz@gmail.com>
4383 * mini-llvm.c (mono_llvm_emit_method): Implement TLS support on
4386 * aot-compiler.c (encode_patch_list): Simplify this considerably as we are
4387 no longer saving offsets, so just save the patch types along with the other
4389 * aot-runtime.c (load_patch_info): Update after the changes to
4390 encode_patch_list ().
4391 (decode_got_entry): Removed, merged into load_patch_info ().
4392 (is_shared_got_patch): Removed, call the same function from
4395 * mini.h: Bump aot file format version.
4397 * aot-compiler.c aot-runtime.c: Resurrect static linking support. Kill the
4398 half-finished no-dlsym code.
4400 * aot-runtime.c (load_method): Kill the old and bit-rotten use_loaded_code
4403 * mini-<ARCH>.h mini-trampolines.c aot-runtime.c: Kill the
4404 MONO_ARCH_HAVE_CREATE_TRAMPOLINE_FROM_TOKEN define.
4406 2009-05-02 Zoltan Varga <vargaz@gmail.com>
4408 * tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Increase the
4409 buffer length to work with AOT code.
4411 * method-to-ir.c (mono_method_to_ir): Handle loading errors in the
4412 ldfld/stfld opcodes.
4414 * exceptions-x86.c (mono_arch_get_throw_exception_by_name): Simplify this
4417 * mini-llvm.c mini-x86.c: Implement 32 bit and x86 support.
4419 * ssa.c (mono_ssa_compute): Don't skip I8 values when using LLVM.
4421 * mini-llvm-cpp.cpp (mono_llvm_create_ee): Update to the latest
4424 * mini.c (mini_method_compile): Set the from_llvm flag in MonoJitInfo
4425 if needed. Don't decompose long operations when using llvm.
4427 2009-05-01 Zoltan Varga <vargaz@gmail.com>
4429 * aot-compiler.c aot-runtime.c: Use mono_pagesize () instead of the
4432 * aot-runtime.c (load_aot_module): Get rid of another mprotect call.
4434 2009-05-03 Martin Baulig <martin@ximian.com>
4436 * debug-debugger.c (debugger_insert_source_breakpoint): Don't call
4437 mono_debugger_insert_method_breakpoint() since the class init
4438 handler we're inserting at the top of the method already gives us
4441 2009-04-30 Zoltan Varga <vargaz@gmail.com>
4443 * decompose.c (mono_decompose_long_opts): Move the implementation of LNEG
4444 to mono_arch_decompose_long_opts () for x86 and arm.
4446 2009-04-29 Zoltan Varga <vargaz@gmail.com>
4448 * mini-codegen.c (mono_regstate_alloc_int): Use __x86_64__ instead of
4451 2009-04-28 Zoltan Varga <vargaz@gmail.com>
4453 * *.h *.c: Use TARGET_<ARCH> defines instead of __<arch>__ defines in the
4456 2009-04-26 Zoltan Varga <vargaz@gmail.com>
4458 * aot-runtime.c (mono_aot_create_specific_trampoline): Add a stat for the
4459 number of trampolines used in full-aot mode.
4461 * aot-compiler.c: Add an ntrampolines option to set the number of
4462 trampolines emitted in full-aot mode.
4464 2009-04-27 Zoltan Varga <vargaz@gmail.com>
4466 * mini-llvm.c (mono_llvm_emit_method): Implement OP_CHECK_THIS using
4467 a volatile load. Get rid of get_tempname (), llvm assigns names
4470 * mini-llvm-cpp.cpp (mono_llvm_build_volatile_load): New instruction
4473 * mini-llvm.c (mono_llvm_emit_method): Don't call LLVMGetParam on
4476 * abcremoval.c (REPORT_ABC_REMOVAL): Don't output messages at verbose
4479 * mini-codegen.c (mono_local_regalloc): Prevent sreg1/dreg to be allocated
4480 to the same register as a fixed sreg2. Fixes #497271.
4482 * iltests.il.in: Add a new test.
4484 2009-04-26 Zoltan Varga <vargaz@gmail.com>
4486 * mini-amd64.c: Use moves instead of pushes for passing arguments on the
4487 stack, since pushes complicate exception handling.
4489 * exceptions-amd64.c (mono_arch_find_jit_info): Don't pop the arguments of
4490 the stack if they are passed using moves.
4492 * mini-trampolines.c (mono_llvm_vcall_trampoline): Add an assert.
4494 * method-to-ir.c (mono_method_to_ir): Disable fast virtual generic methods
4497 * mini-llvm.c (mono_llvm_emit_method): Call jit icall wrappers, not the
4498 icalls themselves. Convert arguments of FCOMPARE. Convert the destination
4499 of FMOVE if it is an R4.
4501 2009-04-25 Zoltan Varga <vargaz@gmail.com>
4503 * mini-ops.h: Add OP_LLVM_OUTARG_VT opcode.
4505 * mini.h (LLVMCallInfo): New structure to store calling convention
4506 information for the LLVM back end similar to the CallInfo structures in
4509 * mini-amd64.c (mono_arch_get_llvm_call_info): New arch function to return
4510 call information in a format usable by LLVM.
4511 (mono_arch_emit_call): Move the LLVM handling code to mono_llvm_emit_call ().
4513 * method-to-ir.c (mono_emit_call_args): Emit calls using
4514 mono_llvm_emit_call () when compiling using LLVM.
4516 * mini-llvm.c: Implement support for passing/receiving valuetypes. Add
4517 comments to all functions. Fix memory leaks. Add a public init/cleanup
4520 * mini.c: Call the llvm init/cleanup functions in mini_init()/cleanup().
4522 * method-to-ir.c (handle_array_new): Disable llvm when calling the vararg
4523 mono_array_new_va () jit icall.
4525 Fri Apr 24 16:44:08 CEST 2009 Paolo Molaro <lupus@ximian.com>
4527 * Makefile.am, genmdesc.c, genmdesc.pl: tiny refactor to allow
4528 multiple machine description files to be specified.
4529 * mini-ops.h: fixes for cross-compilation.
4531 2009-04-22 Miguel de Icaza <miguel@novell.com>
4533 * aot-runtime.c (make_writable): Use mono_mprotect to simplify
4536 2009-04-22 Zoltan Varga <vargaz@gmail.com>
4538 * method-to-ir.c (mono_method_to_ir): Force init_locals to be TRUE
4539 to prevent asserts in various passes. Fixes #497220.
4541 2009-04-21 Zoltan Varga <vargaz@gmail.com>
4543 * mini-trampolines.c (mono_generic_class_init_trampoline): Remove
4546 * aot-compiler.c aot-runtime.c: Emit the unwind info into a separate
4547 table to avoid duplicates.
4549 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
4551 * aot-compiler.c (emit_method_code): Avoid writing symbols if the nodebug
4554 2009-04-20 Rodrigo Kumpera <rkumpera@novell.com>
4556 * mini.c (mini_method_verify): Fail fulltrust code if the exception
4557 is for method or field access.
4559 2009-04-20 Zoltan Varga <vargaz@gmail.com>
4561 * mini-llvm-cpp.cpp (mono_llvm_dump_value): New helper function to print
4564 * mini-llvm.c (mono_llvm_emit_method): Use it.
4566 * mini-llvm.c (type_to_llvm_type): Fix the mapping of enums.
4567 (mono_llvm_emit_method): Add support for CAS. Fix handling of CSET opcodes
4570 * mini-trampolines.c (mono_llvm_vcall_trampoline): Add support for
4571 synchronized methods.
4573 * mini.c (mini_method_compile): Disable LLVM for dynamic methods.
4575 * mini.c (mini_method_compile): Enable ABCREM when running with LLVM.
4577 * mini-llvm.c (mono_llvm_emit_method): Add support for OP_LOADI4_MEM/
4580 * mini-llvm-cpp.cpp (mono_llvm_create_ee): Add a MONO_LLVM env variable
4581 allowing some options to be set dynamically.
4583 2009-04-19 Zoltan Varga <vargaz@gmail.com>
4585 * mini-llvm.c (mono_llvm_emit_method): Handle compares followed by an
4586 unconditional branch.
4588 * mini.h (MonoTrampolineType): Add new trampoline type
4589 'MONO_TRAMPOLINE_LLVM_VCALL' which handles virtual calls made from LLVM
4592 * mini-trampolines.c (mono_llvm_vcall_trampoline): New C trampoline
4595 * mini-trampolines.c (mono_create_llvm_vcall_trampoline): New trampoline
4598 * mini.c (mini_init): Avoid using the common vtable trampoline when LLVM
4599 is enabled. Instead, use the llvm vcall trampoline.
4601 * mini-trampolines.c (mono_get_vcall_slot_addr): New helper function.
4603 * mini-trampolines.c tramp-amd64.c tramp-x86.c: Use it.
4605 * mini-<ARCH>.c: Get rid of the identical mono_arch_get_vcall_slot_addr ()
4608 * mini-<ARCH>.h mini-trampolines.c mini.c: Get rid of
4609 MONO_ARCH_COMMON_VTABLE_TRAMPOLINE, it is supported by all archs.
4611 * mini-ia64.c (mono_arch_lowering_pass): Null out the sregs of the
4612 OP_IA64_CSET opcode.
4614 * mini.c: Fix a warning.
4616 * mini-llvm.c (mono_llvm_emit_method): Convert arguments of SWITCH and
4617 THROW to the appropriate llvm type.
4619 2009-04-18 Zoltan Varga <vargaz@gmail.com>
4621 * mini.c (mini_method_compile): Add statistics for methods JITted
4624 2009-04-17 Zoltan Varga <vargaz@gmail.com>
4626 * method-to-ir.c: Fix the computation of ins_sreg_counts for ia64
4627 OP_IA64_CMP_<cond>_IMM opcodes.
4629 2009-04-17 Zoltan Varga <vargaz@gmail.com>
4631 * mini-llvm.c (emit_cond_system_exception): Implement throwing of
4634 * dwarfwriter.c (mono_dwarf_writer_emit_method): Handle --regression
4637 * mini-llvm.c (type_to_llvm_type): Avoid accessing t->data.klass for
4640 2009-04-17 Atsushi Enomoto <atsushi@ximian.com>
4642 * mini-exceptions.c : add thread id to EXCEPTION trace message.
4644 2009-04-17 Zoltan Varga <vargaz@gmail.com>
4646 * tramp-amd64.c (mono_arch_get_static_rgctx_trampoline): Fix AOT
4649 * tramp-x86.c (mono_arch_get_unbox_trampoline): Implement static
4650 rgctx invoke trampolines for x86.
4652 * mini-x86.c (mono_arch_output_basic_block): Add a few nops before
4653 indirect calls to simplify get_vcall_slot_addr (). Fixes #494567.
4654 (mono_arch_get_vcall_slot): Simplify this.
4656 2009-04-16 Zoltan Varga <vargaz@gmail.com>
4658 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Move the calls to
4659 mono_debug_add_delegate_trampoline () to get_delegate_invoke_impl ().
4661 2009-04-14 Zoltan Varga <vargaz@gmail.com>
4663 * aot-compiler.c tramp-arm.c mini-arm.c: Implement static rgctx
4664 trampolines for ARM. Add full-aot support for delegate invokes for ARM.
4666 * mini-trampolines.c (mono_magic_trampoline): Fix the build.
4668 * liveness.c (visit_bb): Remove a needless assert.
4670 2009-04-13 Zoltan Varga <vargaz@gmail.com>
4672 * mini-trampolines.c (mono_create_delegate_trampoline): Delegate the
4673 full aot support to the arch specific code.
4675 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Add full-aot support.
4677 * aot-compiler.c (emit_trampolines): Emit delegate invoke impl trampolines.
4679 * aot-compiler.c (emit_named_code): Rename this to 'emit_trampoline'.
4681 * mini-amd64.c (mono_arch_get_delegate_invoke_impls): New function to
4682 collect information about the delegate invoke impl trampolines.
4684 * mini.h (MonoAotTrampInfo): New structure collecting the information needed
4685 to save trampolines during full-aot mode.
4687 * mini-trampolines.c (mono_create_static_rgctx_trampoline): New trampoline
4688 creation function which returns a trampoline which sets the rgctx
4690 (mono_magic_trampoline): Use the rgctx trampoline instead of an rgctx
4691 wrapper if possible.
4692 (mono_delegate_trampoline): Ditto.
4694 * mini.c (mono_jit_runtime_invoke): Ditto.
4696 * tramp-amd64.c: Add an implemention of static rgctx trampolines for AMD64.
4698 * aot-compiler.c aot-runtime.c: Add support for static rgctx trampolines.
4700 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
4702 2009-04-12 Zoltan Varga <vargaz@gmail.com>
4704 * mini-ia64.c (mono_arch_lowering_pass): Use NULLIFY_INS instead of
4705 just setting the opcode to OP_NOP.
4707 2009-04-11 Zoltan Varga <vargaz@gmail.com>
4709 * mini.c (mini_method_compile): Put the last change inside an
4710 #ifdef MONO_ARCH_HAVE_LIVERANGE_OPS.
4712 * mini.c (mini_method_compile): Disable sharing of stack slots/registers
4713 and extend live ranges to cover the whole method when using xdb.
4715 * jit-icalls.c (ldvirtfn_internal): Avoid creating rgctx wrappers here,
4716 do it in the trampolines.
4718 * mini-trampolines.c (mono_magic_trampoline): Add an rgctx wrapper if
4721 * mini-trampolines.c (mono_delegate_trampoline): Ditto.
4723 * method-to-ir.c (mono_method_to_ir): Avoid using the fast virtual method
4724 call code in full-aot mode since IMT is disabled there.
4725 (mono_method_to_ir): Inline ldfld wrappers which return structures too, the
4726 new JIT no longer has that restriction.
4728 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
4730 * aot-compiler.c (emit_extra_methods): Emit the wrapper method names in
4731 a more compact format.
4732 (mono_aot_wrapper_name): New function to return a unique name for a
4733 wrapper method, also used by the AOT runtime.
4735 * aot-runtime.c (find_extra_method_in_amodule): Update after the changes to
4738 * aot-compiler.c (add_generic_class): Add the helper methods from T[]
4739 when a ICollection<T> etc is encountered.
4740 (add_generic_instances): Process method arguments/locals too.
4741 (emit_trampolines): Emit unbox trampolines for extra methods too. Shorten
4744 * aot-runtime.c (mono_aot_get_unbox_trampoline): Handle extra methods too.
4746 2009-04-10 Zoltan Varga <vargaz@gmail.com>
4748 * aot-compiler.c: Disable the AOT compiler if the JIT is disabled.
4750 * dwarfwriter.c (emit_type): Emit byref to reference types as 'int' for now.
4752 * decompose.c (mono_decompose_opcode): Make this return a MonoInst*
4753 representing the result of the decomposition. Nullify instructions
4754 instead of setting them to OP_NOP since nops can't have registers
4757 2009-04-09 Zoltan Varga <vargaz@gmail.com>
4759 * aot-compiler.c (mono_compile_assembly): Split this huge function into
4760 smaller parts. Add 'nodebug' option to prevent generation of DWARF debug
4761 info. Strip 'mapping symbols' on ARM.
4763 * iltests.il.in (test_0_fconv_to_i): Disable this on ARM too.
4765 * genmdesc.pl: Applied patch by Martin Fuzzey (mfuzzey@parkeon.com). Sync
4766 this with the native genmdesc.
4768 2009-04-08 Bill Holmes <billholmes54@gmail.com>
4770 * aot-runtime.c: Fixing the MSVC build.
4772 Code is contributed under MIT/X11 license.
4774 2009-04-08 Zoltan Varga <vargaz@gmail.com>
4776 * mini-llvm.c (mono_llvm_emit_method): Pass i1/i2 arguments as i4 since
4777 JITted code depends on it.
4779 2009-04-08 Raja R Harinath <harinath@hurrynot.org>
4781 * aot-compiler.c: Use new MonoGenericParam accessors.
4783 2009-04-08 Raja R Harinath <harinath@hurrynot.org>
4785 Reduce memory usage and improve correctness wrt MonoGenericParam
4786 * aot-runtime.c (decode_klass_ref): Simplify generic parameter
4787 handing. Avoid allocating MonoGenericParams, but use the ones in
4788 the container itself.
4790 2009-04-07 Miguel de Icaza <miguel@novell.com>
4792 * tasklets.c: Return exceptions in the out argument.
4794 2009-04-08 Zoltan Varga <vargaz@gmail.com>
4796 * mini-llvm.c (mono_llvm_emit_method): Fix alignment in the LOCALLOC_IMM
4797 opcode. Use pointer types in more places instead of casting them to
4800 * mini-llvm-cpp.cpp (mono_llvm_create_ee): Create a pass manager to run
4802 (mono_llvm_optimize_method): New helper function to optimize a method.
4804 * method-to-ir.c (mono_emit_widen_call_res): Extract the call result
4805 widening code so it could be called from more places.
4806 (mono_method_to_ir): Call mono_emit_widne_call_res () in several more
4807 code paths in the call opcodes.
4809 Mon Apr 6 14:19:54 CEST 2009 Paolo Molaro <lupus@ximian.com>
4811 * exceptions-amd64.c, mini-amd64.h: amd64 support code for continuations.
4813 2009-04-06 Zoltan Varga <vargaz@gmail.com>
4815 * dwarfwriter.c: Use _ to separate class name
4816 components as gdb can't handle '.'. Represent reference variables
4819 * mini.h (MonoCompile): Add locals_min_stack_offset/locals_max_stack_offset.
4821 * mini-amd64.c (mono_arch_allocate_vars): Save min/max stack offset.
4823 * mini-gc.c: New file, contains the SGEN GC related parts of the JIT.
4825 * gc-test.cs: New file with GC stack marking tests.
4827 * mini-arm.c (mono_arch_output_basic_block): Fix int->float conversion of
4828 negative numbers for vfp.
4830 * basic-float.cs: Add a test.
4832 Mon Apr 6 14:12:10 CEST 2009 Paolo Molaro <lupus@ximian.com>
4834 * exceptions-x86.c, mini-x86.h: x86 support code for continuations.
4836 Mon Apr 6 14:09:53 CEST 2009 Paolo Molaro <lupus@ximian.com>
4838 * tasklets.h, tasklets.c, mini.h, mini.c, Makefile.am: arch-indep
4839 part of tasklet/continuation support.
4841 2009-04-05 Zoltan Varga <vargaz@gmail.com>
4843 * mini-llvm.c (mono_llvm_emit_method): Move the handling of
4844 amd64 opcodes inside an ifdef.
4846 * dwarfwriter.c: Emit inheritance information for classes, emit fields
4849 * dwarfwriter.c (emit_type): Emit the class info for classes.
4851 2009-04-04 Zoltan Varga <vargaz@gmail.com>
4853 * Makefile.am (AM_CXXFLAGS): Add GLIB_CFLAGS to this.
4855 * mini-llvm-cpp.h: New header file for mini-llvm-cpp.cpp.
4857 * mini-llvm.c: Remove unused fields from EmitContext, fix memory leaks.
4859 * ssa.c (mono_ssa_compute): Fix some memory leaks.
4861 2009-04-03 Zoltan Varga <vargaz@gmail.com>
4863 * mini.c mini-amd64.c method-to-ir.c: Use COMPILE_LLVM in a few more places.
4865 * mini-llvm.c: Update comments.
4867 * mini.h (COMPILE_LLVM): New macro.
4869 * decompose.c (mono_decompose_opcode): Use the COMPILE_LLVM macro.
4871 * ssa.c (mono_ssa_compute): Ditto.
4873 * unwind.c (mono_unwind_get_ops_from_fde): New helper function to extract
4874 the unwind ops from a DWARF FDE.
4876 * mini-llvm.c: Implement generation of unwind info for LLVM compiled
4877 methods by extracting the dwarf unwind ops from the unwind info generated
4880 * mini-llvm.c (mono_llvm_emit_method): Enable support for non-IMT virtual
4883 * mini-amd64.c (mono_arch_get_vcall_slot): Handle more kinds of the SIB
4886 2009-04-02 Zoltan Varga <vargaz@gmail.com>
4888 * Makefile.am (llvm_sources): Enable this.
4890 * mini.c (mini_method_compile): Add support for compiling with LLVM,
4891 failing back to the JIT if something cannot be handled.
4893 * mini-amd64.c (mono_arch_emit_call): Emit the arguments more simple when
4894 compiling with LLVM.
4896 * decompose.c (mono_decompose_opcode): Avoid decomposing some opcodes when
4897 compiling with LLVM.
4899 * method-to-ir.c (mono_method_to_ir): Avoid decomposing SWITCH when
4900 compiling with LLVM.
4902 * mini-ops.h: Add a few opcodes needed by LLVM.
4904 * dwarfwriter.c (mono_dwarf_writer_emit_method): Avoid crashes if the method
4907 * mini-llvm.c mini-llvm-cpp.cpp: New files containing the experimental llvm
4910 * mini-arm.c (mono_arch_output_basic_block): Fix the ARM_FPU_NONE build.
4912 * mini-arm.h mini-arm.c cpu-arm.md: Finish VFP support.
4914 2009-04-01 Mark Probst <mark.probst@gmail.com>
4916 * regalloc.h, mini-codegen.c: Make vassign members gint32 to fix
4917 ridiculously large methods.
4919 2009-03-31 Martin Baulig <martin@ximian.com>
4921 * debug-debugger.c (debugger_remove_breakpoint): Call
4922 mono_debugger_remove_class_init_callback ().
4924 2009-03-31 Zoltan Varga <vargaz@gmail.com>
4926 * aot-compiler.c (mono_compile_assembly): Call img_writer_emit_start ()
4927 right before emitting code, not at the start.
4929 * mini.c (mono_postprocess_patches): Extract this into a separate function
4930 from mono_codegen ().
4932 * ssa.c (mono_ssa_compute): Set ins->klass for every PHI node, handle
4933 byref types correctly.
4935 2009-03-30 Zoltan Varga <vargaz@gmail.com>
4937 * dwarfwriter.c (mono_dwarf_writer_emit_method): Fix a crash introduced
4940 2009-03-29 Zoltan Varga <vargaz@gmail.com>
4942 * mini-amd64.c (mono_arch_output_basic_block): Emit a few nops before
4943 indirect calls, this avoids problems where get_vcall_slot () would get
4944 confused by the native code for the instruction preceeding the call.
4945 (mono_arch_get_vcall_slot): Simplify this.
4946 (mono_arch_emit_imt_argument): Remove this, it is no longer needed.
4948 * mini-ops.h: Fix the definitions of the OP_IA64 opcodes, since the local
4949 register allocator now seems to depend on them instead of the data in
4952 * mini.c (mini_method_compile): Throw the correct type of exception if
4953 mono_method_get_header () fails because of a loading error.
4955 2009-03-28 Zoltan Varga <vargaz@gmail.com>
4957 * mini.c (mini_method_compile): Clear the loader error if the method
4958 header cannot be decoded.
4960 * mini-trampolines.c (mono_magic_trampoline): Handle generic virtual
4961 interface methods on proxies correctly.
4963 * dwarfwriter.c (mono_dwarf_writer_emit_method): Fix handling of the
4964 this argument for vtype methods. Add precise liveness info for arguments.
4966 * mini-codegen.c (mono_print_ins_index): Print the vreg of the
4967 LIVERANGE_START/END opcodes.
4969 * method-to-ir.c (mono_spill_global_vars): Fix liverange calculation
4970 for arguments and values in registers.
4972 2009-03-27 Zoltan Varga <vargaz@gmail.com>
4974 * method-to-ir.c (mono_method_to_ir): Disable tail calls for calls which
4975 return a valuetype. Fixes #487518.
4977 * iltests.il: Add a test.
4979 * aot-compiler.c: Use mono_thread_create () to create helper threads.
4981 * mini-trampolines.c (mono_delegate_trampoline): Handle static delegates
4982 closed over a null reference correctly.
4984 2009-03-26 Zoltan Varga <vargaz@gmail.com>
4986 * method-to-ir.c (mono_handle_global_vregs): Fix support for ternary ops.
4988 2009-03-25 Mark Probst <mark.probst@gmail.com>
4990 * mini-codegen.c (mono_local_regalloc): Don't let sregs get
4991 allocated to the same registers as fixed sregs.
4993 2009-03-24 Mark Probst <mark.probst@gmail.com>
4995 * mini-ops.h: New ternary ATOMIC_CAS ops replace the old
4998 * method-to-ir.c: Handle more cases for
4999 Interlocked.CompareExchange.
5001 * cpu-x86.md, mini-x86.c, mini-x86.h, cpu-amd64.md, mini-amd64.c,
5002 mini-amd64.h, cpu-ppc.md, cpu-ppc64.md, mini-ppc.c, mini-ppc.h:
5003 ATOMIC_CAS implementations for x86, AMD64, PPC and PPC64.
5005 2009-03-23 Zoltan Varga <vargaz@gmail.com>
5007 * aot-runtime.c (decode_method_ref): Fix a warning.
5009 * unwind.c (mono_unwind_frame): Ditto.
5011 2009-03-22 Zoltan Varga <vargaz@gmail.com>
5013 * aot-compiler.c (arch_emit_unbox_trampoline): Fix the binary writer support.
5014 (mono_compile_assembly): Enable the binary writer for full-aot as well.
5016 * image-writer.c (do_reloc): Add support for the JUMP24 relocation,
5017 fix the handling of large values in the ALU_PC_G0_NC relocation.
5019 2009-03-22 Zoltan Varga <vargaz@gmail.com>
5021 * local-propagation.c method-to-ir.c local-propagation.c: Fix warnings.
5023 2009-03-22 Mark Probst <mark.probst@gmail.com>
5025 * method-to-ir.c (mono_spill_global_vars): Support for ternary
5028 2009-03-22 Mark Probst <mark.probst@gmail.com>
5030 * method-to-ir.c: MINI_OP3 needs a comma.
5032 * method-to-ir.c, mini.h, mini.c: Remove
5033 mono_init_op_sreg_counts ().
5035 2009-03-22 Zoltan Varga <vargaz@gmail.com>
5037 * mini-arm.c (mono_arch_output_basic_block): Fix aot support in
5040 * mini-arm.c (mono_arch_build_imt_thunk): Disable the !fail_tramp
5043 * mini-ops.h: Fix arguments of the MEMINDEX opcodes.
5045 * mini-amd64.c (mono_arch_build_imt_thunk): Simplify the fail handling
5048 2009-03-21 Mark Probst <mark.probst@gmail.com>
5050 * cfold.c, cprop.c, decompose.c, genmdesc.c, helpers.c, ir-emit.h,
5051 liveness.c, local-propagation.c, method-to-ir.c, mini-codegen.c,
5052 mini.c, mini.h, simd-intrinsics.c, ssa.c: Support for ternary IR
5055 2009-03-20 Zoltan Varga <vargaz@gmail.com>
5057 * driver.c: Change location of gc_wrapper.h.
5059 * method-to-ir.c (mono_find_block_region): Handle try clauses nested
5060 inside finally clauses correctly. Fixes #485721.
5062 * mini.c (mono_find_spvar_for_region): This needs to handle try regions
5063 after the change above.
5065 * exceptions.cs: Add a test.
5067 2009-03-19 Zoltan Varga <vargaz@gmail.com>
5069 * unwind.c (mono_unwind_ops_encode): Increase the size of the encode buffer.
5071 * mini-amd64.c (mono_arch_emit_epilog): Remove the encoding of stack size
5072 into cfg->used_int_regs, it is not needed with the dwarf unwinder.
5073 (mono_arch_compute_omit_fp): Remove the emit_epilog () workaround.
5075 * mini-amd64.c (mono_arch_compute_omit_fp): Add another check to avoid hitting
5076 the stack_alloc_size < (1 << 16) assertion in emit_prolog ().
5078 2009-03-19 Sebastien Pouliot <sebastien@ximian.com>
5080 * method-to-ir.c: Allow CoreCLR to throw FieldAccessException.
5081 Simplify logic for ensure_method_is_allowed_to_call_method.
5082 Handle wrappers on callers.
5084 2009-03-19 Zoltan Varga <vargaz@gmail.com>
5086 * Makefile.am (fullaotcheck): Don't run the generics tests, some of
5089 * basic-simd.cs: Fix the names of some test methods.
5091 2009-03-18 Geoff Norton <gnorton@novell.com>
5093 * mini.c: Only chain sigfpe if it wasn't generated in mangaed code.
5095 2009-03-18 Zoltan Varga <vargaz@gmail.com>
5097 * dwarfwriter.c (token_handler): Fix a crash caused by the last change.
5099 2009-03-17 Jb Evain <jbevain@novell.com>
5101 * driver.c: remove now uneeded call to mono_gc_base_init before
5104 2009-03-17 Jb Evain <jbevain@novell.com>
5106 * dwarfwriter.c (token_handler): handle more cases.
5108 2009-03-17 Sebastien Pouliot <sebastien@ximian.com>
5110 * method-to-ir.c: Remove more dead code (that was required only
5111 because of method_is_safe). Fix compiler warnings.
5113 2009-03-17 Sebastien Pouliot <sebastien@ximian.com>
5115 * method-to-ir.c: Remove unneeded/useless method_is_safe
5116 http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html
5118 2009-03-16 Rodrigo Kumpera <rkumpera@novell.com>
5120 * mini.c (mini_method_compile): Print the method been compiled with
5121 verbose level 1 instead of 3 as this helps a lot debugging JIT crashes
5122 for people not familiar with the runtime.
5124 2009-03-17 Zoltan Varga <vargaz@gmail.com>
5126 * mini-exceptions.c (get_generic_info_from_stack_frame): Avoid returning
5127 a managed object which is later put into a GList. Return its class instead.
5129 * mini.c (mono_allocate_stack_slots_full): Avoid sharing ref and non-ref
5130 stack slots when using sgen.
5132 2009-03-16 Zoltan Varga <vargaz@gmail.com>
5134 * dwarfwriter.c (emit_line_number_info): Really fix the eglib build.
5136 2009-03-14 Zoltan Varga <vargaz@gmail.com>
5138 * local-propagation.c (reg_is_softreg_no_fpstack): Use >= instead of
5139 > so it works on the first vreg as well.
5141 2009-03-13 Zoltan Varga <vargaz@gmail.com>
5143 * dwarfwriter.c (emit_line_number_info): Disable an assert which seems to
5146 * aot-compiler.c: Get rid of xdebug_lock (), use the loader lock instead.
5148 * dwarfwriter.c (emit_line_number_info): Fix eglib build as eglib doesn't
5151 2009-03-12 Zoltan Varga <vargaz@gmail.com>
5153 * dwarfwriter.c (emit_line_number_info): Optimize the computation of the
5154 native->IL offset mapping.
5156 2009-03-11 Zoltan Varga <vargaz@gmail.com>
5158 * mini-amd64.c (mono_arch_output_basic_block): Fix % 1. Fixes #484323.
5160 * basic.cs: Add a test.
5162 2009-03-11 Mark Probst <mark.probst@gmail.com>
5164 * mini-x86.c (mono_arch_output_basic_block): Use different
5165 registers in case the ones we want to overwrite are used by the
5166 other operand. Fixes regression in #480807.
5168 2009-03-10 Zoltan Varga <vargaz@gmail.com>
5170 * aot-compiler.c (mono_compile_assembly): Make the output less verbose.
5172 * dwarfwriter.c (emit_line_number_info): The line number info for
5173 IL code was off by one. Fix that.
5175 * mini-s390x.c: Fix support for vtypes whose addresses are passed on the
5178 2009-03-09 Mark Probst <mark.probst@gmail.com>
5180 Contributed under the terms of the MIT/X11 license by Steven
5181 Munroe <munroesj@us.ibm.com>.
5183 * mini-ppc.c: Correct handling of OP_LOADI4_MEMINDEX for ppc64.
5186 2009-03-08 Zoltan Varga <vargaz@gmail.com>
5188 * dwarfwriter.c (token_handler): Decode method references in non-wrappers
5191 2009-03-06 Zoltan Varga <vargaz@gmail.com>
5193 * method-to-ir.c (mono_method_to_ir): Check for type load exceptions in
5194 the delegate ctor handling code. Fixes #482638.
5196 * method-to-ir.c (mini_emit_memset): Fix the handling of size '3'. Fixes
5199 * iltests.il.in: Add a test.
5201 * mini-darwin.c (mono_chain_signal): Remove this, it is already in
5204 2009-03-05 Mark Probst <mark.probst@gmail.com>
5206 * mini-trampolines.c (mono_create_jump_trampoline): If the method
5207 is shared generic code, return the trampoline, even if the method
5208 has already been compiled. Fixes #479763.
5210 * mini.c, mini.h: New function
5211 mono_jit_find_compiled_method_with_jit_info() which is the same as
5212 mono_jit_find_compiled_method() but also returns the jit info.
5214 2009-03-05 Mark Probst <mark.probst@gmail.com>
5216 * method-to-ir.c (mono_method_to_ir): Only force the vtable var
5217 for methods which actually have one. For all other methods, make
5218 sure the this argument var is live the whole method.
5220 * mini.c (mini_method_compile): Every shared method has a
5221 this/vtable/mrgctx info. Fixes #480807.
5223 2009-03-05 Mark Probst <mark.probst@gmail.com>
5225 * mini-ppc.c (mono_arch_build_imt_thunk): Add support for mixed
5226 generic/imt thunks where some entries branch through the vtable,
5227 while other entries branch directly.
5229 2009-03-05 Zoltan Varga <vargaz@gmail.com>
5231 * mini-darwin.c (mono_chain_signal): Define this to fix the build.
5233 * mini-windows.c: Ditto.
5235 * mini.c (mono_jit_runtime_invoke): Speed up the invoking of parameterless
5238 2009-03-04 Zoltan Varga <vargaz@gmail.com>
5240 * dwarfwriter.c (emit_line_number_info): Add some debug code to help track
5243 2009-03-04 Mark Probst <mark.probst@gmail.com>
5245 * method-to-ir.c: Don't inline methods that use JMP. Fixes
5248 2009-03-04 Mark Probst <mark.probst@gmail.com>
5250 * exceptions-x86.c: Include debug-mini.h - fixes build.
5252 2009-03-04 Martin Baulig <martin@ximian.com>
5254 * debug-mini.c: Clean up the exception API and add documentation.
5255 (mono_debugger_handle_exception): New public method; this is
5256 called when throwing an exception or encountering an unhandled one.
5257 (mono_debugger_call_exception_handler): Formerly known as
5258 mono_debugger_handle_exception(); this is used to tell the
5259 debugger that we're about to invoke an exception handler.
5261 2009-03-04 Martin Baulig <martin@ximian.com>
5263 * debug-mini.c (mono_debugger_runtime_invoke): Moved here from
5264 ../metadata/mono-debug-debugger.c; save and reset exception state.
5266 2009-03-02 Martin Baulig <martin@ximian.com>
5268 * debug-mini.c: Moved the debugger exception handling here from
5269 ../metadata/mono-debug-debugger.c.
5272 (MonoDebuggerExceptionAction): New exception typedef.
5275 (MonoDebuggerThreadInfo): Added `MonoObject *last_exception'.
5277 * exceptions-amd64.c
5278 (mono_amd64_throw_exception): Use the new debugger exception
5282 (mono_handle_exception_internal): Don't call
5283 mono_debugger_unhandled_exception() here.
5285 2009-03-03 Zoltan Varga <vargaz@gmail.com>
5287 * mini.c aot-compiler.c: Update after the changes to
5288 mono_marshal_get_runtime_invoke ().
5290 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot):
5291 Virtual generic methods might not have method->slot set, work around
5294 * generics.cs: Add a test.
5296 2009-03-02 Geoff Norton <gnorton@novell.com>
5299 * driver.c: Allow signal chaining of SIGFPE as well.
5301 2009-03-02 Zoltan Varga <vargaz@gmail.com>
5303 * mini-trampolines.c (mono_generic_virtual_remoting_trampoline): Update
5304 this since it now receives the method not its generic context in the
5307 * mini-amd64.c (mono_arch_build_imt_thunk): Add support for mixed
5308 generic/imt thunks where some entries branch through the vtable, while
5309 other entries branch directly.
5311 * mini-x86.c (mono_arch_build_imt_thunk): Ditto.
5313 * method-to-ir.c (mono_method_to_ir): Enable fast virtual generic call
5314 support for interface methods as well.
5316 * mini-trampolines.c: Add support for virtual generic methods in interfaces
5317 using the normal IMT thunks.
5319 generics.cs: Add new tests.
5321 * method-to-ir.c (mono_method_to_ir): Pass the method instead of
5322 the generic inst to the generic imt thunks. This fixes AOT support,
5323 improves consistency with the normal IMT thunks, and makes it easier to
5324 add support for interface generic virtual methods later.
5326 * mini-trampolines.c (mono_magic_trampoline): Ditto.
5328 2009-02-28 Zoltan Varga <vargaz@gmail.com>
5330 * driver.c (mono_set_signal_chaining): New public API function to enable
5331 signal chaining on POSIX platforms.
5333 * mini-posix.c mini.c: Applied a variant of a patch by Simon Rowland
5334 (si@lindenlab.com) to implement signal chaining. The original patch was
5335 contributed under the MIT X/11 license:
5336 https://bugzilla.novell.com/show_bug.cgi?id=318894
5338 2009-02-27 Zoltan Varga <vargaz@gmail.com>
5340 * iltests.il.in (test_0_implicit_float_to_double_conversion): Disable this
5341 too until it can be made to run on amd64.
5343 2009-02-26 Zoltan Varga <vargaz@gmail.com>
5345 * mini-x86.c (mono_arch_get_this_arg_from_call): Avoid expensive calls
5346 to get_generic_context_from_code () + get_call_info () if possible.
5348 2009-02-25 Zoltan Varga <vargaz@gmail.com>
5350 * mini-exceptions.c (mono_handle_native_sigsegv): Implement the
5351 suspend-on-sigsegv functionality.
5353 * mini.c (mini_parse_debug_options): Add a new 'suspend-on-sigsegv' option
5354 to suspend when a native SIGSEGV is received. This is useful for debugging
5355 crashes which don't happen under gdb, since a live process contains more
5356 information than a core file.
5358 * mini-exceptions.c (mono_print_thread_dump): Use
5359 MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX instead of platform defines.
5361 * mini-x86.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): New define.
5363 * mini-amd64.h (MONO_ARCH_HAVE_SIGCTX_TO_MONOCTX): Ditto.
5365 * basic-float.cs: Disable the tests which currently fail on amd64.
5367 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Pass a non-null
5368 value to mono_arch_patch_callsite () to fix crashes.
5370 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix a warning.
5372 2009-02-23 Zoltan Varga <vargaz@gmail.com>
5374 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Replace the
5375 nop code by patching the call address to point to the nullified class init
5376 trampoline, as the former does not seem to be safe on SMP machines.
5378 2009-02-23 Mark Probst <mark.probst@gmail.com>
5380 * mini-ops.h: Fix the argument types for a few x86 opcodes where
5383 2009-02-23 Zoltan Varga <vargaz@gmail.com>
5385 * basic-float.cs basic-calls.cs: Fix warnings.
5387 2009-02-22 Mark Probst <mark.probst@gmail.com>
5389 * tramp-ppc.c (mono_arch_create_trampoline_code): Store the
5390 correct frame pointer in the LMF. Should fix #478394.
5392 2009-02-22 Zoltan Varga <vargaz@gmail.com>
5394 * Makefile.am (fullaotcheck): Copy Mono.Simd.dll as well.
5396 * image-writer.c: Make the binary writer less verbose.
5398 2009-02-21 Zoltan Varga <vargaz@gmail.com>
5400 * method-to-ir.c (mono_method_to_ir): Don't assert if string ctors
5401 are called from runtime invoke wrappers.
5403 2009-02-20 Zoltan Varga <vargaz@gmail.com>
5405 * cpu-ppc.md (store_memindex): Increase the size of this.
5407 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5409 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5411 * cpu-x86.md: Fix the sizes for long_conv_to_r_un and long_conv_to_r_un_2.
5413 * mini-x86.c (mono_arch_output_basic_block): Use only 64bits of precision for
5416 Last fix for of #467201.
5419 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5421 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5423 * cpu-x86.md: Fix the sizes for fcall(_reg,_membase), long_conv_to_r4_2
5424 and long_conv_to_r8_2:
5426 Fixed part of #467201.
5428 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5430 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5432 * mini-x86.c (mono_arch_output_basic_block): Adjust precision of int to float
5433 conversion to 32 bits.
5435 * cpu-x86.md: Increase the size of int_conv_to_r4.
5437 * basic-float.cs: Add a test for this.
5439 Fixed part of #467201.
5441 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5443 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5445 * mini-x86.c (mono_arch_output_basic_block): Adjust precision of long to double
5446 conversion to 64 bits.
5448 * basic-float.cs: Add a test for this.
5450 Fixed part of #467201.
5452 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5454 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5456 * mini-x86.c (emit_move_return_value): Don't reduce precision of functions returning float.
5457 This behavior is compatible with MS.
5459 * iltest.il.in: Add a test for this.
5461 Fixed part of #467201.
5463 2009-02-20 Rodrigo Kumpera <rkumpera@novell.com>
5465 Extracted from a patch by Kornel Pal <kornelpal@gmail.com>.
5467 * mini-x86.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_R4, it must
5468 change the precision of the value.
5470 * cpu-x86.md: Define len for float_conv_to_r4.
5472 * basic-float.cs: Add a test for this.
5474 Fixed part of #467201.
5476 2009-02-19 Rodrigo Kumpera <rkumpera@novell.com>
5478 * mini.c: Adjust locking order to the new semantics where the loader lock
5481 2009-02-18 Rodrigo Kumpera <rkumpera@novell.com>
5490 * mini-trampolines.c:
5503 * tramp-x86.c: Use mono_domain_code_* functions instead of using MonoDomain::code_mp directly.
5505 2009-02-18 Zoltan Varga <vargaz@gmail.com>
5507 * mini-codegen.c (mono_local_regalloc): Remove a ! from if (!dest_sreg1)
5510 2009-02-17 Zoltan Varga <vargaz@gmail.com>
5512 * aot-compiler.c (add_generic_class): Only add rgctx invoke wrappers
5513 for cctors if needed.
5515 2009-02-17 Mark Probst <mark.probst@gmail.com>
5517 * mini-ppc.c: Fix build on Darwin.
5519 2009-02-17 Zoltan Varga <vargaz@gmail.com>
5521 * dwarfwriter.c (mono_dwarf_writer_emit_base_info): Use 2 as the DWARF
5522 version instead of 3 as valgrind doesn't like version 3.
5524 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
5526 * aot-compiler.c (mono_aot_method_hash): New function to return a hash
5527 usable for hashing methods.
5528 (emit_extra_methods): Use the new hash to avoid putting every method in the
5531 * aot-runtime.c (find_extra_method_in_amodule): Use the new hash.
5533 * aot-runtime.c (can_method_ref_match_method): New function to quickly check
5534 whenever a method ref could match a method.
5536 * aot-runtime.c (load_image): Revert the previous change, it causes an AOT
5539 * aot-runtime.c (find_extra_method_in_amodule): Add a cache for decoded
5542 * aot-runtime.c (load_image): Pass our basedir to mono_assembly_load.
5544 * aot-compiler.c (emit_exception_debug_info): Bump the maximum size of
5545 the encoding buffer.
5547 * method-to-ir.c (mono_method_check_inlining): Avoid calling
5548 mono_method_get_header () on inflated methods as an optimization.
5550 2009-02-16 Zoltan Varga <vargaz@gmail.com>
5552 * ssa.c (fold_ins): Fix another crash if the instruction following the
5553 switch was optimized away.
5555 2009-02-16 Mark Probst <mark.probst@gmail.com>
5557 Contributed under the terms of the MIT/X11 license by Steven
5558 Munroe <munroesj@us.ibm.com>.
5560 * mini-ppc.c, mini-ppc.h: Implement TLS for PPC64.
5562 2009-02-16 Zoltan Varga <vargaz@gmail.com>
5564 * mini.c method-to-ir.c mini-trampolines.c aot-runtime.c: Remove locking
5565 around the mono_domain_alloc calls, it is now done by the functions
5568 * aot-compiler.c (compile_method): Only add wrappers referenced by
5569 the method if compiling with full AOT.
5570 (mono_compile_assembly): Error out if --aot=full is specified on
5571 a platform where it is not supported.
5573 * aot-compiler.c (emit_trampolines): Emit generic class init trampolines
5576 * tramp-arm.c (mono_arch_create_generic_class_init_trampoline_full): Add
5579 * aot-runtime.c (load_named_code): Handle
5580 mono_arm_throw_exception_by_token.
5582 * mini-arm.h: Add declaration of mono_arm_throw_exception_by_token.
5584 * image-writer.c (asm_writer_emit_pointer_unaligned): Make this really
5587 * Makefile.am (fullaotcheck): Exit if a test fails.
5589 * aot-compiler.c (mono_compile_assembly): Use the ASM writer for full aot
5591 (mono_compile_assembly): Handle the assembler failing.
5593 * image-writer.c (asm_writer_emit_section_change): Handle ARM gas not
5594 accepting subsections of .bss.
5596 * ssa.c (visit_inst): Fix a crash if the instruction following a switch
5599 * aot-compiler.c: Remove some unused includes.
5601 * aot-compiler.c (MonoAotCompile): Remove some unused fields which are
5602 now in MonoImageWriter.
5604 * mini-x86.c (mono_arch_get_vcall_slot): Handle yet another
5605 code sequence which matches a non-virtual call. Fixes #472654.
5607 2009-02-15 Zoltan Varga <vargaz@gmail.com>
5609 * aot-compiler.c: Use xdebug_lock ()/unlock () macros for locking in the
5612 * aot-compiler.c: Make the xdebug code not depend on the AOT compiler,
5613 use the image/dwarf writers directly.
5615 * image-writer.c (struct _MonoImageWriter): Remove the unused 'image'
5618 * aot-compiler.c (MonoAotCompile): Remove fields which are now in
5621 * image-writer.h: Fix some typos.
5623 * dwarfwriter.h dwarfwriter.c: New files.
5625 * aot-compiler.c: Extract the DWARF info writing functionality into a
5628 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Add a 'out_unwind_ops'
5629 argument to return unwind info.
5631 * tramp-arm.c (mono_arch_create_trampoline_code_full): Ditto.
5633 * aot-compiler.c: Emit unwind info for trampolines in full-aot mode.
5635 * aot-runtime.c (decode_method_ref): Add a case for
5636 MONO_AOT_METHODREF_WRAPPER_NAME.
5638 * mini.h: Add constants for the magic numbers used in encode_method_ref ()
5641 * aot-compiler.c (encode_method_ref): Use the new constants.
5643 * aot-runtime.c (decode_method_ref): Ditto.
5645 * aot-compiler.c (compile_method): For generic icalls, queue the wrapper to
5646 be compiled, not the icall itself.
5648 2009-02-14 Zoltan Varga <vargaz@gmail.com>
5650 * aot-runtime.c (find_extra_method_in_amodule): Avoid decoding wrapper names
5651 using decode_method_ref ().
5653 * method-to-ir.c (mini_emit_ldelema_1_ins): If the array index is a long,
5654 convert it to an in32. Fixes #475859.
5656 * arrays.cs: Add a test.
5658 2009-02-12 Zoltan Varga <vargaz@gmail.com>
5660 * mini-s390x.c (mono_arch_output_basic_block): Fix the shift amounts in
5663 * basic-long.cs: Add a test.
5665 2009-02-12 Mark Probst <mark.probst@gmail.com>
5667 * mini-x86.c, mini-x86.h: Very simple frame pointer removal. We
5668 remove the frame pointer in leaf methods which don't receive any
5669 arguments, don't throw exceptions and don't do dynamic stack
5672 2009-02-12 Zoltan Varga <vargaz@gmail.com>
5674 * mini-amd64.c (mono_arch_build_imt_thunk): Fix size calculation after
5675 the fail_tramp changes. Hopefully fixes #475132.
5677 2009-02-12 Rodrigo Kumpera <rkumpera@novell.com>
5679 * method-to-ir.c (mono_emit_method_call_full): Use mono_metadata_signature_dup_mempool
5680 instead of mono_metadata_signature_dup_full.
5682 2009-02-12 Zoltan Varga <vargaz@gmail.com>
5684 * ssa.c (fold_ins): Use MONO_IS_JUMP_TABLE () and MONO_JUMP_TABLE_FROM_INS ()
5685 for processing jump tables. Fixes #473787.
5687 2009-02-11 Mark Probst <mark.probst@gmail.com>
5689 * mini-generic-sharing.c: mini_method_get_context() just calls
5690 mono_method_get_context_general() now.
5692 * mini.c, mini.h: Moved get_object_generic_inst(),
5693 construct_object_context_for_method() and
5694 mono_domain_lookup_shared_generic() to metadata/generic-sharing.c.
5696 2009-02-11 Zoltan Varga <vargaz@gmail.com>
5698 * branch-opts.c (mono_if_conversion): Handle the case where the merged
5699 basic block fell through to its successor bblock without a branch. Fixes
5702 * iltests.il.in: Add a test.
5704 * aot-compiler.c (encode_method_ref): Encode methods of array types.
5705 (can_encode_patch): We can now handle arrays of generic parameters and
5708 * aot-runtime.c (decode_method_ref_2): Handle methods of array types.
5710 * aot-compiler.c aot-runtime.c: Emit the size of specific trampolines into
5711 the AOT file to avoid some #ifdefs in aot-runtime.c
5713 * mini.h: Bump AOT file format version.
5715 2009-02-10 Zoltan Varga <vargaz@gmail.com>
5717 * Makefile.am (fullaotcheck): Make this run the tests.
5719 * aot-compiler.c: Make the printing of skipped methods runtime configurable.
5721 2009-02-10 Mark Probst <mark.probst@gmail.com>
5723 * mini-x86.c (mono_arch_context_get_int_reg): Handle all registers
5724 individually. Fixes #473482.
5726 2009-02-10 Zoltan Varga <vargaz@gmail.com>
5728 * mini-arm.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.
5730 2009-02-09 Jeffrey Stedfast <fejj@novell.com>
5732 * aot-compiler.c (arch_emit_plt_entry): Fixed to compile.
5733 (mono_compile_assembly): Hush compile warnings about
5734 uninitialized [tmp_]outfile_name variables in the !use_bin_writer
5737 2009-02-10 Zoltan Varga <vargaz@gmail.com>
5739 * exceptions-arm.c (mono_arch_find_jit_info): Fix aot support.
5741 * mini-arm.c: Checkin unwind related changes missing from an earlier commit.
5743 * aot-compiler.c: Fix arm support.
5745 * image-writer.c: Move the R_ARM constants to image-writer.h. Export a
5746 img_writer_emit_unset_mode () function.
5748 * unwind.c (mono_unwind_get_dwarf_data_align): New helper function.
5749 (mono_unwind_get_dwarf_pc_reg): Ditto.
5751 * aot-compiler.c (emit_dwarf_abbrev): Another large reorganization.
5752 Move almost all platform specific code to a set of arch_ functions,
5753 and document them to ease porting.
5755 * aot-compiler.c (mono_xdebug_init): Fix xdebug support.
5757 * image-writer.h image-writer.c: New files, extracted from aot-compiler.c.
5759 * aot-compiler.c: Extract the image writing functionality into a separate
5760 module to reduce the size of this file.
5762 2009-02-09 Geoff Norton <gnorton@novell.com>
5764 * mini-s390.c: Fix the signature of emit_sig_cookie.
5766 2009-02-09 Zoltan Varga <vargaz@gmail.com>
5768 * aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_IMAGE.
5770 * aot-runtime.c (is_shared_got_patch): Ditto.
5772 * aot-runtime.c (load_named_code): Cope with the fact that
5773 decode_got_entry () won't decode the patch fully if its corresponding got
5774 entry is already filled.
5776 * tramp-amd64.c (mono_arch_create_monitor_enter_trampoline_full):
5778 (mono_arch_create_monitor_exit_trampoline_full): Ditto.
5780 * tramp-amd64.c (mono_arch_create_monitor_enter_trampoline_full): Use 'code'
5781 as the moving pointer instead of 'buf' for consistency with the rest of the
5783 (mono_arch_create_monitor_exit_trampoline): Ditto.
5785 * aot-compiler.c (emit_trampolines): Add throw_pending_exception/
5786 generic_class_init trampolines.
5787 (add_generic_class): Extract some code from add_generic_instances () into a
5788 separate function so it can be called from other places too.
5789 (compile_method): Call add_generic_class () for the classes of inflated methods
5790 referenced by the method.
5791 (can_encode_patch): Allow references to generic parameters.
5793 * aot-runtime.c: Add support the patches required by the new trampolines.
5795 * exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Add full-aot
5798 * tramp-amd64.c (mono_arch_create_generic_class_init_trampoline_full): Add
5801 * exceptions-amd64.c (mono_arch_get_throw_pending_exception_full): Rename
5802 this from get_throw_pending_exception, make the signature full aot compatible.
5804 * Makefile.am (fullaotcheck): New target to run full-aot tests.
5806 * method-to-ir.c (inline_method): Save/Restore cfg->ret_var_set too.
5808 * exceptions.cs: Add a test.
5810 2009-02-07 Zoltan Varga <vargaz@gmail.com>
5812 * unwind.c (mono_unwind_frame): Eliminate the data_align_factor argument,
5813 use the DWARF_DATA_ALIGN constant instead.
5815 * exception-<ARCH>.c: Update after the above change.
5817 * exceptions-arm.c (mono_arch_find_jit_info): Transition this to use the
5820 * mini-arm.c: Enable the dwarf unwinder.
5822 * mini-trampolines.c (mono_magic_trampoline): Use mono_class_get_vtable_entry ()
5823 instead of mono_class_setup_vtable ().
5825 2009-02-07 Zoltan Varga <vargaz@gmail.com>
5827 * exceptions-x86.c (mono_arch_find_jit_info): Transition this to use the
5830 * mini-x86.h: Enable the dwarf unwinder.
5832 2009-02-06 Raja R Harinath <harinath@hurrynot.org>
5834 Fix mcs/tests/test-7.cs
5835 * mini-amd64.c (mono_arch_allocate_vars): Revert change from
5838 2009-02-06 Zoltan Varga <vargaz@gmail.com>
5840 * mini.c (print_jit_stats): Remove some unused statistics.
5842 2009-02-05 Zoltan Varga <vargaz@gmail.com>
5844 * aot-compiler.c (emit_klass_info): Update after MonoClass changes.
5846 2009-02-05 Mark Probst <mark.probst@gmail.com>
5848 * jit-icalls.c (mono_helper_compile_generic_method): Don't inflate
5849 the method we get from mono_object_get_virtual_method() because
5850 that function does it properly, now.
5852 2009-02-05 Zoltan Varga <vargaz@gmail.com>
5854 * unwind.c (mono_unwind_ops_encode): Handle offsets greater than 32 between
5855 opcodes. Fixes #472775.
5857 2009-02-05 Mark Probst <mark.probst@gmail.com>
5859 * mini-exceptions.c (ves_icall_get_frame_info): Account for the
5860 fact that mono_find_jit_info() sometimes returns the context
5861 corresponding to the jit info in new_ctx. Fixes #472600.
5863 2009-02-05 Zoltan Varga <vargaz@gmail.com>
5865 * method-to-ir.c mini-hppa.c mini.c trace.c mini-s390x.c aot-compiler.c
5866 mini-s390.c: Use mono_class_enum_basetype () instead of accessing
5867 klass->enum_basetype directly.
5869 * aot-compiler.c (emit_class_dwarf_info): Add support for all possible
5872 * unwind.c: Avoid 0 sized arrays.
5874 2009-02-04 Zoltan Varga <vargaz@gmail.com>
5876 * mini-exceptions.c (mono_setup_altstack): Use a more reasonable altstack
5877 size on systems with 64k pages. Fixes #471389.
5879 2009-02-04 Mark Probst <mark.probst@gmail.com>
5881 Contributed under the terms of the MIT/X11 license by Steven
5882 Munroe <munroesj@us.ibm.com>.
5884 * mini-ppc.c (mono_arch_output_basic_block): Generate better code
5885 for LOADI4_MEMBASE. Use addi instead of addic if it's not
5888 2009-02-04 Mark Probst <mark.probst@gmail.com>
5890 Contributed under the terms of the MIT/X11 license by Steven
5891 Munroe <munroesj@us.ibm.com>.
5893 * exceptions-ppc.c (mono_arch_get_restore_context): Code size
5896 * tramp-ppc.c (mono_arch_create_generic_class_init_trampoline):
5897 The trampoline can be longer on PPC64.
5899 2009-02-04 Mark Probst <mark.probst@gmail.com>
5901 Contributed under the terms of the MIT/X11 license by Steven
5902 Munroe <munroesj@us.ibm.com>.
5904 * mini-ppc.c: Compiler warning fixes and trivial code
5907 2009-02-04 Zoltan Varga <vargaz@gmail.com>
5909 * method-to-ir.c (mono_spill_global_vars): Fix problems caused by reading
5910 ins->dreg which could be a hardware register, not a vreg.
5912 * aot-compiler.c (emit_method_dwarf_info): Ditto.
5914 * mini.h (MonoCompile): Remove vreg_to_var_num array, it is no longer used.
5915 (struct MonoMethodVar): Add a vreg field, holding the vreg of variable.
5917 * mini.c (mono_compile_create_var_for_vreg): Set var->vreg.
5919 * mini-amd64.c (mono_arch_output_basic_block): Avoid reading cfg->varinfo[..]
5920 ->dreg, that is not the vreg we are looking for.
5922 * mini-amd64.h mini-x86.h: Enable MONO_ARCH_LIVENESS_OPS again.
5924 * mini-x86.c (mono_arch_output_basic_block): Add support for LIVERANGE_START/
5927 * method-to-ir.c (mono_spill_global_vars): Add an assert to help track down
5930 2009-02-03 Zoltan Varga <vargaz@gmail.com>
5932 * mini-x86.c (mono_arch_emit_prolog): Emit unwind info.
5934 * aot-compiler.c (emit_line_number_info): Fix line number emission when
5937 * aot-compiler.c: Add xdebug support on x86.
5939 * unwind.c: Add x86 support.
5941 * aot-compiler.c (emit_exception_debug_info): Control the emission of
5942 unwind info using a new MONO_ARCH_HAVE_XP_UNWIND define.
5944 * mini.c (mini_method_compile): Ditto.
5946 * mini-amd64.c (mono_arch_allocate_vars): Avoid setting cfg->ret->dreg to
5949 * aot-compiler.c: Add emit_push_section ()/emit_pop_section () helper functions
5950 which mimic .push_section/.pop_section in GAS.
5952 * aot-compiler.c: Emit precise live range information for variables.
5954 * mini-amd64.c (mono_arch_output_basic_block): Add OP_LIVERANGE_START/END.
5956 * method-to-ir.c (mono_spill_global_vars): Compute the instructions marking
5957 the live ranges of variables, and emit OP_LIVERANGE_START/END opcodes for
5960 * mini-ops.h: Add OP_LIVERANGE_START/END opcodes to mark
5961 the live ranges of variables.
5963 * mini.h (struct MonoMethodVar): Add two fields containing the live range
5964 of the variable in terms of native offsets.
5966 2009-02-03 Rodrigo Kumpera <rkumpera@novell.com>
5968 * arrays.cs: Test for Get/SetValue of array with negate lower bounds.
5970 2009-02-02 Mark Probst <mark.probst@gmail.com>
5972 Contributed under the terms of the MIT/X11 license by Steven
5973 Munroe <munroesj@us.ibm.com>.
5975 * exceptions-ppc.c (restore_regs_from_context): Correct operand
5976 order (offset then base reg) for ppc_load_multiple_regs.
5977 (emit_save_saved_regs) Correct operand order for
5978 ppc_store_multiple_regs.
5979 (mono_arch_get_call_filter): Correct operand order for
5980 ppc_load_multiple_regs.
5982 * mini-ppc.c (emit_memcpy): Fix operand order for
5983 ppc_load_reg_update and ppc_store_reg_update.
5984 (mono_arch_output_basic_block): Correct operand order for ppc_lha.
5985 (mono_arch_emit_epilog): Correct operand order for
5986 ppc_load_multiple_regs.
5988 * tramp-ppc.c (mono_arch_create_trampoline_code): Correct operand
5989 order for ppc_store_multiple_regs and ppc_load_multiple_regs.
5991 2009-02-02 Mark Probst <mark.probst@gmail.com>
5993 * cpu-ppc64.md: Fixed storer4_memindex length.
5995 2009-02-02 Zoltan Varga <vargaz@gmail.com>
5997 * aot-compiler.c (emit_line_number_info): Optimize the size of the emitted
6000 * aot-compiler.c (emit_line_number_info): Optimize this.
6002 2009-02-01 Zoltan Varga <vargaz@gmail.com>
6004 * aot-compiler.c: Disassemble tokens in the IL disassembly.
6006 * aot-compiler.c: Add debug info for methods without debug info by
6007 emitting an IL file and having the line number info referencing that file.
6009 * aot-compiler.c: Optimize the size of the generated line number info.
6011 * aot-compiler.c: Emit line number info in xdebug mode.
6013 * aot-compiler.c (mono_save_xdebug_info): Receive a MonoCompile instead of a
6016 2009-01-31 Zoltan Varga <vargaz@gmail.com>
6018 * aot-compiler.c (emit_method_dwarf_info): Emit names for local variables.
6020 * driver.c (mono_main): Enable debugging support automatically if XDEBUG
6023 2009-01-31 Rodrigo Kumpera <rkumpera@novell.com>
6025 * basic-calls.cs: Test for the weird crash found on arm.
6027 2009-01-31 Rodrigo Kumpera <rkumpera@novell.com>
6029 * cpu-arm.md: Increase the size of storer8_membase_reg and
6030 loadr8_membase_reg to 24 bytes to accomodate the extra add.
6032 * mini-arm.c (mono_arch_output_basic_block): Under FPA, when emitting
6033 OP_STORER8_MEMBASE_REG and OP_LOADR8_MEMBASE_REG, add the original
6034 reg to LR otherwise we'll be loading/storing from just the offset.
6036 2009-01-30 Miguel de Icaza <miguel@novell.com>
6038 Question: if we are storing gint32's inside the "*native_offset",
6039 should we change the signature to "gint32 *native_offset" to
6040 ensure that we do not have type definition problems?
6042 * mini-exceptions.c (ves_icall_get_frame_info): Cast the gint32 to
6043 an int * as this is what the other function expects, causes
6044 problems with Freescale's compiler that defined int32_t to be a
6045 long and makes int incompatible
6047 2009-01-30 Miguel de Icaza <miguel@novell.com>
6049 * Rename generic-sharing.c to mini-generic-sharing.c to avoid the
6050 filename conflict with bjam.
6052 2009-01-30 Rodrigo Kumpera <rkumpera@novell.com>
6054 * cpu-arm.md: Increase the size of storer8_membase_reg to 20 bytes
6055 as it might use decomposed ops.
6057 2009-01-30 Zoltan Varga <vargaz@gmail.com>
6059 * jit-icalls.c (mono_imul_ovf): Fix one of the literals.
6061 * mini.c (mini_init): Emulate mul.ovf opcodes if MONO_ARCH_EMULATE_MUL_OVF
6064 * mini-arm.h (MONO_ARCH_EMULATE_MUL_OVF): New define.
6066 * mini-arm.c (mono_arch_build_imt_thunk): Rewrite this to allow large vtable
6069 * mini-arm.c (mono_arch_context_get_int_reg): Adapt this to the "clever"
6070 way registers are stored in MonoContext on arm.
6072 * unwind.c: Rewrite the handling of the cached_info array to use hazard pointers
6073 instead of locking so mono_get_cached_unwind_info () becomes signal safe.
6075 * mini.c (mini_init): Emuate OP_FCONV_TO_I when using soft float.
6077 * mini-arm.c (emit_load_volatile_arguments): Avoid an unneccesary assert.
6079 * mini.c (mini_init): Register mono_isfinite.
6081 * jit-icalls.c (mono_isfinite): New jit icall.
6083 * method-to-ir.c (mono_decompose_soft_float): Add support for OP_CKFINITE.
6085 * exceptions-arm.c (mono_arch_find_jit_info): When unwinding using the LMF,
6086 set esp to ARMREG_FP instead of R12, since R12 stores the value of sp for
6089 2009-01-30 Rodrigo Kumpera <rkumpera@novell.com>
6091 * exceptions-arm.c (mono_arch_find_jit_info): The frame layout on arm have
6092 separate frame and stack pointers, so we must use FP to find the register
6094 The FP reg is retrieved from the MonoContext::regs array.
6096 2009-01-30 Rodrigo Kumpera <rkumpera@novell.com>
6098 * mini-arm.c (mono_arch_output_basic_block): Emit two cond ops for OP_FBGE
6101 2009-01-30 Rodrigo Kumpera <rkumpera@novell.com>
6103 * mini-arm.c (mono_arch_emit_setret): Emit OP_FMOVE for methods that
6104 return R4 and R8 when not running under softfloat.
6106 Fixes basic-calls.exe
6108 2009-01-30 Zoltan Varga <vargaz@gmail.com>
6110 * mini-arm.c: Implement some overflow opcodes.
6112 2009-01-29 Miguel de Icaza <miguel@novell.com>
6114 * ssa.c: handle another alloca.h
6116 * mini-exceptions.c (mono_handle_native_sigsegv): Do not use
6117 PLATFORM_WIN32 for detecting if we have sigaction. Instead use
6118 MONO_ARCH_USE_SIGACTION.
6120 * aot-runtime.c, mini-exceptions.c: Replace platform define with
6123 * method-to-ir.c (mono_method_to_ir): Type cast fix on some platforms.
6125 * mini-ppc.h (MONO_ARCH_USE_SIGACTION): Do not define this for all
6126 PPC targets as sigaction does not exist on all platforms, define
6127 this on a per-platform basis.
6129 Instead of erroring out if the platform is not defined, include
6130 mini-ppc-os.h, and expect that the OS specific setting provides
6131 the required information.
6133 2009-01-30 Zoltan Varga <vargaz@gmail.com>
6135 * aot-compiler.c: Fix --enable-minimal=aot.
6137 2009-01-30 Zoltan Varga <vargaz@gmail.com>
6139 * exceptions-arm.c (mono_arch_get_throw_exception_generic): Fix the
6142 2009-01-29 Zoltan Varga <vargaz@gmail.com>
6144 * exceptions-arm.c: Fix warnings.
6146 * tramp-arm.c aot-compiler.c unwind.h unwind.c: Implement xdebug support for
6149 * mini-x86.c: Fix --enable-minimal=jit build.
6151 * mini.c: Really fix --enable-minimal=jit build.
6153 * mini.c (construct_object_context_for_method): Move this outside
6154 the DISABLE_JIT block to fix the --enable-minimal=jit build.
6156 "Backported" of r124984 from 2.0 branch.
6158 * aot-compiler.c aot-runtime.c: Add full-aot support delegate BeginInvoke/EndInvoke.
6160 "Backport" of r124977 + r124978 from 2.0 branch.
6162 * exceptions-arm.c (mono_arm_throw_exception_by_token): New helper function
6163 to avoid calling mono_exception_from_token () from the throw trampoline.
6164 (mono_arch_get_throw_exception_generic): call throw_exception_by_token
6165 for throwing corlib exceptions, this fixes full-aot support for corlib
6168 * aot-compiler.c (compile_method): Make a copy of cfg->locals to fix the build.
6170 2009-01-29 Miguel de Icaza <miguel@novell.com>
6172 * mini-darwin.c, mini-windows.c, mini-posix.c: Commit the first
6173 part of the changes to split the code in mini into operating
6174 system specific files.
6176 This patch was done by copying mini.c to the respective files to
6177 preserve SVN history.
6179 2009-01-29 Zoltan Varga <vargaz@gmail.com>
6181 * aot-compiler.c (emit_method_dwarf_info): Add minimal support for locals.
6183 2009-01-28 Zoltan Varga <vargaz@gmail.com>
6185 * method-to-ir.c (mono_method_to_ir): Avoid generic sharing for calls made to
6186 remoting-invoke-with-check wrappers of shared methods.
6188 * mini.c (print_jit_stats): Print out major gc count/time for libgc too.
6190 2009-01-27 Mark Probst <mark.probst@gmail.com>
6192 * method-to-ir.c (emit_stloc_ir): Only apply the reg-reg move
6193 optimization if the top of stack is the last instruction in the
6194 bblock. Otherwise it might have been used after its definition.
6197 2009-01-27 Zoltan Varga <vargaz@gmail.com>
6199 * mini-trampolines.c (mono_magic_trampoline): Print out the caller
6200 method as well when get_vcall_slot () fails to match a code sequence.
6202 * mini-arm.c: Fix the android build, which doesn't have
6205 2009-01-26 Zoltan Varga <vargaz@gmail.com>
6207 * mini-s390x.c: Remove a stray declaration of emit_sig_cookie () to fix
6210 2009-01-26 Rodrigo Kumpera <rkumpera@novell.com>
6212 * unwind.c (mono_unwind_cleanup): Don't crash if cached_info is NULL.
6214 2009-01-26 Zoltan Varga <vargaz@gmail.com>
6216 * mini.c (mini_method_compile): Save the unwind info generated by the JIT
6217 and put its id into jinfo->used_regs. This is only used on amd64,
6218 which is currently the only platform generating unwind info.
6220 * exceptions-amd64.c: Instead of unwinding based on a register mask, use
6221 the dwarf unwinder. This is required to correctly handle async exceptions
6222 like thread abort and stack overflows, which can happen while a method
6223 is in the middle of its prolog or epilog.
6225 * aot-runtime.c (mono_aot_get_unwind_info): New helper function to obtain
6226 the unwind info belonging to an AOTed method.
6228 * aot-compiler.c aot-runtime.c: Save/Load the unwind info emitted by the JIT
6229 into cfg->unwind_ops.
6231 * unwind.c (mono_unwind_frame): Use <= instead of < for the loop exit check.
6233 * mini.c (mini_init): Call mono_unwind_init ().
6234 (mini_cleanup): Call mono_unwind_cleanup ().
6236 * unwind.c: Add functions for managing a set of unwind info entries, allowing
6237 unwind info to be shared between methods.
6239 * mini-amd64.c (mono_arch_emit_prolog): Emit unwind info for the registers
6242 * exceptions-amd64.c (mono_arch_exceptions_init): Call
6243 get_throw_pending_exception () to avoid initialization races.
6245 * mini-exceptions.c (mono_exceptions_init): Call an arch specific
6246 mono_arch_exceptions_init () function.
6248 * mini.h (MONO_INST_NEW): Remove duplicate setting of cil_code.
6250 2009-01-25 Zoltan Varga <vargaz@gmail.com>
6252 * mini.c (mono_get_domain_intrinsic): New helper function.
6253 (mono_get_thread_intrinsic): Ditto.
6255 * mini-arm.c mini-ia64.c: Use the new helper functions.
6257 * method-to-ir.c (mono_method_to_ir): Fix the comment for
6258 the last constrained_call change, since it is needed in the non-AOT
6261 * mini-arm.c: Implement OP_TLS_GET on arm eabi linux.
6263 * mini-arm.c (mono_arch_emit_prolog): Add an inlined version of
6264 mono_get_lmf_addr () on arm eabi linux.
6266 2009-01-24 Zoltan Varga <vargaz@gmail.com>
6268 * mini-amd64.c (mono_arch_get_vcall_slot): Handle yet another
6269 code sequence which matches a non-virtual call.
6271 2009-01-23 Mark Probst <mark.probst@gmail.com>
6273 * mini-ppc.c (mono_arch_context_get_int_reg): Allow access to the
6276 2009-01-23 Zoltan Varga <vargaz@gmail.com>
6278 * aot-compiler.c aot-runtime.c: Treat delegate-invoke wrappers similarly to
6279 runtime-invoke wrappers, since they are also shared based on signature.
6281 2009-01-22 Mark Probst <mark.probst@gmail.com>
6283 * mini-exceptions.c (ves_icall_get_frame_info): Fetch the generic
6284 info from the (correct) context.
6286 2009-01-22 Zoltan Varga <vargaz@gmail.com>
6288 * unwind.c (mono_unwind_frame): Remove a stray g_free ().
6290 * unwind.c (mono_unwind_frame): New function to unwind through a frame
6291 using dwarf unwinding info. Not yet used.
6293 * mini.c (mini_init): When using xdebug, disable freeing of domains.
6295 2009-01-21 Mark Probst <mark.probst@gmail.com>
6297 * mini-ppc.c (mono_arch_delegate_invoke_impl): Return function
6300 * mini-trampolines.c (mono_delegate_trampoline): Remove the PPC64
6301 special case and handle mono_arch_delegate_invoke_impl() returning
6302 function descriptors.
6304 * tramp-ppc.c (mono_arch_create_trampoline_code): Delegate
6305 trampolines return function descriptors, too.
6307 2009-01-21 Zoltan Varga <vargaz@gmail.com>
6309 * method-to-ir.c (handle_alloc): Avoid generic instances in the
6310 out_of_line optimization.
6312 2009-01-21 Martin Baulig <martin@ximian.com>
6315 (MonoCompile): Added `disable_deadce_vars' to disable removing
6319 (mini_method_compile): Set `cfg->disable_deadce_vars' when running
6320 inside the debugger.
6322 * liveness.c (mono_analyze_liveness): Don't remove any unused
6323 variables if `cfg->disable_deadce_vars' is set.
6325 2009-01-21 Mark Probst <mark.probst@gmail.com>
6327 * method-to-ir.c: Only apply exception constructor optimization if
6328 the the method actually belongs to an exception class. Fixes
6331 2009-01-21 Zoltan Varga <vargaz@gmail.com>
6333 * mini-trampolines.c (mono_delegate_trampoline): Put back the previous
6334 change inside a #ifdef __mono_ppc64__.
6336 * aot-compiler.c (compile_method): Remove the previous limitation.
6338 * method-to-ir.c (method-to-ir.c): Add support for the constrained prefix
6339 on type variables in AOTed code.
6341 * aot-compiler.c (compile_method): Skip generic methods having type
6342 constraints on their generic parameters.
6344 * aot-compiler.c (compile_method): Check for methods which cannot be
6345 encoded inside RGCTX_FETCH patches as well.
6347 * mini-exceptions.c (mono_print_thread_dump): Fix the windows
6350 2009-01-20 Mark Probst <mark.probst@gmail.com>
6352 * method-to-ir.c: Force the vtable variable in shared generic code
6353 for the case that they might show up on a stack trace where they
6356 * mini-exceptions.c: Save and use generic sharing info as well as
6357 IP in stack traces to resolve shared generic instantiations.
6359 2009-01-20 Zoltan Varga <vargaz@gmail.com>
6361 * mini-trampolines.c (mono_delegate_trampoline): Revert the change which
6362 added a mono_get_addr_from_ftnptr () as it breaks the ia64 build.
6364 2009-01-20 Mark Probst <mark.probst@gmail.com>
6366 * method-to-ir.c: Do generic sharing for array constructors.
6368 2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>
6370 * mini-exceptions.c (mono_print_thread_dump): Add information
6371 about the thread state using wapi_current_thread_desc.
6373 2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
6375 * basic-simd.cs: Tests for the new constructors.
6377 2009-01-19 Rodrigo Kumpera <rkumpera@novell.com>
6379 * mini-ops.h: Added OP_EXPAND_*
6383 * mini-x86.c (mono_arch_output_basic_block): Same.
6385 * simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for single element constructors.
6387 2009-01-19 Zoltan Varga <vargaz@gmail.com>
6389 * iltests.il.in: Add a test for #467385.
6391 2009-01-18 Rodrigo Kumpera <rkumpera@novell.com>
6393 * mini.c (mini_thread_cleanup): Don't cleanup TLS storage if the
6394 thread been cleaned up is not the same currently in execution.
6396 Fixes appdomain-unload crashes on windows, osx and linux variants
6397 without the __thread keyword.
6399 2009-01-18 Zoltan Varga <vargaz@gmail.com>
6401 * mini-arm.c (mono_arch_flush_icache): Applied patch from Koushik Dutta
6402 (koush@koushikdutta.com). Implement this for android.
6404 * helpers.c (mono_disassemble_code): Avoid assembler errors if the id
6405 begins with a digit.
6407 * method-to-ir.c: Call mono_gc_get_write_barrier () instead of
6408 mono_marshal_get_write_barrier ().
6410 2009-01-17 Rodrigo Kumpera <rkumpera@novell.com>
6412 * decompose.c (mono_decompose_vtype_opts): Fix the decomposition
6413 of OP_VCALL_* ops for 8 bytes vtypes on 32 bits archs and platorms
6414 that pass them on a register pair.
6416 This affects windows, OSX and FreeBSD. The mono/tests/handleref.exe
6417 test was crashing due to that.
6419 Fri Jan 16 15:21:21 CET 2009 Paolo Molaro <lupus@ximian.com>
6421 * exceptions-ppc.c: tweaks from malc (OV-Soft) to fix the size of the
6422 trampoline code. Include ucontext.h only if available.
6424 2009-01-15 Mark Probst <mark.probst@gmail.com>
6426 * mini.c: mono_domain_lookup_shared_generic() takes an open method
6427 and doesn't check whether it's sharable, like it was before
6428 removing the shared generics hash. This brings IronPython
6429 performance back to what it was before that change.
6431 2009-01-14 Mark Probst <mark.probst@gmail.com>
6433 * method-to-ir.c: Handle delegate invocation optimization earlier,
6434 otherwise it would be handled (much more slowly) by the
6435 final/sealed optimization.
6437 2009-01-13 Zoltan Varga <vargaz@gmail.com>
6439 * mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes when the current thread or
6440 domain is not set. Fixes #465864.
6442 2009-01-12 Mark Probst <mark.probst@gmail.com>
6444 * method-to-ir.c: Don't stop sharing of generic methods with catch
6445 clauses - we already handle those.
6447 2009-01-12 Mark Probst <mark.probst@gmail.com>
6449 * mini.c, mini.h: lookup_generic_method() is now
6450 mono_domain_lookup_shared_generic() and uses the jit_code_hash,
6451 making the shared_generics_hash obsolete.
6453 2009-01-12 Mark Probst <mark.probst@gmail.com>
6455 * mini-ppc.c, exceptions-ppc.c, cpu-ppc.md, cpu-ppc64.md: Don't
6456 use the red zone. Make room on the stack first and then use it,
6457 not the other way around.
6459 2009-01-12 Zoltan Varga <vargaz@gmail.com>
6461 * mini.c (mini_init): Call mono_xdebug_init ().
6463 * aot-compiler.c (mono_xdebug_init): Make this non-static.
6465 2009-01-11 Zoltan Varga <vargaz@gmail.com>
6467 * TestDriver.cs: Add an --iter argument to run tests multiple times.
6469 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Emit debug info for
6472 * aot-compiler.c (mono_save_trampoline_xdebug_info): New function to emit
6473 debug+unwind info for trampolines.
6475 * mini.c (mono_create_unwind_op): New helper function.
6477 * unwind.h: Add macros for emitting unwind ops without a MonoCompile.
6479 2009-01-10 Zoltan Varga <vargaz@gmail.com>
6481 * aot-compiler.c: Fix the build.
6483 2009-01-09 Zoltan Varga <vargaz@gmail.com>
6485 * Makefile.am: Update dtrace-prelink.sh location.
6487 2009-01-08 Zoltan Varga <vargaz@gmail.com>
6489 * method-to-ir.c (mono_method_to_ir): Fix the check for the mscorlib ldstr
6490 optimization. Fixes #464520.
6492 2009-01-07 Bill Holmes <billholmes54@gmail.com>
6494 * mini-amd64.c : Adding code to save/restore non-volatile registers
6497 * exceptions-amd64.c : Adding code to save/restore non-volatile
6498 registers on Winx64.
6500 Contributed under MIT/X11 license.
6502 2009-01-07 Zoltan Varga <vargaz@gmail.com>
6504 * mini-arm.c (mono_arch_flush_icache): Use __GNUC_PREREQ instead of checking
6505 __GNUC_MINOR__ which can break when the major version changes.
6507 2009-01-07 Rodrigo Kumpera <rkumpera@novell.com>
6509 * basic-simd.cs: Add tests for usage of the sizeof opcode.
6511 2009-01-07 Geoff Norton <gnorton@novell.com>
6513 * helpers.c: Allow mono -v -v -v to work on darwin.
6515 2009-01-05 Bill Holmes <billholmes54@gmail.com>
6517 * mini-amd64.c (mono_arch_get_vcall_slot) : Handle an additional instruction
6520 Contributed under MIT/X11 license.
6522 2009-01-05 Zoltan Varga <vargaz@gmail.com>
6524 * mini.c (mono_allocate_stack_slots_full2): Use mono_class_from_mono_type
6525 instead of directly accessing type->data.klass. Fixes #462016.
6526 (mono_allocate_stack_slots_full): Ditto.
6528 * mini-arm.c (mono_arch_flush_icache): Applied patch from Riku Voipio
6529 <novell@kos.to>. Fix cache flush on kernels without OLDABI compat option.
6531 * aot-compiler.c (emit_plt): Fix ARM build.
6533 2009-01-04 Zoltan Varga <vargaz@gmail.com>
6535 * branch-opts.c (mono_if_conversion): Optimize this using ins->prev.
6537 * branch-opts.c (mono_if_conversion): Fix an assert introduced by the last
6540 * branch-opts.c (mono_if_conversion): Use branch->inst_true_bb/inst_false_bb
6541 instead of bblock->out_bb [0]/[1], the two might not be the same. Fixes
6544 * iltests.il.in: Add a regression test.
6546 2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
6548 * mini-codegen.c (mono_print_ins_index): Pretty print XPHI and VPHI.
6550 2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
6552 * basic-simd.cs: Add a regression test for #462457.
6554 2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
6556 * mini-ops.h: Add a definition of XPHI.
6558 * mini.h (MONO_IS_PHI): Make is aware of simd instrincs.
6560 * ssa.c (op_phi_to_move): Handle XPHI.
6562 * ssa.c (mono_ssa_compute): Generate a XPHI for simd intrinsics instead of VPHI.
6566 2009-01-04 Rodrigo Kumpera <rkumpera@novell.com>
6568 * method-to-ir.c (mono_emit_rgctx_calli): Fix a warning.
6570 2008-12-31 Geoff Norton <gnorton@novell.com>
6572 * mini-ppc.c: The prolog size allocated can be too small for darwin
6573 ppc32 under certain circumstances. Also fix a small logic bug.
6575 2008-12-29 Zoltan Varga <vargaz@gmail.com>
6577 * mini.c (mono_jit_compile_method_inner): Avoid holding the domain lock
6578 while loading AOT methods.
6580 * mini-exceptions.c: Check jit_tls->class_cast_from instead of class_cast_to
6581 since only the former is nulled out after a successful cast. This prevents
6582 crashes with rethrown exceptions when using --debug=casts.
6584 2008-12-24 Mark Probst <mark.probst@gmail.com>
6586 * mini.h: New macro for checking whether a method is final,
6587 i.e. whether the method or its class is marked final.
6589 * method-to-ir.c: Use the new macro for all final-checks
6590 consistently. Fixes the crash in the System.ServiceModel tests.
6592 2008-12-23 Mark Probst <mark.probst@gmail.com>
6594 * mini-exceptions.c (get_exception_catch_class): Corrected another
6595 overly strict assertion.
6597 2008-12-23 Mark Probst <mark.probst@gmail.com>
6599 * mini-ppc.c (mono_arch_build_imt_thunk): Save and restore r11.
6600 Clobbering it is not allowed because the caller might use it as
6601 the vtable register in the interface call.
6603 2008-12-19 Mark Probst <mark.probst@gmail.com>
6605 * mini-exceptions.c (get_exception_catch_class): Corrected an
6606 overly strict assertion.
6608 2008-12-18 Mark Mason <mmason@upwardaccess.com>
6610 * method-to-ir.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P or sizeof(gpointer) when appropriate.
6612 * mini.h: Move typedef to mgreg_t up above include of mini-arch.h
6614 * local-propogation.c: use SIZEOF_REGISTER instead of SIZEOF_VOID_P when appropriate
6616 * cpu-mips.md: correct lengths for certain long_ opcodes.
6618 * mini-mips.h: Only emulate long operations when SIZEOF_REGISTER==4. Add missing func decl.
6620 * mini-mips.c: Add support for more long operations. Fix issues with stack frame layout for n32 (still not perfect yet). Add mips_emit_load_const().
6622 2008-12-17 Mark Mason <mmason@upwardaccess.com>
6624 * exceptions-mips.c (mono_arch_find_jit_info): decode sd instructions as well when looking for registers.
6626 2008-12-17 Mark Mason <mmason@upwardaccess.com>
6628 * mini-mips.c (mono_arch_output_basic_block): OP_JUMP_TABLE stores patch type in inst_c1, not inst_i1.
6630 2008-12-16 Rodrigo Kumpera <rkumpera@novell.com>
6632 * branch-opts.c (remove_block_if_useless): Even if BB0 falls through, don't add a br to the
6635 2008-12-16 Mark Mason <mmason@upwardaccess.com>
6637 * mini.h: Allow MonoInst 'p' field to alias with the low-order bits of the 'const_val' fields correctly on big-endian systems when SIZEOF_VOID_P < SIZEOF_REGISTER
6639 * ir-emit.h: Change SIZEOF_VOID_P to SIZEOF_REGISTER, init instruction through inst_c* fields instead of inst_p* fields in case sizeof(inst_p) < sizeof(inst_c)
6641 2008-12-15 Mark Mason <mmason@upwardaccess.com>
6643 * trace.c (mono_trace_enter_method): correctly handle arguments smaller than the stack slot size on big endian systems.
6645 2008-12-14 Zoltan Varga <vargaz@gmail.com>
6647 * liveness.c (mono_analyze_liveness): Avoid eliminating the 'this' var in
6648 gshared code. Fixes #458947.
6650 * generics.cs: Add a test.
6652 2008-12-12 Mark Mason <mmason@upwardaccess.com>
6654 * method-to-ir.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6656 * mini-mips.c: first pass n32 code generation.
6658 * mini-mips.h: datatypes and defines for n32 support.
6660 * exceptions-mips.c: first pass n32 code generation.
6662 * tramp-mips.c: first pass n32 code generation.
6664 * cpu-mips.md: add long_ opcodes.
6666 2008-12-12 Mark Mason <mmason@upwardaccess.com>
6668 * liveness.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6670 * cfold.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6672 * local-propogation.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6674 * regalloc2.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6676 * mini.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6678 * mini-codegen.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6680 * ssa.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6682 * decompose.c: replace SIZEOF_VOID_P with SIZEOF_REGISTER where needed.
6684 * helpers.c: for mips/n32, don't pass -mips32 to objdump
6686 2008-12-12 Zoltan Varga <vargaz@gmail.com>
6688 * mini-arm.c tramp-arm.c: Fix calls to mono_arch_flush_icache.
6690 2008-12-12 Andres G. Aragoneses <aaragoneses@novell.com>
6692 * driver.c: Sync --help-trace with man page (EXPR,EXPR).
6694 2008-12-12 Mark Probst <mark.probst@gmail.com>
6696 * mini-ppc.h, exceptions-ppc.c, tramp-ppc.c: Create function
6697 descriptors for helper functions directly in front of the code.
6699 2008-12-11 Mark Probst <mark.probst@gmail.com>
6701 * method-to-ir.c: Removed an unnecessary assertion.
6703 2008-12-10 Zoltan Varga <vargaz@gmail.com>
6705 * method-to-ir.c: Merge SGEN changes from the old JIT.
6707 2008-12-10 Zoltan Varga <vargaz@gmail.com>
6709 * driver.c (compile_all_methods_thread_main): Handle failure of
6712 2008-12-10 Mark Probst <mark.probst@gmail.com>
6714 * mini-ppc.c: Merged with mini-ppc64.c.
6716 * mini-ppc.h: Define PPC_MINIMAL_PARAM_AREA_SIZE on all targets.
6718 * Makefile.am: Use the same sources for PPC and PPC64.
6720 * mini-ppc64.c: Removed.
6722 2008-12-09 Rodrigo Kumpera <rkumpera@novell.com>
6724 * branch-opts.c (remove_block_if_useless): Extract fall through detection
6725 code to mono_bb_is_fall_through.
6727 * branch-opts.c (mono_remove_critical_edges): Same.
6729 2008-12-09 Rodrigo Kumpera <rkumpera@novell.com>
6731 * ssa.c (fold_ins): branch opt can kill dummy switch ops so we can't
6732 expect that an OP_BR_REG will be there.
6734 2008-12-09 Rodrigo Kumpera <rkumpera@novell.com>
6736 * branch-opts.c (remove_block_if_useless): Use MONO_IS_BRANCH_OP instead of checking
6737 for the many branch ops. The original check miss OP_BR_REG.
6741 2008-12-09 Mark Mason <mmason@upwardaccess.com>
6743 * mini-mips.h mini-mips.c exceptions-mips.c tramp-mips.c: first round of changes necessary to eventually support n32.
6745 2008-12-09 Zoltan Varga <vargaz@gmail.com>
6747 * aot-runtime.c (load_method): Avoid calling decode_exception_debug_info
6748 while holding the aot lock.
6750 2008-12-09 Mark Mason <mmason@upwardaccess.com>
6752 * mini-mips.c (mono_arch_output_basic_block): use mfc1/lwc1 instead of mfc1d/ldc1
6754 2008-12-09 Bill Holmes <billholmes54@gmail.com>
6756 * mini.c (mini_cleanup) : Adding a call to cominterop_release_all_rcws
6757 to release all runtime callable wrappers held by the runtime.
6759 Contributed under MIT/X11 license.
6761 2008-12-09 Bill Holmes <billholmes54@gmail.com>
6763 * tramp-amd64.c (mono_arch_create_trampoline_code_full) : Increase the code size for
6766 Contributed under MIT/X11 license.
6768 2008-12-09 Zoltan Varga <vargaz@gmail.com>
6770 * aot-runtime.c (decode_exception_debug_info): Acquire the domain
6771 lock when calling mono_domain_alloc (). Hopefully fixes #415608.
6773 2008-12-09 Mark Mason <mmason@upwardaccess.com>
6775 * cpu-mips.md: fix ckfinite length
6777 * mini-mips.c: at least recognize n32 ABI when used (not yet supported)
6778 (mono_arch_lowering_pass): cleanup, rearrange for clarity
6779 (mono_arch_output_basic_block): implement OP_CKFINITE, add more asserts
6781 2008-12-08 Mark Mason <mmason@upwardaccess.com>
6783 * exceptions-mips.c (mono_arch_find_jit_info): init new_ctx with ctx, dont' call setup_context.
6785 2008-12-08 Geoff Norton <gnorton@novell.com>
6787 * tramp-amd64.c: r120895 stores RAX, so we need to increase the window
6788 size by 8 bytes as well.
6790 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6792 * basic-simd.cs: Fix method names for Vector16b.
6794 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6796 * basic-simd.cs: Fix method names for Vector16sb.
6798 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6800 * basic-simd.cs: Fix method names for Vector8us.
6802 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6804 * basic-simd.cs: Fix method names for Vector8s.
6806 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6808 * basic-simd.cs: Fix method names for Vector4ui.
6810 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6812 * basic-simd.cs: Fix method names for Vector2l.
6814 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6816 * basic-simd.cs: Fix method names for Vector2d.
6818 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6820 * simd-intrinsics.c (mono_emit_simd_intrinsics): Add support for intrinsics
6821 that are extension methods.
6823 2008-12-08 Rodrigo Kumpera <rkumpera@novell.com>
6825 * basic-simd.cs: Fix method names for Vector4f.
6827 2008-12-08 Zoltan Varga <vargaz@gmail.com>
6829 * mini-exceptions.c (mono_print_thread_dump): Mark threadpool threads
6830 as such. Fixes #456669.
6832 2008-12-07 Mark Mason <mmason@upwardaccess.com>
6834 * mini-mips.c (mono_arch_emit_call): narrow float arguments when passing as args.
6836 2008-12-07 Mark Mason <mmason@upwardaccess.com>
6838 * mini-mips.c (mono_arch_lowering_pass): don't handle OP_ICONV_TO_R* or OP_R*CONST
6839 (mono_arch_emit_setret): use OP_MIPS_CVTSD to return SP floats
6840 (mono_arch_output_basic_block): simplify FP load/store, handle OP_MIPS_FBLT_UN
6841 (mips_adjust_stackframe): handle FP spills
6843 * mini-ops.h: add mips_mtc1_s2
6845 * cpu-mips.md: add mips_mtc1_s2
6847 2008-12-07 Zoltan Varga <vargaz@gmail.com>
6849 * unwind.c: New file, move the unwind info encoding functions here from
6850 aot-compiler.c, so they could be used at runtime too.
6852 2008-12-05 Mark Mason <mmason@upwardaccess.com>
6854 * mini-mips.c (mono_arch_lowering_pass): handle OP_IMUL_IMM as well
6855 (mono_arch_output_basic_block): fix OP_LOCALLOC code generation
6857 2008-12-05 Mark Mason <mmason@upwardaccess.com>
6859 * mini-mips.c: cleanup warnings
6860 (mono_arch_lowering_pass): handle OP_LOCALLOC_IMM
6861 (mips_adjust_stackframe): handle case of taking the address of stack locals
6863 2008-12-05 Zoltan Varga <vargaz@gmail.com>
6865 * aot-compiler.c: Implement a few functions missing from the asm writer.
6866 (emit_method_code): Only write symbols for methods when using the bin
6867 writer, since the assembler can't deal with the characters in our method
6870 * aot-compiler.c (is_plt_patch): ICALL_ADDR is also a plt patch.
6872 * method-to-ir.c (mono_method_to_ir): Transform aotconst+calli into a direct
6875 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Rework the code
6876 a bit to also restore %rax.
6878 2008-12-05 Mark Probst <mark.probst@gmail.com>
6880 * mini-ppc.c: Some simple merges from mini-ppc64.c.
6882 2008-12-05 Zoltan Varga <vargaz@gmail.com>
6884 * ssa.c (mono_ssa_compute): Only add an implicit reference at start for
6887 2008-12-05 Mark Probst <mark.probst@gmail.com>
6889 * exceptions-ppc.c: Merged with exceptions-ppc64.c.
6891 * mini-ppc.c, mini-ppc.h: Remove PPC_STACK_ALIGNMENT and use
6892 MONO_ARCH_FRAME_ALIGNMENT. Struct for PPC64 function descriptors.
6894 * exceptions-ppc64.c: Removed.
6896 * Makefile.am: Use exceptions-ppc.c instead of exceptions-ppc64.c.
6898 2008-12-05 Mark Probst <mark.probst@gmail.com>
6900 * tramp-ppc.c, mini-ppc.c, mini-ppc.h: Merged tramp-ppc.c with
6903 * Makefile.am: Use tramp-ppc.c instead of tramp-ppc64.c.
6905 * tramp-ppc64.c: Removed.
6907 2008-12-05 Zoltan Varga <vargaz@gmail.com>
6909 * aot-compiler.c (add_generic_instances): Skip non-generic classes in
6912 2008-12-05 Mark Probst <mark.probst@gmail.com>
6914 * mini-ppc.h: Merged mini-ppc64.h with mini-ppc.h.
6916 * exceptions-ppc64.c, tramp-ppc64.c, mini-arch.h, Makefile.am: Use
6917 mini-ppc.h instead of mini-ppc64.h.
6919 * mini-ppc64.h: Removed.
6921 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6923 * mini-mips.c: introduce USE_LDC_SDC: use ldc1/sdc1 to load/store doubles, disabled by default
6925 * mini-mips.c (mono_arch_emit_outarg_vt): fix offset calculation for memcpy in structure passing.
6927 2008-12-05 Mark Probst <mark.probst@gmail.com>
6929 * mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, tramp-ppc64.c:
6930 Removed FIRST/LAST_[GF]REG macros, to make merging PPC64 with PPC
6933 2008-12-05 Rodrigo Kumpera <rkumpera@novell.com>
6935 * basic-simd.cs: Tests for operator == and != on Vector8us and Vector16b.
6937 2008-12-05 Rodrigo Kumpera <rkumpera@novell.com>
6939 * simd-intrinsics.c: Add support for operator == and != to Vector8(u)s and Vector16(s)b.
6941 2008-12-05 Rodrigo Kumpera <rkumpera@novell.com>
6943 * basic-simd.cs: Tests for operator == and != on Vector4f.
6945 2008-12-05 Rodrigo Kumpera <rkumpera@novell.com>
6947 * simd-intrinsics.c (simd_intrinsic_emit_equality): Adapt to support Vector4f.
6949 * simd-intrinsics.c: Kill useless enum.
6951 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6953 * cpu-mips.md: add long_conv_to_ovf_i4_2
6954 * mini-mips.c: update/add various _OVF_ opcodes to fix test failures
6956 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6958 * mini-mips.c: ifdef protect automatic promotions of R4 to R8.
6960 * mini-mips.c (mono_arch_emit_setret): handle R4 case with FCONV_TO_R4 instead of FMOVE
6962 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6964 * mini-mips.c (mono_arch_output_basic_block): fix codegen for OP_OR_IMM/OP_IOR_IMM
6966 2008-12-04 Rodrigo Kumpera <rkumpera@novell.com>
6968 * basic-simd.cs: Add tests for new methods.
6970 2008-12-04 Rodrigo Kumpera <rkumpera@novell.com>
6972 * simd-intrinsics.c: Add support for operator == and !=
6975 * simd-methods.h: Add SN_op_Inequality and SN_op_Equality.
6977 2008-12-04 Rodrigo Kumpera <rkumpera@novell.com>
6979 * simd-intrinsics.c: Remove ExtractByteMask intrinsics.
6981 2008-12-04 Zoltan Varga <vargaz@gmail.com>
6983 * aot-compiler.c (add_wrappers): Add pinvoke wrappers.
6985 * mini.c (mono_resolve_patch_target): Allow pinvoke methods in
6986 MONO_PATCH_INFO_ICALL_ADDR.
6988 * aot-runtime.c (MonoAotFileInfo): Correct order of fields.
6990 * aot-compiler.c: Resurrect full-aot support.
6992 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6994 * mini-mips.c (mono_arch_lowering_pass): handle OP_COMPARE and OP_ICOMPARE
6996 2008-12-04 Mark Mason <mmason@upwardaccess.com>
6998 * mini-mips.c (mono_arch_output_basic_block): fix OP_IREM_UN code generation
7000 2008-12-03 Rodrigo Kumpera <rkumpera@novell.com>
7002 * basic-simd.cs: Fix tests to work under ppc.
7003 Remove tests for methods that will be removed.
7005 2008-12-03 Mark Probst <mark.probst@gmail.com>
7007 * method-to-ir.c (mono_method_to_ir): Handle ldtoken of an open
7008 generic type (via a typedef or typeref) correctly.
7010 2008-12-03 Zoltan Varga <vargaz@gmail.com>
7012 * mini-trampolines.c (mono_magic_trampoline): Add some debugging code to help
7013 diagnose an assertion failure.
7015 2008-12-02 Mark Probst <mark.probst@gmail.com>
7017 * tramp-ppc64.c (mono_arch_create_rgctx_lazy_fetch_trampoline):
7018 Fix trampoline size.
7020 * mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: A few floating point
7021 conversion opcodes are implemented natively instead via emulation.
7023 2008-12-01 Mark Mason <mmason@upwardaccess.com>
7025 * cpu-mips.md: remove mips_xori
7027 * mini-ops.h: remove mips_xori
7029 * mini-mips.h: replace OP_MIPS_XORI with OP_IXOR
7031 * mini-mips.c (mono_arch_decompose_long_opts): Add ladd_imm, lsub, lsub_imm, lneg, lsub_ovf, lsub_ovf_un.
7033 * mini-mips.c (mono_arch_lowering_pass, mono_arch_output_basic_block): fix IXOR handling
7035 2008-12-01 Mark Mason <mmason@upwardaccess.com>
7037 * cpu-mips.md: fix instruction lengths.
7039 * mini-mips.h: define MONO_ARCH_NO_IOV_CHECK
7041 * mini-mips.c: move most instruction rewriting into decompose_ops. Implement conditional branches and exceptions. Fix jump table patch handling. Implement add/sub OVF.
7043 * mini-ops.h: fix slti / sltiu op profiles.
7045 2008-12-02 Martin Baulig <martin@ximian.com>
7047 * method-to-ir.c (mono_method_to_ir): Disable debugging
7048 information for the init locals block to make the debugger stop
7049 after all locals have been initalized.
7051 2008-12-02 Martin Baulig <martin@ximian.com>
7053 * mini.c (mini_method_compile): Disable MONO_OPT_DEADCE when
7054 running inside the debugger.
7056 2008-12-01 Zoltan Varga <vargaz@gmail.com>
7058 * mini.c (mini_method_compile): Only run local deadce if MONO_OPT_DEADCE
7061 * method-to-ir.c (mono_method_to_ir): Fix invalid code generated by the
7062 alu->alu imm optimization which only shows if deadce is disabled.
7064 * aot-compiler.c: Rename the function names for the binary and asm writers
7065 so they can coexist in the same process. Rework the xdebug code to use the
7066 asm writer. This avoids the need to call into the runtime to dump the
7067 debugging info. Add more debugging info for types.
7069 * mini-<ARCH>.h: Kill MONO_ARCH_HAVE_NORMALIZE_OPCODES define.
7071 * genmdesc.c genmdesc.pl mini.h: Don't put the CEE_ opcodes into the
7072 cpu description tables, they can't occur in cpu-<ARCH>.md.
7074 * method-to-ir.c (mono_method_to_ir): Set the type of the value pushed on
7075 the stack in CEE_LDFLDA. Fixes #450542.
7077 * generics.cs: Add a new test.
7079 2008-12-01 Mark Mason <mmason@upwardaccess.com>
7081 * mini-ops.h: updated MIPS opcodes
7082 * mini-mips.c: decompose long opts
7083 * mini-mips.h: decompose long opts
7085 2008-11-29 Mark Mason <mmason@upwardaccess.com>
7087 * cpu-mips.md: fix length on int_rem_un
7088 * mini-mips.c (mips_stackframe_adjust): fix insertion of spillvars region in MIPS stackframes.
7090 2008-11-29 Zoltan Varga <vargaz@gmail.com>
7092 * mini.h aot-runtime.c: Fix building with DISABLE_AOT.
7094 * mini-codegen.c (mono_print_ins_index): Handle OP_VOIDCALL_MEMBASE.
7096 2008-11-29 Martin Baulig <martin@ximian.com>
7098 * mini-exceptions.c (mono_handle_native_sigsegv): Check
7099 mono_debug_using_mono_debugger() in addition to the
7100 `no_gdb_backtrace' flag in the `MonoDebugOptions'.
7102 2008-11-28 Mark Mason <mmason@upwardaccess.com>
7104 * mini-ops.h: updated more MIPS opcodes
7105 * mini-mips.c: FP compare/branch working again, clean up last of CEE_ -> OP_ mappings
7106 * cpu-mips.md: Added MIPS versions of new FP compare/branch opcodes.
7108 2008-11-28 Mark Probst <mark.probst@gmail.com>
7110 * mini-ppc64.c: Patch the RGCTX fetch trampoline correctly.
7112 2008-11-28 Mark Mason <mmason@upwardaccess.com>
7114 * mini-mips.c (mono_arch_emit_call): adding missing conversion to fp single when passing in integer arg register.
7115 * mini-mips.c (mips_adjust_stackframe): compensate for spill-down logic.
7116 * mini-ops.h: correct selected mips opcode entries
7118 2008-11-28 Mark Probst <mark.probst@gmail.com>
7120 * mini-ppc64.c, mini-ppc64.h: Enable generalized IMT thunks and
7123 2008-11-28 Mark Probst <mark.probst@gmail.com>
7125 * mini-ppc64.h, tramp-ppc64.c: Make generic code sharing work.
7127 2008-11-28 Mark Mason <mmason@upwardaccess.com>
7129 * method-to-ir.c, mini-trampolines.c: protect IMG code with #ifdef MONO_ARCH_HAVE_IMT to fix compile errors.
7130 * mini-mips.c: Fixup stackframe assignments after allocation of spillvars.
7131 * mini-mips.h: disable IMT
7132 * tramp-mips.c (mono_arch_get_vcall_slot): fix offset extraction
7134 2008-11-28 Mark Probst <mark.probst@gmail.com>
7136 * mini-ppc64.c, mini-ppc64.h: Don't emulate long ops.
7138 2008-11-28 Mark Probst <mark.probst@gmail.com>
7140 * mini-ppc64.c, exceptions-ppc64.c: Several fixes.
7142 2008-11-28 Zoltan Varga <vargaz@gmail.com>
7144 * method-to-ir.c (handle_isinst): Use PCONST instead of ICONST for
7147 2008-11-27 Rodrigo Kumpera <rkumpera@novell.com>
7149 * simd-intrinsics.c (emit_array_extension_intrinsics): Add support
7150 for Set/GetVector aligned versions.
7152 2008-11-27 Rodrigo Kumpera <rkumpera@novell.com>
7154 * basic-simd.cs: Add tests for Get/SetVector.
7156 2008-11-27 Mark Probst <mark.probst@gmail.com>
7158 * mini.c: Removed g_slist_append_mempool(). Now in
7161 2008-11-27 Rodrigo Kumpera <rkumpera@novell.com>
7163 * simd-intrinsics.c (mono_emit_vector_ldelema): Extract the element
7164 size properly and make the bounds check optional.
7166 * simd-intrinsics.c (emit_array_extension_intrinsics): Add support
7167 for SetVector and IsAligned.
7169 2008-11-27 Zoltan Varga <vargaz@gmail.com>
7171 * mini.c: Remove unused mono_normalize_opcodes () function.
7173 2008-11-26 Mark Probst <mark.probst@gmail.com>
7175 * method-to-ir.c (mini_emit_inst_for_method): Small fix: we're
7176 using the new atomic add ops now.
7178 * mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Implemented atomic
7181 2008-11-26 Mark Probst <mark.probst@gmail.com>
7183 * mini-ppc64.c: Several fixes.
7185 2008-11-25 Mark Mason <mmason@upwardaccess.com>
7187 * cpu-mips.md: added jump_table
7188 * mini-mips.c: added jump_table. Eliminate compare-imm when lowering. Remove dead function.
7190 2008-11-25 Mark Mason <mmason@upwardaccess.com>
7192 * mini-mips.c, mini-mips.h, tramp-mips.c, cpu-mips.md: Initial upgrade of MIPS port to new IR.
7194 2008-11-25 Mark Mason <mmason@upwardaccess.com>
7196 * mini-ops.h: corrected a handful of MIPS opcodes.
7198 2008-11-25 Mark Mason <mmason@upwardaccess.com>
7200 * aot-compiler.c: MIPS to use ELF writer
7202 2008-11-25 Mark Mason <mmason@upwardaccess.com>
7204 * mini-codegen.c: remove MIPS specific assert.
7206 2008-11-25 Mark Probst <mark.probst@gmail.com>
7208 * mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, cpu-ppc64.md: Several
7209 fixes. PPC64 now passes most of the runtime regressions.
7211 2008-11-24 Zoltan Varga <vargaz@gmail.com>
7213 * regalloc2.c: Distinguish between use/def positions. Optimize the creation of
7214 volatile intervals a bit.
7216 2008-11-24 Mark Probst <mark.probst@gmail.com>
7218 * basic-long.cs: New test case.
7220 2008-11-23 Zoltan Varga <vargaz@gmail.com>
7222 * mini.c (mini_method_compile): Disable globalra for large methods for
7225 * regalloc2.c (order_moves): Add fp support.
7227 * branch-opts.c (mono_remove_critical_edges): Split non-critical edges whose
7228 source bblock ends with an OP_BR_REG.
7230 * ratests.cs: Add a new test.
7232 2008-11-23 Mark Probst <mark.probst@gmail.com>
7234 * mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c: Disable generic code
7235 sharing. PPC64 now passes generics.exe.
7237 2008-11-23 Mark Probst <mark.probst@gmail.com>
7239 * mini-ppc64.c: Several fixes. PPC64 now runs iltests.exe.
7241 2008-11-23 Zoltan Varga <vargaz@gmail.com>
7243 * exceptions-x86.c (mono_arch_find_jit_info): Avoid reading uninitialized
7244 memory when mono_jit_info_table_find () can't find the method in the
7247 * aot-compiler.c (mono_save_xdebug_info): Emit complete debug info for
7250 * aot-compiler.c (mono_save_xdebug_info): Make this work with the assembly
7253 2008-11-23 Mark Probst <mark.probst@gmail.com>
7255 * mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, cpu-ppc64.md:
7256 Several fixes. PPC64 now runs exceptions.exe and
7257 devirtualization.exe.
7259 2008-11-22 Mark Probst <mark.probst@gmail.com>
7261 * mini-ppc64.c, tramp-ppc64.c: Small fixes. PPC64 now runs
7262 arrays.exe and basic-math.exe.
7264 2008-11-22 Mark Probst <mark.probst@gmail.com>
7266 * mini-ppc64.c, mini-ppc64.h, exceptions-ppc64.c, tramp-ppc64.c,
7267 cpu-ppc64.md: Several fixes. PPC64 now runs objects.exe.
7269 2008-11-21 Rodrigo Kumpera <rkumpera@novell.com>
7271 * simd-intrinsics.c: Add support ArrayExtension intrinsics.
7273 2008-11-21 Rodrigo Kumpera <rkumpera@novell.com>
7275 * method-to-ir.c: Move bounds checking macros to ir-emit.h
7277 * ir-emit.h: Move macros from method-to-ir.c to here.
7279 2008-11-21 Rodrigo Kumpera <rkumpera@novell.com>
7281 * mini-ops.h: Correct the long simd ops to use LREG.
7283 2008-11-21 Zoltan Varga <vargaz@gmail.com>
7285 * mini-ops.h: Correct the dreg type of OP_LOADI8_MEMBASE.
7287 * mini-ops.h: Correct the dreg type of a few long opcodes.
7289 * mini-amd64.h: Applied patch from Mihai Chelaru <kefren@ngnetworks.ro>.
7292 Fri Nov 21 12:52:23 CET 2008 Paolo Molaro <lupus@ximian.com>
7294 * mini-ppc.c: remove negative stack references in epilog
7295 for platforms that don't support the red zone.
7297 2008-11-21 Mark Probst <mark.probst@gmail.com>
7299 * mini-ppc64.h, cpu-ppc64.md: Fixed caller/callee saved floating
7300 point regs. Now PPC64 passes basic-calls.exe.
7302 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7304 * basic-simd.cs: Add tests for accessors of Vector2l.
7306 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7308 * mini-ops.h: Added OP_INSERTX_I8_SLOW,.
7310 * mini-x86.c (mono_arch_decompose_long_opts): Decompose OP_INSERTX_I8_SLOW.
7312 * simd-intrinsics.c: Add support for Vector2l and Vector2ul.
7314 2008-11-21 Mark Probst <mark.probst@gmail.com>
7316 * mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Several fixes. Now
7317 PPC64 passes basic-long.exe.
7319 2008-11-20 Mark Probst <mark.probst@gmail.com>
7321 * decompose.c: Decompose carry and overflow add on PPC64 like on
7322 other 64 bit archs. Don't decompose sub at all on PPC64.
7324 * mini-ppc64.c, exceptions-ppc64.c, tramp-ppc64.c, cpu-ppc64.md:
7325 Several fixes and new opcodes. Now PPC64 runs (but doesn't pass)
7328 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7330 * basic-simd.cs: Add tests for accessors of Vector2d.
7332 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7334 * mini-ops.h: Added OP_INSERTX_R8_SLOW,.
7338 * mini-x86.c (mono_arch_output_basic_block): Same.
7340 * simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector2d.
7342 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7344 * basic-simd.cs: Add tests for accessors of Vector4f.
7346 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7348 * mini-ops.h: Added OP_INSERTX_R4_SLOW,.
7352 * mini-x86.c (mono_arch_output_basic_block): Same.
7354 * simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector4f.
7356 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7358 * basic-simd.cs: Add tests for accessors of Vector4i and Vector4ui.
7360 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7362 * mini-ops.h: Added OP_INSERTX_I4_SLOW,.
7366 * mini-x86.c (mono_arch_output_basic_block): Same.
7368 * simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector4i and Vector4ui.
7370 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7372 * cpu-x86.md: Use reasonable sizes for extractx_u2 and insertx_u1_slow.
7374 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7376 * simd-intrinsics.c: Enable setters for Vector16sb.
7378 2008-11-20 Rodrigo Kumpera <rkumpera@novell.com>
7380 * mini-ops.h: Added OP_EXTRACTX_U2, OP_INSERTX_U1_SLOW.
7384 * mini-x86.c (mono_arch_output_basic_block): Same.
7386 * simd-intrinsics.c (simd_intrinsic_emit_setter): Add support for Vector16b.
7388 2008-11-19 Rodrigo Kumpera <rkumpera@novell.com>
7390 * simd-intrinsics.c: Implement setter for Vector8us.
7392 2008-11-19 Zoltan Varga <vargaz@gmail.com>
7394 * aot-compiler.c (mono_save_xdebug_info): Emit correct location info
7397 Wed Nov 19 18:27:41 CET 2008 Paolo Molaro <lupus@ximian.com>
7399 * mini-ppc.c: remove references to the red zone in the prolog
7400 (for systems that don't support it).
7402 2008-11-19 Mark Probst <mark.probst@gmail.com>
7404 * cpu-ppc64.md: Fixed a few instruction lengths.
7406 * mini-ppc64.c: Don't emit SETLRET. PPC64 passes basic-float.exe,
7409 2008-11-19 Mark Probst <mark.probst@gmail.com>
7411 * mini-ppc64.c, cpu-ppc64.md: Fixed some opcodes. PPC64 passes
7414 2008-11-19 Zoltan Varga <vargaz@gmail.com>
7416 * aot-compiler.c (mono_save_xdebug_info): Add more parameter types.
7418 2008-11-18 Rodrigo Kumpera <rkumpera@novell.com>
7420 * mini-ops.h: Added OP_INSERT_I2.
7424 * mini-x86.c (mono_arch_output_basic_block): Same.
7426 * simd-intrinsics.c: Implement setter for Vector8s.
7428 * simd-methods.h: Add the names of get setters of Vector8s.
7430 2008-11-18 Zoltan Varga <vargaz@gmail.com>
7432 * aot-compiler.c (mono_save_xdebug_info): Add support for parameters.
7434 * aot-compiler.c (mono_save_xdebug_info): Add preliminary support for
7437 * unwind.h (MonoUnwindOp): Change the 'val' to a signed type.
7439 2008-11-18 Mark Probst <mark.probst@gmail.com>
7441 * mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, cpu-ppc64.md: Changes
7442 for PPC64. An empty program runs now.
7444 2008-11-18 Zoltan Varga <vargaz@gmail.com>
7446 * unwind.h (MonoUnwindOp): Change the 'val' to a signed type.
7448 * aot-compiler.c mini.c mini.h: Add a JIT debugging mode modelled after
7449 a similar mode in Kaffe: When the the MONO_XDEBUG env var is set, debugging
7450 info for JITted code is emitted into a shared library, loadable into gdb.
7452 2008-11-18 Mark Probst <mark.probst@gmail.com>
7454 * Makefile.am: Changes to build PPC64.
7456 * mini-arch.h: Include mini-ppc64.h on PPC64.
7458 2008-11-18 Mark Probst <mark.probst@gmail.com>
7460 * mini-ppc64.c, mini-ppc64.h, cpu-ppc64.md: Updated with changes
7461 in PPC code up to r119147.
7463 2008-11-18 Mark Probst <mark.probst@gmail.com>
7465 * mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
7466 cpu-ppc64.md: Changes for PPC64.
7468 Based on code submitted by andreas.faerber@web.de at
7469 https://bugzilla.novell.com/show_bug.cgi?id=324134 under the
7472 2008-11-18 Mark Probst <mark.probst@gmail.com>
7474 * mini-ppc64.c, mini-ppc64.h, tramp-ppc64.c, exceptions-ppc64.c,
7475 cpu-ppc64.md: Copied from the corresponding PPC files from
7478 2008-11-18 Scott Peterson <lunchtimemama@novell.com>
7480 * mini-ops.h: Added OP_ROUND.
7482 * cpu-x86.md: Added round.
7484 * mini-x86.c: Added support for intrinsicing Math.Round (double).
7486 * basic-math.cs: Added test_0_round to test rounding.
7488 Contributed under MIT/X11 license.
7490 2008-11-17 Bill Holmes <billholmes54@gmail.com>
7492 * aot-compiler.c : Fix the Winx64 build.
7494 Contributed under MIT/X11 license.
7496 2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
7498 * mini-x86.c (mono_arch_output_basic_block): Use movsd instead of monvups
7499 in OP_EXTRACT_R8 to avoid possible stack corruption.
7501 2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
7503 * mini-ops.h: Added OP_EXTRACT_R8/I8.
7505 * cpu-x86.md: Added extract_r8.
7507 * mini-x86.c (mono_arch_output_basic_block): Emmit OP_EXTRACT_R8.
7509 * mini-x86.c: Added mono_arch_decompose_long_opts to break OP_EXTRACT_I8 into
7510 a couple of OP_EXTRACT_I4.
7512 * mini-x86.h: Define MONO_ARCH_HAVE_DECOMPOSE_LONG_OPTS if simd is enabled.
7514 * simd-intrinsics.c: Implement getters for Vector2l/2ul/2d.
7516 2008-11-17 Rodrigo Kumpera <rkumpera@novell.com>
7518 * simd-intrinsics.c (vector2l_intrinsics): CompareGreaterThan requires sse 4.2
7521 2008-11-17 Zoltan Varga <vargaz@gmail.com>
7523 * method-to-ir.c (handle_delegate_ctor): Emit the address of the delegate
7524 trampoline as an AOT const of the proper type instead of MONO_PATCH_INFO_ABS.
7526 * mini.c (mono_codegen): Remove the handling of delegate trampolines, they
7527 are not needed any more.
7529 * mini.h: Remove the unused INS_LIST macros.
7531 * mini.c (mini_method_compile): Remove a disable globalra case which is no
7534 * *.h *.c: Remove duplicate MonoInst emission macros, use the ones in
7537 * regalloc.h *.c: Remove references to mono_regstate_next_int (), use
7538 mono_alloc_ireg () instead.
7540 * mini-<ARCH>.c: Include ir-emit.h. Remove duplicate MonoInst emission
7543 * mini-amd64.c (emit_load_volatile_arguments): Removed, not needed
7546 * aot-runtime.c (load_aot_module): Disable AOT when running under
7549 * mini-amd64.h: Change the monitor fastpath defines to check for
7550 !PLATFORM_WIN32 so they work on *bsd too.
7552 * mini.h mini.c mini-hhpa.c: Remove more unused code.
7554 * mini-s390.c mini-s390x.c: Remove !cfg->new_ir code.
7556 * mini.h (MonoCompile): Remove new_ir flag.
7558 * regalloc.h regalloc.c: Remove unused code.
7560 * cpu-*.md: Remove more unused opcodes.
7562 * simple-cee-ops.h simple-mini-ops.h: Removed.
7564 * mini-ops.h *.c cpu-<ARCH>.md: Remove more unused opcodes.
7566 2008-11-17 Zoltan Varga <vargaz@gmail.com>
7568 * aliasing.h: Removed.
7570 * *.c: Remove references to aliasing.h and inssel.h.
7572 * mini.c: Remove additional unused functions.
7574 * mini-ops.h cpu-*.md: Remove unused opcodes.
7576 2008-11-16 Zoltan Varga <vargaz@gmail.com>
7578 Remove the old JIT code.
7580 * inssel*.brg: Removed.
7582 * ssa.c abcremoval.c aliasing.c: Removed.
7584 * ssa2.c: Renamed to ssa.c.
7586 * abcremoval2.c: Renamed to abcremoval.c.
7588 * *.c: Removed all !cfg->new_ir code.
7590 * mini-<ARCH>.c: Removed mono_arch_call_opcode (),
7591 mono_arch_emit_this_vret_args (), and mono_arch_get_inst_for_method ().
7593 * mini.c: Removed the old mono_method_to_ir () and all the code used by it.
7595 2008-11-16 Zoltan Varga <vargaz@gmail.com>
7597 * aot-compiler.c aot-runtime.c: Emit most of the non-table data in a structure
7598 to simplify the code and cut back on the number of global symbols in the AOT
7601 * aot-compiler.c aot-runtime.c: Get rid of the unused plt_jump_table.
7603 2008-11-15 Zoltan Varga <vargaz@gmail.com>
7605 * aot-runtime.c aot-compiler.c: Unify the plt_jump_table/plt_info tables
7606 with the got/got_info tables.
7608 * mini.h: Bump AOT file format version.
7610 * unwind.h: New file, contains definitions for stack unwinding.
7612 * mini.c (mono_emit_unwind_op): New helper function to append an unwind op
7615 * aot-compiler.c: Generalize the emitting of unwind information to use the
7616 information in cfg->unwind_ops.
7618 * mini-amd64.c (mono_arch_emit_prolog): Emit unwind info.
7620 * aot-compiler.c: Emit dwarf unwind information so gdb can unwind through
7621 AOT method frames. Enable writing symbols for methods by default.
7623 2008-11-14 Rodrigo Kumpera <rkumpera@novell.com>
7625 * simd-intrinsics.c (simd_intrinsic_emit_getter): Generalize this code
7626 and make it work with vectors of element sizes 1, 2 and 4.
7628 * simd-intrinsics.c: Enable getter for all vectors with element size
7631 * simd-methods.h: Add the names of other getters.
7633 * mini-ops.h: Added OP_EXTRACT_I2/U2/I1/U1.
7639 Fri Nov 14 15:54:18 CET 2008 Paolo Molaro <lupus@ximian.com>
7641 * mini-ppc.h: portability fix.
7643 Fri Nov 14 15:39:50 CET 2008 Paolo Molaro <lupus@ximian.com>
7645 * mini-ppc.h, mini-ppc.c: avoid using the red zone as some kernels are
7646 buggy and will overwrite it.
7648 2008-11-14 Zoltan Varga <vargaz@gmail.com>
7650 * aot-compiler.c: Add functionality to emit local symbols to the elf writer.
7651 Use it to emit local symbols for all methods so AOTed methods show up with
7652 their full name in gdb/valgrind output.
7654 Fri Nov 14 12:56:27 CET 2008 Paolo Molaro <lupus@ximian.com>
7656 * mini-ppc.c: portability fixes.
7658 2008-11-14 Zoltan Varga <vargaz@gmail.com>
7660 * mini-trampolines.c (mono_magic_trampoline): Move the patching of plt
7661 entries out of the if (!generic_shared...) code so it is always done.
7662 (mono_class_init_trampoline): Do the patching when running under valgrind
7663 too, newer versions of valgrind have no problems with it.
7665 2008-11-13 Zoltan Varga <vargaz@gmail.com>
7667 * aot-compiler.c (emit_writeout): Rework this to make it easier to add
7670 2008-11-13 Mark Probst <mark.probst@gmail.com>
7672 * mini-ppc.c, cpu-ppc.md: Reserve space for the parameter area in
7675 2008-11-13 Rodrigo Kumpera <rkumpera@novell.com>
7677 * simd-intrinsics.c: Add getter support for Vector4i and Vector4ui.
7679 2008-11-13 Rodrigo Kumpera <rkumpera@novell.com>
7681 * mini-ops.h: Kill diplicated ops OP_SHUFLEPS.
7687 * simd-intrinsics.c: Same.
7689 2008-11-13 Rodrigo Kumpera <rkumpera@novell.com>
7691 * simd-intrinsics.c: Enable constructor intrinsics for all types.
7693 2008-11-13 Rodrigo Kumpera <rkumpera@novell.com>
7695 * simd-intrinsics.c (simd_intrinsic_emit_ctor): Generalize this method
7696 to work with more Vector types.
7698 2008-11-13 Rodrigo Kumpera <rkumpera@novell.com>
7700 * simd-intrinsics.c (simd_intrinsic_emit_ctor): If the target is already a pointer
7701 store the elemens directly instead of using and intermediate.
7703 2008-11-13 Zoltan Varga <vargaz@gmail.com>
7705 * mini-amd64.c (emit_call_body): Avoid aligning call sites in AOTed code.
7707 * tramp-x86.c (mono_arch_create_trampoline_code): Rework the return sequence
7708 to preserve %eax for aot plt trampolines.
7710 * aot-compiler.c (compile_method): Don't skip synchronized methods.
7711 (encode_method_ref): Flag synchronized methods so they won't go through
7714 * aot-compiler.c: Additional work to support AOTing synchronized methods/
7717 * cpu-ia64.md (jmp): Increase max length.
7719 2008-11-12 Zoltan Varga <vargaz@gmail.com>
7721 * aot-runtime.c (load_method): Avoid calling runtime_class_init () for
7722 open generic classes.
7724 * aot-compiler.c: Enable the ELF writer on ELF platforms.
7726 * method-to-ir.c (mono_method_to_ir2): Revert the last change to the
7727 box+brtrue optimization since it causes test failures on x86.
7729 2008-11-12 Rodrigo Kumpera <rkumpera@novell.com>
7731 * mini-ops.h: Remove OP_PUSH_R4 and OP_LOADX_STACK.
7737 * mini.h (struct MonoCompile): Add simd_ctor_var to be used as storage
7738 for simd ctor values.
7740 * simd-intrinsics.c (simd_intrinsic_emit_ctor): Use simd_ctor_var for the constructor
7741 instead of directly pushing the values on stack. This saves about 15 bytes of generated code.
7743 2008-11-12 Rodrigo Kumpera <rkumpera@novell.com>
7745 * simd-methods.h: Rename SubWithSaturation, ArithmeticRightShift and
7748 * simd-instrincs.c: Same.
7750 * basic-simd.cs: Same.
7752 2008-11-12 Zoltan Varga <vargaz@gmail.com>
7754 * ratests.cs: Add more tests.
7756 * regalloc2.c (add_spill_code): Handle more corner cases.
7758 2008-11-11 Zoltan Varga <vargaz@gmail.com>
7760 * regalloc2.c (INS_POS_INTERVAL): Decrease this to 8 to avoid overflows.
7761 (update_liveness): Avoid holes in the liveness ranges of hregs if they are
7762 both the source an destination of an instruction.
7764 Tue Nov 11 19:30:50 CET 2008 Paolo Molaro <lupus@ximian.com>
7766 * jit-icalls.c, local-propagation.c, mini.c, ssa.c, ssapre.c, trace.c,
7767 wapihandles.c: more portability changes.
7769 Tue Nov 11 18:56:33 CET 2008 Paolo Molaro <lupus@ximian.com>
7771 * aot-compiler.c, aliasing.c, abcremoval.c: portability changes.
7772 * mini.c mini.h, aot-runtime.c: the aot segfault-handling code is not
7773 safe to execute in a signal handler and the kernel provides better
7774 the info in /proc/self/smaps. Avoid the assert on sigaction during
7777 2008-11-11 Zoltan Varga <vargaz@gmail.com>
7779 * method-to-ir.c (mono_method_to_ir2): In the box+brtrue optimization, only
7780 do the bblock linking hack if it is actually needed.
7782 * Makefile.am (patch-libtool): New helper target to patch libtool to speed
7785 * liveness.c (ENABLE_LIVENESS2): Reenable this for 64 bit archs as the
7786 crash problem is fixed.
7788 * branch-opts.c (mono_remove_critical_edges): Link up newly added
7791 * mini.c (mini_method_compile): Compute unreachable bblocks properly even
7793 (mini_method_compile): Set the starting value of next_vreg to
7794 MAX_IREGS + MAX_FREGS when using globalra.
7796 * method-to-ir.c (mono_method_to_ir2): Mark bblocks starting
7797 filter clauses with BB_EXCEPTION_HANDLER.
7799 * regalloc2.c (assign_spill_slots): Set cfg->rgctx_var.
7801 2008-11-10 Mark Probst <mark.probst@gmail.com>
7803 * mini-x86.c (mono_arch_get_argument_info): Don't align argument
7804 space for stdcall. Fixes regressions on Win32.
7806 2008-11-10 Zoltan Varga <vargaz@gmail.com>
7808 * regalloc2.c (handle_reg_constraints): Avoid adding code to unreachable
7810 (linear_scan): Remove an assert which doesn't seem to be needed.
7812 * local-propagation.c (mono_local_deadce): Avoid a call to
7813 MONO_DELETE_INS which would screw up the instruction linking.
7815 * mini.c (mono_decompose_op_imm): Make this work with globalra.
7817 * regalloc2.c: Upgrade to work the current JIT code.
7819 2008-11-09 Zoltan Varga <vargaz@gmail.com>
7821 * method-to-ir.c (inline_method): Merge more basic blocks to help the AOT
7824 * aot-runtime.c: Remove some dead code.
7826 * tramp-arm.c: Use 'code' as the runnning pointer in code generation for
7828 (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Implement aot support.
7830 * aot-runtime.c (load_named_code): Decode the offset of lazy fetch
7831 trampolines using sscanf since atoi doesn't work on large unsigned values.
7833 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full):
7834 Initialize code_size.
7836 2008-11-08 Mark Probst <mark.probst@gmail.com>
7838 * method-to-ir.c (mini_emit_inst_for_method): Make
7839 Interlocked.CompareExchange work for Int arguments on 32 bit
7842 2008-11-07 Mark Probst <mark.probst@gmail.com>
7844 * method-to-ir.c (mono_method_to_ir2): Fixed a funny commit error.
7846 2008-11-06 Bill Holmes <billholmes54@gmail.com>
7848 * main.c Fix MSVC build.
7850 Contributed under MIT/X11 license.
7852 2008-11-06 Mark Probst <mark.probst@gmail.com>
7854 * mini-x86.c (mono_arch_allocate_vars): Make sure locals that need
7855 alignment larger than 8 bytes are aligned correctly, too.
7857 * mini.c: Honor the min_align field of MonoClass when laying out
7860 2008-11-06 Zoltan Varga <vargaz@gmail.com>
7862 * method-to-ir.c (mono_method_to_ir2): Fix AOT support for CEE_SWITCH on arm.
7864 * aot-compiler.c (emit_plt): Fix a warning.
7866 * aot-compiler.c: Implement ARM support in the binary writer.
7868 2008-11-05 Rodrigo Kumpera <rkumpera@novell.com>
7870 * basic-simd.cs: Add test for getter with byref arg.
7871 Fix the naming of a few tests.
7872 Add missing checks to a test.
7874 2008-11-05 Zoltan Varga <vargaz@gmail.com>
7876 * aot-compiler.c (emit_plt): Make the arm code work with the binary writer.
7878 * aot-compiler.c aot-runtime.c mini-trampolines.c tramp-amd64.c: Implement
7879 most of the full-aot support for monitor enter/exit trampolines.
7881 * tramp-x86.c tramp_amd64.c: Add AOT compatible variants of the monitor
7882 enter/exit trampoline creation functions.
7884 * Makefile.am: Fix the generation of buildver.h so it is not invoked during
7887 Wed Nov 5 16:28:53 CET 2008 Paolo Molaro <lupus@ximian.com>
7889 * mini.h, aot-compiler.c, method-to-ir.c, aot-runtime.c: remove the
7890 incorrectly added MONO_WRAPPER_MONITOR_* (in r117651-r117652) and
7891 implement the needed functionality without adding crap to the runtime.
7893 2008-11-05 Zoltan Varga <vargaz@gmail.com>
7895 * mini-trampolines.c (mono_create_monitor_enter_trampoline): Fix the
7898 * mini.c (mono_build_date): New global version holding the build date in
7901 * Makefile.am (buildver.c): Generate a file containing the build date.
7903 * main.c: Set the build date from the generated file.
7905 * mini.c (mono_get_runtime_build_info): New helper function returning build
7906 information in a string format.
7908 * driver.c (mono_main): Print the build date in --version.
7910 * aot-compiler.c aot-runtime.c: Embed the build information into the AOT
7911 file when the bind-to-runtime-version option is used.
7913 2008-11-05 Rodrigo Kumpera <rkumpera@novell.com>
7915 * simd-intrinsics.c: Fix bug when using getters and byref args.
7917 2008-11-05 Rodrigo Kumpera <rkumpera@novell.com>
7919 * simd-methods.h: Rename prefetch methods.
7921 * simd-intrinsics.c: Same.
7923 2008-11-05 Mark Probst <mark.probst@gmail.com>
7925 * tramp-amd64.c: Enlarge the Monitor.Enter/Exit trampoline code
7928 2008-11-04 Zoltan Varga <vargaz@gmail.com>
7930 * aot-compiler.c: Use the bundled elf header files instead of depending on
7933 * aot-compiler.c (emit_symbol_diff): Allocate memory from the acfg
7936 * method-to-ir.c (mono_method_check_inlining): Avoid a getenv () call
7939 2008-11-04 Rodrigo Kumpera <rkumpera@novell.com>
7941 * cpu-x86.md: Add store nta ops.
7947 * mini.h: Add an enum for simd prefetch modes.
7949 * simd-methods.h: Refactor the store_aligned code to handle multiple kinds
7950 of store. Use the changed code to support store nta.
7952 * simd-intrinsics.c: Add prefetch ops for all vector types.
7954 2008-11-04 Zoltan Varga <vargaz@gmail.com>
7956 * aot-compiler.c: Add an option for JIT compiling the methods by multiple
7959 * aot-compiler.c: Use statically allocated buffers for constructing symbol
7962 * aot-runtime.c aot-compiler.c: Add support for the MONITOR_ENTER/EXIT
7965 2008-11-04 Mark Probst <mark.probst@gmail.com>
7967 * mini-x86.c: Fixed commit.
7969 2008-11-04 Zoltan Varga <vargaz@gmail.com>
7971 * aot-compiler.c (emit_plt): Align the plt section only on x86.
7973 2008-11-04 Mark Probst <mark.probst@gmail.com>
7975 * mini-trampolines.c, mini.h: Two new trampolines: MONITOR_ENTER
7976 and MONITOR_EXIT, for the ASM fastpaths.
7978 * method-to-ir.c: Use the ASM fastpath for Monitor.Enter/Exit if
7981 * mini.c, patch-info.h: Signature and patch infos for
7982 Monitor.Enter/Exit trampolines.
7984 * mini-amd64.c, mini-x86.c: Make emit_tls_get() non-static.
7986 * tramp-amd64.c, tramp-x86.c, mini-amd64.h, mini-amd64.h:
7987 Monitor.Enter/Exit ASM fastpath for Linux.
7989 2008-11-04 Zoltan Varga <vargaz@gmail.com>
7991 * mini.c (mono_method_to_ir): Fix soft-float support in Array.Get/Set.
7993 * objects.cs: Add a new test.
7995 * aot-compiler.c: Use mono_100ns_ticks () for computing the profiling info.
7997 * aot-runtime.c (load_method): Run class initialization in the PLT case even
7998 if MONO_LOG_LEVEL is set.
8000 * debug-mini.c (serialize_variable): Fix the encoding of dead variables.
8002 * aot-runtime.c (mono_aot_get_method): Skip out-of-date AOT modules.
8004 * aot-compiler.c (emit_and_reloc_code): Speed this up a little.
8006 * aot-compiler.c: Change the relocation code to use virtual addresses instead
8007 of file offsets. Align the sections belonging to the data segment to
8010 2008-11-03 Zoltan Varga <vargaz@gmail.com>
8012 * aot-compiler.c: Simplify the elf writer by depending on the definitions in
8013 elf.h. Port it to amd64.
8015 2008-11-03 Rodrigo Kumpera <rkumpera@novell.com>
8017 * driver.c: Enable SIMD by default.
8019 2008-11-03 Rodrigo Kumpera <rkumpera@novell.com>
8021 * cpu-x86.md: Add prefetch op.
8027 * mini.h: Add an enum for simd prefetch modes.
8029 * simd-methods.h: Add prefetch function names.
8031 * simd-intrinsics.c: Add prefetch ops for all vector types.
8033 2008-11-03 Zoltan Varga <vargaz@gmail.com>
8035 * aot-compiler.c (emit_bytes): Speed this up a little.
8037 2008-11-02 Zoltan Varga <vargaz@gmail.com>
8039 * aot-compiler.c: Add JIT time etc. statistics.
8041 * aot-compiler.c (compile_method): Fix the copying of the cfgs array.
8043 * mini.h (MonoCompile): Add 'got_offset' field.
8045 * aot-compiler.c: Store the got offset in MonoCompile, get rid of the
8046 method_got_offsets array.
8048 * aot-compiler.c aot-runtime.c: Add support for the monitor enter/exit
8051 * aot-compiler.c (compile_method): Add generic method instances referenced
8052 by the method to the list of methods to be compiled, this is required so if
8053 A<T> references B<T>, and another assembly references A<int>, then it will
8054 also get a copy of B<int>.
8056 * method-to-ir.c (mini_emit_inst_for_method): Use the proper wrapper type
8057 when checking for monitor enter/exit.
8059 2008-10-30 Mark Probst <mark.probst@gmail.com>
8061 * method-to-ir.c (mini_emit_inst_for_method): Use the IL fastpaths
8062 for Monitor.Enter and Monitor.Exit if enabled.
8064 * mini-x86.h, mini-amd64.h: Enable the IL fastpaths for Linux and
8067 2008-10-30 Zoltan Varga <vargaz@gmail.com>
8069 * method-to-ir.c (type_from_op): Convert CEE_CONV_U on OP_ICONV_TO_U instead
8070 of an OP_MOVE. Fixes #440046.
8072 * basic-long.cs: Add a new test.
8074 2008-10-29 Rodrigo Kumpera <rkumpera@novell.com>
8076 * mini.h: Add synchronization note for the managed counter-part.
8078 * simd-intrinsics.c: Add SimdRuntime.get_AccelMode intrinsic that
8079 returns the simd caps of the current cpu.
8081 2008-10-29 Rodrigo Kumpera <rkumpera@novell.com>
8083 * basic-simd.cs: Remove Console.WriteLine.
8085 2008-10-28 Rodrigo Kumpera <rkumpera@novell.com>
8087 * basic-simd.cs: New tests for Vector2ul.
8089 2008-10-28 Rodrigo Kumpera <rkumpera@novell.com>
8091 * simd-intrinsics.c: Add new vector type Vector2ul.
8093 2008-10-28 Rodrigo Kumpera <rkumpera@novell.com>
8095 * basic-simd.cs: New tests for Vector2l.
8097 2008-10-28 Rodrigo Kumpera <rkumpera@novell.com>
8099 * cpu-x86.md: Add long version of most packed int ops.
8105 * simd-intrinsics.c: Add new vector type Vector2l.
8107 2008-10-28 Rodrigo Kumpera <rkumpera@novell.com>
8109 * simd-intrinsics.c: Replace SN_op_BitwiseXor with SN_op_ExclusiveOr.
8111 * simd-methods.h: Remove SN_op_BitwiseXor.
8113 2008-10-28 Zoltan Varga <vargaz@gmail.com>
8115 * mini.c (mono_allocate_stack_slots_full): Align the size of vtypes to their
8118 2008-10-27 Rodrigo Kumpera <rkumpera@novell.com>
8120 * basic-simd.cs: Test for Vector2d.
8122 * basic-simd.cs (test_vector8s_pack_signed_sat): Fixed broken
8125 2008-10-27 Rodrigo Kumpera <rkumpera@novell.com>
8127 * cpu-x86.md: Add double version of all packed float ops.
8133 * simd-intrinsics.c: Add new vector type Vector2d.
8135 * simd-intrinsics.c (vector4f_intrinsics): Fix ordering.
8137 * simd-methods.h: Add Duplicate.
8139 2008-10-27 Rodrigo Kumpera <rkumpera@novell.com>
8141 * basic-simd.cs: Test for packing with signed saturation.
8143 2008-10-28 Zoltan Varga <vargaz@gmail.com>
8145 * aot-compiler.c (add_generic_instances): Add all methods of generic instances
8146 found in the TYPESPEC table.
8148 2008-10-26 Zoltan Varga <vargaz@gmail.com>
8150 * aot-runtime.c (mono_aot_get_method): Log not found methods for extra methods
8153 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
8155 * mini.c (mono_method_to_ir): For MONO_PATCH_INFO_RVA, save field the token
8156 instead of the RVA, since the RVA can be changed by tools like the cil
8159 * method-to-ir.c (mono_method_to_ir2): Ditto.
8161 * debug-mini.c (serialize_variable): Handle ADDRESS_MODE_DEAD.
8162 (deserialize_variable): Ditto.
8164 2008-10-25 Martin Baulig <martin@ximian.com>
8166 * debug-mini.c (write_variable): Use
8167 `MONO_DEBUG_VAR_ADDRESS_MODE_DEAD' for dead variables.
8169 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8171 * cpu-x86.md: Add unsigned variants of packd and packw.
8175 * mini-x86.h: Emit the right instruction for packd and packw.
8176 Add unsigned variants of packd and packw.
8178 * simd-intrinsics.c: Packd and packw were used in place of their
8179 unsigned variants. Change that.
8180 Add intrinsics for (Signed)PackWithSignedSaturation.
8182 * simd-methods.h: Add (Signed)PackWithSignedSaturation.
8184 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8186 * simd-intrinsics.c (vector4i_intrinsics): New table of intrinsic type.
8188 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8190 * mini-ops.h: Remove dword packed add/sub with saturation ops.
8192 * cpu-x86.md: Remove dword packed add/sub with saturation ops.
8194 * simd-intrinsics.c (vector4ui_intrinsics): Remove methods without
8197 * simd-intrinsics.c (vector8s_intrinsics): Fix ordering.
8199 2008-10-24 Mark Probst <mark.probst@gmail.com>
8201 * method-to-ir.c, mini.c: Special casing for the synchronized
8202 wrapper for the ldtoken+GetTypeFromHandle case.
8204 2008-10-24 Zoltan Varga <vargaz@gmail.com>
8206 * mini.c (mono_replace_ins): Move this to branch-opts.c.
8208 * mini.c (mono_replace_ins): Propagate has_array_access flag to the newly
8209 created/split bblocks.
8211 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8213 * mini-ops.h: Add packed signed mul high.
8217 * mini-x86.c (mono_arch_output_basic_block): Same.
8219 * simd-methods.h: Add PackWithUnsignedSaturation and ShiftRightLogic.
8221 * simd-intrinsics.c (vector8s_intrinsics): New table of intrinsic type.
8223 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8225 * basic-simd.cs: Tests for Vector16sb.
8227 2008-10-24 Zoltan Varga <vargaz@gmail.com>
8229 * inssel.brg (stmt): Fix OP_HARD_NOP rule.
8231 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
8233 * mini-ops.h: Add packed signed min, max and compare greater.
8237 * mini-x86.c (mono_arch_output_basic_block): Same. Add packed add/sub with
8240 * simd-methods.h: Add CompareGreaterThan.
8242 * simd-methods.h: Remove CompareEquals.
8244 * simd-intrinsics.c: Add new TODO entry and some cosmetic changes.
8246 * simd-intrinsics.c (vector16sb_intrinsics): New table of intrinsic type.
8248 * simd-intrinsics.c (vector4f_intrinsics): Rename CompareEquals to
8251 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
8253 * basic-simd.cs: Fix tests due to change in the API.
8255 2008-10-21 Zoltan Varga <vargaz@gmail.com>
8257 * mini.c method-to-ir.c: Use mono_field_get_name () for accessing field->name.
8259 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
8261 * basic-simd.cs: Fix name change in Vector4f::CompareEqual.
8263 * simd-intrinsics.c (simd_intrinsic_emit_store_aligned): Don't use
8264 inst_offset as this has invalid values for LDADDR.
8266 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
8268 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
8270 * simd-intrinsics.c (vector4ui_intrinsics): Add SignedPackWithUnsignedSaturation.
8272 2008-10-21 Zoltan Varga <vargaz@gmail.com>
8274 * method-to-ir.c (initialize_array_data): Use mono_field_get_data ()
8275 for accessing field->data.
8277 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
8279 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
8281 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
8283 * simd-methods.h: Add SignedPackWithUnsignedSaturation.
8285 * simd-intrinsics.c (vector8us_intrinsics): Add SignedPackWithUnsignedSaturation.
8287 2008-10-21 Zoltan Varga <vargaz@gmail.com>
8289 * dominators.c (mono_compute_natural_loops): Allocate GList enties
8290 from the cfg mempool.
8292 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
8294 * basic-simd.cs: Tests for new methods in Vector8us.
8296 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
8298 * mini-ops.h: Add multiply and store high.
8302 * mini-x86.c (mono_arch_output_basic_block): Same.
8304 * simd-methods.h: Same.
8306 * simd-intrinsics.c (vector8us_intrinsics): Add MultiplyStoreHigh
8309 2008-10-19 Zoltan Varga <vargaz@gmail.com>
8311 * method-to-ir.c (mono_emit_method_call_full): Remove a needless call to
8312 mono_class_setup_vtable ().
8314 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Use
8315 mono_class_get_vtable_entry () for accessing klass->vtable.
8317 * aot-runtime.c (load_method): Avoid a crash when using MONO_LOG_LEVEL.
8319 * aot-compiler.c (add_generic_instances): Avoid a crash if a class is not
8322 * method-to-ir.c (mono_save_token_info): Don't save references made from
8325 * aot-compiler.c (add_generic_instances): Add static rgctx wrappers for cctors
8326 of generic instances.
8328 * aot-runtime.c (find_extra_method): Search in all loaded AOT images.
8330 2008-10-19 Mark Probst <mark.probst@gmail.com>
8332 * cpu-ppc.md, mini-ppc.c: The length of the code generated for
8333 OP_JMP depends on the method signature. Calculate it properly.
8335 2008-10-19 Zoltan Varga <vargaz@gmail.com>
8337 * aot-runtime.c (mono_aot_find_jit_info): Handle extra methods which are
8340 * aot-compiler.c (emit_and_reloc_code): Allow direct calling of generic
8342 (emit_extra_methods): Add another table mapping method indexes to
8343 offsets in the extra_method_info table.
8345 * mini.h: Bump AOT file format version.
8347 * aot-runtime.c: Merge most of the code from mono_aot_get_method
8348 and mono_aot_get_method_from_token () into one function.
8350 2008-10-19 Mark Probst <mark.probst@gmail.com>
8352 * mini-ppc.c (emit_load_volatile_arguments): Inner loop needs a
8355 2008-10-18 Zoltan Varga <vargaz@gmail.com>
8357 * aot-compiler.c aot-runtime.c: Fix the hash function used for the extra
8360 * method-to-ir.c (mono_method_to_ir2): Change a !compile_aot assert to
8363 * mini.c (mono_patch_info_equal): Compare the generic context as well.
8365 * mini.h: Bump aot file format version.
8367 * aot-compiler.c aot-runtime.c: Generalize the wrapper handling code so the
8368 AOT file can contain native code for methods which are not in the METHOD
8369 table. Generate code for non-sharable generic instances of generic methods
8370 found in the METHODSPEC table.
8372 * method-to-ir.c (mono_method_to_ir2): Remove the aot restriction when
8373 encoding generic type handles.
8375 * ir-emit.h (NEW_AOTCONST_TOKEN): Add a generic_context argument.
8376 (NEW_TYPE_FROM_HANDLE_CONST): Add a generic_context argument.
8378 * ir-emit.h: Rewrite the EMIT_NEW_XXXCONST macros to use the NEW_XXXCONST
8379 macros + MONO_ADD_INS.
8381 * mini.c (mono_jump_info_token_new2): New function which takes a generic
8384 * mini.h (MonoJumpInfoToken): Include fields for a generic context.
8386 * mini.h: Bump aot file format version.
8388 * aot-compiler.c aot-runtime.c: Update after changes to MonoJumpInfoToken.
8390 2008-10-17 Mark Probst <mark.probst@gmail.com>
8392 * mini-x86.h, mini-x86.c, exceptions-x86.c: Align stack on all
8393 platforms, with definable stack alignment value. Set to 16 now
8396 * mini.c, mini.h, driver.c: Command line option for disabling
8399 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
8401 * basic-simd.cs: Tests for new methods in Vector4ui.
8403 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
8405 * mini-ops.h: Add packed int shuffle.
8409 * mini-x86.c (mono_arch_output_basic_block): Same.
8411 * simd-intrinsics.c (vector4ui_intrinsics): Add compare equal,
8412 extract mask, max, min, shuffle.
8414 * simd-intrinsics.c (vector8us_intrinsics): Add max and min.
8416 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
8418 * basic-simd.cs: Tests for new methods in Vector8us.
8420 2008-10-17 Mark Probst <mark.probst@gmail.com>
8422 * method-to-ir.c (mono_method_to_ir2): "refanytype" produces a
8423 RuntimeTypeHandle, not a TypedReference.
8425 Fri Oct 17 14:40:50 CEST 2008 Paolo Molaro <lupus@ximian.com>
8427 * simd-intrinsics.c: remove relocations.
8429 2008-10-17 Zoltan Varga <vargaz@gmail.com>
8431 * mini-amd64.c (mono_arch_output_basic_block): Port the IREM_IMM
8432 optimizations from the x86 backend.
8434 Fri Oct 17 12:00:51 CEST 2008 Paolo Molaro <lupus@ximian.com>
8436 * simd-methods.h, simd-intrinsics.c: debloat method names and
8437 prepare for no relocations.
8439 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
8441 * mini-ops.h: Add packed min/equal and sum of absolute differences.
8445 * mini-x86.c (mono_arch_output_basic_block): Same.
8447 * simd-intrinsics.c (vector16b_intrinsics): Add average, compare equal,
8448 extract mask, max, min and sum of absolute differences.
8450 * simd-intrinsics.c: Increase SIMD_INTRINSIC_NAME_MAX due to new huge
8453 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
8455 * basic-simd.cs: Test for the other mono_simd_simplify_indirection bug.
8456 Renamed one test for consistency.
8458 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
8460 * simd-intrinsics.c (mono_simd_simplify_indirection): Apply the previous
8461 fix to the code that deal with other blocks.
8463 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
8465 * basic-simd.cs: Test for the mono_simd_simplify_indirection bug.
8467 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
8469 * simd-intrinsics.c (mono_simd_simplify_indirection): Simplify the code
8470 that deals with vreg interference. Explicitly check for OP_LDADDR to be
8471 able to process the source reg.
8473 2008-10-16 Martin Baulig <martin@ximian.com>
8475 * mini-ops.h, cpu-amd64.md, cpu-x86.md: Added new `hard_nop' opcode.
8477 * inssel.brg: Add `OP_HARD_NOP'.
8479 * mini.h (MonoCompile): Added `keep_cil_nops' flag.
8481 * mini.c (mono_method_to_ir): In `CEE_NOP': generate a
8482 `OP_HARD_NOP' instruction when running inside the debugger.
8484 * method-to-ir.c (mono_method_to_ir2): In `CEE_NOP': generate a
8485 `OP_HARD_NOP' instruction when running inside the debugger.
8487 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
8489 * simd-intrinsics.c (get_simd_vreg): Using sreg1 of OP_XMOVE
8490 now works. The issue with the regalloc tripping up no longer
8493 * simd-intrinsics.c (load_simd_vreg): Same.
8495 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
8497 * basic-simd.cs: Tests for new Vector8ui methods.
8499 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
8501 * simd-intrinsics.c (get_simd_vreg): Simplify code and test
8502 only for type. This fixes crashes where MonoInst::klass is checked
8503 for ops of type != VTYPE or OBJ.
8505 * simd-intrinsics.c (load_simd_vreg): Same.
8507 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
8509 * mini-ops.h: Add ops for packed shuffle/max/avg and
8514 * mini-x86.c (mono_arch_output_basic_block): Same.
8516 * simd-intrinsics.c (vector8us_intrinsics): Add avg, shuffle and
8519 * simd-intrinsics.c (simd_intrinsic_emit_extract_mask): New function
8520 to emit extract mask op.
8522 * simd-intrinsics.c (simd_intrinsic_emit_shuffle): Retrofic this function
8523 to emit word shuffles.
8525 2008-10-15 Mark Probst <mark.probst@gmail.com>
8527 * mini.c (mono_allocate_stack_slots_full): Align stack frame to
8528 the largest alignment needed by a variable, but at least
8531 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
8533 * basic-simd.cs: Tests for the fixes in the last commit.
8535 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
8537 * simd-intrinsics.c (get_simd_vreg): Drop the is_this_ptr, this function
8538 no longer handles STACK_PTR input.
8540 * simd-intrinsics.c (get_simd_vreg): Don't crash when MonoInst::klass == -1.
8542 * simd-intrinsics.c (load_simd_vreg): New function that works like
8543 get_simd_vreg but handles STACK_PTR input.
8545 * simd-intrinsics.c (simd_intrinsic_emit_getter): Use load_simd_vreg
8546 as the input can be an arbitrary pointer.
8548 * simd-intrinsics.c (simd_intrinsic_emit_ctor): Try the
8549 LDADDR local optimization directly otherwise use a store op.
8551 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
8553 * basic-simd.cs: Tests for dup low and dup high.
8555 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
8557 * mini-ops.h: Add dup low and dup high ops.
8561 * mini-x86.c (mono_arch_output_basic_block): Same.
8563 * simd-intrinsics.c (vector4f_intrinsics): Same.
8565 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
8567 * basic-simd.cs: Tests for recently added functionality.
8569 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
8571 * mini-ops.h: Add remaining sse1 fp ops.
8573 * cpu-x86.md: Add remaining sse1 fp ops.
8575 * mini-x86.c (mono_arch_output_basic_block): Same.
8577 * mini.h: Add enum for simd FP compare conditions.
8579 * simd-intrinsics.c (vector4f_intrinsics): Add all new ops.
8581 * simd-intrinsics.c (simd_intrinsic_emit_binary): Set inst_c0 to flags
8582 so the backed can generate the appropriate op.
8584 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
8585 This patch squeese one more byte from the SimdIntrinsc struct.
8587 * mini-x86.c (mono_arch_cpu_enumerate_simd_versions: Use the version number
8588 a a shift amount intead of simply or'ing it.
8590 * mini.h: Change SIMD_VERSION_* values to be sequential intead of masks.
8592 * simd-intrinsics.c (struct SimdIntrinsc): Squeese simd_version and simd_emit_mode into a single
8593 byte so we can have an aditional flags field without increasing struct size.
8595 * simd-intrinsics.c (emit_intrinsics): Use the value of simd_version as a shift amount before checking
8596 against the simd_supported_versions bitmask.
8598 * simd-intrinsics.c: Set SIMD_INTRINSIC_NAME_MAX to an appropriate value.
8600 Mon Oct 13 10:58:10 CEST 2008 Paolo Molaro <lupus@ximian.com>
8602 * mini.c: remove rawbuffer code (the only use here is unsafe because
8603 it takes locks during signal handling and the kernel now provides much
8604 better info in proc/pid/smaps these days).
8606 2008-10-13 Zoltan Varga <vargaz@gmail.com>
8608 * mini-amd64.c (mono_arch_output_basic_block): Fix the changes to
8609 OP_X86_PUSH_OBJ. Fixes #434620.
8611 * objects.cs: Add a test.
8613 2008-10-12 Rodrigo Kumpera <rkumpera@novell.com>
8615 * basic-simd.cs: Remove PackWithUnsignedSaturation tests as it turns out
8616 that the packuswb/packusdw don't work with unsigned numbers for what
8617 would be negative numbers in signed format.
8619 * cpu-x86.md: Add doubleword forms of many ops and packing ones.
8620 Fix the len of fconv_to_r8_x and xconv_r8_to_i4.
8622 * mini-ops.h: Add doubleword forms of many ops and packing ones.
8624 * mini-x86.c: Emit doubleword forms of many ops and packing ones.
8626 * simd-intrinsics.c (SimdIntrinsc): Rename the flags field to simd_version.
8628 * simd-intrinsics.c (vector4f_intrinsics): Use simd_version field for sse3 ops.
8630 * simd-intrinsics.c (vector4u_intrinsics): Rename to vector4ui_intrinsics and
8633 * simd-intrinsics.c (simd_version_name): New function, returns the name of the
8634 version as the enum in mini.h.
8636 * simd-intrinsics.c (emit_intrinsics): Instead of having a special emit mode
8637 for sse3 ops, check the simd_version field if present. This way the code
8638 works with all versions of sse.
8640 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8642 * simd-intrinsics.c: Fixed intrinsic name typo.
8644 * mini.h: Added missing simd exported function.
8646 * basic-simd.cs: Added tests for Vector4ui.
8647 Fixed broken test for Vector16b.
8649 2008-10-10 Zoltan Varga <vargaz@gmail.com>
8651 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Increase
8652 the max length to 64.
8654 2008-10-10 Mark Probst <mark.probst@gmail.com>
8656 * method-to-ir.c: Only do the fast virtual generic method call for
8657 non-wrapper methods.
8659 * mini.h, mini-trampolines.c: The new generic virtual remoting
8660 trampoline handles virtual method calls via the vtable (as done by
8661 the fast virtual generic method calls) to remoting proxies.
8663 * mini.c (mono_jit_create_remoting_trampoline): For generic
8664 methods reate a generic virtual remoting trampoline.
8666 * mini-amd64.h: Enable fast virtual generic method calls again.
8668 2008-10-10 Mark Probst <mark.probst@gmail.com>
8670 * mini-ppc.c: Use SP (r1), not frame_reg (which might be r31) to
8671 restore registers when doing tail calls.
8673 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8675 * simd-intrinsics.c (emit_intrinsics): Vector4u was renamed to
8678 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8680 * basic-simd.cs: Add test for Vecto16b.PackWithUnsignedSaturation.
8682 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8684 * simd-intrinsics.c (emit_intrinsics): Retrofit to new type names.
8686 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8688 * basic-simd.cs: Retrofit for API changes.
8690 2008-10-10 Mark Probst <mark.probst@gmail.com>
8692 * mini-ppc.c: Handle integer stack arguments for tail calls.
8694 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
8696 * optflags-def.h: Removed sse3 optimization.
8700 * mini-x86.c (mono_arch_cpu_optimizazions): Remove detection of
8703 * mini-x86.c: Added mono_arch_cpu_enumerate_simd_versions.
8705 * mini.h: Added enumeration with simd versions.
8707 * simd-intrinsics.c (emit_intrinsics): Use the new static var
8710 * simd-intrinsics.c: Added mono_simd_intrinsics_init.
8712 * mini.c (mini_init): Call mono_simd_intrinsics_init.
8714 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
8716 * basic-simd.cs: Added tests for Vector8u and Vector16u.
8718 * basic-simd.cs: Fixed test naming.
8720 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
8722 * mini-ops.h: Added ops for packed and saturated math, shifts
8723 and packing/unpacking.
8725 * cpu-x86.md: Added descriptors for the above ops.
8727 * mini-x86.c: Added code to emmit the above ops.
8729 * simd-intrinsics.c: Added support for Vector16u and Vector8u.
8731 2008-10-08 Zoltan Varga <vargaz@gmail.com>
8733 * aot-compiler.c (compile_method): Enable AOT for generic code.
8735 * ir-emit.h (NEW_DOMAINCONST): Use domainvars in AOT code as well.
8737 Wed Oct 8 16:35:43 CEST 2008 Paolo Molaro <lupus@ximian.com>
8739 * mini.c: add a workaround for a common screwup that ends up blamed
8740 to mono (other processes blocking signal delivery).
8742 2008-10-07 Zoltan Varga <vargaz@gmail.com>
8744 * method-to-ir.c (mono_method_to_ir2): Clear ins_flag on all code paths
8745 in the LDFLD/STFLD opcodes. Fixes #432673.
8747 * iltests.il.in: Add a new test.
8749 Tue Oct 7 19:59:07 CEST 2008 Paolo Molaro <lupus@ximian.com>
8751 * mini-arm.c: attach the thread in unmanaged->managed transitions
8752 using delegates (bug #433148).
8754 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
8756 * basic-simd.cs: Use new ShuffleSel constants.
8758 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
8760 * driver.c (opt_sets): Added combinations of simd, sse2 and sse3.
8762 * mini-x86.c (mono_arch_cpu_optimizazions): Detect sse3 and now
8763 only disable simd intrinsics if no sse2 is detected.
8765 * optflags-def.h: Added sse3.
8767 * simd-intrinsics.c: Avoid generated sse3 intrinsics if the optimization
8770 2008-10-07 Zoltan Varga <vargaz@gmail.com>
8772 * aot-compiler.c (add_wrappers): Fix Delegate/MulticastDelegate classes
8773 when adding delegate-invoke wrappers.
8775 2008-10-07 Zoltan Varga <vargaz@gmail.com>
8777 * Makefile.am: Reenable the simd tests.
8779 2008-10-07 Bill Holmes <billholmes54@gmail.com>
8781 * mini-amd64.c (mono_arch_emit_outarg_vt) : In the ArgValuetypeAddrInIReg case,
8782 add a call to mono_call_inst_add_outarg_reg for the arg->dreg to make sure that no
8783 other vreg is allocated to that hreg.
8785 Contributed under MIT/X11 license.
8787 2008-10-07 Zoltan Varga <vargaz@gmail.com>
8789 * Makefile.am: Disable the simd tests for now as Mono.Simd is not
8792 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
8794 * basic-simd.cs: New test suite for SIMD intrinsics.
8796 * Makefile.am: Added new tests.
8798 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
8800 * cpu-x86.md: Added new instructions to handle float to int using SSE regs.
8804 * mini-x86.h: Enable mono_arch_decompose_opts if simd intrinsics are enabled.
8806 * mini-x86.c (mono_arch_decompose_opts): Decompose float to int conversion
8807 using SSE2 aware opcodes.
8809 * mini-x86.c (emit_float_to_int): Disable the SSE2 optimization if OPT_SIMD
8810 is enabled, this code path is only reachable if conversion ops are emmited after
8813 * mini.h: Added MonoCompile::fconv_to_r8_x_var to hold the float to int var.
8815 This optimization saves 6 bytes per conversion against the old version.
8817 2008-10-06 Zoltan Varga <vargaz@gmail.com>
8819 * aot-compiler.c (compile_method): Don't skip methods referencing
8820 generic methods without a corresponding entry in token_info_hash, since
8821 encode_method_ref () can handle all generic methods now.
8823 * method-to-ir.c (mono_save_token_info): Don't save the token info if a
8824 generic context is set.
8826 * method-to-ir.c (mono_method_to_ir2): Put back a disable_aot for
8827 generic sharing of LDTOKEN.
8829 2008-10-06 Mark Probst <mark.probst@gmail.com>
8831 * mini-amd64.h: Temporarily disabled fast virtual generic method
8832 calls because it breaks the System.Runtime.Remoting tests.
8834 2008-10-06 Zoltan Varga <vargaz@gmail.com>
8836 * aot-compiler.c (add_wrappers): Add delegate-invoke wrappers.
8838 * method-to-ir.c (check_inline_called_method_name_limit): Return TRUE
8839 so inlining actually works.
8840 (check_inline_caller_method_name_limit): Ditto.
8842 Mon Oct 6 11:04:38 CEST 2008 Paolo Molaro <lupus@ximian.com>
8844 * mini-ppc.c: mono_arch_flush_icache () cast pointer using gsize for
8845 64 bit safety (from Olaf Hering and Andreas Farber).
8847 2008-10-06 Zoltan Varga <vargaz@gmail.com>
8849 * mini-trampolines.c (mono_aot_trampoline): Delegate processing to
8850 mono_magic_trampoline () if aot_get_method_from_token () fails. Remove
8851 unused virtual call support code.
8853 * aot-runtime.c (decode_method_ref): Add a 'no_aot_trampoline' out argument.
8855 * aot-runtime.c (mono_aot_get_method_from_vt_slot): Return NULL for methods
8856 which can't use aot trampolines.
8857 (decode_patch): Don't create aot trampolines for methods which can't use
8860 * aot-compiler.c (encode_method_ref): Add a marker for methods which can't
8861 use aot trampolines.
8863 * mini.h: Bump AOT image format version.
8865 2008-10-05 Zoltan Varga <vargaz@gmail.com>
8867 * method-to-ir.c (mono_method_to_ir2): Pass cil_method instead of cmethod
8868 to save_token_info () since cmethod is inflated for constrained calls.
8870 * mini-<ARCH>.h mini-x86.c: Remove some unused defines.
8872 2008-10-04 Andreas Farber <andreas.faerber@web.de>
8874 * Makefile.am: Add build rules for ppc64.
8875 This avoids the build failing at pedump with unresolved symbols
8876 due to lack of arch_sources. Instead it will now fail earlier
8877 due to lack of cpu-ppc64.md.
8879 Contributed under MIT/X11 license.
8881 2008-10-04 Mark Probst <mark.probst@gmail.com>
8883 * mini-amd64.c (mono_arch_emit_call): Support stack arguments for
8886 * iltests.il.in: Add test case for tail call with many arguments.
8888 2008-10-03 Zoltan Varga <vargaz@gmail.com>
8890 * method-to-ir.c (mono_method_to_ir2): Add an !cfg->compile_aot assert
8891 to the fast virtual generic method code until the aot case is fixed.
8893 2008-10-03 Mark Probst <mark.probst@gmail.com>
8895 * mini-ppc.c, mini-ppc.h: Implement generic virtual method thunks.
8897 2008-10-03 Mark Probst <mark.probst@gmail.com>
8899 * mini-amd64.c, mini-amd64.h: Implement generic virtual method
8902 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
8904 * simd-intrinsics.c: Forgot to add this one.
8906 * mini-codegen.c: Fix macro in case SIMD is not supported.
8908 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
8910 This patch land initial JIT support for simd intrinsics.
8912 * mini-x86.h: Added new define to make --enable_minimal work on x86.
8914 * Makefile.am: Added simd-intrinsics.c
8916 * simd-intrinsics.c: New file with simd instrinsic related
8919 * cfold.c (mono_constant_fold_ins2): Fold XZERO.
8921 * cpu-x86.md: Add simd related instructions.
8923 * driver.c: Added MONO_OPT_SIMD to the default set of optimizations.
8925 * driver.c: Added two new --regression variants.
8927 * ir-emit.h (MONO_EMIT_NEW_VZERO): Emit XZERO if the type is a simd intrinsic.
8929 * local-propagation.c (mono_local_cprop2): Eliminate useless XMOVE.
8931 * local-propagation.c (mono_local_deadce): Use new macro MONO_IS_NON_FP_MOVE and
8932 extract some complicated logic to helper functions.
8934 * method-to-ir.c (mono_type_to_regmove): Handle simd intrinsics.
8936 * method-to-ir.c (mini_emit_inst_for_method): Emit simd intrinsics.
8938 * method-to-ir.c (mono_handle_global_vregs): If a simd intrinsic was found, apply
8939 the specialized simplification pass.
8941 * method-to-ir.c (mono_spill_global_vars): Use new macro.
8943 * mini-codegen.c: Added SIMD constants to all regbanks arrays.
8945 * mini-codegen.c: Added reg_bank_table_init to initialize the reg desc -> bank
8948 * mini-codegen.c: Define a version of the reg_bank macro that uses desc_to_reg_type
8949 if MONO_ARCH_NEED_SIMD_BANK is defined.
8951 * mini-ops.h: Added the new simd ops.
8953 * mini-x86.c: Added mono_arch_xregname.
8955 * mini-x86.c (mono_arch_cpu_optimizazions): Disable MONO_OPT_SIMD if SSE3 is not detected.
8957 * mini-x86.c (mono_arch_output_basic_block): Add simd related opcodes.
8959 * mini-x86.h: Define simd related MONO_ARCH macros.
8961 * mini.c (mono_type_to_load_membase): Handle simd intrinsics.
8963 * mini.c (mono_type_to_store_membase): Handle simd intrinsics.
8965 * mini.h: Added new macros MONO_IS_NON_FP_MOVE, MONO_IS_REAL_MOVE, MONO_IS_ZERO and
8966 MONO_CLASS_IS_SIMD to deal with simd related IR.
8968 * mini.h (MonoInst): Added spill_var to the backend union.
8970 * mini.h (MonoCompile): Added uses_simd_intrinsics and iconv_raw_var.
8972 * mini.h: Added forward declarations of the new simd fuctions.
8974 * optflags-def.h: Added new optimization names SIMD.
8976 * regalloc.c (mono_regstate_reset): Set next vreg to be the max value of the 3 reg banks.
8978 * regalloc.h: Added support for working with 3 register banks.
8980 * regalloc.h (MonoRegState): Added xsymbolic field if a third regbank is required.
8982 * ssa2.c (mono_ssa_deadce2): Use new MONO_IS_ZERO macro.
8984 Fri Oct 3 16:03:22 CEST 2008 Paolo Molaro <lupus@ximian.com>
8986 * mini-exceptions.c: remove 64 bit related ifdef clutter.
8988 2008-10-03 Zoltan Varga <vargaz@gmail.com>
8990 * mini-exceptions.c (mono_handle_soft_stack_ovf): Unprotect two pages
8991 instead of one on 64 bit systems.
8993 * method-to-ir.c: Remove unused includes.
8995 2008-10-02 Zoltan Varga <vargaz@gmail.com>
8997 * aot-compiler.c (emit_exception_debug_info): Use jinfo->used_regs instead of
8998 cfg->used_int_regs, since the two are different on arm.
9000 2008-10-02 Mark Probst <mark.probst@gmail.com>
9002 * method-to-ir.c, inssel.brg, mini-trampolines.c: Use
9003 mono_method_get_vtable_index() to get the vtable index.
9005 2008-10-02 Mark Probst <mark.probst@gmail.com>
9007 * method-to-ir.c (mono_method_to_ir2): Don't create native
9008 wrappers for array methods, because they're never called (and if
9009 they were called they wouldn't work).
9011 2008-10-02 Mark Probst <mark.probst@gmail.com>
9013 * method-to-ir.c (mono_method_to_ir2): Array methods are
9014 special-cased and must not be invoked indirectly via the (M)RGCTX
9015 when generic sharing is turned on. Fixes #431413.
9017 2008-10-01 Mark Probst <mark.probst@gmail.com>
9019 * method-to-ir.c: When generic sharing is active, call
9020 non-interface virtual generic methods via the standard trampoline.
9022 * mini-trampolines.c: Handle virtual generic shared methods.
9024 * mini.h, mini-x86.c, mini-x86.h: New argument for
9025 mono_arch_build_imt_thunk() which is non-NULL for virtual generic
9026 method thunks and which is the trampoline to call if the lookup
9027 fails. Enable the virtual generic method thunk for x86.
9029 * mini-amd64.c, mini-arm.c, mini-ia64.c, mini-sparc.c,
9030 mini-ppc.c (mono_arch_build_imt_thunk): Add the additional
9031 argument but assert that it's NULL, because these archs don't yet
9032 implement the virtual generic method thunk. Changes in the IMT
9033 thunk data structures.
9035 2008-10-01 Zoltan Varga <vargaz@gmail.com>
9037 * aot-compiler.c (emit_globals): Avoid invalid characters in
9038 the static linking symbol.
9040 * objects.cs: Add a test for the range check optimization. Fix warnings.
9042 * branch-opts.c (mono_if_conversion): Add back the 'optimize range checks'
9043 optimization from the current JIT.
9045 * method-to-ir.c (mini_emit_inst_for_method): Decompose String.Length
9046 later in decompose_array_access_opts () to allow more optimizations.
9048 * method-to-ir.c (mono_handle_soft_float): Rename this to
9049 mono_decompose_soft_float () for consistency.
9051 * mini-ops.h: Fix arguments of OP_STRLEN.
9053 * method-to-ir.c (save_cast_details): Extract the cast details saving code
9054 into a separate function.
9055 (reset_cast_details): Ditto.
9056 (handle_unbox): Save cast details. Fixes #431254.
9058 * method-to-ir.c: Remove some obsolete FIXMEs.
9060 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9062 * ir-emit.h (alloc_dreg): Write a warning before crashing.
9064 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9066 * mini-codegen.c: More work on macros to make them
9067 ready for multiple regbanks.
9069 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9071 * method-to.ir.c (mono_type_to_regmove): Remove static modifier.
9073 * mini.h: Export mono_type_to_regmove. Fix signature of mono_regname_full.
9075 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9077 * mini-codegen.c (mono_spillvar_offset): Proper support for
9080 2008-09-30 Zoltan Varga <vargaz@gmail.com>
9082 * mini-amd64.c (mono_arch_emit_epilog): Remove some duplicated code from
9083 the stack overflow changes.
9085 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9087 * mini-codegen.c: Make all bank macros depend on reg_bank.
9089 * mini-codegen.c (mono_local_regalloc): Make free mask
9090 initialization regbank aware.
9092 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9094 * mini-codegen.c (mono_local_regalloc): Extract callee
9095 mask selection to a function and make it regbank aware.
9097 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
9099 * mini-codegen.c (mono_local_regalloc): Changed the cloberring
9100 code to deal with many regbanks.
9102 2008-09-30 Zoltan Varga <vargaz@gmail.com>
9104 * mini-codegen.c: More fp->regbank changes.
9106 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
9108 * mini-codegen.c: Change asserts to use MONO_NUM_REGBANKS instead
9109 of a hardcoded constant.
9111 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
9113 * method-to-ir.c (type_from_stack_type): Fix typo.
9115 2008-09-29 Zoltan Varga <vargaz@gmail.com>
9117 * mini-ia64.c (emit_move_return_value): Convert float return values to
9120 * objects.cs: Add a new test.
9122 * mini-ia64.c (mono_arch_allocate_vars): Disable fp elimination for
9123 VARARG methods to fix an assert later.
9125 * mini-mips.h mini-mips.c mini-ops.h cpu-mips.md: Update the mips back
9126 end so it at least compiles.
9128 2008-09-28 Zoltan Varga <vargaz@gmail.com>
9130 * method-to-ir.c (emit_optimized_ldloca_ir): Fix this.
9132 2008-09-28 Rodrigo Kumpera <rkumpera@novell.com>
9134 * method-to-ir.c (mono_method_to_ir2): Extract the ldloca + initobj
9135 optimization to a new function (emit_optimized_ldloca_ir) and enable
9136 it for both ldloca and ldloca_s.
9138 2008-09-28 Zoltan Varga <vargaz@gmail.com>
9140 * method-to-ir.c (mono_method_to_ir2): Remove an unnecessary assert in the
9141 gshared CASTCLASS code.
9143 * driver.c (mono_main): Add a workaround for shutdown crashes seen on
9144 amd64, where the libc stack unwinder encounters stack frames referring to
9145 native code in unmapped memory.
9147 * method-to-ir.c (mini_emit_check_array_type): Add support for generic
9150 * generics.cs: Add new test.
9152 2008-09-27 Zoltan Varga <vargaz@gmail.com>
9154 * mini-arm.h driver.c: Print the fp model when using --version on arm. Also,
9155 add a check that one of the ARM_FPU_ constants is defined.
9157 * mini-exceptions.c (mono_handle_soft_stack_ovf): Really fix the build.
9159 * mini-exceptions.c: Fix build on non-altstack platforms.
9161 * method-to-ir.c (mono_method_to_ir2): Fix aot support for the
9164 * ir-emit.h: Add a comment to NEW_PCONST.
9166 * mini-exceptions.c (mono_altstack_restore_prot): Fix a warning.
9168 * mini.h (MonoJitDomainInfo): Move some fields here from MonoDomain.
9170 * mini.c aot-runtime.c method-to-ir.c driver.c mini-trampolines.c: Update
9171 after the changes to MonoJitDomainInfo.
9173 2008-09-27 Mark Probst <mark.probst@gmail.com>
9175 * mini-ppc.c, tramp-ppc.c, mini-ppc.h: Implement generic code sharing.
9177 2008-09-27 Mark Probst <mark.probst@gmail.com>
9179 * mini-ppc.c: Compiler warning fixes.
9181 2008-09-27 Mark Probst <mark.probst@gmail.com>
9183 * mini-ppc.c: Special handling for 1/2 byte structs on Darwin only
9186 2008-09-27 Mark Probst <mark.probst@gmail.com>
9188 * exceptions-ppc.c, mini-ppc.h: Compile
9189 mono_arch_handle_altstack_exception() on Darwin, too.
9191 2008-09-27 Mark Probst <mark.probst@gmail.com>
9193 * method-to-ir.c (mono_emit_rgctx_method_call_full): Must also
9194 work on archs which don't have generic sharing implemented, only
9195 without the vtable_arg.
9197 2008-09-26 Mark Probst <mark.probst@gmail.com>
9199 * mini.c: Added comment explaining why delegate ctor icall
9200 wrappers are compiled.
9202 2008-09-26 Mark Probst <mark.probst@gmail.com>
9204 * mini.c: Don't produce trampolines to delegate ctor icall
9205 wrappers but compile them upfront.
9207 Fri Sep 26 17:00:46 CEST 2008 Paolo Molaro <lupus@ximian.com>
9209 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: amd64 support code for calling a
9210 runtime-set function when going back to managed code. Currently this
9211 is used to set back the protection on the soft ovf pages and/or to
9212 throw the stack overflow exception that happened in unmanaged code.
9214 Fri Sep 26 16:46:23 CEST 2008 Paolo Molaro <lupus@ximian.com>
9216 * tramp-x86.c, mini-x86.h, mini-x86.c: x86 support code for calling a
9217 runtime-set function when going back to managed code. Currently this
9218 is used to set back the protection on the soft ovf pages and/or to
9219 throw the stack overflow exception that happened in unmanaged code.
9221 Fri Sep 26 16:34:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
9223 * mini.h, mini.c, mini-trampolines.c, mini-exceptions.c: added
9224 the support code for restoring stack protection after stack overflows
9225 that happen in unmanaged code. Don't set the exec permission on the
9228 2008-09-26 Zoltan Varga <vargaz@gmail.com>
9230 * mini-trampolines.c (mono_delegate_trampoline): Add wrappers even if
9231 delegate->method_ptr is set. Fixes #428054.
9233 2008-09-25 Zoltan Varga <vargaz@gmail.com>
9235 * tests.cs: Rename to ratests.cs.
9237 * method-to-ir.c: Merge the emit_get_rgctx () calls into the
9238 emit_get_rgctx_... functions.
9240 2008-09-25 Mark Probst <mark.probst@gmail.com>
9242 * method-to-ir.c: Eliminated macro EMIT_GET_RGCTX.
9244 2008-09-25 Mark Probst <mark.probst@gmail.com>
9246 * mini-trampolines.c (mono_magic_trampoline): Unwrap wrappers
9247 before asserting that method is sharable.
9249 2008-09-25 Mark Probst <mark.probst@gmail.com>
9251 * method-to-ir.c, mini.c, jit-icalls.c: New function for checking
9252 whether method needs a static RGCTX wrapper used instead of
9255 * generic-sharing.c, mini.h: A few functions moved to
9256 metadata/generic-sharing.c.
9258 2008-09-25 Mark Probst <mark.probst@gmail.com>
9260 * method-to-ir.c, mini.c, mini-exceptions.c, mini-trampolines.c:
9261 Generic code sharing for value types, which essentially means
9262 treating value type methods like static methods. The RGCTX is
9263 passed in the same way.
9265 2008-09-25 Zoltan Varga <vargaz@gmail.com>
9267 * method-to-ir.c (mono_method_to_ir2): Avoid an assert in the NEWOBJ
9268 opcode when creating multi-dimensional arrays of open types.
9270 * generic-sharing.c (mono_method_check_context_used): Handle arrays of
9273 * generics.cs: Add a test.
9275 * mini-codegen.c: Use macros everywhere for checking floats instead of == 'f'.
9277 2008-09-24 Zoltan Varga <vargaz@gmail.com>
9279 * mini.h (MonoCompile): Add 'disable_vreg_to_lvreg' flag.
9281 * mini.c (mini_method_compile): Set it when running under the debugger.
9283 * method-to-ir.c (mono_handle_global_vregs): Disable global->local
9284 vreg optimization if the flag is set.
9286 * driver.c (mono_main): Add --attach= option to pass options to
9289 * mini.c (sigquit_signal_handler): Start the attach agent.
9291 * ssapre.c: Disable this to save space since it is not yet ported to
9294 * regalloc2.c: Disable this to save space.
9296 * mini.h (MonoJitStats): Remove unused analyze_stack_repeat.
9298 Wed Sep 24 16:01:49 CEST 2008 Paolo Molaro <lupus@ximian.com>
9300 * decompose.c, method-to-ir.c, mini-codegen.c, regalloc2.c: make
9301 the -v option useful again.
9303 2008-09-24 Zoltan Varga <vargaz@gmail.com>
9305 * mini-amd64.c (mono_arch_output_basic_block): Add support for
9308 * inssel.brg (mini_emit_castclass): Avoid the szarray!=array checks for
9309 arrays of arrays. Fixes #428406.
9311 * method-to-ir.c (mini_emit_castclass): Ditto.
9313 * objects.cs: Add new test.
9315 2008-09-23 Rodrigo Kumpera <rkumpera@novell.com>
9317 * method-to-ir.c (type_to_eval_stack_type): The code path for the new JIT
9318 was wrong at it choked against target_type_is_incompatible for byref types.
9320 2008-09-23 Zoltan Varga <vargaz@gmail.com>
9322 * mini-codegen.c: Use 'bank' macros instead of 'is_fp' macros in most
9325 Tue Sep 23 15:31:45 CEST 2008 Paolo Molaro <lupus@ximian.com>
9327 * mini-exceptions.c: update a few more exceptions-related counters.
9329 Tue Sep 23 15:28:29 CEST 2008 Paolo Molaro <lupus@ximian.com>
9331 * aot-runtime.c, method-to-ir.c, mini.c, mini-trampolines.c: use the
9332 new functions to allocate from persistent mempools.
9334 2008-09-23 Zoltan Varga <vargaz@gmail.com>
9336 * mini.h regalloc.h mini-codegen.c: Generalize the regalloc code to allow
9337 multiple register banks in the future.
9339 * mini-codegen.c (mono_local_regalloc): Fix a warning.
9341 2008-09-22 Rodrigo Kumpera <rkumpera@novell.com>
9343 * mini.c (type_to_eval_stack_type): Remove duplicated function.
9345 * method-to-ir.c (type_to_eval_stack_type): Make this version compatible with both JIT.
9347 * mini.h: Export type_to_eval_stack_type.
9349 This function was nearly duplicated in method-to-ir.c and mini.c. The difference
9350 is only ins->klass of byref types.
9352 2008-09-22 Zoltan Varga <vargaz@gmail.com>
9354 * method-to-ir.c (mini_emit_memset): Use a default alignment of 4.
9355 (mini_emit_memcpy2): Ditto.
9357 * mini-amd64.c: Fix a warning.
9359 2008-09-21 Mark Probst <mark.probst@gmail.com>
9361 * exceptions-ppc.c (mono_arch_get_call_filter): Fixed stack frame
9364 2008-09-19 Rodrigo Kumpera <rkumpera@novell.com>
9366 * method-to-ir.c: Extract stloc micro-optimization to a
9367 function and apply it to all cases.
9369 2008-09-19 Mark Probst <mark.probst@gmail.com>
9371 * method-to-ir.c: Don't fail generic code sharing in cases we
9374 2008-09-18 Mark Probst <mark.probst@gmail.com>
9376 * mini-ppc.c: Handle structs in tailcalls on Darwin.
9378 Tue Sep 16 21:07:11 CEST 2008 Paolo Molaro <lupus@ximian.com>
9380 * *.c, *.md, mini-ops.h: introduced relaxed_nop opcode for spin wait
9383 Tue Sep 16 16:39:16 CEST 2008 Paolo Molaro <lupus@ximian.com>
9385 * trace.c: make tracing more useful and correct, with per-thread
9388 2008-09-15 Mark Probst <mark.probst@gmail.com>
9390 * mini-ppc.c (mono_arch_emit_call): Convert floats to R4 when
9391 doing a method call and the argument is an R4.
9393 2008-09-14 Zoltan Varga <vargaz@gmail.com>
9395 * aot-compiler.c (add_wrappers): Do not generate runtime invoke wrappers for
9398 2008-09-13 Mark Probst <mark.probst@gmail.com>
9400 * mini-ppc.c: Convert result to single for OP_ICONV_TO_R4.
9402 2008-09-12 Zoltan Varga <vargaz@gmail.com>
9404 * mini.h (MONO_IS_JUMP_TABLE): Handle GOT_ENTRY.
9405 (MONO_JUMP_TABLE_FROM_INS): Ditto.
9407 2008-09-11 Zoltan Varga <vargaz@gmail.com>
9409 * driver.c: Add a --agent argument (not supported yet) to load managed
9410 agent assemblies before loading the main assembly, similarly to how the
9411 Java VM handles agents.
9413 2008-09-11 Mark Probst <mark.probst@gmail.com>
9415 * mini-ppc.c (mono_arch_allocate_vars): Use arch-independent
9416 function to do stack layout of local variables.
9418 2008-09-11 Mark Probst <mark.probst@gmail.com>
9420 * mini-ppc.c (calculate_sizes): Bugfix in sigcookie position
9423 2008-09-11 Zoltan Varga <vargaz@gmail.com>
9425 * method-to-ir.c ssa2.c mini.c mini-amd64.c decompose.c ssa.c abcremoval.c
9426 abcremoval2.c branch-opts.c driver.c dominators.c: Disable parts of the
9427 JIT if DISABLE_JIT is defined.
9429 * Makefile.am: Avoid compiling/linking in inssel.c if DISABLE_JIT is
9432 2008-09-10 Mark Probst <mark.probst@gmail.com>
9434 * iltests.il.in: Disable the fconv test on PPC (the result is
9435 undefined according to ECMA).
9437 2008-09-10 Mark Probst <mark.probst@gmail.com>
9439 * iltests.il.in: Enable tail call tests for PPC.
9441 * mini.h: Add variable for storing incoming valuetype argument
9442 addresses for tail calls.
9444 * mini-ppc.c: Implement valuetype arguments and return values for
9447 2008-09-09 Mark Probst <mark.probst@gmail.com>
9449 * mini-ppc.c: Partially implement tail calls (struct arguments and
9450 return values not supported).
9452 * method-to-ir.c: Enable tail calls on PPC.
9454 2008-09-08 Zoltan Varga <vargaz@gmail.com>
9456 * aot-compiler.c (emit_wrapper_info): Omit the klass name from
9457 runtime-invoke wrappers to work around the problem of them getting
9458 assigned to a random class.
9460 * aot-runtime.c (mono_aot_get_method): Ditto.
9462 2008-09-07 Zoltan Varga <vargaz@gmail.com>
9464 * mini-exceptions.c mini-mips.h mini-s390.h exceptions-mips.c: Kill
9465 the CUSTOM_EXCEPTION_HANDLING and CUSTOM_STACK_WALK defines.
9467 2008-09-07 Mark Probst <mark.probst@gmail.com>
9469 * method-to-ir.c (mono_method_to_ir2): Disable tail calls for PPC
9470 until they're implemented properly.
9472 * exceptions-ppc.c: Use arch-independent exception-handling code
9473 instead of custom one.
9475 * exceptions-ppc.c, mini-ppc.c, mini-ppc.h: Bug fixes and changes
9478 * tramp-ppc.c, mini-ppc.c: Fixed warnings.
9480 * decompose.c, aot-runtime.c, aot-compiler.c: PPC code also
9481 applies when __powerpc__ is defined.
9483 2008-09-06 Zoltan Varga <vargaz@gmail.com>
9485 * aot-runtime.c (mono_aot_get_method): Add another cache mapping wrapper
9486 methods to their code to avoid computing the full name of wrappers and
9487 doing a lookup in a string hash table.
9489 2008-09-05 Zoltan Varga <vargaz@gmail.com>
9491 * method-to-ir.c: Remove the CHECK_BBLOCK () stuff it is not needed since
9492 we identify bblocks before method_to_ir () is ran.
9494 * branch-opts.c (mono_optimize_branches): Avoid nullifying the exit bblock.
9495 Also avoid optimizing branches pointing to themselves.
9497 * mini.c (mini_method_compile): Ditto. Fixes #422947.
9499 2008-09-05 Rodrigo Kumpera <rkumpera@novell.com>
9501 * driver.c (mono_main): Enable the new verifier under core-clr and cas.
9503 2008-09-05 Zoltan Varga <vargaz@gmail.com>
9505 * tramp-arm.c (mono_arch_nullify_class_init_trampoline): Implement this.
9506 (mono_arch_patch_plt_entry): Fix the calculation of the jump_entry.
9507 (mono_arch_get_nullified_class_init_trampoline): Return 'code' instead of
9510 * aot-compiler.c (emit_plt): Fix the arm plt entries, previously they all
9511 jumped to the same entry in plt_jump_table.
9513 2008-09-02 Rodrigo Kumpera <rkumpera@novell.com>
9515 * method-to-ir.c (initialize_array_data): Handle field with RVA from
9518 2008-08-31 Zoltan Varga <vargaz@gmail.com>
9520 * method-to-ir.c (handle_isinst): Do the assignment at the beginning, so the
9521 other assignment can be if converted. Saves 1.5% on corlib size and fixes
9524 2008-08-29 Geoff Norton <gnorton@novell.com>
9526 * aot-compiler.c: The Mach/ARM compiler doesn't understand the bss
9527 segment, and doesn't properly handle .space as .text. Fixes
9530 2008-08-29 Geoff Norton <gnorton@novell.com>
9532 * mini.c: Disable the mach exception handler when running on
9535 2008-08-29 Geoff Norton <gnorton@novell.com>
9537 * aot-compiler.c: Patch from Renaldas Zioma to properly register
9538 globals on Darwin/ARM
9540 2008-08-28 Zoltan Varga <vargaz@gmail.com>
9542 * mini.c: Avoid not initializing the runtime when doing AOT compilation,
9543 since too many things depend on it. Instead, call
9544 mono_runtime_set_no_exec ().
9546 * mini.c (mono_create_tls_get): Call mono_alloc_preg (cfg) when running with
9549 * aot-compiler.c: Add an 'asm-only' AOT option.
9551 * mini.c: Avoid initializing the runtime when doing AOT compilation.
9553 * aot-compiler.c (compile_method): Disable gshared support for now as it
9556 2008-08-27 Bill Holmes <billholmes54@gmail.com>
9558 * mini-amd64.h : Fix a compiler warning.
9560 * exceptions-amd64.c (mono_arch_unwindinfo_install_unwind_info) :
9561 Changed to use a callback function to retrieve the unwind info.
9562 This avoids problems observed when code blocks were removed by
9563 unloading an app domain.
9565 * mini-amd64.c (mono_arch_cpu_optimizazions) : Removing the peephole
9566 and branch excludes for Winx64. The fix in exceptions-amd64.c allows them
9569 Contributed under MIT/X11 license.
9571 2008-08-27 Bill Holmes <billholmes54@gmail.com>
9573 * mini-amd64.c (mono_arch_output_basic_block) : Fix the OP_X86_PUSH_OBJ
9574 case to keep the stack aligned to 8.
9576 Contributed under MIT/X11 license.
9578 2008-08-26 Zoltan Varga <vargaz@gmail.com>
9580 * aot-runtime.c (mono_aot_get_method): Add a cache for wrapper names to
9581 avoid repeated linear searches.
9583 2008-08-25 Zoltan Varga <vargaz@gmail.com>
9585 * aot-compiler.c (add_wrappers): Avoid calling get_runtime_invoke with
9586 methods it can't handle.
9588 * aot-compiler.c (add_method): Avoid adding a method twice.
9589 (add_wrappers): Add runtime invoke wrappers for all methods.
9591 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): New
9592 function to create an aot-compatible version of this trampoline.
9594 * aot-compiler.c aot-runtime.c: Add support for AOT rgctx fetch trampolines.
9596 2008-08-24 Zoltan Varga <vargaz@gmail.com>
9598 * aot-compiler.c (compile_method): Skip wrappers of generic icalls.
9600 * method-to-ir.c (mono_method_to_ir2): Replace an assert in UNBOX_ANY
9601 with a generic sharing failure.
9603 * aot-compiler.c (emit_klass_info): Call mono_class_get_nested_types ().
9605 * method-to-ir.c (mono_method_to_ir2): Rethrow the correct exception in
9606 CEE_RETHROW. Fixes #419634.
9608 * mini.c (mono_method_to_ir): Ditto.
9610 * exceptions.cs: Add a new test.
9612 * generic-sharing.c (mini_type_stack_size): Always pass TRUE as allow_open
9613 to mono_type_stack_size_internal () since some callers might not pass in
9616 * mini-x86.c (mono_arch_emit_prolog): Store the rgctx before calling
9617 instrument_prolog. Fixes #419878.
9619 * mini.c (mono_compile_create_var_for_vreg): Make the lvars representing
9620 doubles in soft float mode volatile.
9622 2008-08-23 Zoltan Varga <vargaz@gmail.com>
9624 * ir-emit.h (NEW_ARGSTORE): Use cfg->args and cfg->arg_types to fix the build.
9626 * method-to-ir.c (mono_save_args): Use ARGSTORE instead of TEMPSTORE
9627 to handle soft float correctly.
9629 * tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Implement
9632 * mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.
9634 * exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
9635 to sp, since the generics catch code requires it.
9637 * mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
9640 * method-to-ir.c (emit_imt_argument): Pass imt_arg to
9641 mono_arch_emit_imt_argument ().
9643 * mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.
9645 * mini-arm.c tramp-arm.c: Generic sharing updates.
9647 2008-08-22 Zoltan Varga <vargaz@gmail.com>
9649 * mini-arm.c: Fix the arm build.
9651 * generic-sharing.c (mini_type_get_underlying_type): New helper function
9652 handling enums, generic instances and generic sharing.
9653 (mini_type_stack_size_full): Ditto.
9655 * mini-amd64.c mini-x86.c mini-arm.c: Use the new functions.
9657 * mini.h (struct): Add 'uses_rgctx_reg' and 'uses_vtable_reg' fields.
9659 * method-to-ir.c: Set the new fields when using RGCTX_REG/VTABLE_REG.
9661 * tramp-arm.c: Implement the rgctx fetch and the generic class init
9664 * mini-arm.c: Various small generic sharing changes.
9666 * tramp-x86.c (mono_arch_create_generic_class_init_trampoline): Implement
9668 (mono_arch_create_trampoline_code): Remove most of the GENERIC_CLASS_INIT
9671 * mini-trampolines.c (mono_create_generic_class_init_trampoline): New
9672 helper function to return a generic class init trampoline.
9674 * method-to-ir.c mini.c: Use it.
9676 * tramp-amd64.c (mono_arch_create_generic_class_init_trampoline): New
9677 arch-specfic function to return a generic class init trampoline.
9679 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Remove most of
9680 the GENERIC_CLASS_INIT custom code.
9682 * method-to-ir.c (mono_method_to_ir2): If RGCTX_REG is not defined, that is
9683 a fatal error, not a sharing failure.
9685 * tramp-<ARCH>.c (mono_arch_get_rgctx_lazy_fetch_offset): Removed, no longer
9688 * mini-trampolines.c (mono_rgctx_lazy_fetch_trampoline): Get the additional
9689 trampoline argument from MONO_ARCH_VTABLE_REG.
9691 * tramp-x86.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
9692 order of the arguments to the C trampoline: pass 'slot' as the trampoline
9693 argument, and pass the vtable in VTABLE_REG.
9695 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
9696 order of the arguments to the C trampoline: pass 'slot' as the trampoline
9697 argument, and pass the vtable in VTABLE_REG.
9698 (mono_arch_create_trampoline_code_full): Remove some special casing for
9699 the rgctx fetch trampoline.
9701 * mini.c (mono_method_to_ir): Fix the STELEM_ANY+null value optimization.
9704 * iltests.il: Add a test for it.
9706 2008-08-21 Zoltan Varga <vargaz@gmail.com>
9708 * aot-compiler.c (compile_method): Enable AOT support for generics sharing.
9710 * method-to-ir.c (mono_method_to_ir2): Remove an aot restriction which is
9713 * mini-trampolines.c (mono_magic_trampoline): Add a sync wrapper here,
9714 use mono_jit_info_table_find () to avoid recursion.
9715 (mono_delegate_trampoline): Add a sync wrapper here.
9717 * method-to-ir.c (mono_method_to_ir2): Don't call mono_ldftn_nosyc
9720 * mini.c (mono_method_to_ir): Ditto.
9722 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Remove
9723 add_sync_wrapper argument. Don't add a sync wrapper here.
9724 (mono_create_jump_trampoline): Don't add a sync wrapper here.
9726 * jit-icalls.c (mono_ldftn_nosync): Removed, no longer needed.
9728 2008-08-20 Bill Holmes <billholmes54@gmail.com>
9730 * exceptions-amd64.c (seh_handler): For Winx64 adding missing copy
9731 of nonvolatile registers back from MonoContext to CONTEXT.
9733 Contributed under MIT/X11 license.
9735 2008-08-20 Bill Holmes <billholmes54@gmail.com>
9737 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): When shifting the
9738 arguments on Winx64 there are only 4 argument registers. For this
9739 logic to work the last argument must be pulled from the stack.
9741 Contributed under MIT/X11 license.
9743 2008-08-20 Zoltan Varga <vargaz@gmail.com>
9745 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
9747 * aot-runtime.c aot-compiler.c patch-info.h mini.c: Get rid of
9748 MONO_PATCH_INFO_WRAPPER, encode/decode wrapper methods like the others in
9749 encode/decode_method_ref ().
9751 * aot-compiler.c (encode_patch): Handle STATIC_RGCTX_INVOKE wrappers.
9753 * aot-runtime.c (decode_patch): Ditto.
9755 * mini.c (mono_resolve_patch_target): Handle RGCTX_FETCH sub-patches of type
9756 MONO_PATCH_INFO_METHOD.
9758 * aot-runtime.c (decode_exception_debug_info): Decode the contents of
9761 * aot-compiler.c (emit_exception_debug_info): Emit the contents of
9764 * method-to-ir.c (emit_imt_argument): Fix AOT+gshared support.
9766 * mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
9767 one from the caller.
9769 * aot-runtime.c (decode_generic_inst): New function to decode and
9770 return a interned generic inst.
9771 (decode_klass_ref): Use it.
9772 (decode_method_ref): Ditto.
9774 * aot-compiler.c (emit_exception_debug_info): Save
9775 jinfo->has_generic_jit_info too.
9777 2008-08-19 Zoltan Varga <vargaz@gmail.com>
9779 * mini-ia64.c (mono_arch_output_basic_block): Add OP_FCONV_TO_I.
9781 * iltests.il.in: Add a test for fconv_to_i.
9783 * liveness.c: Disable the liveness2 pass for now to save space.
9785 * regalloc2.c: Include mempool-internals.h to fix warnings.
9787 * aot-compiler.c (encode_method_ref): Encode the context of generic
9790 * aot-runtime.c (decode_method_ref): Inflate generic methods using
9791 the context saved in the aot file.
9793 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
9795 * mini-x86.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.
9797 * method-to-ir.c (mono_method_to_ir2): When using CEE_JMP, make arguments
9798 volatile so they won't be optimized away.
9800 2008-08-19 Rodrigo Kumpera <rkumpera@novell.com>
9806 * dominators.c: Remove duplicated functions that now are in
9807 mempool-internals.h.
9809 2008-08-19 Zoltan Varga <vargaz@gmail.com>
9811 * aot-compiler.c: Fix warnings.
9813 * aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.
9815 * aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.
9817 * method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
9820 * mini.c (mono_resolve_patch_target): Ditto.
9822 * aot-compiler.c (encode_patch): Add support for RGCTX_FETCH.
9823 (encode_klass_ref): Add support for encoding VARs/MVARs.
9825 * mini.c (mono_patch_info_dup_mp): Handle RGCTX_FETCH.
9827 * aot-runtime.c (decode_patch_info): Rename to 'decode_patch'. Split out
9828 the handling of the got entries into a separate 'decode_got_entry' function.
9829 Add support for RGCTX_FETCH.
9831 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RDI since RAX is
9832 clobbered by the trampoline code.
9834 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RAX since that is
9835 not clobbered by the indirect calling code.
9837 2008-08-18 Zoltan Varga <vargaz@gmail.com>
9839 * mini-x86.c (mono_arch_patch_code): Handle RGCTX_FETCH/GENERIC_CLASS_INIT
9842 2008-08-18 Rodrigo Kumpera <rkumpera@novell.com>
9844 * method-to-ir.c (mono_emit_method_call_full): Alloc the constructor
9845 signature using the compilation mempool otherwise we would leak it.
9847 2008-08-18 Zoltan Varga <vargaz@gmail.com>
9849 * method-to-ir.c (mono_method_to_ir2): Emit the generic class inits using
9850 mono_emit_abs_call ().
9852 * patch-info.h: Add GENERIC_CLASS_INIT.
9854 * mini.c (mono_resolve_patch_target): Handle GENERIC_CLASS_INIT.
9856 * mini-amd64.c (emit_call_body): Treat abs calls which have a patch info
9857 as their target as a near call.
9859 * mini.c (mono_codegen): Handle patches stored in cfg->abs_patches in the
9861 (mono_resolve_patch_target): Add support for MONO_PATCH_INFO_RGCTX_FETCH.
9863 * method-to-ir.c (mono_emit_abs_call): New helper function which emits a
9864 call to a runtime function described by a patch.
9866 * method-to-ir.c: Emit rgctx entry fetches and class init trampolines using
9867 mono_emit_abs_call, this has the advantage that the ABS handling code in
9868 mono_codegen () can handle them both, and can handle other stuff in the
9869 future without additional code.
9871 * mini.h (struct MonoJumpInfoRgctxEntry): New structure describing an rgctx
9873 (MonoCompile): Add 'abs_patches' hashtable, which contains patches describing
9876 * mini.h: Add missing bblock related prototypes.
9878 * mini.h (MonoCompile): Remove unused reverse_inst_list and
9879 reverse_inst_list_len fields.
9881 * mini.c: Refactor this file a bit by moving branch optimizations to
9884 * method-to-ir.c: Merge generic sharing changes missed earlier.
9886 * aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST.
9888 * aot-runtime.c (decode_patch_info): Refactor the code dealing with the
9889 shared patches. Process METHODCONST as a shared patch.
9891 * liveness.c (mono_analyze_liveness): Disable the liveness2 code for now
9892 as it crashes on the 2.0 mscorlib.
9894 * aot-compiler.c (is_shared_got_patch): Revert the last change as it seems
9897 * aot-compiler.c: Use is_plt_patch () in a few additional places.
9898 (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST, which is generated
9901 * aot-compiler.c: Reorganize the got handling code to be a bit more
9904 2008-08-17 Zoltan Varga <vargaz@gmail.com>
9906 * aot-compiler.c: Make the patch_to_plt_offset hash table use
9907 mono_patch_info_equals/hash, and use it to massively simplify
9910 * mini.c (mono_patch_info_hash): Simplify this and add support for
9913 * patch-info.h: Rename RGCTX_LAZY_FETCH_TRAMPOLINE to just RGCTX_FETCH.
9915 * mini.c aot-compiler.c aot-runtime.c: Revert the LAZY_FETCH_TRAMPOLINE
9916 handling code, since an offset is not enough to identify a trampoline.
9918 * method-to-ir.c: Remove some g_assert (!cfg->compile_aot) lines.
9920 2008-08-17 Mark Probst <mark.probst@gmail.com>
9922 * mini.c (mono_op_imm_to_op): Add case for OP_IMUL_IMM.
9924 * method-to-ir.c (mono_method_to_ir2): Decompose OP_CKFINITE.
9926 * mini-ops.h: Argument and result types for OVF_CARRY ops.
9928 * decompose.c: PPC decompositions for various ops.
9930 * cpu-ppc.md, inssel-ppc.brg, mini-ppc.c: PPC changes for Linear IL.
9932 2008-08-17 Zoltan Varga <vargaz@gmail.com>
9934 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Make this
9935 call the generic trampoline code using a call, instead of a jump, to
9936 remove some special casing from the generic trampoline code.
9938 * mini.c (mono_resolve_patch_target): Handle LAZY_FETCH_TRAMPOLINE.
9939 (mono_codegen): Ditto.
9941 * aot-compiler.c aot-runtime.c: Ditto.
9943 * patch-info.h: Add MONO_PATCH_INFO_RGCTX_LAZY_FETCH_TRAMPOLINE.
9945 * mini-trampolines.c (mono_find_rgctx_lazy_fetch_trampoline_by_addr): New
9946 helper function to find the offset corresponding to a lazy fetch trampoline.
9948 * mini.h (MonoCompile): Add 'orig_method' field to hold the original method
9949 when doing generic sharing.
9951 * aot-compiler.c: Use cfg->orig_method instead of cfg->method in a lot of
9954 * mini.c (mono_create_rgctx_lazy_fetch_trampoline): Move this to
9955 mini-trampolines.c to be with the other trampoline creation functions.
9957 * method-to-ir.c (mono_emit_method_call): Remove the 'signature' argument
9958 as it is equal to method->signature in most cases, add a
9959 mono_emit_method_call_full variant which takes a signature and an imt
9962 2008-08-16 Zoltan Varga <vargaz@gmail.com>
9964 * jit-icalls.c (mono_helper_compile_generic_method): Don't pass the context
9965 to this function, since it could be computed easily from the method
9967 (mono_helper_compile_generic_method_wo_context): Removed, not needed any
9970 * method-to-ir.c mini.c: Remove references to
9971 compile_generic_method_wo_context.
9973 * method-to-ir.c (mono_method_to_ir2): Enable AOT for virtual
9974 generic method calls.
9976 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_1 for 1
9977 dimensional non-szarrays.
9979 * mini.c (mini_init): Register mono_array_new_1.
9981 * jit-icalls.c (mono_array_new_1): New jit icall.
9983 * mini-trampolines.c (mono_magic_trampoline): For jumps, patch the GOT entries
9984 pointing to the method.
9986 * aot-runtime.c (mono_aot_get_method_from_token): Register GOT slots holding
9987 method addresses belonging to METHOD_JUMP patches in the
9988 jump_target_got_slot_hash.
9989 (mono_aot_load_method): Ditto.
9991 * aot-compiler.c (compile_method): Allow AOT compilation of methods with
9992 METHOD_JUMP patches.
9994 * mini.c (mini_create_jit_domain_info): New helper function which
9995 initializes/frees domain->runtime_info.
9996 (mini_free_jit_domain_info): Ditto.
9997 (mini_init): Install the domain hook functions with the runtime.
9999 * mini.h (MonoJitDomainInfo): New structure which stores the domain specific
10000 information maintained by the JIT.
10002 * mini.c (mono_resolve_patch_target): For PATCH_INFO_METHOD_JUMP, move the
10003 insertion into jump_table_hash into mono_codegen (), also implement proper
10006 * method-to-ir.c (mono_method_to_ir2): Don't disable AOT for CEE_JMP and
10007 tail calls, it is already done by the aot code.
10009 * method-to-ir.c (mono_method_to_ir2): Handle CEE_JMP using the tail call
10010 mechanism on amd64.
10012 * iltests.il.in: Make the jmp test a bit more complex.
10014 * aot-compiler.c (encode_method_ref): Handle references to normal methods of
10015 generic instances which doesn't have a token.
10017 * aot-runtime.c (decode_method_ref): Ditto.
10019 * method-to-ir.c (handle_unbox_nullable): Don't disable AOT, the aot code
10020 can handle this case now.
10021 (handle_box): Ditto.
10023 2008-08-15 Geoff Norton <gnorton@novell.com>
10025 * mini-x86.c: Fix alignment on Apple x86, and re-disable the alignment
10028 2008-08-15 Zoltan Varga <vargaz@gmail.com>
10030 * method-to-ir.c (mono_method_to_ir2): Allow AOT compilation of methods
10031 calling generic methods.
10033 * aot-compiler.c (encode_patch): Handle MONO_PATCH_INFO_METHOD_RGCTX.
10035 * aot-runtime.c (decode_patch_info): Ditto.
10037 * mini.c (mono_resolve_patch_target): Ditto.
10039 * patch-info.h: Add METHOD_RGCTX.
10041 * mini-amd64.c (mono_arch_output_basic_block): Optimize LOCALLOC_IMM.
10043 2008-08-14 Zoltan Varga <vargaz@gmail.com>
10045 * mini-amd64.c (mono_arch_emit_call): Nullify call->vret_var if returning
10046 arguments in registers.
10048 * decompose.c (mono_decompose_vtype_opts): Create a var for the vreg in
10049 OP_VCALL too, don't depend on OP_OUTARG_VTRETADDR doing it.
10051 * mini.c (mini_method_compile): Abort aot compilation for generic
10052 methods if generic sharing is disabled.
10054 * mini.c (mono_method_to_ir): Disable AOT for virtual calls requiring
10057 * method-to-ir.c (mono_method_to_ir2): Disable AOT for virtual calls
10058 requiring an mrgctx.
10060 * decompose.c (mono_decompose_vtype_opts): Emit the correct sized
10061 store instructions when converting a vcall to a normal call.
10063 * mini.c (sigprof_signal_handler): Call mono_find_jit_info instead of
10064 mono_arch_find_jit_info.
10066 2008-08-13 Zoltan Varga <vargaz@gmail.com>
10068 * method-to-ir.c (check_inline_called_method_name_limit): Optimize this to
10069 avoid calling mono_method_full_name () for every method even if the
10070 env var is not set.
10071 (check_inline_caller_method_name_limit): Ditto.
10073 2008-08-12 Zoltan Varga <vargaz@gmail.com>
10075 * driver.c (main_thread_handler): Allow AOT compilation of multiple
10076 assemblies in one run.
10078 * aot-compiler.c (mono_compile_assembly): Only print out a count of
10079 skipped methods if it is not 0.
10081 * Makefile.am (aotcheck): AOT compile all test assemblies in one run.
10083 2008-08-12 Bill Holmes <billholmes54@gmail.com>
10085 * mini.c (mono_codegen): Changing a preprocessor check from WIN64 to
10086 MONO_ARCH_HAVE_UNWIND_TABLE.
10088 Contributed under MIT/X11 license.
10090 2008-08-12 Bill Holmes <billholmes54@gmail.com>
10092 * mini-amd64.c (mono_arch_cpu_optimizazions): Remove peephole and branch
10093 from default optimizaton list on Winx64.
10095 * mini-amd64.c (emit_tls_get): Added Winx64 specific implementation for GetTLS.
10097 * mini-amd64.c (mono_arch_emit_prolog): Adding an offset on Winx64 to get
10098 the LMF from the MonoJitTlsData structure.
10100 * mini-amd64.c (mono_arch_setup_jit_tls_data): Added Winx64 implementation.
10102 Contributed under MIT/X11 license.
10104 2008-08-12 Zoltan Varga <vargaz@gmail.com>
10106 * mini.c (sigsegv_signal_handler): Fix the build.
10108 * mini-amd64.c (emit_call_body): Use image->aot_module instead of
10109 assembly->aot_module.
10111 * aot-runtime.c: Use image->aot_module instead of searching in the aot_modules
10112 hash table. This simplifies and speeds up a lot of code, and fixes support
10115 * mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes if the thread is not registered
10118 * mini-exceptions.c: Ditto.
10120 * exceptions-*c.c (mono_arch_find_jit_info): Remove unused 'trace' and
10121 'native_offset' argument, since these are computed in the
10122 mono_find_jit_info () function.
10124 * mini-exceptions.c (mono_find_jit_info): Make this non-static, as it
10125 is used by exceptions-ppc.c.
10127 * exceptions-ppc.c: Call mono_find_jit_info () instead of
10128 mono_arch_find_jit_info ().
10130 * mini-ppc.h exceptions-ppc.c mini-mips.h mini-mips.c exceptions-mips.c
10131 mini-exceptions.c: Get rid of the CUSTOM_STACK_WALK stuff, use the
10132 generic code in mini-exceptions.c.
10134 2008-08-11 Zoltan Varga <vargaz@gmail.com>
10136 * mini-ppc.c (mono_arch_flush_register_windows): Add this for ppc.
10138 * aot-runtime.c (mono_aot_get_plt_info_offset): Fix a warning.
10140 * aot-runtime.c (mono_aot_get_method): Avoid doing all the loading inside
10141 the aot lock, to avoid deadlocks when mono_aot_get_class_from_name () is
10142 called while holding the loader lock. Fixes #415608.
10143 (mono_aot_get_method_from_token_inner): Ditto.
10145 2008-08-09 Zoltan Varga <vargaz@gmail.com>
10147 * exceptions-ppc.c (mono_jit_walk_stack): Use MONO_INIT_CONTEXT_FROM_CURRENT
10148 to reduce differences between this and the generic implementation in
10150 (ves_icall_get_frame_info): Ditto.
10152 * mini-ppc.h (MONO_INIT_CONTEXT_FROM_CURRENT): Define this for ppc too.
10154 * mini-exceptions.c (mono_exceptions_init): Remove an #ifdef which is no
10157 * exceptions-ppc.c (arch_get_call_filter): Rename this to
10158 mono_arch_get_call_filter () and make it non-static, for consistency with the
10159 other architectures.
10161 2008-08-09 Rodrigo Kumpera <rkumpera@novell.com>
10164 * local-propagation.c:
10165 * mini-x86.c: Correct the name of arch defines.
10167 2008-08-09 Zoltan Varga <vargaz@gmail.com>
10169 * method-to-ir.c (mono_op_to_op_imm_noemul): Correct name of
10170 NO_EMULATE_LONG_SHIFT_OPS define.
10172 2008-08-08 Zoltan Varga <vargaz@gmail.com>
10174 * method-to-ir.c (mono_method_to_ir2): Remove some code from CEE_MONO_LDPTR
10175 now that aot-ed icall wrappers use CEE_MONO_ICALL_ADDR.
10177 * aot-compiler.c aot-runtime.c: Add support for static aot compilation.
10178 MACH fixes. Merged from the 2.0 branch.
10180 * method-to-ir.c (mono_method_to_ir2): Handle CEE_MONO_ICALL_ADDR.
10182 * mini.c (mono_resolve_patch_target): Error out if an icall is not found.
10183 (mono_method_to_ir): Handle CEE_MONO_ICALL_ADDR.
10185 * exceptions-arm.c (mono_arch_get_throw_exception_generic): Add AOT support.
10187 * method-to-ir.c mini.c driver.c aot-compiler.c: Update after
10188 mono_marshal_get_native_wrapper () signature changes.
10190 2008-08-07 Rodrigo Kumpera <rkumpera@novell.com>
10192 * jit-icalls.c (mono_fconv_ovf_u8): Work around soft-float double to long
10193 conversion bug under arm.
10195 2008-08-06 Rodrigo Kumpera <rkumpera@novell.com>
10197 * cpu-arm.md: Increase long_conv_to_ovf_i4_2 max length to 36.
10199 * mini-arm.c (mono_arch_output_basic_block): Implement long to int conversion
10200 with overflow checking.
10202 2008-08-05 Marek Habersack <mhabersack@novell.com>
10204 * Makefile.am (GENMDESC_PRG): when cross-compiling use full path
10205 to the genmdesc.pl file
10207 2008-08-05 Zoltan Varga <vargaz@gmail.com>
10209 * ir-emit.h (EMIT_NEW_ARGSTORE): Fix the usage of param_types and
10210 arg_array in the soft-float versions of the LOAD/STORE macros.
10212 * method-to-ir.c (mono_method_to_ir2): Fix a warning in the arm switch
10215 * ir-emit.h (NEW_VARLOADA): Handle SOFT_FLOAT correctly.
10217 2008-08-02 Zoltan Varga <vargaz@gmail.com>
10219 * mini-ia64.c (add_valuetype): Only reserve half parameter slot for each member of
10220 a float HFA. Fixes #413621.
10222 2008-08-02 Gert Driesen <drieseng@users.sourceforge.net>
10224 * mini-x86.c (mono_arg_get_argument_info): Rename last occurrence of
10225 frame_size to args_size. Fixes build.
10227 2008-08-02 Zoltan Varga <vargaz@gmail.com>
10229 * mini-x86.c (mono_arch_get_argument_info): Rename frame_size to args_size,
10230 and don't align it to MONO_ARCH_FRAME_ALIGNMENT.
10232 * mini-x86.h: Change MONO_ARCH_FRAME_ALIGNMENT to 8 so doubles stored on
10233 the stack are not unaligned. Fixes #413247.
10235 Fri Aug 1 18:46:42 CEST 2008 Paolo Molaro <lupus@ximian.com>
10237 * mini.c: update jitted methods performance counters.
10239 Fri Aug 1 16:30:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
10241 * mini-exceptions.c: increase the exceptions thrown performance
10242 counter in mono_handle_exception ().
10244 2008-07-29 Zoltan Varga <vargaz@gmail.com>
10246 * aot-runtime.c: Use MonoImage's as keys in the aot_modules hash so the aot
10247 can work with netmodules.
10249 2008-07-28 Geoff Norton <gnorton@novell.com>
10251 * mini-x86.h: Correct the frame alignment on OSX. Fixes the jit
10254 2008-07-28 Zoltan Varga <vargaz@gmail.com>
10256 * mini-x86.c (mono_arch_emit_call): Emi the osx stack alignment at the
10259 2008-07-28 Bill Holmes <billholmes54@gmail.com>
10261 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
10262 The float param registers and other param registers must be the
10263 same index on Windows x64.
10265 * mini-amd64.c (mono_arch_allocate_vars) : Implementing the
10266 ArgValuetypeAddrInIReg argument case. Setting the argument
10267 op to OP_VTARG_ADDR (OP_REGOFFSET)).
10269 * mini-amd64.c (mono_arch_call_opcode) : Winx64 fix. Use the size
10270 variable computed above as the copy length for arguments of storage
10271 type ArgValuetypeAddrInIReg.
10273 * mini-amd64.c (mono_arch_emit_call) : Implementing the
10274 ArgValuetypeAddrInIReg argument case. This case will rely on
10275 mono_arch_emit_outarg_vt to emit the correct code later in the process.
10277 * mini-amd64.c (mono_arch_emit_call) : On Winx64 there always needs to be
10278 a 32 byte stack allocation for all calls. We will omit the adjustment for
10279 jump and tail call instructoins as they do not follow the typical call behavior.
10281 * mini-amd64.c (mono_arch_emit_outarg_vt) : Implementing the case for
10282 ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
10283 local variable and pass the local variable by reference to the called method.
10285 * mini-amd64.c (mono_arch_emit_prolog, emit_load_volatile_arguments) :
10286 Implementing the ArgValuetypeAddrInIReg argument case. When the address
10287 of a struct is passed in a register it must be saved with the other
10288 volatile argument on the stack.
10290 * mini-amd64.c (mono_arch_emit_prolog) : Winx64 fix. When omitting the
10291 frame pointer the stack adjustment value must be saved to the unwind
10294 Contributed under MIT/X11 license.
10296 2008-07-28 Zoltan Varga <vargaz@gmail.com>
10298 * inssel-x86.brg (stmt): Add missing OP_X86_OUTARG_ALIGN_STACK rule
10299 which got lost in the merge.
10301 2008-07-27 Zoltan Varga <vargaz@gmail.com>
10303 * method-to-ir.c: Make the helper_sig variables extern to fix the ppc
10306 * mini-amd64.c (emit_call_body): Add a no_patch case missed earlier.
10308 * mini-amd64.c (emit_call_body): Avoid aligning the call instruction on
10309 icalls, since they won't be patched.
10311 * exceptions-amd64.c (mono_arch_get_restore_context_full): Use a slightly
10312 different code sequence when running under valgrind to prevent some valgrind
10315 * iltests.il.in: Add new regression test.
10317 * method-to-ir.c (mono_method_to_ir2): Fix handling of inlined methods which
10320 * method-to-ir.c (mono_method_to_ir2): Use get_vreg_to_inst () instead of
10321 accessing cfg->vreg_to_inst directly to prevent a crash in LDFLD.
10323 * iltests.il.in: Add new test.
10325 * aot-compiler.c: Fix some warnings.
10327 * decompose.c (mono_decompose_long_opts): Implement OP_ICONV_TO_OVF_I8_UN.
10330 2008-07-27 Zoltan Varga <vargaz@gmail.com>
10332 * driver.c (mono_main): Fix the --gc=none build. Fixes #412482.
10333 (mini_usage_jitdeveloper): Add a missing --wapi option.
10335 2008-07-25 Zoltan Varga <vargaz@gmail.com>
10337 * mini-codegen.c: Simplify the is_fp macros.
10338 (free_up_ireg): Remove, use free_up_reg instead.
10339 (free_up_reg): Fix the fp case.
10341 2008-07-26 Zoltan Varga <vargaz@gmail.com>
10343 * cpu-arm.md (loadr8_membase): Increase the length of this as this is not
10346 * exceptions-x86.c: Merge some changes which seemed to have got lost
10347 in the linear-ir merge.
10349 * liveness.c: Disable the liveness2 pass on 32 bit platforms.
10351 * method-to-ir.c (mono_handle_global_vregs): Make the component vregs of a
10352 long vreg volatile even if the variable was already created.
10354 * liveness.c (update_liveness2): Avoid eliminating dead definitions of
10355 volatile variables.
10357 2008-07-26 Zoltan Varga <vargaz@gmail.com>
10359 * cpu-x86.md (fcall_membase): Increase the size of the fcall opcodes.
10361 * mini.c (mono_jit_compile_method_inner): Add support for
10362 MONO_EXCEPTION_BAD_IMAGE.
10364 * method-to-ir.c (mono_method_to_ir2): Avoid a crash if
10365 mini_method_get_context () returns NULL. Fixes #356531.
10367 * mini.c (mono_method_to_ir): Ditto.
10369 * method-to-ir.c (mono_method_to_ir2): Create a variable if needed when
10370 accessing a field of a valuetype in LDFLD/STFLD. Fixes #412399.
10372 2008-07-25 Zoltan Varga <vargaz@gmail.com>
10374 * method-to-ir.c (mono_method_to_ir2): Initialize an uninitialized variable
10375 in the LDFTN implementation.
10377 2008-07-25 Mark Probst <mark.probst@gmail.com>
10379 * mini-trampolines.c (mono_magic_trampoline): When sharing generic
10380 code, patch calls to icalls, too, even if they're not in the
10381 shared generic code hash. Fixes #411962.
10383 2008-07-25 Zoltan Varga <vargaz@gmail.com>
10385 * cpu-x86.md: Increase the length of the fcall opcodes.
10387 * mini-x86.c (emit_move_return_value): Avoid some precision issues for
10388 calls returning floats.
10390 * method-to-ir.c (mono_method_to_ir2): Remove the generic sharing restrictions
10393 * method-to-ir.c (mono_method_to_ir2): Merge some LDFTN gsharing changes
10396 * method-to-ir.c (handle_delegate_ctor): Avoid putting dynamic methods
10397 into the domain->method_code_hash.
10399 * aot-compiler.c: Fix win32 build.
10401 * method-to-ir.c (EMIT_GET_RGCTX): Call EMIT_NEW_LDARG in emit_get_rgctx ().
10403 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_specific in the
10404 gshared NEWARR implementation.
10406 * cpu-sparc.md: Remove duplicate localloc_imm opcode.
10408 * ir-emit.h (NEW_ARGLOAD): Use cfg->args and cfg->arg_types so this macro
10409 can be used outside of method_to_ir.
10411 * mini.h (MonoCompile): Add arg_types field.
10413 * method-to-ir.c (inline_method): Save/Restore cfg->args and cfg->arg_types.
10415 * method-to-ir.c (mono_method_to_ir2): Set cfg->args and cfg->arg_types to
10416 the values of the local arg_array and param_types array.
10418 2008-07-24 Zoltan Varga <vargaz@gmail.com>
10420 * method-to-ir.c (mono_method_to_ir2): Allocate a GOT var for NEWOBJ, since
10421 got accesses might only get generated later when NEWOBJ is decomposed.
10423 * method-to-ir.c (handle_delegate_ctor): Add an optimization to avoid
10424 looking up the native code of the target method when a delegate is called
10425 for the first time.
10427 * mini-trampolines.c (mono_delegate_trampoline): Add the other half of the
10430 * debug-debugger.c (MONO_DEBUGGER__debugger_info): Fix a warning.
10432 * aot-runtime.c aot-compiler.c: Add a new option 'no-dlsym' which makes
10433 AOT work on platforms without a working dlsym implementation.
10435 * mini.h: Bump AOT image format version.
10437 2008-07-24 Mark Probst <mark.probst@gmail.com>
10439 * mini-exceptions.c: Free a MonoType with
10440 mono_metadata_free_type() instead of g_free().
10442 * aot-runtime.c: Free a MonoType.
10444 2008-07-24 Zoltan Varga <vargaz@gmail.com>
10446 * method-to-ir.c (mono_method_to_ir2): Add a comment for the box+brtrue
10449 * mini-codegen.c (mono_local_regalloc): Remove the remaining items from the
10452 2008-07-23 Massimiliano Mantione <massi@ximian.com>
10453 * mini.c (sigprof_signal_handler): call the new "runtime initialized"
10456 2008-07-23 Zoltan Varga <vargaz@gmail.com>
10458 * method-to-ir.c (mono_method_to_ir2): Set the stack type properly for
10459 NEWOBJ calls on valuetypes.
10461 * iltests.il.in: Add new test.
10463 * mini-x86.c (mono_arch_emit_call): Use mini_type_stack_size ().
10465 2008-07-22 Zoltan Varga <vargaz@gmail.com>
10467 * mini-exceptions.c: Fix some warnings. Remove one ia64 special case as it
10468 is no longer needed.
10470 * mini-ia64.c (mono_arch_emit_prolog): In native-to-managed wrappers, widen
10471 non register sized integer arguments.
10472 (mono_arch_call_opcode): Add support for ArgInFloatRegR4.
10473 (mono_arch_emit_outarg_vt): Pass a more reasonable alignment to
10476 * method-to-ir.c (mono_method_to_ir2): Handle the ret_var_is_local case in
10479 * method-to-ir.c (ADD_WIDEN_OP): New macro to insert a widening op when
10480 two a binop with different sized arguments is emitted.
10482 * mini.c (mono_bblock_insert_after_ins): Properly link up with the next
10483 instruction in the ins==NULL case.
10485 2008-07-23 Zoltan Varga <vargaz@gmail.com>
10487 * mini-ops.h: Add OP_X86_OUTARG_ALIGN_STACK.
10489 * mini-x86.c: Fix osx build.
10491 * mini-amd64.c (mono_arch_output_basic_block): Handle varargs in the CALL_REG
10494 * method-to-ir.c (mono_spill_global_vars): Avoid fusing a load+store into the
10495 instruction for non int sized variables.
10497 * method-to-ir.c (mono_method_to_ir2): Fix an assert in the LDFLD
10500 2008-07-23 Robert Jordan <robertj@gmx.net>
10502 * method-to-ir.c: Fix MSVC build.
10504 2008-07-22 Zoltan Varga <vargaz@gmail.com>
10506 * method-to-ir.c (mono_method_to_ir2): When calling native code which returns
10507 a non int sized type, widen it to an int since newer versions of gcc seem to
10508 generate code which needs this.
10510 * ssa2.c abcremoval2.c: Fix warnings.
10512 * *: Merge the Linear IR branch.
10514 The original branch is at trunk/branches/vargaz/mini-linear-il, and
10515 the ChangeLog file there describes all the changes done over the years.
10516 Further documentation can be found at www.mono-project.com/Linear_IL.
10518 2008-07-21 Bill Holmes <billholmes54@gmail.com>
10520 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
10521 The float param registers and other param registers must be the
10522 same index on Windows x64.
10524 Contributed under MIT/X11 license.
10526 2008-07-21 Rodrigo Kumpera <rkumpera@novell.com>
10528 * mini.c: Make the previous fix GC safe.
10530 2008-07-21 Raja R Harinath <harinath@hurrynot.org>
10532 * Makefile.am (version.h): Allow a trailing '/' in the repository URL.
10534 2008-07-21 Bill Holmes <billholmes54@gmail.com>
10536 * mini-amd64.c (get_call_info): Correcting the case for MONO_TYPE_TYPEDBYREF
10537 on Winx64. This type will not be passed on the stack (ArgOnStack), but
10538 ArgValuetypeAddrInIReg instead.
10540 Contributed under MIT/X11 license.
10542 2008-07-21 Zoltan Varga <vargaz@gmail.com>
10544 * mini-codegen.c (get_register_spilling): Fix a warning.
10546 2008-07-17 Rodrigo Kumpera <rkumpera@novell.com>
10548 * mini.c: Use mono_runtime_class_init_full to avoid leaking memory
10549 for types which the initialization fails. Raises the provided exception
10550 at the right stop after cleanup.
10552 2008-07-16 Zoltan Varga <vargaz@gmail.com>
10554 * aot-compiler.c: Free most of the memory allocated during compilation.
10556 * mini.c (mini_parse_debug_options): Fix a leak.
10558 * mini.c (mini_method_compile): Don't add the method to the jit info tables
10559 during aot compilation.
10561 2008-07-14 Zoltan Varga <vargaz@gmail.com>
10563 * mini.c (mono_method_to_ir): Disable aot for code using CCASTCLASS on x86 as
10564 it has too much register pressure.
10566 2008-07-13 Zoltan Varga <vargaz@gmail.com>
10568 * inssel.brg (CEE_CASTCLASS): Remove some dead code.
10570 2008-07-12 Zoltan Varga <vargaz@gmail.com>
10572 * mini-x86.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
10575 * mini-amd64.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
10576 on amd64 similar to the way it is done on arm.
10578 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
10580 * aot-runtime.c (load_aot_module): Rename 'info' to 'amodule' for
10581 consistency, normalize error messages, avoid loading aot-only modules in
10584 * driver.c (mono_main): Rename --aot-only command line option to --full-aot
10587 * aot-compiler.c aot-runtime.c tramp-arm.c: Implement aot-only support.
10589 2008-07-11 Martin Baulig <martin@ximian.com>
10592 (MonoDebuggerInfo): Add `interruption_request'.
10594 2008-07-12 Zoltan Varga <vargaz@gmail.com>
10596 * aot-compiler.c (emit_plt): Remove some dead code.
10598 * exceptions-arm.c (mono_arch_get_call_filter_full): Initialize ji.
10600 * aot-runtime.c (mono_aot_get_plt_info_offset): New helper function to
10601 return the plt info offset belonging to a given plt entry.
10603 * mini-trampolines.c (mono_aot_plt_trampoline): Use
10604 mono_aot_get_plt_info_offset.
10606 * aot-runtime.c aot-compiler.c tramp-arm.c: Change the arm plt code to be
10607 similar to the amd64 code by makeing jumps through a separate jump table
10608 instead of embedding the jump addresses into the code.
10610 2008-07-11 Zoltan Varga <vargaz@gmail.com>
10612 * mini.c (mono_method_to_ir): Disable aot for calling ldtoken in a generic
10615 2008-07-10 Martin Baulig <martin@ximian.com>
10617 * mini.c (mini_method_compile): Disable generics sharing when
10618 running in the debugger.
10620 2008-07-10 Zoltan Varga <vargaz@gmail.com>
10622 * mini.c (mono_method_to_ir): Create the got var in CEE_REFANYVAL.
10624 * inssel.brg (CEE_CASTCLASS): Avoid reusing temporary registers to prevent
10625 the local register allocator from running out of registers on x86 when
10628 2008-07-10 Bill Holmes <billholmes54@gmail.com>
10630 * inssel-long.brg For OP_LCONV_TO_OVF_I4 an int cast is needed when
10631 expressing IntMin for the VS Compiler. See Compiler Warning (level 2)
10634 Contributed under MIT/X11 license.
10636 2008-07-10 Zoltan Varga <vargaz@gmail.com>
10638 * aot-compiler.c: Get rid of whitespace in the generated assembly file to
10639 speed up the assembler.
10641 2008-07-09 Zoltan Varga <vargaz@gmail.com>
10643 * mini-arm.h tramp-arm.c exceptions-arm.c aot-compiler.c: Beginnings of aot-only
10646 * mini.c: Move the soft float handling macros a bit earlier, add
10647 NEW_TEMPSTORE_SOFT_FLOAT macro, fix warnings, add soft-float support in one
10650 * mini.h: Add prototype for mono_arch_fixup_jinfo.
10652 * mini.c (mini_init): In aot-only mode, set the root domain code manager to
10653 read-only to help catch code allocation requests.
10655 * mini.c inssel.brg aot-compiler.c: Make the use of IMT runtime configurable,
10656 and turn it off when using --aot-only or when compiling with --aot=full.
10658 * mini.c (mono_resolve_patch_target): In aot-only mode, allocate the
10659 jump table for switches from the normal domain mempool, not the code
10662 * mini-trampolines.c (get_unbox_trampoline): New function to return an
10663 unbox trampoline which handles aot-only mode too.
10665 * aot-runtime.c (mono_aot_get_unbox_trampoline): New function to lookup
10666 an AOTed unbox trampoline.
10668 * aot-compiler.c (emit_trampolines): Emit unbox trampolines.
10670 2008-07-09 Bill Holmes <billholmes54@gmail.com>
10672 * wapihandles.c: Fixing MSVC builds. Include statement changed from <> to
10675 Contributed under MIT/X11 license.
10677 2008-07-09 Bill Holmes <billholmes54@gmail.com>
10679 * mini.c (mono_codegen): Allocate space at the end of the code block and store
10680 the unwind information for the method at the end of the allocated block.
10682 * mini-amd64.h: Added declarations for the unwind routines and adding field to
10683 MonoCompileArch to hold the unwind info for SEH on Winx64
10685 * mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
10686 frame pointer info for the method being compiled.
10688 * exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
10689 the call to mono_exception_from_token.
10691 * exceptions-amd64.c: Added mono_arch_unwindinfo* implementations. This code is responsible
10692 storing the method prolog information in a format that the Winx64 SEH can understand. This
10693 information is stored a the end of the method block because it is all 32-bit offset based.
10695 Contributed under MIT/X11 license.
10697 2008-07-09 Zoltan Varga <vargaz@gmail.com>
10699 * mini.h: Remove duplicate definitions of the mini_wapi_ functions.
10701 * wapihandles.c: Fix warnings.
10703 * aot-runtime.c (load_aot_module): Add a missing error message in aot-only
10706 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
10707 mono_jit_compile_method in aot-only mode since that calls the type
10710 * mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
10711 get_delegate_invoke_impl in aot-only mode.
10713 * mini.c (mono_global_codeman_reserve): Reenable the aot-only check.
10715 2008-07-08 Zoltan Varga <vargaz@gmail.com>
10717 * trace.c (mono_trace_enter_method): Fix printing of Type instances.
10719 * aot-compiler.c (compile_method): Disable the check for GSHARED since it
10722 * inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).
10724 * tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
10725 init trampoline from the AOT file as well.
10727 * mini-amd64.c (mono_arch_register_lowlevel_calls): Register
10728 mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
10731 * mini.c (mini_init): Move the call to mono_exceptions_init () after
10734 * exceptions-amd64.c: Add _full variants for the remaining exception code
10735 creation functions as well, allow emission of relocatable code, remove
10736 caching since that is now done by the caller.
10738 * mini-exceptions.c: Add _full variants for the remaining exception code
10739 creation functions as well, add aot-only support.
10741 * aot-compiler.c (compile_method): Allow calls to methods of constructed types
10742 if we can determine a proper token for them.
10743 (add_wrappers): Add a few more wrappers.
10744 (emit_method_code): Remove some dead code.
10745 (emit_trampolines): Emit exception code too.
10747 * mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.
10749 * jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
10750 mono_array_new_va which avoids varargs.
10752 * mini-exceptions.c (mono_exceptions_init): Fix the ppc build.
10754 * mini-trampolines.c: Call mono_create_specific_trampoline () instead of
10755 mono_arch_create_specific_trampoline () in all places.
10757 * aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
10758 a bit so it can be used for other things as well.
10760 * mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
10763 * exceptions-amd64.c: Rename the caching from the exception code creation
10764 functions, it is done by the caller instead.
10766 * exceptions-amd64.c: Change the signature of the exception code creation
10767 functions to allow the creation of relocatable code later.
10769 * mini-exceptions.c: Add a set of functions to query the various
10770 runtime-generated exception functions.
10772 * mini.c mini-exceptions.c: Use the newly added functions instead of the
10773 mono_arch_.. () functions.
10775 2008-07-07 Zoltan Varga <vargaz@gmail.com>
10777 * mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.
10779 * aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.
10781 * mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
10782 (mini_get_vtable_trampoline): Ditto.
10784 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
10785 code in the AOT case by returning the code size and a list of relocations to
10788 * mini-trampolines.c (mono_create_specific_trampoline): New helper function.
10790 2008-07-07 Bill Holmes <billholmes54@gmail.com>
10792 * mini-amd64.c: On Winx64 the calling convention always requires the caller to
10795 Contributed under MIT/X11 license.
10797 2008-07-07 Zoltan Varga <vargaz@gmail.com>
10799 * aot-compiler.c (emit_exception_debug_info): Serialize the debug info first
10800 so the buffer size can be computed correctly. Fixes #404735.
10802 * debug-mini.c (mono_debug_serialize_debug_info): Lookup the debug info
10803 normally as cfg->debug_info is already freed.
10805 2008-07-06 Zoltan Varga <vargaz@gmail.com>
10807 * mini-amd64.c: For calls returning vtypes in registers, don't store
10808 the return address on the stack, instead allocate a separate local for
10811 2008-07-05 Mark Probst <mark.probst@gmail.com>
10813 * mini-trampolines.c, mini.h: Add an argument to
10814 mono_create_jit_trampoline_in_domain() for turning off the adding
10815 of the sync wrapper.
10817 * mini.c: Use the JIT trampoline without sync instead of
10818 ldftn_nosync in static RGCTX invoke wrappers so that the call can
10821 2008-07-04 Mark Probst <mark.probst@gmail.com>
10823 * driver.c: Turn on GSHARED optimization by default.
10825 2008-07-04 Zoltan Varga <vargaz@gmail.com>
10827 * mini-trampolines.c mini.c mini.h tramp-<ARCH>.c: Rename MONO_TRAMPOLINE_GENERIC
10828 to MONO_TRAMPOLINE_JIT since it better reflects what it does.
10830 * mini-trampolines.c (mono_get_aot_trampoline_code): New internal function to
10831 create a variant of the generic trampoline code callable from AOTed trampolines.
10833 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Add support for generic
10834 trampoline code callable from AOTed trampolines.
10836 * aot-compiler.c aot-runtime.c: Add support for AOTing trampolines.
10838 2008-07-04 Mark Probst <mark.probst@gmail.com>
10840 * inssel.brg, mini-ops.h: New opcode for doing CHECK_THIS in a
10841 pass-through manner.
10843 * mini.c: Generic method sharing. Pass MRGCTX to generic methods
10844 and don't fail sharing for them anymore.
10846 * mini-exceptions.c: Handle exceptions in shared generic methods.
10848 * generic-sharing.c: When checking the context of a generic
10849 method, also check its class's context. Don't treat wrappers as
10852 * mini-trampolines.c: Some code factored out to
10853 metadata/generic-sharing.c. Handle the MRGCTX case.
10855 * jit-icalls.c, jit-icalls.h: ldvirtfn icall for generic sharing -
10856 we must deal with the method being of another instantiation of the
10857 class. Add static rgctx invoke wrappers to generic methods.
10859 2008-07-04 Mark Probst <mark.probst@gmail.com>
10861 * mini.c: Provide all jit infos of generic shared methods with a
10864 * mini-exceptions.c: Handle the new situation that a generic info
10865 might be available, but not info about the this/vtable/mrgctx
10868 2008-07-03 Mark Probst <mark.probst@gmail.com>
10870 * mini.c: Don't accept ldftn and ldvirtftn with uninstantiated
10873 2008-07-03 Zoltan Varga <vargaz@gmail.com>
10875 * dominators.c (check_dominance_frontier): Fix a warning.
10877 * mini.h: Add some missing prototypes.
10879 * ssa.c local-propagation.c debug-debuger.c: Fix warnings.
10881 * driver.c (mono_jit_init_version): Correct the comments since the first
10882 argument should be the name of the root domain, not a filename.
10884 * aot-runtime.c (make_writable): Error out if this is called while running
10886 (load_aot_module): Ditto.
10888 * aot-compiler.c: Really fix the computation of method indexes.
10890 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Remove the previous
10891 optimizations as this is no longer called frequently.
10893 * mini-trampolines.c (mono_create_delegate_trampoline): Precompute the invoke
10894 method and the invoke impl code and pass it to the delegate trampoline instead of
10895 just the delegate class.
10897 2008-07-02 Zoltan Varga <vargaz@gmail.com>
10899 * aot-compiler.c: Fixup the computation of method indexes.
10900 (add_wrappers): Create the base methods of the runtime invoke wrappers using
10901 the method builder infrastructure.
10903 * aot-runtime.c (decode_exception_debug_info): Don't crash if the method
10906 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): In aot-only
10907 mode, load the method right away instead of creating a trampoline.
10909 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Eliminate locking.
10911 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Eliminate locking, speed up
10914 2008-07-01 Zoltan Varga <vargaz@gmail.com>
10916 * aot-runtime.c (decode_patch_info): Don't create trampolines in aot_only mode.
10917 (mono_aot_load_method): Use method_index instead of method->token.
10919 * mini.c (mono_jit_compile_method_inner): Move the aot_only check down, so it
10920 can handle icalls etc. properly.
10922 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
10924 * aot-compiler.c aot-runtime.c: Allow AOTing many wrapper types.
10926 * mini.c (mono_resolve_patch_target): Handle JIT_ICALL_ADDR.
10927 (mono_codegen): Convert calls made by JIT icall wrappers to the icalls into
10928 JIT_ICALL_ADDR patch type.
10930 * patch-info.h: Add JIT_ICALL_ADDR patch type.
10932 * mini.c (mono_method_to_ir): Allow AOTing methods which access the interruption
10934 (mono_resolve_patch_target): Handle INTERRUPTION_REQUEST_FLAG.
10936 * patch-info.h: Add INTERRUPTION_REQUEST_FLAG.
10938 2008-06-30 Zoltan Varga <vargaz@gmail.com>
10940 * mini.c: Use domain->jit_code_hash_lock for controlling access to
10941 domain->jit_code_hash.
10943 2008-06-29 Zoltan Varga <vargaz@gmail.com>
10945 * mini.c (mini_parse_debug_options): Add 'dont-free-domains' option.
10947 2008-06-27 Zoltan Varga <vargaz@gmail.com>
10949 * mini-trampolines.c (mono_delegate_trampoline): Don't pass a gsctx to
10950 get_this_arg_from_call, let it compute it when needed.
10952 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'code' argument, compute
10953 gsctx from code only when needed.
10955 * mini-trampolines.c (get_generic_context): Rename this to
10956 mono_get_generic_context_from_code (), and move it to generic-sharing.c, where
10957 it can be called by the arch backends.
10959 * mini-exceptions.c (mono_print_thread_dump): Allow the argument to be NULL.
10961 2008-06-26 Zoltan Varga <vargaz@gmail.com>
10963 * driver.c (mono_main): Add experimental --aot-only command line option.
10965 * mini.c: Error out when creating trampolines or JIT compiling if --aot-only is
10968 2008-06-26 Kornel Pal <kornelpal@gmail.com>
10970 * driver.c (DllMain): Remove mono_module_handle.
10972 Contributed under MIT/X11 license.
10974 2008-06-25 Zoltan Varga <vargaz@gmail.com>
10976 * aot-compiler.c: Add not-yet-usable 'full' option. Add some infrastructure code
10977 for emitting methods which are not in the source assembly. Detect and report
10978 failure of assembling+linking.
10980 * aot-compiler.c (emit_klass_info): Call mono_class_setup_vtable ().
10982 * aot-compiler.c: Move the contents of the has_glot_slots array to MonoCompile.
10984 2008-06-24 Rodrigo Kumpera <rkumpera@novell.com>
10986 * mini.c: Check if stats is enabled so we don't allocate memory when not needed.
10988 2008-06-24 Zoltan Varga <vargaz@gmail.com>
10990 * mini.h: Remove some obsolete prototypes.
10992 * mini.c: Avoid storing MonoMethod pointers in the JIT stats, store their string format instead.
10994 2008-06-24 Mark Probst <mark.probst@gmail.com>
10996 * mini.c (get_object_generic_inst): Variable-sized arrays are not
10997 supported by Visual Studio, so use alloca().
10999 2008-06-23 Zoltan Varga <vargaz@gmail.com>
11001 * mini-ia64.c (add_valuetype): Increase *gr too when passing a HFA to be in sync with the ABi.
11004 2008-06-23 Mark Probst <mark.probst@gmail.com>
11006 * mini.c: Fail sharing of a generic method if it contains an open
11007 catch clause (because we don't pass MRGCTXs yet).
11009 2008-06-23 Mark Probst <mark.probst@gmail.com>
11011 * mini.c: When compiling a method with generic sharing, insert the
11012 method instantiated with an all-Object generic context into the
11013 jit info table, instead of the context of the first instantiation
11014 of the method we happen to compile.
11016 2008-06-18 Martin Baulig <martin@ximian.com>
11018 * debug-debugger.h (MonoDebuggerInfo): Replaced `version' with
11019 `major_version' and `minor_version'.
11021 2008-06-17 Mark Probst <mark.probst@gmail.com>
11023 * generic-sharing.c, mini.c, mini.h, aot-runtime.c:
11024 mono_method_is_generic_sharable_impl() takes an additional
11025 argument specifying whether to treat type variables as reference
11028 2008-06-17 Mark Probst <mark.probst@gmail.com>
11030 * mini.h: Removed obsolete prototypes.
11032 2008-06-17 Mark Probst <mark.probst@gmail.com>
11034 * mini.c: Don't fail generic sharing for initobj and sizeof - we
11035 already handle them.
11037 2008-06-17 Mark Probst <mark.probst@gmail.com>
11039 * mini.h, mini-trampolines.c, tramp-alpha.c, tramp-amd64.c,
11040 tramp-arm.c, tramp-hppa.c, tramp-ia64.c, tramp-mips.c,
11041 tramp-ppc.c, tramp-s390.c, tramp-s390x.c, tramp-sparc.c,
11042 tramp-x86.c: Added a MonoGenericContext* argument to
11043 mono_arch_get_unbox_trampoline() so that it can call other
11044 functions which require it.
11046 2008-06-17 Mark Probst <mark.probst@gmail.com>
11048 * mini.h, mini-trampolines.c, mini-amd64.c, mini-x86.c,
11049 mini-alpha.c, mini-arm.c, mini-ia64.c, mini-ppc.c:
11050 mono_arch_get_this_arg_from_call() takes a
11051 MonoGenericSharingContext* as well.
11053 2008-06-17 Mark Probst <mark.probst@gmail.com>
11055 * mini.c: Factor out code for emitting unbox into emit_unbox() and
11056 implement generic sharing of unbox.
11058 2008-06-17 Mark Probst <mark.probst@gmail.com>
11060 * mini.c: Don't compute the vtable to determine whether a field is
11061 special static, because it might not work for open types.
11063 2008-06-17 Mark Probst <mark.probst@gmail.com>
11065 * mini.c: Removed the unused token_type and token_source arguments
11066 from get_runtime_generic_context_ptr().
11068 2008-06-17 Marek Habersack <mhabersack@novell.com>
11070 * mini.c (ADD_BINOP): fix the build
11072 2008-06-16 Zoltan Varga <vargaz@gmail.com>
11074 * mini.c (ADD_BINOP): When operating on a native int and an int32, insert
11077 2008-06-16 Mark Probst <mark.probst@gmail.com>
11079 * mini.h: Removed class relations enum that's not used anymore.
11081 2008-06-16 Mark Probst <mark.probst@gmail.com>
11083 * tramp-x86.c, tramp-amd64.c: Slot access code for MRGCTXs.
11085 * mini-trampolines.c: Distinguish between RGCTXs and MRGCTXs in
11086 the lazy fetch trampoline access code.
11088 2008-06-15 Zoltan Varga <vargaz@gmail.com>
11090 * mini-codegen.c (mono_local_regalloc): Add some micro optimizations.
11092 2008-06-14 Zoltan Varga <vargaz@gmail.com>
11094 * mini.c: Fix some soft-float bugs. Fixes #378735 and #398348.
11096 * mini.h (MONO_INST_LIST_ENTRY): Fix warnings on arm.
11098 * mini.c (mono_method_to_ir): Check call signature for NEWOBJ as well.
11100 2008-06-13 Zoltan Varga <vargaz@gmail.com>
11102 * mini-x86.c inssel-x86.brg cpu-x86.md: Implement unsigned min/max
11105 * mini-ops.h: Add MIN/MAX_UN opcodes.
11107 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Implement unsigned min/max
11110 * basic-math.cs: Add more min/max tests.
11112 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
11114 2008-06-13 Mark Probst <mark.probst@gmail.com>
11116 * mini.c: Small fix in the prologue of emit_castclass.
11118 2008-06-13 Zoltan Varga <vargaz@gmail.com>
11120 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
11122 * mini.c (mini_get_inst_for_method): Remove the Min/Max intrinsics, they
11123 do not work even for unsigned types. Fixes #400014.
11125 * basic-math.cs: Add regression tests for unsigned Min/Max.
11127 2008-06-13 Mark Probst <mark.probst@gmail.com>
11129 * mini.c: Added additional context_used argument to several
11130 functions, which will be needed for sharing generic methods. Use
11131 GET_RGCTX macro wherever appropriate. Declare only one
11132 context_used in mono_method_to_ir().
11134 2008-06-13 Mark Probst <mark.probst@gmail.com>
11136 * mini.c, generic-sharing.c: Removed generic class relations.
11138 * mini.c, tramp-amd64.c, tramp-x86.c: Additional arguments to
11139 functions due to MRGCTX changes.
11141 2008-06-13 Mark Probst <mark.probst@gmail.com>
11143 * inssel.brg, inssel-long.brg, inssel-long32.brg, mini-ops.h,
11144 graph.c, local-propagation.c, aliasing.c: New opcodes for calls
11145 with calculated IMT.
11147 * mini.c: Generic sharing of calls via generic interfaces.
11149 * jit-icalls.c, jit-icalls.h: Helper function for compiling a
11150 generic method with non-constant MonoGenericContext*. Instead,
11151 the context is taken out of the method itself.
11153 2008-06-13 Mark Probst <mark.probst@gmail.com>
11155 * mini.c: Generic sharing of ldvirtftn.
11157 2008-06-13 Mark Probst <mark.probst@gmail.com>
11159 * mini.c: Generic sharing of ldftn.
11161 2008-06-13 Mark Probst <mark.probst@gmail.com>
11163 * mini.c: Do pass VTable/RGCTX argument to static generic methods.
11165 2008-06-13 Mark Probst <mark.probst@gmail.com>
11167 * mini.c: Generic sharing of the special case of ldtoken followed
11168 by a call to GetTypeFromHandle.
11170 2008-06-13 Mark Probst <mark.probst@gmail.com>
11172 * mini.c: Generic sharing of box for nullable types.
11174 2008-06-13 Zoltan Varga <vargaz@gmail.com>
11176 * mini-s390x.c (add_stackParm): Fix computation of offsets when arguments
11177 are passed on the stack. Fixes #324807.
11179 2008-06-12 Bill Holmes <billholmes54@gmail.com>
11181 * mini-amd64.c:add_valuetype: Adding Winx64 code to fill the ArgInfo
11182 for the ArgValuetypeAddrInIReg case.
11184 * mini-amd64.c:mono_arch_allocate_vars: Adding a case for
11185 ArgValuetypeAddrInIReg to avoid asserts. Code needs to be added here.
11187 * mini-amd64.c: mono_arch_call_opcode: Adding Winx64 code for an ArgInfo of
11188 type ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
11189 local variable and pass the local variable by reference to the called method.
11191 * mini-amd64.c: mono_arch_emit_prolog: Adjust the stack for calls to
11192 mono_jit_thread_attach and mono_get_lmf_addr for Winx64.
11194 Contributed under MIT/X11 license.
11196 2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
11198 * debug-mini.c (mono_debug_free_method_jit_info): Moved to metadata/mono-debug.c.
11200 * debug-mini.c (mono_debug_print_vars): Release memory after printing
11203 2008-06-10 Martin Baulig <martin@ximian.com>
11206 (mono_debug_close_method): Check whether `cfg->epilogue_begin != NULL'.
11208 2008-06-09 Kornel Pal <kornelpal@gmail.com>
11210 * main.c: Add and set argv [argc] to NULL to match C specification that fixes
11211 possible error when no arguments are passed.
11213 Contributed under MIT/X11 license.
11215 2008-06-09 Rodrigo Kumpera <rkumpera@novell.com>
11217 * mini-exceptions.c (ves_icall_get_trace): Skip source locations
11218 where the file name is NULL.
11220 2008-06-09 Zoltan Varga <vargaz@gmail.com>
11222 * mini.c: Fix s390 build.
11224 2008-06-08 Zoltan Varga <vargaz@gmail.com>
11226 * trace.c (mono_trace_parse_options): Fix warnings.
11228 * mini-amd64.c: Revert most of the last patch for now as it breaks the build.
11230 2008-06-07 Zoltan Varga <vargaz@gmail.com>
11232 * mini.c (remove_block_if_useless): Avoid printing the method name.
11234 * mini.c: Remove needless setting of ins->cil_code which is now done by
11237 * mini-amd64.c: Add some code to avoid saving callee saved registers in the
11240 * tramp-amd64.c (mono_arch_patch_callsite): Tell valgrind to discard the
11241 translated code after it has been patched.
11243 2008-06-06 Zoltan Varga <vargaz@gmail.com>
11245 * mini-amd64.c (emit_call_body): Align the call displacement to 4 bytes to
11246 avoid problems during code patching on SMP systems.
11247 (emit_call): Avoid adding a patch info which is already added by
11249 (mono_arch_emit_exceptions): Ditto.
11251 2008-06-05 Zoltan Varga <vargaz@gmail.com>
11253 * tramp-*.c (mono_arch_get_unbox_trampoline): No need to check for ret->byref,
11254 MONO_TYPE_ISSTRUCT already checks for it.
11256 2008-06-05 Bill Holmes <billholmes54@gmail.com>
11258 * mini-amd64.c:merge_argument_class_from_type: When marshaling
11259 structs with floats on Winx64 the float registers are not used.
11260 The integer registers are always used..
11261 * mini-amd64.c:add_valuetype: When marshaling structs on Winx64
11262 only one register will be used and only if the size of the struct
11263 is 1,2,4, or 8 bytes.
11265 * tramp-amd64.c : Adjusting size used for mono_global_codeman_reserve
11266 to work for Winx64.
11268 Contributed under MIT/X11 license.
11270 2008-06-05 Martin Baulig <martin@ximian.com>
11272 * debug-debugger.c (debugger_lookup_class): Also call
11273 mono_class_setup_methods() here; we're only called from RTI.
11275 2008-06-05 Andreas Farber <andreas.faerber@web.de>
11277 * mini.c (mini_init): Add DTrace probes ves-init-{begin,end}.
11278 (mini_method_compile) Add DTrace probes method-compile-{begin,end}.
11279 * Makefile.am (libmono_la_LIBADD,libmono_static_la_LIBADD,mono_LDADD):
11280 Post-process object files and add dtrace-generated object, if necessary.
11282 Contributed under MIT/X11 license.
11284 2008-06-04 Mark Probst <mark.probst@gmail.com>
11286 * inssel.brg, mini-ops.h: Added opcode for unboxcast with computed
11289 * mini.c: Generic sharing for unbox.any and castclass.
11291 2008-06-04 Mark Probst <mark.probst@gmail.com>
11293 * mini.c: Ignore tailcall prefix in shared generic code and when
11294 doing calls which require a vtable/rgctx argument.
11296 2008-06-04 Mark Probst <mark.probst@gmail.com>
11298 * mini.c: Don't free the JIT info.
11300 * driver.c: Changes in the JIT info table testing code.
11302 2008-06-03 Zoltan Varga <vargaz@gmail.com>
11304 * tramp-arm.c (mono_arch_create_trampoline_code): Check for thread
11305 interruption. Fix some warnings.
11307 * tramp-*.c (mono_arch_create_trampoline_code): Call the _force_ variant of
11308 interruption_checkpoint.
11310 Tue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
11312 * jit.h, mini.h, trace.c, driver.c: introduce an API to enable tracing
11313 from embedding applications.
11315 2008-06-02 William Holmes <billholmes54@gmail.com>
11317 * mini-amd64.c : Correcting some of the issues for Winx64 dealing with
11318 reserving 32 bytes on the stack when making calls.
11320 Contributed under MIT/X11 license.
11322 2008-06-01 Zoltan Varga <vargaz@gmail.com>
11324 * mini-arm.c (mono_arch_output_basic_block): Merge some small fixes from
11325 the linear IL branch.
11327 * driver.c: Print out more information for --version on arm.
11329 2008-05-30 Zoltan Varga <vargaz@gmail.com>
11331 * mini-amd64.c (mono_arch_emit_prolog): Increase max_offset when processing
11332 bb_exit instead, since out of line bblocks might not actually be emitted
11335 * mini-amd64.c (mono_arch_emit_prolog): Increase bb->max_offset by the
11336 maximum epilog size for out of line bblocks if tracing is enabled.
11338 * iltests.il.in: Merge tests/long-shift.regalloc.il into this file.
11340 2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
11342 * arrays.cs: Regression tests for allocating arrays with negative sizes.
11344 2008-05-28 Zoltan Varga <vargaz@gmail.com>
11346 * mini-x86.h mini-x86.c inssel-x86.brg cpu-x86.md: Add support for
11347 CAS instrinsics. Optimize the implementation of the ATOMIC_EXCHANGE
11350 2008-05-27 Zoltan Varga <vargaz@gmail.com>
11352 * mini.c (mini_get_inst_for_method): Add support for CAS instrinsics when
11353 the 'value' to store is a constant.
11355 * mini-ops.h: Add OP_ATOMIC_CAS_IMM opcodes.
11357 * mini-amd64.c (mono_arch_output_basic_block): Optimize the the implementation
11358 of ATOMIC_EXCHANGE opcodes, add support for the CAS opcodes.
11360 2008-05-26 Zoltan Varga <vargaz@gmail.com>
11362 * mini.c generic-sharing.c jit-icalls.c aot-compiler.c: Use accessor functions
11363 for accessing method->generic_container.
11365 2008-05-24 Zoltan Varga <vargaz@gmail.com>
11367 * mini.c (mono_method_check_inlining): Avoid creating vtables if possible.
11369 * mini.c (SIG_HANDLER_SIGNATURE): Fix sparc build too.
11371 * mini.c (SIG_HANDLER_SIGNATURE): Fix IA64 build.
11373 * mini.c (mono_jit_compile_method_inner): Avoid a crash if mono_class_vtable ()
11376 2008-05-23 Zoltan Varga <vargaz@gmail.com>
11378 * driver.c (mono_main): Set mono_setup_vtable_in_class_init to FALSE.
11380 * mini.c: Handle the case when mono_class_vtable () fails.
11382 2008-05-23 Massimiliano Mantione <massi@ximian.com>
11383 * mini.c (sigprof_signal_handler): Support call chains (backtrace) in
11386 2008-05-22 Mark Probst <mark.probst@gmail.com>
11388 * mini.c, jit-icalls.c, jit-icalls.h: Make generic sharing work
11389 together with domain sharing.
11391 2008-05-22 Mark Probst <mark.probst@gmail.com>
11393 * mini.c: Treat callvirts to final methods like non-virtual calls
11394 when doing generic sharing, i.e. look them up in the runtime
11397 2008-05-22 Mark Probst <mark.probst@gmail.com>
11399 * inssel.brg, mini-ops.h: Added opcodes for mkrefany and refanyval
11400 with computed types (for generic sharing).
11402 * mini.c: Generic sharing for mkrefany and refanyval.
11404 2008-05-22 Zoltan Varga <vargaz@gmail.com>
11406 * inssel.brg (mini_emit_virtual_call): Avoid constructing a generic vtable if
11409 * mini-trampolines.c (mono_magic_trampoline): Avoid calling setup_methods () in
11410 the generic sharing code.
11412 * mini-trampolines.c (mono_magic_trampoline): Call mono_class_setup_methods ()
11415 2008-05-21 Zoltan Varga <vargaz@gmail.com>
11417 * mini.h: Remove the declaration of mono_aot_init_vtable ().
11419 2008-05-21 C.J. Adams-collier <cjac@colliertech.org>
11421 * driver.c: updated copyright date
11423 2008-05-21 Zoltan Varga <vargaz@gmail.com>
11425 * aot-runtime.c mini.c: Remove the AOT init_vtable stuff as it is no longer
11428 2008-05-19 Martin Baulig <martin@ximian.com>
11430 * debug-debugger.h (MonoDebuggerInfo): Add `using_mono_debugger'
11431 pointing to the new `_mono_debug_using_mono_debugger' variable.
11434 (mono_main): Check mono_debug_using_mono_debugger() rather than
11435 the `MONO_INSIDE_MDB' environment variable to check whether we're
11436 inside the debugger.
11438 2008-05-19 Zoltan Varga <vargaz@gmail.com>
11440 * mini.c (mini_method_compile): Use cfg->args [0] for accessing the this
11443 2008-05-08 Rodrigo Kumpera <rkumpera@novell.com>
11445 * declsec.h: Move MONO_SECMAN_FLAG to metadata/metadata-internals.h.
11447 * mini.c: Added mini_assembly_can_skip_verification. This
11448 function checks if the assembly requested to skip verification.
11449 Fixes part of #387274.
11451 2008-05-07 Zoltan Varga <vargaz@gmail.com>
11453 * mini.c (mini_get_method): Disable the check for open generic classes when
11454 using generic sharing.
11456 * generics.cs: Add a test for #387034.
11458 * mini.c (mini_get_method): Check whenever the method class is an open generic
11459 type, and return NULL in that case, causing a verification error. Fixes
11462 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
11464 * driver.c (mono_main): Revert r102623. The right
11465 thing to do is to enable the verifier under verifiable
11466 unless a --security flag was passed.
11468 We need this non-trivial behavior for --verify-all otherwise
11469 mcs-compileall won't be able to use it. As it needs everything to
11470 be verified under validil.
11472 2008-05-06 Martin Baulig <martin@ximian.com>
11476 * debug-mini.c (mono_debugger_thread_created): Add proper locking.
11477 (mono_debugger_thread_cleanup): Likewise.
11478 (mono_debugger_extended_notification): Likewise.
11480 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
11482 * mini.c (mono_method_to_ir): Verify visibility of call related opcodes
11483 against both inflated and non-inflated methods. We need to check against the
11484 generic definition for cases where the instantiated method is not visible.
11485 We need to check against the inflated types for cases where the instantiation
11486 changes any super type. This fixes #382986.
11488 Note that this doesn't need to be applied to other parts of mono_method_to_ir
11489 that check for visibiliy as generic params only appears as the type subject
11490 of tokens on call opcodes. Field manipulation and ldftn must always
11491 target an exact type.
11493 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
11495 * driver.c (mono_main): Using --verify-all enables the verifier under validil mode
11496 if no related --security flag is passed.
11498 2008-05-05 Andreas Farber <andreas.faerber@web.de>
11500 * mini-arch.h: Prepare support for ppc64.
11502 Contributed under MIT/X11 license.
11504 2008-05-05 Andreas Farber <andreas.faerber@web.de>
11506 * aot-runtime.c: Prepare support for ppc64.
11508 Contributed under MIT/X11 license.
11510 2008-05-05 Andreas Farber <andreas.faerber@web.de>
11512 * mini-ops.h: Prepare support for ppc64.
11514 Contributed under MIT/X11 license.
11516 2008-05-04 Andreas Farber <andreas.faerber@web.de>
11518 * helpers.c: Add support for OSX/ppc64 and Linux/ppc64 (dis)assemblers.
11520 Contributed under MIT/X11 license.
11522 2008-05-03 Zoltan Varga <vargaz@gmail.com>
11524 * aot-runtime.c (load_aot_module): Avoid trying to load aot code for dynamic
11525 assemblies, since aot_name is not a full path, causing us to load MS.NET
11526 assemblies on windows.
11528 ?2008-04-28 Kornel Pal <kornelpal@gmail.com>
11530 * mini.c (mono_jit_compile_method_inner): Use g_warning instead of g_error
11531 for unsupported METHOD_IMPL_ATTRIBUTE_NATIVE.
11532 * main.c: Use UTF-8 encoded command line instead of Windows default code
11533 page on Windows to support Unicode.
11534 * driver.c (DllMain): New function for mixed-mode assembly support.
11535 * Makefile.am: Add -Wl,--kill-at to libmono_la_LDFLAGS on Windows to
11536 export __stdcall functions without decoration.
11538 Contributed under MIT/X11 license.
11540 2008-04-28 Mark Probst <mark.probst@gmail.com>
11542 * tramp-amd64.c, mini-amd64.c: Preserve R11 in the trampoline by
11543 saving it very early.
11545 2008-04-28 Mark Probst <mark.probst@gmail.com>
11547 * mini.h, mini.c: Lots of code for accessing the old RGCTX
11548 deleted. The only way to access the new RGCTX is via the
11551 * mini.c, mini-amd64, mini-x86.c, mini-exceptions.c: Pass the
11552 vtable instead of the RGCTX to static methods.
11554 * mini-tramplines.c, tramp-amd64.c, tramp-x86.c: Trampoline for
11555 accessing the new RGCTX.
11557 * generic-sharing.c: There is no separation between self, type
11558 arguments and other types in the RGCTX anymore.
11560 2008-04-25 Jonathan Chambers <joncham@gmail.com>
11562 * mini-amd64.c (add_general): Remove previous stack adjustment.
11563 (mono_arch_call_opcode): Remove OP_OUTARG_MEMBASE and instead simply
11564 adjust stack pointer after pushing args. Adjust ARGS_OFFSET to account
11565 for 32 bytes of stack space reserved for all calls.
11567 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Remove.
11568 (OP_AMD64_OUTARG_ALIGN_STACK): Take argument to specify size of stack
11571 Code contributed under MIT/X11 license.
11573 2008-04-23 Rodrigo Kumpera <rkumpera@novell.com>
11575 * mini.c (mini_method_verify): Only verify non-inflated methods, check
11576 against the root definition, peeling out method and type instantiations.
11577 Cache verify success results, code that fails verification is still
11578 checked multiple times.
11580 2008-04-23 Zoltan Varga <vargaz@gmail.com>
11582 * mini.c (mono_method_to_ir): Avoid inserting write barriers for stores of null.
11584 2008-04-23 Jonathan Chambers <joncham@gmail.com>
11586 * mini-amd64.c (add_general): Always increment stack on Win64.
11587 (mono_arch_call_opcode): Use OP_OUTARG_MEMBASE instead of OP_OUTARG
11590 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Add OP_OUTARG_MEMBASE for
11591 stack based argument handling on Win64.
11593 Code contributed under MIT/X11 license.
11595 2008-04-23 Raja R Harinath <harinath@hurrynot.org>
11597 * Makefile.am (version.h): Add support for git-svn.
11599 2008-04-22 Zoltan Varga <vargaz@gmail.com>
11601 * mini-exceptions.c (mono_handle_native_sigsegv): Rework the gdb calling code
11602 so instead of calling g_spawn_command_line_sync, we do everything by hand,
11603 avoiding allocations and libc functions which might deadlock.
11605 * mini-exceptions.c (mono_handle_native_sigsegv): Avoid calling gdb if the
11606 'no-gdb-backtrace' option is set.
11608 * mini.c (mini_parse_debug_options): Parse 'no-gdb-backtrace' option.
11610 * mini.h (MonoDebugOptions): Add 'no_gdb_backtrace' option.
11612 2008-04-21 Martin Baulig <martin@ximian.com>
11614 * debug-debugger.h (MonoDebuggerInfo): Removed `attach', `detach'
11615 and `get_lmf_addr'; `notification_address' is no longer a pointer.
11617 2008-04-21 Martin Baulig <martin@ximian.com>
11619 * debug-debugger.h (MonoDebuggerInfo): Added `thread_vtable_ptr',
11620 `thread_vtable', `event_handler_ptr' and `event_handler'.
11622 2008-04-21 Martin Baulig <martin@ximian.com>
11624 * debug-debugger.h (MonoDebuggerInfo): Added `init_code_buffer';
11625 allows delayed initialization of the `executable_code_buffer' when
11628 2008-04-21 Martin Baulig <martin@ximian.com>
11630 * mini.h (mono_debugger_create_notification_function): Removed.
11631 * tramp-*.c (mono_debugger_create_notification_function): Removed.
11633 * mdb-debug-info64.s
11634 (MONO_DEBUGGER__notification_function): Added this in the .text section.
11636 * mdb-debug-info32.s
11637 (MONO_DEBUGGER__notification_function): Added this in the .text section.
11639 * Makefile.am: Fix the mdb-debug-info*.s logic; the debugger
11640 currently only works on x86 and x86_64, so don't create it on ppc.
11642 2008-04-21 Martin Baulig <martin@ximian.com>
11644 * mini.h (MonoDebugOptions): Added `mdb_optimizations'.
11647 (mini_method_compile): In the fp elimination check, check
11648 `debug_options.mdb_optimizations' in addition to
11649 mono_debug_using_mono_debugger().
11651 * driver.c (mono_main): Added `--debug=mdb-optimizations' option to
11652 disable some JIT optimizations which are only disabled when
11653 running inside the debugger.
11654 Added `--help-debug' option to describe the debugging options.
11655 (parse_debug_options): New static function to parse the `--debug'
11656 options, so we can easily add more stuff in future.
11658 2008-04-20 Zoltan Varga <vargaz@gmail.com>
11660 * mini.c (set_exception_type_from_invalid_il): Avoid reading invalid memory when
11661 the method has no body.
11663 2008-04-19 Jonathan Chambers <joncham@gmail.com>
11665 * mini-amd64.c (cpuid): Implement with MSVC intrinsic as inline
11666 assembly is not allowed in MSVC 64-bit compiler.
11667 (mono_arch_cpu_init): Don't set floating point precision on MSVC build
11668 as we get floating point exceptions everywhere.
11670 * exceptions-amd64.c (get_throw_trampoline): Push empty args on stack to
11671 correctly align arguments for call to throw_exception.
11672 (prepare_for_guard_pages): Cast to guint64 instead of unsigned long.
11674 Code contributed under MIT/X11 license.
11676 2008-04-19 Zoltan Varga <vargaz@gmail.com>
11678 * mini-amd64.c (amd64_patch): Make the check for (%rip) addressing more strict.
11680 2008-04-17 Zoltan Varga <vargaz@gmail.com>
11682 * inssel.brg (OP_SWITCH): Use (gint64) instead of (long) to cast a large constant.
11684 * mini-amd64.c (NEW_INS): Set cil_code.
11686 * mini.c (mini_method_compile): Move the disabling of fp elimination to here
11687 from mini-amd64.c so all debugger related logic is in one place.
11689 * mini.c: Set cfg->ip to NULL after passes which set it so instructions created
11690 later won't have a random ip assigned to them.
11692 2008-04-16 Zoltan Varga <vargaz@gmail.com>
11694 * mini-trampolines.c (mono_create_jump_trampoline): Add an assert to check that
11695 the arch specific function initializes code_size.
11696 (mono_create_delegate_trampoline): Ditto.
11698 * mini-mips.h mini-mips.c inssel-mips.brg inssel-long32-mips.brg cpu-mips.md
11699 tramp-mips.c: Resurrect MIPS port and also fix the issues on little-endian
11702 * liveness.c (mono_analyze_liveness): Disable the initlocals optimization if
11703 running under the debugger.
11705 * linear-scan.c (mono_linear_scan): Avoid sharing registers if running under the
11708 * mini.c (mini_method_compile): Set a few flags in cfg if running under the
11709 debugger. Also move the disabling of optimizations here from driver.c.
11710 (mono_allocate_stack_slots_full): Avoid sharing stack slots if running under the
11713 * mini.h (MonoCompile): Add a few new flags.
11715 2008-04-15 Zoltan Varga <vargaz@gmail.com>
11717 * mini.c (mono_method_to_ir): Set cfg->ip before processing an IL instruction
11718 so the cil_code field of created MonoInst's is properly set.
11719 (mini_select_instructions): Ditto.
11721 * mini.h (MONO_INST_NEW): Initialize the cil_code field using cfg->ip.
11722 (MONO_INST_NEW_CALL): Ditto.
11724 * mini.c inssel.brg inssel-x86.brg inssel-amd64.brg: Use MONO_INST_NEW ()
11725 in many places so the ins->cil_code field is properly initialized.
11727 * mini.c (mono_bblock_add_inst): Call MONO_ADD_INS () so the logic is in one
11730 2008-04-14 Zoltan Varga <vargaz@gmail.com>
11732 * mini.c (mini_method_compile): Print a different message when compiling a
11735 * mini.c (GENERIC_SHARING_FAILURE): Print a failure message when verbose_level
11738 2008-04-11 Zoltan Varga <vargaz@gmail.com>
11740 * mini-amd64.c (mono_arch_output_basic_block): Implement OP_ABS directly using
11743 * basic-math.cs: Fix warnings. Add a test for Math.Abs ().
11745 2008-04-11 Zoltan Varga <vargaz@gmail.com>
11747 * mini.c (handle_stack_args): Make this return void since its return value was
11748 never used. Also set cfg->unverifiable for invalid IL instead of calling
11751 2008-04-10 Mark Probst <mark.probst@gmail.com>
11753 * mini.c: Make sure "this" is live in catch clauses with type
11754 variables in shared generic code.
11756 2008-04-08 Mark Probst <mark.probst@gmail.com>
11758 * mini.c: Replaced uses of MONO_TYPE_IS_REFERENCE with calls to
11759 generic_class_is_reference_type() to ensure the proper behaviour
11760 when sharing generic code and the type in question is a type
11763 2008-04-08 Zoltan Varga <vargaz@gmail.com>
11765 * mini-exceptions.c: Applied patch from Mark Spruiell (mes@zeroc.com). Fix
11766 race conditions when printing thread dumps. Fixes #377738.
11768 2008-04-08 Massimiliano Mantione <massi@ximian.com>
11770 aliasing.c (update_aliasing_information_on_inst): Fixed a bug which
11771 shows up when both MonoInst arguments can cause aliasig.
11772 There is likely no way in the current JIT to trigger this problem, but
11773 it showed up in the development of generics sharing, when in a new
11774 opcode both args of an OP_GROUP can be aliases (addresses of a local).
11775 When the generics sharing code will be committed, its tests will be
11776 valid also for this bug.
11778 2008-04-08 Zoltan Varga <vargaz@gmail.com>
11780 * aot-runtime.c (decode_patch_info): Always transform PATCH_INFO_WRAPPER to
11783 * mini.c (mono_resolve_patch_target): Fix a crash in the AOT case if method is
11786 2008-04-07 Zoltan Varga <vargaz@gmail.com>
11788 * mini-exceptions.c (mono_handle_exception_internal): When --debug=casts is used,
11789 use a more detailed exception message for InvalidCastException.
11791 * mini.h (MonoJitTlsData): Add 'class_cast_from' and 'class_cast_to' fields.
11793 * driver.c (mono_main): Add --debug=casts option to turn on better
11794 InvalidCastException message details.
11796 * mini.c (mini_get_debug_options): New helper function to return the address of
11797 the debug_options variable.
11799 * mini.c (mono_get_jit_tls_intrinsic): New helper function to create a load of
11800 the jit_tls TLS variable.
11802 * mini.c (mono_jit_tls): New TLS variable.
11804 * inssel.brg: Save the details of a cast to a TLS variable when the --debug=casts
11807 2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
11809 * mini.h: Removed verifer related stuff. This code was moved to verify.c
11811 * mini.c: Removed verifer related stuff, code moved to verify.c.
11813 * driver.c: Using code from verify.c instead of mini.c.
11815 2008-04-05 Zoltan Varga <vargaz@gmail.com>
11817 * mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
11820 2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
11822 * mini.c (check_for_method_verify): Enabling verification of
11823 corlib if mono_verify_all is set. Bugs in the verifier preventing that
11826 2008-04-04 Zoltan Varga <vargaz@gmail.com>
11828 * exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
11829 caller saved registers as well.
11831 * exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
11832 saved registers as well.
11834 2008-03-30 Zoltan Varga <vargaz@gmail.com>
11836 * mini-x86.c cpu-x86.md inssel-x86.brg: Add min/max intrinsics.
11838 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of the non-SSE2 floating point
11841 2008-03-27 Zoltan Varga <vargaz@gmail.com>
11843 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'gsctx' argument and pass it
11845 (get_call_info): Take a gsctx argument instead of 'cfg'.
11847 2008-03-26 Zoltan Varga <vargaz@gmail.com>
11849 * mini.c (check_for_method_verify): Avoid verifying mscorlib methods even if
11850 mono_verify_all is set.
11852 * driver.c (compile_all_methods_thread_main): Don't exit at the first error.
11854 * mini.c mini.h: Remove the unused and incomplete stack merge verification code.
11856 2008-03-25 Zoltan Varga <vargaz@gmail.com>
11858 * driver.c (compile_all_methods_thread_main): Error out if compilation fails with
11861 * driver.c mini.c mini.h: Add a --verify-all development option to test the
11862 verifier and the code generated by the compiler.
11864 2008-03-25 Mark Probst <mark.probst@gmail.com>
11866 * mini.c: Generic sharing of the non-nullable case of the box
11869 2008-03-24 Zoltan Varga <vargaz@gmail.com>
11871 * inssel.brg: Fix the build.
11873 * iltests.il.in: Add a test for lconv.ovf.u8.un.
11875 2008-03-24 Rodrigo Kumpera <rkumpera@novell.com>
11877 * mini.c (mono_method_to_ir): Implement readonly for ldelema and
11878 Array:Address. Fixes #372410.
11880 * iltests.il.in: New tests for readonly prefix.
11882 2008-03-23 Zoltan Varga <vargaz@gmail.com>
11884 * mini.h mini.c mini-trampolines.c: Move trampoline related code to
11885 mini-trampolines.c.
11887 * mini.h mini.c mini-exceptions.c: Move mini_init_exceptions () to
11890 * mini-amd64.c mini-s390.c (mono_arch_lowering_pass): Use mono_decompose_op_imm ().
11892 * mini.c (mono_decompose_op_imm): New helper function.
11894 * mini-s390x.c (calculate_sizes): Rename this to get_call_info for consistency
11895 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
11898 * mini-s390x.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
11899 mono_arch_output_basic_block. Fix warnings.
11901 * inssel-s390x.brg: Remove the unneccesary OP_LMUL_IMM rule to fix the s390x build
11904 2008-03-22 Zoltan Varga <vargaz@gmail.com>
11906 * mini-exceptions.c (ves_icall_get_frame_info): Remove the ia64/s390 workarounds
11907 since the extra frame is now detected automatically inside the loop.
11909 * mini-s390.c (mono_arch_peephole_pass_2): Remove the arch independent peephole
11910 opts which are now in mono_peephole_ins ().
11912 * mini-s390.c (mono_arch_output_basic_block): Fix OP_FCALL_MEMBASE.
11914 * mini-exceptions.c (ves_icall_get_frame_info): Skip native-to-managed wrapper
11915 frames and skip duplicate managed-to-native frames. Fixes #367665.
11917 * mini-x86.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
11918 opts which are now in mono_peephole_ins ().
11919 (mono_arch_peephole_pass_2): Ditto.
11921 * mini-codegen.c (mono_peephole_ins): Fix a problem on 32 bit platforms.
11923 * mini-codegen.c (mono_peephole_ins): New helper function containing the
11924 arch independent peephole optimizations.
11926 * mini-amd64.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
11927 opts which are now in mono_peephole_ins ().
11929 * mini-amd64.c (mono_arch_peephole_pass_2): Ditto.
11931 * mini-s390.c (mono_arch_output_basic_block): Fix build.
11933 * tramp-s390.c (mono_arch_get_vcall_slot): Handle an additional instruction
11936 * mini-s390.c (mono_arch_output_basic_block): Handle big offsets in the
11937 CALL_MEMBASE opcodes. Fix setting of the destination in the OP_LCONV_TO_OVF_I
11940 2008-03-21 Zoltan Varga <vargaz@gmail.com>
11942 * mini-s390.c (calculate_sizes): Rename this to get_call_info for consistency
11943 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
11946 * mini-s390.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
11947 mono_arch_output_basic_block. Fix warnings.
11949 2008-03-20 Zoltan Varga <vargaz@gmail.com>
11951 * inssel-long32.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
11954 2008-03-20 Zoltan Varga <vargaz@gmail.com>
11956 * inssel-long.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
11959 * iltests.il: Add new tests.
11961 2008-03-20 Kornel Pal <kornelpal@gmail.com>
11963 * mini.c: Removed Windows version macros.
11965 2008-03-20 Mark Probst <mark.probst@gmail.com>
11967 * generic-sharing.c: Put reflection types in the extensible part
11968 of the runtime generic context.
11970 * mini.c: Generic sharing of the GetTypeHandle special case of the
11971 ldtoken instruction.
11973 2008-03-20 Zoltan Varga <vargaz@gmail.com>
11975 * mini.h (MONO_BB_FOR_EACH_INS_SAFE): New helper macro.
11977 * mini-<ARCH>.c: Use the new macro instead in the peephole/lowering passes.
11979 * mini.h (MONO_DEL_INS): Rename to MONO_DELETE_INS and Add a 'bb' argument for
11980 consistency with the other version on the linear IR branch.
11982 * mini-<ARCH>.c: Update callers of MONO_DEL_INS.
11984 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i/conv.ovf.u.
11986 * iltests.il.in: Add new tests.
11988 2008-03-19 Zoltan Varga <vargaz@gmail.com>
11990 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i.un/conv.ovf.u.un.
11992 * iltests.il.in: Add new tests.
11994 2008-03-19 Mark Probst <mark.probst@gmail.com>
11996 * mini.c: Two variables with the same name were declared in
11997 nesting contexts and one wasn't initialized. Fixed.
11999 2008-03-19 Mark Probst <mark.probst@gmail.com>
12001 * mini.c: Generic sharing of the initobj instruction.
12003 Tue Mar 18 20:18:02 CET 2008 Paolo Molaro <lupus@ximian.com>
12005 * mini.c: make the test to optimize ldtoken from typeof() more
12008 2008-03-18 Mark Probst <mark.probst@gmail.com>
12010 * mini.c: Generic sharing of the initobj instruction for reference
12013 Tue Mar 18 12:39:27 CET 2008 Paolo Molaro <lupus@ximian.com>
12015 * mini.h, mini-amd64.c, mini-x86.c, tramp-amd64.c, tramp-x86.c: change
12016 the mono_breakpoint_clean_code() code to perform bound checks.
12018 Tue Mar 18 11:50:14 CET 2008 Paolo Molaro <lupus@ximian.com>
12020 * mini.h, mini-trampolines.c, tramp-*.c: change the signature of
12021 mono_arch_patch_callsite() to include the start of the managed method
12022 to be able to perform bound checks.
12024 2008-03-17 Mark Probst <mark.probst@gmail.com>
12026 * mini.c: Generic sharing for the isinst instruction.
12028 2008-03-17 Mark Probst <mark.probst@gmail.com>
12030 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
12031 inssel-long32-mips.brg: Added opcodes for doing indirect calls
12032 with the runtime generic context argument.
12034 * mini.c: Share calls to several types of unsharable methods by
12035 putting the address of the method code in the runtime generic
12036 context and doing an indirect call.
12038 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
12041 2008-03-16 Mark Probst <mark.probst@gmail.com>
12043 * generic-sharing.c: Change due to a change in the runtime genric
12046 2008-03-15 Martin Baulig <martin@ximian.com>
12049 (mono_arch_nullify_class_init_trampoline): Add call to
12050 mono_breakpoint_clean_code() to make things work when running
12051 inside the debugger.
12054 (mono_arch_nullify_class_init_trampoline): Add call to
12055 mono_breakpoint_clean_code() to make things work when running
12056 inside the debugger.
12058 2008-03-14 Zoltan Varga <vargaz@gmail.com>
12060 * inssel-long.brg (reg): Fix 64 bit build.
12062 2008-03-14 Mark Probst <mark.probst@gmail.com>
12064 * mini.c, mini.h: Share static generic code by passing it an
12065 implicit argument pointing to the runtime generic context.
12067 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
12068 inssel-long32-mips.brg: New opcodes for calling shared static,
12069 which need to be passed the runtime generic context.
12071 * mini-amd64.c, mini-x86.c: Save the runtime generic context
12072 argument on the stack in the prologue if needed. New function for
12073 finding the runtime generic context argument from the registers
12074 saved by the trampoline.
12076 * mini-amd64.h, mini-x86.h: Specify which register to use for the
12077 runtime generic context argument.
12079 * tramp-amd64.c: Also restore the register used for the runtime
12080 generic context argument.
12082 * mini-trampoline.c: Resolve shared static calls by consulting the
12083 runtime generic context via the new argument.
12085 * generic-sharing.c: Add an argument to sharability-checking
12086 functions that specifies whether type variables should be treated
12087 as sharable type arguments.
12089 * inssel-x86.brg: Removed a superfluous, buggy rule.
12091 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
12094 2008-03-14 Martin Baulig <martin@ximian.com>
12096 * debug-debugger.c (main_thread_handler): Call
12097 mono_runtime_run_main() without sending any notifications.
12099 * debug-debugger.h (MonoDebuggerInfo): Added `get_method_signature.
12101 2008-03-14 Zoltan Varga <vargaz@gmail.com>
12103 * mini-trampolines.c (mono_magic_trampoline): Fix build on platforms without IMT.
12105 2008-03-14 Mark Probst <mark.probst@gmail.com>
12107 * tramp-x86.c: Fixed register restore offsets in the trampoline
12108 code for ECX and EDX.
12110 2008-03-12 Geoff Norton <gnorton@novell.com>
12112 * mini-arm.h: Add some #defines for locating sp, pc, r4 with
12113 different ucontext_t implementations.
12114 * exceptions-arm.c: Use the above defines to get exceptions working on
12115 iPhone (based on a patch by Luke Howard lukeh@padl.com)
12116 * mini-arm.c: Implement iPhone icache support (based on a patch by
12117 Luke Howard lukeh@padl.com)
12119 2008-03-12 Mark Probst <mark.probst@gmail.com>
12121 * mini.c: Enable generic sharing of calls to non-static
12122 non-interface non-generic non-value-type methods.
12124 * mini-trampolines.c: Resolve calls from shared generic code.
12126 2008-03-11 Zoltan Varga <vargaz@gmail.com>
12128 * Makefile.am il2tests.il iltests.il.in: Delete il2tests, merge it into iltests.
12130 * tramp-amd64.c (mono_arch_create_trampoline_code): Correctly save RBP as well.
12132 Mon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>
12134 * mini.c: some fixes for the AOT compiler.
12136 2008-03-07 Zoltan Varga <vargaz@gmail.com>
12138 * cpu-amd64.md: Add clob:1 to some float opcodes.
12140 2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
12142 * mini.h: Added MiniVerifierMode enumeration.
12144 * mini.c: Added mini_verifier_set_mode to control
12145 the usage of the new verifier.
12147 * mini.c (mono_method): Integrated the new verifier.
12149 * driver.c: Extended --security option with validil and
12150 verifiable options to activate the new verifier.
12152 2008-03-07 Zoltan Varga <vargaz@gmail.com>
12154 * mini.c jit-icalls.h jit-icalls.c: Generalize the exception creation
12155 optimization to ctors taking 0 or 2 arguments too.
12157 * mini.c (mono_method_to_ir): Optimalize the size of the exception throwing code
12160 * jit-icalls.h (mono_create_corlib_exception): New JIT icall.
12162 * mini-amd64.c (mono_arch_emit_prolog): Improve the first_bb optimization a bit.
12164 2008-03-06 Zoltan Varga <vargaz@gmail.com>
12166 * mini.c (mono_method_to_ir): Apply one of the ldstr optimizations in the
12167 non-aot case as well.
12169 * cpu-amd64.md: Reduce the max size of some frequently used opcodes.
12171 * aot-runtime.c (decode_patch_info): Update this after the ldfld/stfld wrapper
12174 * aot-compiler.c (encode_patch): Ditto.
12176 * mini.h (G_MININT32): Fix the definition of this.
12178 2008-03-05 Zoltan Varga <vargaz@gmail.com>
12180 * mini.h: Define G_MININT32/G_MAXINT32 if using an older glib version.
12182 * cfold.c: Remove definition of G_MININT32 which is now in mini.h.
12184 2008-03-04 Zoltan Varga <vargaz@gmail.com>
12186 * mini-amd64.c (mono_arch_compute_omit_fp): Don't disable fp elimination for
12187 methods returning vtypes in registers.
12188 (mono_arch_allocate_vars): Ditto.
12190 * mini-amd64.c (mono_arch_get_this_arg_reg): New arch specific helper function.
12192 * tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg ().
12194 * generics.cs: Add a test from the linear IR branch.
12196 * mini-amd64.c (emit_load_volatile_arguments): Handle vtypes passed in regs too.
12198 * mini.c (inline_method): Cache failed inline attempts.
12200 2008-03-04 Mark Probst <mark.probst@gmail.com>
12202 * mini.c: For shared methods of generic classes put the location
12203 of "this" into the MonoGenericJitInfo.
12205 * mini-x86.c, mini-amd64.c, mini.h: Added function for fetching a
12206 register out of a MonoContext by register number. Add the generic
12207 sharing context as an argument to mono_arch_find_this_argument().
12209 * mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
12210 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c: Added stub
12211 for new arch function.
12213 * mini-exception.c: Handle open exception clauses in shared
12216 * mini-trampolines.c: Supply additional argument to
12217 mono_arch_find_this_argument().
12219 2008-03-04 Zoltan Varga <vargaz@gmail.com>
12221 * Makefile.am (regtests): Run the bench.exe tests last.
12223 2008-03-03 Zoltan Varga <vargaz@gmail.com>
12225 * mini-amd64.c (mono_arch_emit_prolog): Improve the first bblock optimization
12228 2008-03-02 Zoltan Varga <vargaz@gmail.com>
12230 * mini.c (mono_method_to_ir): Allow callvirt on static methods for compatibility
12233 * mini-amd64.c (mono_arch_emit_prolog): Fix tracing after the last change.
12235 * mini-amd64.c (mono_arch_emit_prolog): Avoid saving dead arguments.
12237 * mini.c (mono_method_check_inlining): Avoid disabling inlining for methods
12238 whose class has no cctor.
12240 * liveness.c (mono_analyze_liveness): Mark dead arguments with MONO_INST_IS_DEAD.
12242 2008-03-01 Zoltan Varga <vargaz@gmail.com>
12244 * mini.c (mono_method_to_ir): Report calling a static method using callvirt as
12247 2008-02-29 Zoltan Varga <vargaz@gmail.com>
12249 * mini-ops.h: Remove OP_SPARC_INARG_VT, add a new OP_VTARG_ADDR opcode instead
12250 to be in sync with the code on the linear IR branch.
12252 * mini-sparc.c inssel-sparc.brg: Use OP_VTARG_ADDR.
12254 * inssel-s390.brg (OP_SETRET (freg)): Set dreg correctly.
12256 2008-02-27 Zoltan Varga <vargaz@gmail.com>
12258 * mini-mips.c: Use cfg->vret_addr instead of cfg->ret.
12260 * mini-s390x.c: Use cfg->vret_addr instead of cfg->ret.
12262 * mini-s390.c: Use cfg->vret_addr instead of cfg->ret.
12264 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_VARS define.
12266 * mini-<ARCH>.c (mono_arch_create_vars): Define this for all architectures.
12268 * mini.c (mono_method_to_ir): Avoid invalid memory reads for methods without a
12271 2007-11-14 Yoichi NAKAYAMA <nakayama@pixela.co.jp>
12273 * inssel-mips.brg (OP_OUTARG_MEMBASE (CEE_LDIND_R4 (base))): Add missing
12274 OP_LOADR4_MEMBASE emission.
12276 * mini-codegen.c (mono_spillvar_offset_int): Remove assertion.
12277 (mono_spillvar_offset_float): Ditto.
12279 * mini-mips.c (mono_arch_emit_prolog): Ditto.
12281 * inssel-long32-mips.brg: Fix wrong branching, reduce redundant code
12284 * basic-long.cs: Add regression tests for them.
12286 * mini-mips.c (add_float32_arg): Respect o32 calling convention in gr
12288 (mono_arch_allocate_vars): Fix representation of single-precision float
12290 (mono_arch_output_basic_block): Ditto.
12292 * inssel-mips.brg: Ditto, remove duplicate items.
12294 * mini-mips.c (emit_load_volatile_arguments): New function to handle
12295 arguments of tail calls as on other platforms.
12296 (mono_arch_output_basic_block): Handle tail calls.
12298 * inssel-mips.brg (OP_OUTARG_VT (CEE_LDOBJ (base))): Correct destination
12301 * objects.cs (test_5_pass_static_struct): Add test for it.
12303 Contributed under MIT/X11 license.
12305 2008-02-26 Zoltan Varga <vargaz@gmail.com>
12307 * Makefile.am: Use gmcs for compiling the regression tests.
12309 * *.2.cs *.2.il: Rename to *.cs and *.il.
12311 2008-02-24 Zoltan Varga <vargaz@gmail.com>
12313 * regalloc.h: Make the vassign array smaller.
12315 * mini.c (mini_method_compile): Remove an unused field in cfg.
12317 * mini-codegen.c: Add a bunch of micro optimizations.
12319 2008-02-23 Zoltan Varga <vargaz@gmail.com>
12321 * regalloc.h: Remove some unused fields.
12323 2008-02-22 Zoltan Varga <vargaz@gmail.com>
12325 * mini-amd64.c (mono_arch_patch_code): Fix a warning.
12327 * ssa.c (mono_ssa_remove): Avoid declaring volatile variables dead.
12329 2008-02-22 Mark Probst <mark.probst@gmail.com>
12331 * mini.h: New trampoline type (RGCTX_LAZY_FETCH).
12333 * mini-trampolines.c, tramp-amd64.c, tramp-x86.c: RGCTX lazy fetch
12334 trampoline: Fetch an entry from the runtime generic context. If
12335 it's NULL, jump to the actual trampoline to fill the runtime
12336 generic context. Otherwise, return it.
12338 * mini.c: Call the lazy fetch trampoline to get entries out of the
12339 runtime generic context.
12341 * tramp-ia64.c, tramp-arm.c, tramp-alpha.c, tramp-s390.c,
12342 tramp-s390x.c, tramp-ppc.c, tramp-hppa.c, tramp-mips.c,
12343 tramp-sparc.c: Stubs for the lazy fetch trampoline.
12345 2008-02-21 Mark Probst <mark.probst@gmail.com>
12347 * mini.c: Fetch data out of the extensible part of the runtime
12348 generic context instead of calling a helper function.
12350 * generic-sharing.c: Some functions moved into
12351 metadata/generic-sharing.c. Helper function for fetching other
12352 types now checks and asserts against extensible rgctx (just for
12353 debugging purposes - the helper function isn't called anymore
12354 unless for debugging).
12356 2008-02-21 Zoltan Varga <vargaz@gmail.com>
12358 * mini-arm.c (mono_arch_output_basic_block): Implement proper argument passing
12359 for tail calls up to the point that the tests in iltests.exe run. Also add a
12360 dummy CKFINITE implementation.
12361 (mono_arch_emit_prolog): Avoid saving the method in the LMF since it is only
12362 needed for trampoline LMF frames.
12364 * exceptions-arm.c (mono_arch_find_jit_info): Only read lmf->method for
12365 trampoline LMF frames.
12367 2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
12369 * mini.c (inline_method): clean any pending loader error when inlining fail.
12370 Otherwise loader errors in mono_method_to_ir leaks and cause spurious errors.
12372 2008-02-21 Zoltan Varga <vargaz@gmail.com>
12374 * aot-compiler.c (encode_patch): Handle ICALL_ADDR patch type.
12376 * aot-runtime.c (decode_patch_info): Ditto.
12378 * mini.c (mono_resolve_patch_target): Ditto.
12380 * aot-compiler.c (compile_method): Add some experimental code for AOT compiling
12383 * patch-info.h (PATCH_INFO): Add 'ICALL_ADDR' patch type.
12385 * mini.c (mono_method_to_ir): Convert a CEE_MONO_LDPTR opcode to an AOT constant
12386 if it references an icall address.
12388 2008-02-20 Zoltan Varga <vargaz@gmail.com>
12390 * cpu-s390x.md: Remove some more unused opcodes.
12392 * cpu-s390x.md: Remove some unused opcodes.
12394 * mini-ia64.c (mono_arch_lowering_pass): Add some more opcodes. Use
12395 mono_op_imm_to_op ().
12397 * mini-sparc.c (opcode_to_sparc_cond): Use the mono_opcode_to_cond () functions
12398 instead of a switch statement.
12400 * mini-sparc.c (mono_arch_allocate_vars): Allocate a stack slot for use by
12401 the int<->float conversion opcodes instead of using mono_spillvar_offset_float ().
12403 * mini-codegen.c: Eliminate rassign macro which is no longer needed.
12405 * mini-codegen.c: Remove unused mono_regstate2_... functions.
12407 * mini-codegen.c (mono_print_ins_index): Avoid printing an index when it is
12410 2008-02-19 Zoltan Varga <vargaz@gmail.com>
12412 * driver.c (mono_main): Improve error reporting when an assembly cannot be
12413 opened. Fixes #362607.
12415 * cpu-ia64.md cpu-s390x.md: Remove some unused opcodes.
12417 * iltests.il.in: Add a test for static methods in interfaces.
12419 2008-02-18 Zoltan Varga <vargaz@gmail.com>
12421 * genmdesc.c (build_table): Fix a crash on older glib versions.
12423 * cpu-sparc.md: Remove some unused opcodes.
12425 * genmdesc.c: Error out if the .md contains CEE_ opcodes if
12426 MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.
12428 * cpu-amd64.md: Remove some unused opcodes.
12430 * mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
12431 like the other opcodes.
12433 2008-02-17 Zoltan Varga <vargaz@gmail.com>
12435 * mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.
12437 * mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.
12439 * mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
12440 variables 'cfg' instead of 'm' for consistency.
12442 * mini-x86.c: Use cfg->vret_addr instead of cfg->ret.
12444 * mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
12445 argument holding the vtype return address, to avoid the ambigious use of
12446 cfg->ret for this purpose.
12448 * mini.c (NEW_RETLOADA): Use vret_addr if set.
12450 * mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.
12452 * mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
12453 new mono_print_ins () function which only takes one argument.
12455 2008-02-15 Zoltan Varga <vargaz@gmail.com>
12457 * mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
12460 2008-02-14 Zoltan Varga <vargaz@gmail.com>
12462 * mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.
12464 * mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.
12466 * mini-x86.c: Sync with the version on the linear IR branch by adding new
12467 opcodes and other small changes.
12469 * mini-ops.h: Add some new opcodes from the linear IR branch.
12471 * mini-ops.h: Get rid of the OP_X86_..._MEMBASE opcodes.
12473 * mini-x86.c inssel-x86.brg cpu-x86.md: Get rid of the confusing _MEMBASE
12474 opcodes, use the REG_MEMBASE opcodes instead.
12476 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Get rid of the confusing _MEMBASE
12477 opcodes, use the REG_MEMBASE opcodes instead.
12479 * mini-amd64.c (mono_arch_output_basic_block): Sync with the version on the
12482 * mini.c (mono_op_imm_to_op): New helper function.
12484 * mini-ops.h: Add some opcodes from linear IR branch.
12486 2008-02-13 Zoltan Varga <vargaz@gmail.com>
12488 * mini-alpha.h mini-alpha.c tramp-alpha.c: Alpha port updates from Sergey Tikhonov
12491 2008-02-12 Zoltan Varga <vargaz@gmail.com>
12493 * mini.c (mono_normalize_opcodes): Always convert CEE_CONV_R4/R8 to
12496 * mini-ia64.c cpu-ia64.md: Add OP_ICONV_TO_R4/R8.
12498 2008-02-09 Zoltan Varga <vargaz@gmail.com>
12500 * aot-compiler.c (emit_method_code): Add an assert.
12502 * mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
12503 the IMT code so it is AOT friendly. Enable AOT for methods which call interface
12506 2008-02-08 Zoltan Varga <vargaz@gmail.com>
12508 * mini-arm.c (mono_arch_output_basic_block): Fix the ordering of arguments for
12509 some load/store opcodes so they are consistent.
12510 (mono_arch_emit_prolog): Simplify some code.
12512 * aot-runtime.c (mono_aot_get_plt_entry): Fix a warning.
12514 * objects.cs: Add tests for large argument offsets on ARM.
12516 * mini-arm.c (mono_arch_emit_prolog): Fix handling of arguments with large
12517 stack offsets. Fixes #359651.
12519 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R4/R8 properly.
12521 * cpu-s390x.md: Add OP_LCONV_TO_R4/R8.
12523 * cpu-ia64.md mini-ia64.h mini-ia64.c: Get rid of CEE_ opcodes.
12525 * mini-ops.h: Add OP_ICONV_TO_R_UN opcode.
12527 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R_UN too.
12529 * cpu-s390x.md cpu-s390.md mini-s390x.c mini-arm.c cpu-arm.md mini-s390.c: Get
12530 rid of CEE_CONV_R_UN.
12532 * mini-s390x.c mini-s390x.h cpu-s390x.md inssel-s390x.brg: Get rid of CEE_ opcodes.
12534 2008-02-07 Zoltan Varga <vargaz@gmail.com>
12536 * mini-s390.c mini-s390.h cpu-s390.md: Get rid of CEE_ opcodes.
12538 * mini.c (mono_normalize_opcodes): Add some more opcodes.
12540 * mini-arm.c mini-arm.h cpu-arm.md: Get rid of CEE_ opcodes.
12542 * cpu-amd64.md: Remove some unused opcodes.
12544 * mini-sparc.c mini-sparc.h cpu-sparc.md: Get rid of CEE_ opcodes.
12546 * mini-x86.c mini-x86.h cpu-x86.md: Get rid of CEE_ opcodes.
12548 * mini.c mini-<ARCH>.c: Remove mono_arch_local_regalloc (), instead make
12549 arch specific functions for its parts. Call the peephole pass after local
12550 regalloc so the prolog can compute a more accurate max_offset.
12552 * mini.c (mono_normalize_opcodes): New mini pass to convert CEE_ opcodes to
12553 the corresponding OP_I/OP_L opcodes.
12555 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of CEE_ opcodes.
12557 * mini-sparc.c (mono_arch_output_basic_block): Fix the sparc build.
12559 2008-02-06 Zoltan Varga <vargaz@gmail.com>
12561 * mini-s390.c (mono_arch_get_inst_for_method): Remove the Interlocked cases
12562 as they are handled in mini.c.
12564 * mini-s390x.c (mono_arch_get_inst_for_method): Ditto.
12566 * mini-<ARCH>.c (mono_arch_get_inst_for_method): Remove the MemoryBarrier
12567 case since it is handled in mini.c.
12569 * cpu-sparc.md (sparc_setfreg_float): Fix the sparc build.
12571 * mini-ops.h: Add new opcodes OP_CALL/OP_CALLVIRT.
12573 * *.c: Use the new opcodes in the IR and back end code.
12575 * mini-ops.h cpu-<ARCH>.md: Correct the name of the bgt_un opcodes.
12577 * mini-amd64.c (emit_call_body): Use a far-call for calling dynamic methods.
12579 2008-02-06 Mark Probst <mark.probst@gmail.com>
12581 * mini-trampolines.c (mono_generic_class_init_trampoline): Removed
12582 an assert because it has a race condition.
12584 2008-02-06 Zoltan Varga <vargaz@gmail.com>
12586 * tramp-amd64.c (mono_arch_patch_callsite): Add more diagnostics.
12588 * inssel.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused CEE_RET opcode.
12590 * mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused LDIND/STIND opcodes.
12592 * *.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of OP_SETREG/OP_SETFREG/OP_SETREGIMM,
12593 use OP_MOVE/OP_FMOVE/OP_ICONST instead.
12595 2008-02-05 Zoltan Varga <vargaz@gmail.com>
12597 * cpu-amd64.md (move): Correct the maximum size of move.
12599 2008-02-05 Mark Probst <mark.probst@gmail.com>
12601 * tramp-amd64.c, tramp-x86.c, mini-trampolines.c: Added a check in
12602 the generic class init trampoline to return quickly if the class
12605 2008-02-04 Zoltan Varga <vargaz@gmail.com>
12607 * tramp-amd64.c (mono_arch_patch_callsite): Add some diagnostics to help debug
12608 issues where an 32 bit callsite cannot be patched by a 64 bit address.
12610 2008-02-03 Zoltan Varga <vargaz@gmail.com>
12612 * generics.2.cs generics-variant-types.2.il: Merge some tests from the linear IR
12615 2008-01-31 Zoltan Varga <vargaz@gmail.com>
12617 * objects.cs: Add some soft-float tests.
12619 * mini.c: Fix a couple more soft-float issues.
12621 * helpers.c (mono_disassemble_code): Fix disassembly on ARM.
12623 * mini-amd64.c (peephole_pass): Use IXOR instead of LXOR for zeroing a register to
12624 avoid a REX prefix.
12626 2008-01-30 Zoltan Varga <vargaz@gmail.com>
12628 * exceptions-x86.c (mono_arch_find_jit_info): Fix stack unwinding when an
12629 exception happens while compiling a virtual method.
12631 2008-01-29 Zoltan Varga <vargaz@gmail.com>
12633 * mini-sparc.c (mono_arch_emit_epilog): Fix folding of negative return values.
12635 * mini-sparc.c: Fix build.
12637 * mini-sparc.c (get_call_info): Add support for generic sharing.
12639 * mini-exceptions.c: Add a FIXME.
12641 2008-01-27 Zoltan Varga <vargaz@gmail.com>
12643 * mini-exceptions.c (mono_handle_exception_internal): Remove the old style
12644 altstack handling code.
12646 * mini-s390.c (mono_arch_emit_exceptions): Really fix a warning.
12648 * mini-s390.c (mono_arch_emit_exceptions): Fix a warning.
12650 * mini-s390.c: Add support for generic sharing.
12652 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
12654 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
12656 * mini-s390x.c (mono_arch_emit_exceptions): Fix a warning.
12658 * mini-s390x.c: Add support for generic sharing.
12660 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
12662 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
12664 * mini-s390x.c: Use is_imm16 instead of is_uimm16 when checking whenever s390_aghi
12665 can be used since it takes a 16 bit signed immediate.
12667 * inssel-s390x.brg: Fix OP_SETRET.
12669 * mini-s390x.c (mono_arch_output_basic_block): Fix OP_BREAK.
12671 * mini-codegen.c (mono_opcode_to_cond): Fix a warning.
12673 * mini-s390x.c cpu-s390x.md: Implement sext.i4 properly by sign extension.
12675 * mini.c (mono_create_delegate_trampoline): Don't use mono_create_ftpntr here.
12677 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_addr_from_ftnptr
12680 * mini-ia64.h mini-ia64.c: Add minimal support for the delegate trampoline
12683 * mini.h inssel-x86.brg inssel-amd64.brg tramp-alpha.c tramp-ia64.c: Get rid
12684 of the unused mono_arch_patch_delegate_trampoline stuff.
12686 2008-01-26 Zoltan Varga <vargaz@gmail.com>
12688 * basic-long.cs: Move the fp related tests to basic-float.cs.
12690 * mini-ops.h (OP_OUTARG_FREG_R4): New opcode.
12692 * mini-ia64.c inssel-ia64.brg: Implement proper R4 argument passing.
12694 * basic-calls.cs: Add a test for proper float argument passing.
12696 * mini-ia64.h (mono_ia64_context_get_ip): Do not substract 1 from the ip
12697 if the context corresponds to an exception received through a signal.
12699 * exceptions.cs: Add a test for nullref handling at the start of a try
12702 * mini-ia64.c (mono_arch_call_opcode): Fix ia64 argument passing.
12704 * jit-icalls.c (mono_break): New JIT icall.
12706 * mini-<ARCH>.c: Use mono_break instead of mono_arch_break.
12708 * mini-arm.c (arm_patch): Add support for patching the blx calling sequence.
12710 2008-01-25 Zoltan Varga <vargaz@gmail.com>
12712 * cpu-*.md: Get rid of unused opcodes.
12714 * cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.
12716 * Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
12719 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
12722 * mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
12723 the arch independent trampoline code in mini-trampolines.c.
12725 * aot-runtime.c (mono_aot_init_vtable): Fix a warning.
12727 * mini.c (get_runtime_generic_context_ptr): Fix a warning.
12729 * mini-s390.h: Remove an unused define.
12731 * mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
12732 the arch independent trampoline code in mini-trampolines.c.
12734 * mini-arm.c (mono_arch_emit_prolog): Fix build.
12736 2008-01-24 Zoltan Varga <vargaz@gmail.com>
12738 * mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.
12740 * mini-s390.c (mono_arch_emit_prolog): Fix build.
12742 * mini-s390x.c (mono_arch_emit_prolog): Fix build.
12744 * mini-ppc.c (mono_arch_emit_prolog): Fix build.
12746 * cpu-amd64.md: Use smaller sizes for int opcodes.
12748 * *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.
12750 * *.cs: Add some tests from the linear-ir branch. Move structs tests to
12753 * driver.c (mono_main): Add a --break-at-bb command line argument for JIT
12756 * mini.h *.c: Change cfg->vars to contain the MonoMethodVar entries directly
12757 instead of though a pointer to save an indirection when accessing elements of
12760 * mini.h (MONO_IS_COND_BRANCH_OP): Move these macros here from mini.c. Fix
12762 (NOT_IMPLEMENTED): New helper macro.
12763 (MONO_BB_FOR_EACH_INS): New helper macro to iterate through the instructions
12766 * *.c: Use the new helper macro.
12768 2008-01-21 Zoltan Varga <vargaz@gmail.com>
12770 * mini-x86.h (MONO_ARCH_AOT_SUPPORTED): Disable AOT for apple x86.
12772 2008-01-20 Zoltan Varga <vargaz@gmail.com>
12774 * mini-amd64.c (mono_arch_emit_prolog): Optimize the omit fp case to save two
12777 2008-01-18 Zoltan Varga <vargaz@gmail.com>
12779 * mini-amd64.c (mono_arch_emit_prolog): Disable the new optimization if
12780 profiling is enabled.
12782 * mini-amd64.c (mono_arch_call_opcode): Emit the save_sp_to_lmf instruction at
12784 (mono_arch_emit_prolog): Add more first bblock optimizations.
12786 * mini-amd64.c (mono_arch_call_opcode): Keep assignments to the arg registers
12787 in order if possible.
12788 (mono_arch_emit_prolog): Optimize assignments to arg registers in the first
12789 bblock, since the arguments are still in their original registers.
12791 * mini.c (type_from_op): Calling add.ovf on floats is not valid IL code.
12793 2008-01-17 Zoltan Varga <vargaz@gmail.com>
12795 * mini.c (mono_method_to_ir): Use the no-spilling optimization for CEE_CALLI
12798 * mini-amd64.c (mono_arch_emit_prolog): Save an instruction if the LMF is at
12801 * mini-amd64.h (MONO_ARCH_HAVE_NOTIFY_PENDING_EXC): Turn on this for amd64.
12803 * exceptions-amd64.c (mono_arch_notify_pending_exc): New function to
12804 process async exceptions received while in unmanaged code.
12806 * mini.c (mini_init): Install a callback with the runtime which will be called
12807 when a thread receives an async exception while in unmanaged code.
12809 * mini.c driver.c: Update after mono_get_native_wrapper () signature change.
12811 * mini-s390x.c (mono_arch_output_basic_block): Fix s390x build.
12813 2008-01-16 Wade Berrier <wberrier@novell.com>
12820 2008-01-16 Zoltan Varga <vargaz@gmail.com>
12822 * mini-x86.c (mono_arch_output_basic_block): Remove some gccism which prevents
12823 compilation with sun cc.
12825 * cpu-*.md: Fix the build.
12827 * cpu-x86.md: Fix the length of some load membase opcodes. Fixes #354241.
12829 * mini-amd64.h: Add some comments to the MonoLMF structure.
12831 * mini-ops.h cpu-amd64.c: Add a OP_AMD64_SAVE_SP_TO_LMF opcode.
12833 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Avoid setting the rip field
12834 in the LMF structure if possible. This saves two instructions in the
12835 managed->native wrappers.
12837 * mini-ops.h *.md: Make some opcodes names uniform by removing the op_ prefix.
12839 2008-01-16 Mark Probst <mark.probst@gmail.com>
12841 * generic-sharing.c: New type argument lookup code which uses the
12842 runtime generic context template.
12844 2008-01-15 Zoltan Varga <vargaz@gmail.com>
12846 * mini.c (mono_method_to_ir): Avoid emitting a write barrier when storing NULL.
12848 * mini-arm.c (add_general): Fix arm eabi parameter passing.
12849 (mono_arch_output_basic_block): Fix localloc implementation.
12851 * mini-amd64.c (peephole_pass): Sync store+load optimizations with the x86 version.
12853 * mini-ia64.c (peephole_pass): Fix ia64 build.
12855 * mini-amd64.c (peephole_pass): Fix a warning.
12857 * mini-amd64.c (mono_arch_allocate_vars): Make sure the LMF is always stored
12858 at a constant offset from sp/fp.
12860 * exceptions-amd64.c (mono_arch_find_jit_info): Compute the LMF address from fp/sp
12861 instead of obtaining it from *lmf in the managed method case.
12863 2008-01-14 Zoltan Varga <vargaz@gmail.com>
12865 * exceptions-amd64.c (mono_arch_find_jit_info): Remove some duplicate code.
12867 Mon Jan 14 12:33:06 CET 2008 David S. Miller <davem@davemloft.net>
12869 * mini.h (MonoInstList): New type.
12870 (MONO_INST_LIST_INIT, MONO_INST_LIST_EMPTY,
12871 __MONO_INST_LIST_ADD, MONO_INST_LIST_ADD,
12872 MONO_INST_LIST_ADD_TAIL, __MONO_INST_LIST_DEL,
12873 __MONO_INST_LIST_SPLICE, MONO_INST_LIST_SPLICE,
12874 MONO_INST_LIST_SPLICE_TAIL, MONO_INST_LIST_SPLICE_INIST,
12875 MONO_INST_LIST_SPLICE_TAIL_INIT, mono_container_of,
12876 MONO_INST_LIST_ENTRY, MONO_INST_LIST_FIRST_ENTRY,
12877 MONO_INST_LIST_LAST_ENTRY, MONO_INST_LIST_FOR_EACH,
12878 MONO_INST_LIST_FOR_EACH_PREV, MONO_INST_LIST_FOR_EACH_SAFE,
12879 MONO_INST_LIST_FOR_EACH_PREV_SAFE,
12880 MONO_INST_LIST_FOR_EACH_ENTRY,
12881 MONO_INST_LIST_FOR_EACH_ENTRY_REVERSE,
12882 MONO_INST_LIST_FOR_EACH_ENTRY_SAFE,
12883 mono_inst_list_first, mono_inst_list_last,
12884 mono_inst_list_next, mono_inst_list_prev): New instruction
12885 list handling interfaces.
12886 (MonoBasicBlock): Remove 'last_ins' and 'code', replace with
12887 list head 'ins_list'.
12888 (MonoInst): Replace next pointer with list head 'node'.
12889 (MonoCallInst): Make 'out_args' a MonoInstList.
12890 (MONO_INST_NEW_CALL): Explicitly init ->out_args.
12891 (MonoCompile): Delete reverse_inst_list and
12892 reverse_inst_list_len.
12893 * mini-hppa.c (mono_arch_call_opcode, NEW_INS,
12894 mono_arch_lowering_pass, mono_arch_local_regalloc,
12895 mono_arch_output_basic_block, mono_arch_emit_prolog):
12896 Convert to new instruction lists.
12897 (insert_after_ins): Delete.
12898 * inssel.brg (MONO_EMIT_NEW_BRANCH_BLOCK): Convert to new
12900 * mini-hppa.h (MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Likewise.
12901 * mini.c (NEW_BBLOCK, ADD_BBLOCK, CHECK_BBLOCK,
12902 split_bblock, mono_add_ins_to_end, mono_emit_call_args,
12903 mono_emulate_opcode, mono_emit_load_got_addr,
12904 inline_method, mono_method_to_ir, mono_print_bb_code,
12905 print_dfn, decompose_pass, nullify_basic_block,
12906 replace_out_block_in_code, remove_block_if_useless,
12907 merge_basic_blocks, move_basic_block_to_end,
12908 try_unsigned_compare, optimize_branches, mono_print_code,
12909 mini_select_instructions, remove_critical_edges): Likewise.
12910 * mini-amd64.c (emit_sig_cookie, mono_arch_call_opcode,
12911 peephole_pass_1, peephole_pass, mono_arch_lowering_pass,
12912 mono_arch_output_basic_block, mono_arch_emit_prolog):
12914 * mini-mips.c (mono_arch_call_opcode, peephole_pass,
12915 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
12916 mono_arch_output_basic_block): Likewise.
12917 (inst_list_prepend, insert_after_ins): Delete.
12918 * mini-mips.h (MONO_EMIT_NEW_BRANCH_NONZERO_LABEL,
12919 MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Convert to new
12921 * mini-x86.c (emit_sig_cookie, mono_arch_call_opcode,
12922 peephole_pass_1, peephole_pass, mono_arch_output_basic_block,
12923 mono_arch_emit_prolog): Likewise.
12924 * cfold.c (mono_constant_fold): Likewise.
12925 * liveness.c (visit_bb, mono_analyze_liveness,
12926 optimize_initlocals): Likewise.
12927 * ssapre.c (dump_code, process_bb, code_motion): Likewise.
12928 * graph.c (mono_draw_code_cfg): Likewise.
12929 * ssa.c (mono_ssa_rename_vars, mono_ssa_compute,
12930 mono_ssa_remove, mono_ssa_avoid_copies, mono_ssa_create_def_use,
12931 mono_ssa_cprop): Likewise.
12932 * abcremoval (get_relations_from_previous_bb, process_block):
12934 * local-propagation (mono_cprop_invalidate_values,
12935 mono_local_cprop_bb): Likewise.
12936 * mini-s390x.c (mono_arch_call_opcode, emit_sig_cookie,
12937 peephole_pass, mono_arch_output_basic_block,
12938 mono_arch_emit_prolog): Likewise.
12939 * mini-arm.c (mono_arch_call_opcode, peephole_pass,
12940 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
12941 mono_arch_emit_prolog): Likewise.
12942 (insert_after_ins): Delete.
12943 * aliasing.c (print_code_with_aliasing_information,
12944 mono_build_aliasing_information, mono_aliasing_deadce):
12945 Convert to new instruction lists.
12946 * mini-ia64.c (emit_sig_cookie, mono_arch_call_opcode,
12947 peephole_pass, NEW_INS, mono_arch_lowering_pass,
12948 mono_arch_local_regalloc, mono_arch_output_basic_block):
12950 (insert_after_ins): Delete.
12951 * mini-sparc.c (emit_sig_cookie, mono_arch_call_opcode,
12952 peephole_pass, mono_arch_output_basic_block): Convert to
12953 new instruction lists.
12954 * mini-codegen (InstList, inst_list_prepend,
12955 insert_after_ins): Delete.
12956 (insert_before_ins, get_register_force_spilling,
12957 get_register_spilling, free_up_ireg, free_up_reg,
12958 create_copy_ins, create_spilled_store, alloc_int_reg,
12959 alloc_float_reg, alloc_reg, mono_local_regalloc): Convert
12960 to new instruction lists.
12961 * mini-ppc.c (mono_arch_call_opcode, peephole_pass,
12962 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
12963 mono_arch_output_basic_block, mono_arch_emit_prolog): Likewise.
12964 (insert_after_ins): Delete.
12965 * mini-alpha.c (NEW_INS, peephole_pass, mono_arch_lowering_pass,
12966 mono_arch_local_regalloc, mono_arch_output_basic_block,
12967 mono_arch_call_opcode): Convert to new instruction lists.
12968 (insert_after_ins): Delete.
12969 * mini-s390.c (mono_arch_call_opcode, emit_sig_cookie,
12970 peephole_pass, mono_arch_output_basic_block,
12971 mono_arch_emit_prolog): Convert to new instruction lists.
12973 2008-01-11 Zoltan Varga <vargaz@gmail.com>
12975 * mini-amd64.c (mono_arch_output_basic_block): Use a 4 byte load in OP_CHECK_THIS.
12977 * mini-sparc.c (mono_arch_output_basic_block): Use a byte load in CHECK_THIS.
12980 * Makefile.am (version.h): Make this work with non-bash shells.
12982 2008-01-10 Zoltan Varga <vargaz@gmail.com>
12984 * mini.c (handle_delegate_ctor): Optimize away setting of NULL target.
12986 2008-01-08 Zoltan Varga <vargaz@gmail.com>
12988 * mini.c (mono_method_to_ir): Fix possible reading of invalid memory in
12989 the InitializeArray optimization.
12991 2008-01-06 Zoltan Varga <vargaz@gmail.com>
12993 * mini.c driver.c: Don't include os/gc_wrapper.h.
12995 2008-01-05 Zoltan Varga <vargaz@gmail.com>
12997 * mini.c (print_jit_stats): Print GC statistics if available.
12999 2008-01-04 Zoltan Varga <vargaz@gmail.com>
13001 * mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.
13003 2007-12-29 Zoltan Varga <vargaz@gmail.com>
13005 * mini-ppc.c (mono_arch_get_delegate_invoke_impl): Fix flushing of icache.
13007 2007-12-26 Zoltan Varga <vargaz@gmail.com>
13009 * mini.c (mini_init): Move the setting of GC_stackbottom to mono_gc_base_init ().
13011 * mini.c (mini_init): Call mono_gc_base_init () instead of MONO_GC_PRE_INIT ().
13013 * driver.c (mono_main): Ditto.
13015 2007-12-23 Zoltan Varga <vargaz@gmail.com>
13017 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_delegate_invoke ().
13019 * aot-compiler.c (emit_klass_info): Avoid emitting info if one of the methods
13020 in the vtable can't be encoded.
13021 (compile_method): Ditto.
13023 2007-12-21 Zoltan Varga <vargaz@gmail.com>
13025 * mini.c (setup_jit_tls_data): Use the MONO_ARCH_INIT_TOP_LMF_ENTRY macro if
13028 * mini-amd64.h mini-amd64.c exceptions-amd64.c tramp-amd64.c: Rename lmf->ebp to
13031 * exceptions-amd64.c (mono_arch_find_jit_info): Fix the detection of whenever
13032 the top LMF entry belongs to the current method.
13034 * mini.c: Update after renaming of mono_thread_get_pending_exception ().
13036 2007-12-20 Zoltan Varga <vargaz@gmail.com>
13038 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix a warning.
13040 * tramp-ia64.c (mono_arch_create_trampoline_code): Ditto.
13042 * tramp-sparc.c (mono_arch_create_trampoline_code): Check for thread interruption.
13044 * tramp-amd64.c (mono_arch_create_trampoline_code): Ditto.
13046 * tramp-x86.c (mono_arch_create_trampoline_code): Check for thread interruption.
13048 * cpu-amd64.md mini-amd64.h mini-amd64.c inssel-amd64.brg: Add ulong->double
13051 * basic-float.cs: Add an ulong->double cast test.
13053 2007-12-15 Zoltan Varga <vargaz@gmail.com>
13055 * mini.c (mono_method_to_ir): Fix a warning.
13057 2007-12-14 Zoltan Varga <vargaz@gmail.com>
13059 * mini-ops.h: Add OP_SWITCH.
13061 * mini.c graph.c ssa.c aliasing.c mini-<ARCH>.c inssel-<ARCH>.brg: Avoid using
13062 CEE_SWITCH in back-end code, use OP_SWITCH instead.
13064 2007-12-11 Geoff Norton <gnorton@novell.com>
13066 * mini-s390x.c: Minor change to the MAX() define to allow
13067 it to compile with other gcc versions.
13069 2007-12-11 Geoff Norton <gnorton@novell.com>
13072 * mini-s390x.c: Implement sext_i4 to fix the build on s390x
13074 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
13076 exceptions-arm.c (mono_arch_get_restore_context): Restore
13079 exceptions-arm.c (throw_exception): Save the frame pointer.
13080 This is a partial fix for #323747. Only the client side is
13083 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
13085 * mini.c (mono_method_to_ir): Verbose message in CEE_NEWOBJ
13086 was using an unrelated variable to log the class which
13087 needed the cctor to be called. This was crashing on arm.
13089 2007-12-09 Robert Jordan <robertj@gmx.net>
13091 * mini-x86.c (mono_arch_emit_epilog):
13092 Consider all kinds of 64-bit types. Fixes #323114.
13094 2007-12-08 Zoltan Varga <vargaz@gmail.com>
13096 * tramp-amd64.c (mono_arch_create_trampoline_code): Clean up the code a bit.
13098 2007-12-07 Zoltan Varga <vargaz@gmail.com>
13100 * mini-amd64.c (peephole_pass): Add a missing instruction check.
13102 Fri Dec 7 22:08:23 CET 2007 Paolo Molaro <lupus@ximian.com>
13104 * mini.c: run type ctor before allocating an object, not only
13105 when running it's constructor method (fixes at least part of bug #342507).
13107 2007-12-07 Zoltan Varga <vargaz@gmail.com>
13109 * mini-trampolines.c (mono_delegate_trampoline): Fix a warning.
13111 * mini-trampolines.c (mono_generic_class_init_trampoline): Remove a debug printf.
13112 * mini.h mini-amd64.c mini-x86.c: Get rid of the mono_arch_find_vtable ()
13115 * tramp-x86.c tramp-amd64.c mini-trampolines.c: Pass the vtable argument to
13116 mono_generic_class_init_trampoline () the same as it is done with the other
13119 * mini-arm.h mini-arm.c tramp-arm.c inssel-arm.brg cpu-arm.md
13120 aot-runtime.c aot-compiler.c: Implement AOT support.
13122 2007-12-07 Mark Probst <mark.probst@gmail.com>
13124 * mini-trampolines.c (mono_generic_class_init_trampoline): Fixed
13125 build for archs which don't have the vtable trampoline defined
13128 2007-12-07 Zoltan Varga <vargaz@gmail.com>
13130 * tramp-x86.c (mono_arch_create_trampoline_code): Fix the build.
13132 * tramp-ppc.c (mono_arch_create_trampoline_code): Use the new helper function.
13134 * mini-trampolines.c (mono_get_trampoline_func): New helper function.
13136 * tramp-<ARCH>.c: Use the new helper function.
13138 2007-12-07 Mark Probst <mark.probst@gmail.com>
13140 * inssel.brg: Added a pattern for the OP_TRAMPCALL_VTABLE
13141 trampoline call, which takes a vtable argument.
13143 * graph.c, mini-ops.h, local-propagation.c, aliasing.c: Treat
13144 OP_TRAMPCALL_VTABLEs like other calls.
13146 * mini-amd64.c, mini-amd64.h, mini-x86.c, mini-x86.h: Designated a
13147 register to hold the vtable argument to the OP_TRAMPCALL_VTABLE
13148 call. Implemented a support function which fetches the vtable
13149 from a register set.
13151 * mini.c, mini.h, tramp-amd64.c, tramp-x86.c, mini-trampolines.c:
13152 Implemented a generic class init trampoline, using the
13153 OP_TRAMPCALL_VTABLE opcode.
13155 * mini.c: Implemented static field access when sharing generic
13156 code. This implies initing the class using the new
13157 OP_TRAMPCALL_VTABLE call.
13159 2007-12-07 Mark Probst <mark.probst@gmail.com>
13161 * mini.c: Don't compile methods with sharing enabled if their
13162 classes are disabled for sharing.
13164 2007-12-06 Zoltan Varga <vargaz@gmail.com>
13166 * inssel.brg: Add a missing sign extension to the GETCHR and array access
13167 opcodes. Fixes #346563.
13169 * objects.cs: Add a new test.
13171 * aot-compiler.c (emit_method_code): Put back an #ifdef which is needed.
13173 * mini-<ARCH>.h mini.c aot-compiler.c aot-runtime.c: Get rid of the
13174 HAVE_PIC_AOT define and use AOT_SUPPORTED instead.
13176 2007-12-06 Zoltan Varga <vargaz@gmail.com>
13178 * mini-arm.h mini-arm.c: Add support for the common vtable trampoline.
13180 2007-12-03 Zoltan Varga <vargaz@gmail.com>
13182 * mini-arm.c (mono_arch_emit_exceptions): Avoid uninitialized memory in the
13185 2007-12-02 Zoltan Varga <vargaz@gmail.com>
13187 * patch-info.h (PATCH_INFO): Add DELEGATE_TRAMPOLINE.
13189 * mini.c aot-compiler.c aot-runtime.c: Implement the delegate creation
13190 optimization in the AOT case.
13192 2007-11-30 Zoltan Varga <vargaz@gmail.com>
13194 * aot-runtime (mono_aot_get_method_from_vt_slot): Add support for multi-byte method ref encodings.
13196 * aot-runtime.c (decode_klass_ref): Implement decoding of generic instances.
13198 * aot-compiler.c (encode_klass_ref): Implement proper encoding of generic instances.
13200 * mini.c (mono_method_to_ir): Optimize the common ldftn+create delegate combination.
13202 * mini-trampolines.c (mono_delegate_trampoline): Add some code to handle the case when the delegate
13203 is created by the inlined delegate ctor.
13205 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
13207 * mini.c (mono_jit_compile_method_inner): Replace calls to delegate invoke with the trampoline here too.
13209 2007-11-29 Zoltan Varga <vargaz@gmail.com>
13211 * cpu-x86.md: Fix the length of ckfinite.
13213 2007-11-28 Zoltan Varga <vargaz@gmail.com>
13215 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
13217 * mini-x86.c (mono_arch_output_basic_block): Clean up the fp stack properly in CKFINITE.
13218 (mono_arch_output_basic_block): Get rid of unused last_ins and last_offset.
13220 * mini-x86.c (mono_arch_output_basic_block): Add some micro optimizations.
13222 * mini-x86.c inssel-x86.brg cpu-x86.md: Move the implementation of the
13223 OP_START_HANDLER/OP_ENDFINALLY/OP_ENDFILTER opcodes to mini-x86.c.
13225 2007-11-28 Martin Baulig <martin@ximian.com>
13228 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline()
13229 after creating the trampoline.
13231 2007-11-27 Zoltan Varga <vargaz@gmail.com>
13233 * aot-runtime.c (load_aot_module): Check runtime version if needed.
13235 * aot-compiler.c: Add bind-to-runtime-version for producing AOT files which only load into a runtime with
13238 * generic-sharing.c (mono_helper_get_rgctx_other_ptr): Change the signature to take the calling class
13239 instead of the calling method to help AOT.
13241 * mini.c (get_runtime_generic_context_other_ptr): Update after the change.
13243 2007-11-26 Zoltan Varga <vargaz@gmail.com>
13245 * aot-runtime.c (mono_aot_init_vtable): Simplify this if MONO_ARCH_COMMON_VTABLE_TRAMPOLINE
13248 2007-11-23 Zoltan Varga <vargaz@gmail.com>
13250 * aot-compiler.c (emit_class_name_table): Properly encode generic class names.
13252 * aot-compiler.c (compile_method): Correct check for generic method definitions.
13253 (encode_method_ref): No need to handle generic method definitions specially.
13255 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
13257 * aot-runtime.c (decode_klass_ref): Clean this up and rename from
13260 * aot-compiler.c (encode_klass_ref): Clean this up and rename from
13262 (compile_method): Enable generic sharing.
13264 2007-11-22 Zoltan Varga <vargaz@gmail.com>
13266 * mini.c (get_runtime_generic_context_other_ptr): Disable AOT here.
13267 (mini_method_compile): Add preliminary support for AOTing shared generic code.
13269 * aot-compiler.c (compile_method): Add preliminary support for AOTing shared
13272 * mini-trampolines.c: Fix a warning.
13274 * mini.c (get_runtime_generic_context_other_ptr): Use NEW_METHODCONST instead of
13276 (mono_method_to_ir): Use NEW_DOMAINCONST in one place.
13277 (generic_class_is_reference_type): Remove unused function.
13279 * mini-trampolines.c (mono_magic_trampoline): Avoid loading metadata if possible
13280 in the generic vtable trampoline case.
13282 * aot-runtime.c (mono_aot_init_vtable): Use the generic vtable trampoline.
13284 * aot-runtime.c (mono_aot_get_method_from_vt_slot): New helper function to
13285 return an AOT method based on a vtable slot.
13287 * aot-compiler.c (compile_method): Avoid AOTing synchronized methods for now.
13289 * mini.c (mini_get_vtable_trampoline): Export this.
13291 2007-11-22 Martin Baulig <martin@ximian.com>
13294 (MonoDebuggerInfo): Move `debugger_version' up.
13296 2007-11-22 Martin Baulig <martin@ximian.com>
13299 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline().
13301 * mini-trampolines.c
13302 (mono_delegate_trampoline): Call mono_debugger_trampoline_compiled()
13303 after compiling the method.
13305 2007-11-20 Martin Baulig <martin@ximian.com>
13308 (mono_debugger_insert_method_breakpoint): Moved into mono-debug-debugger.c.
13309 (mono_debugger_remove_breakpoint): Likewise.
13310 (mono_debugger_check_breakpoints): Likewise.
13312 * debug-debugger.c: Implement the new breakpoint interface here.
13314 2007-11-18 Zoltan Varga <vargaz@gmail.com>
13316 * mini-amd64.c (mono_arch_output_basic_block): Unify the implementation of
13317 CEE_CONV_I1/SEXT_I1 and I2 since they are the same.
13319 * mini-x86.c (mono_arch_output_basic_block): Ditto.
13321 2007-11-17 Zoltan Varga <vargaz@gmail.com>
13323 * mini-amd64.c (mono_arch_output_basic_block): Fix a typo.
13325 * mini-x86.c (mono_arch_get_inst_for_method): Remove code which is now in
13328 * mini-ia64.c (mono_arch_get_inst_for_method): Remove code which is now in
13331 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for methods
13332 returning a vtype in a register.
13334 * mini.c (mini_get_inst_for_method): Move the handling of the atomic operations
13335 here from the arch specific code.
13337 * mini-amd64.c (mono_arch_get_inst_for_method): Remove code which is now in
13340 * mini-amd64.c (mono_arch_output_basic_block): Add some micro optimizations.
13341 (mono_arch_emit_prolog): Increment maximum prolog size.
13343 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Move the implementation of the
13344 START_HANDLER/ENDFINALLY/ENDFILTER opcodes to mini-amd64.c.
13346 * mini-x86.c (get_call_info): Receive a MonoCompile instead of a
13347 MonoGenericSharingContext.
13349 * mini-ia64.c (get_call_info): Receive a MonoCompile instead of a
13350 MonoGenericSharingContext. Allocate memory from the cfg mempool.
13352 2007-11-15 Mark Probst <mark.probst@gmail.com>
13354 * mini.c, mini.h, generic-sharing.c: Functions for producing code
13355 which extract fields out of the runtime generic context. Full
13356 sharing of the NEWARR opcode.
13358 Thu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>
13360 * abcremoval.c, mini.c, ssa.c, ssapre.c: updated to implement
13361 --enable-minimal=ssa.
13363 2007-11-13 Zoltan Varga <vargaz@gmail.com>
13365 * mini-trampolines.c (mono_delegate_trampoline): Update after
13366 mono_marshal_get_delegate_invoke () signature change.
13368 2007-11-13 Mark Probst <mark.probst@gmail.com>
13370 * mini.c: Removed the shared context in favor of the generic
13371 sharing context. Allocate the MonoJitInfo structure with room for
13372 the generic sharing context if it's needed.
13374 * mini.h: Remove MonoGenericSharingContext declaration. It's in
13375 domain-internals.h now.
13377 * mini-x86.c: Pass the generic sharing context to get_call_info ().
13379 * generic-sharing.c: Several changes for working without a shared
13380 context and instead operating on open types instead.
13382 2007-11-12 David S. Miller <davem@davemloft.net>
13384 * inssel-sparc.brg: Fix double instruction emit.
13386 2007-11-12 Zoltan Varga <vargaz@gmail.com>
13388 * mini.c (mono_jit_runtime_invoke): Avoid trying to compile the Array
13389 Get/Set/Address methods.
13391 * mini.c debug-debugger.c mini-trampolines.c: Update after
13392 mono_marshal_get_delegate_invoke signature change.
13394 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
13396 * cpu-arm.md: Increase the max size of OP_THROW to 24 bytes.
13397 This can happens with dynamic methods. Fixes the other bug in #322722.
13399 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
13401 * tramp-arm.c (mono_arch_patch_callsite): Support patching
13404 * mini-arm.c (arm_patch): Implement patching of BX call
13405 sequence. Fixes one of the bugs in #322722.
13407 2007-11-03 David S. Miller <davem@huronp11.davemloft.net>
13409 * mini-sparc.c (mono_arch_flush_icache): Make more efficient
13410 under Linux. We only need to flush every 32-byte cache line.
13412 2007-11-07 Massimiliano Mantione <massi@ximian.com>
13415 move_basic_block_to_end: Add branches when needed, eventually creating
13417 optimize_branches: added a parameter that tells if it's ok to create
13418 new BBs (doing is "df_visit" has been called is (IMHO) a nightmare),
13419 and avoid calling move_basic_block_to_end when it's not ok.
13422 2007-11-07 Mark Probst <mark.probst@gmail.com>
13424 * mini.c: Abort inlining call to InitializeArray if something
13425 looks wrong. Let the icall handle it, which now has proper safety
13428 2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
13430 * mini.c (mono_spill_call): add support for soft-float.
13432 * mini.c (mono_method_to_ir): add support for soft-float
13433 to inlined functions that return float.
13435 * mini.c (mono_method_to_ir): add support for soft-float
13436 to cee_stsfld opcode on float fields.
13438 2007-11-05 Geoff Norton <gnorton@novell.com>
13440 * mini-x86.h: Fix the structure access for X86 Leopard.
13443 2007-11-05 Martin Baulig <martin@ximian.com>
13445 * mini-trampolines.c
13446 (mono_magic_trampoline): Call mono_debugger_trampoline_compiled()
13447 after compiling the method to notify the debugger.
13449 2007-11-05 Martin Baulig <martin@ximian.com>
13451 * debug-debugger.h (MonoDebuggerInfo): Use the new breakpoint tables.
13453 2007-11-02 Zoltan Varga <vargaz@gmail.com>
13455 * mini-sparc.c (EMIT_COND_SYSTEM_EXCEPTION_GENERAL): Applied patch from
13456 David Miller <davem@davemloft.net>. Allow larger offsets in branches.
13458 2007-11-01 Zoltan Varga <vargaz@gmail.com>
13460 * mini-amd64.c (mono_arch_emit_prolog): Check the domain as well for
13461 native-to-managed wrappers.
13463 2007-11-01 Geoff Norton <gnorton@novell.com>
13465 * mini-ppc.h, mini-x86.h: Handle Leopards renaming of some structure
13468 Wed Oct 31 20:23:14 CET 2007 Paolo Molaro <lupus@ximian.com>
13470 * mini.c, mini-x86.c: when getting back from unmanaged code
13471 to managed via a marshaled delegate we also need to set the
13474 Wed Oct 31 19:53:33 CET 2007 Paolo Molaro <lupus@ximian.com>
13476 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: breakpoint table support
13479 Wed Oct 31 19:29:30 CET 2007 Paolo Molaro <lupus@ximian.com>
13481 * mini.c, mini.h, mini-x86, tramp-x86.c, mini-x86.h: added API to
13482 let the debugger or other external agents to tell the JIT when
13483 a sw breakpoint has been inserted in the code that the JIT needs
13484 to be able to inspect.
13486 2007-10-31 Martin Baulig <martin@ximian.com>
13489 (MonoDebuggerInfo): Remove `runtime_class_init'.
13491 2007-10-30 Martin Baulig <martin@ximian.com>
13494 (mono_debugger_thread_created): Added `MonoThread *' argument.
13495 (mono_debugger_extended_notification): New public method.
13496 (mono_debugger_trampoline_compiled): New public method.
13499 (MonoDebuggerThreadInfo): Added `thread' and
13500 `extended_notifications' fields.
13503 (debugger_executable_code_buffer): New static variable.
13506 (MonoDebuggerInfo): Added `executable_code_buffer',
13507 `executable_code_buffer_size', `breakpoint_info_area',
13508 `breakpoint_table' and `breakpoint_table_size'.
13510 2007-10-26 Rodrigo Kumpera <rkumpera@novell.com>
13512 * mini-arm.c (mono_arch_build_imt_thunk): Take the advantage
13513 that IP either is an unused value or the vtable pointer. IMT
13514 calls use vtable + offset now. Reduced by almost half the size
13517 2007-10-26 Jonathan Chambers <joncham@gmail.com>
13519 * mini-amd64.c: Begin Win64 port. Use AMD64_ARG_REG#
13520 defines to access param registers. Replace long usage with
13521 gsize as sizeof(long) != sizeof(void*) on Win64.
13523 * mini-amd64.h: Add %rdi and %rsi to MonoLMF structure
13524 on Win64. Fix intrinsic, use _AddressOfReturnAddress
13525 instead of non-existant _GetAddressOfReturnAddress.
13527 * tramp-amd64.c: Use AMD64_ARG_REG# defines to access
13528 param registers. Save/restore %rdi and %rsi in MonoLMF.
13530 * exceptions-amd64.c: Use AMD64_ARG_REG# defines to access
13531 param registers. Modify (throw_exception) signature to take
13532 %rdi and %rsi on Win64.
13534 Code is contributed under MIT/X11 license.
13536 Thu Oct 25 23:06:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
13538 * helpers.c: unlink debugging output files.
13540 2007-10-25 Zoltan Varga <vargaz@gmail.com>
13542 * mini.c: Move mono_create_ftnptr () to object.c.
13544 2007-10-24 Rodrigo Kumpera <rkumpera@novell.com>
13546 * helpers.c (mono_disassemble_code): MonoCompile parameter is now
13547 optional. This function can now be used to disassemble code generated
13548 outside the JIT such as trampolines and IMT thunks.
13550 * mini-arm.h: defined MONO_ARCH_HAVE_IMT.
13552 * mini-arm.c (decode_vcall_slot_from_ldr): added, extract the
13553 vtable pointer from a ldr instruction.
13555 * mini-arm.c (mono_arch_get_vcall_slot_addr): support the
13556 new IMT call sequence.
13558 * mini-arm.c (mono_arch_output_basic_block): emit the IMT
13559 call sequence for interface invocations.
13561 * mini-arm.c (mono_arch_emit_imt_argument): added, required
13562 for imt support. This function is empty since IMT on ARM requires no
13563 special handling on the IR side.
13565 * mini-arm.c (mono_arch_find_imt_method): added, required for
13568 * mini-arm.c (mono_arch_find_this_argument): added, required
13571 * mini-arm.c (arm_emit_value_and_patch_ldr): added, patches
13572 a ldr instruction to load a value stored in the code stream.
13574 * mini-arm.c (mono_arch_build_imt_thunk):added, required
13578 2007-10-23 Zoltan Varga <vargaz@gmail.com>
13580 * mini.c (mini_init): Install the jump trampoline callback.
13582 Tue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
13584 * mini-trampolines.c: handle synchronized methods with the common
13585 vtable trampoline (bug #335601).
13587 2007-10-17 Zoltan Varga <vargaz@gmail.com>
13589 * mini-ia64.h mini-amd64.c: Add support for the common vtable trampoline.
13591 * inssel.brg (mini_emit_virtual_call): Fix the computation of ins->inst_offset on
13594 * mini-ia64.h mini-ia64.c: Add support for IMT.
13596 * mini-x86.c (mono_arch_emit_prolog): Increase the size allocated for the
13597 prolog. Fixes #331958.
13599 2007-10-15 Zoltan Varga <vargaz@gmail.com>
13601 * mini-sparc.h mini-sparc.c: Add support for the common vtable trampoline.
13603 Mon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
13605 * mini-ppc.c, mini-ppc.h: ppc support for the common vtable
13608 Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
13610 * mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
13613 Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
13615 * mini-x86.c, mini-x86.h: x86 support for the common vtable
13618 Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
13620 * mini-trampolines.c: changed the magic rampoline to understand
13621 the common vtable trampoline method: the method to invoke is
13622 determined by the vtable displacement of the call.
13624 Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
13626 * mini.c, mini.h: register the common vtable trampoline if the
13627 architecture supports it.
13629 Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
13631 * cpu-amd64.md: use the correct max length for tls_get.
13633 2007-10-14 Zoltan Varga <vargaz@gmail.com>
13635 * mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
13636 CEE_STELEM_ANY. Fixes #333696.
13638 Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
13640 * exceptions-x86.c: provide more graceful handling of the case where
13641 we followed a bogus function pointer from managed code (bug #332866).
13643 2007-10-11 Mark Probst <mark.probst@gmail.com>
13645 * mini.h, mini.c: Introduced the MonoGenericSharingContext, which
13646 replaces the generic_shared flag and will carry more information
13649 * generic-sharing.c: Added mini_type_stack_size() which allows
13650 allows open types if given a generic sharing context.
13651 mini_get_basic_type_from_generic() takes a
13652 MonoGenericSharingContext* instead of a MonoCompile* now.
13654 * mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
13655 mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
13656 mini-sparc.c, mini-x86.c: Trivial changes required by the two
13657 changes above. Just passing arguments through to the right
13660 Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
13662 * mini-arm.c: unify the call emission to emit_code_seq().
13664 Wed Oct 10 13:05:46 CEST 2007 Paolo Molaro <lupus@ximian.com>
13666 * tramp-arm.c: reduced the trampoline size.
13668 2007-10-10 Mark Probst <mark.probst@gmail.com>
13670 * generic-sharing.c, mini.h, mini-amd64.c, mini-x86.c: Moved type
13671 variable handling out of arch-specific code.
13673 Wed Oct 10 10:49:28 CEST 2007 Paolo Molaro <lupus@ximian.com>
13675 * mini-arm.c: implemented fast delegate dispatch.
13677 2007-10-09 Zoltan Varga <vargaz@gmail.com>
13679 * mini-amd64.c (mono_arch_compute_omit_fp): Add more checks to ensure
13680 that fp elimination is turned off if the space required by locals is too
13681 big. Fixes #331958.
13683 Tue Oct 9 21:01:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
13685 * Makefile.am, mini-arm.c, mini-arm.h, tramp-arm.c: ported
13686 ARM to the new style trampoline.
13688 2007-10-09 Zoltan Varga <vargaz@gmail.com>
13690 * tramp-amd64.c: Rework the specific trampoline code to make it smaller.
13692 * mini-amd64.h mini-amd64.c: Export amd64_patch as mono_amd64_patch.
13694 2007-10-09 Martin Baulig <martin@ximian.com>
13697 (MonoDebuggerMetadataInfo): Added `field_info_type_offset' and
13698 `field_info_offset_offset'.
13700 Tue Oct 9 09:47:51 CEST 2007 Paolo Molaro <lupus@ximian.com>
13702 * mini-ppc.c, mini-ppc.h, mini-ops.h, inssel-ppc.brg, cpu-g4.md:
13703 removed more internal usage of the r11 register and made it available
13704 to the register allocator.
13706 2007-10-08 Mark Probst <mark.probst@gmail.com>
13708 * mini.c, mini-amd64.c, mini-x86.c: Allow open generic contexts
13709 when sharing generics and treat type variables as references.
13711 Mon Oct 8 10:55:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
13713 * mini-ppc.c: started removing the internal uses of register r11
13714 to eventually allow the register allocator to manage it as an
13715 additional available register.
13717 Mon Oct 8 14:25:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
13719 * tramp-amd64.c: fixed memory corruption in the trampoline generation.
13721 Mon Oct 8 12:06:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
13723 * tramp-ppc.c, tramp-x86.c: reduce the alignment requirements for
13724 specific trampolines as they are not performance critical as a jump
13725 target (maybe align as before only for AOT code?). This saves about
13726 200 KB of native code on x86 for monodevelop startup.
13728 Mon Oct 8 10:04:40 CEST 2007 Paolo Molaro <lupus@ximian.com>
13730 * tramp-ppc.c: reduce the size of the trampolines, saves 160KB on
13731 monodevelop startup.
13733 2007-10-06 Zoltan Varga <vargaz@gmail.com>
13735 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Allow signed displacements.
13737 * mini-sparc.h mini-sparc.c: Implement IMT support.
13739 * tramp-sparc.c (mono_arch_create_trampoline_code): Rework the trampoline code so
13740 its smaller and doesn't clobber sparc_g1.
13742 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Update after trampoline changes.
13744 Fri Oct 5 18:28:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
13746 * mini-ppc.c: optimized the size of the IMT thunks a bit.
13748 Fri Oct 5 18:08:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
13750 * mini-ppc.c: implemented fast delegate invocation.
13752 Fri Oct 5 00:01:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
13754 * mini-ppc.h, mini-ppc.c: IMT support for the PPC architecture.
13756 Thu Oct 4 22:04:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
13758 * mini-ppc.c, mini-ppc.h, tramp-ppc.c, Makefile.am: port the PPC
13759 code to the new style trampoline in preparation for IMT support.
13761 Thu Oct 4 19:01:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
13763 * mini-ppc.c, tramp-ppc.c: don't use r13 as it's used by the PPC EABI
13764 systems already. This also reduces the specific trampiline sizes and
13765 prepares for the use of r12 as the IMT identifier register.
13767 Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
13769 * mini-mips.h: endianess fix (simplified from a patch by
13770 Thomas Kunze <thommy@tabao.de>, bug #323737).
13772 Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
13774 * exceptions-ppc.c, mini-ppc.h: refactor to use macros
13775 to access ucontext fields and enable netbsd support
13776 (partially from Magnus Henoch <mange@freemail.hu>).
13778 Thu Oct 4 12:35:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
13780 * genmdesc.pl: patch from Henryk Plotz <henryk@openmoko.org> to
13781 use the preprocessor from the CPP env var if it is set.
13783 Wed Oct 3 17:11:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
13785 * mini-trampolines.c: fixed an assertion and moved it earlier in the
13786 code, before interface_offset gets used.
13788 2007-10-02 Zoltan Varga <vargaz@gmail.com>
13790 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
13791 mono_class_setup_vtable () before accessing klass->vtable.
13793 2007-10-01 Zoltan Varga <vargaz@gmail.com>
13795 * aot-compiler.c (get_plt_index): Rework the handling of wrappers to be not so
13798 Mon Oct 1 15:00:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
13800 * mini.c, mini-trampolines.c, mini.h: enable the lazy filling of the
13801 IMT slots (this saves hundreds of KB of memory in programs like
13802 IronPython and Monodevelop).
13804 Mon Oct 1 14:44:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
13806 * mini.c: print the delegate counter.
13808 Mon Oct 1 14:36:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
13810 * mini-x86.c: make it easier to enable the debugging code for IMT
13813 2007-09-28 Martin Baulig <martin@ximian.com>
13816 (MonoDebuggerMetadataInfo): Add `klass_image_offset',
13817 `mono_method_klass_offset' and `mono_method_token_offset'.
13819 2007-09-20 Mark Probst <mark.probst@gmail.com>
13821 * mini.c: First generics sharing implementation. Can only share
13822 in very simple cases. If sharing doesn't work it falls back to
13823 dedicated compilation.
13825 * mini.h: Flag in MonoCompile to specify whether generic
13826 compilation is shared. Flags enum for marking which generic inst
13827 of a context is used. Prototypes for helper functions.
13829 * generic-sharing.c: Helper functions for generic method sharing.
13831 * optflags-def.h: Optimization flag (gshared) for enabling generic
13832 method sharing added.
13834 * Makefile.am: generic-sharing.c added.
13836 2007-09-19 Daniel Nauck <dna@mono-project.de>
13838 * mini.c (mono_thread_abort): fixed typo in r86014. It should be '==' instead of '!='.
13840 2007-09-19 Massimiliano Mantione <massi@ximian.com>
13841 * mini.c (mono_thread_abort): Correctly handle ThreadAbortException,
13844 2007-09-19 Martin Baulig <martin@ximian.com>
13846 * mini.c (mini_cleanup): Only call mono_debugger_cleanup() here;
13847 mono_debug_cleanup() is now part of mono_cleanup().
13849 2007-09-18 Zoltan Varga <vargaz@gmail.com>
13851 * driver.c (mono_main): Fix a warning.
13853 2007-09-17 Zoltan Varga <vargaz@gmail.com>
13855 * aot-compiler.c: Optimize various parts when processing large assemblies.
13858 * mini.c (mono_patch_info_hash): Improve hash function.
13860 2007-09-14 Jonathan Chambers <joncham@gmail.com>
13862 * mini-exceptions.c: Add HAVE_UNISTD_H check around include.
13864 Code is contributed under MIT/X11 license.
13866 2007-09-14 Zoltan Varga <vargaz@gmail.com>
13868 * mini.c (mini_init): Fix a leak.
13870 * debug-mini.c (mono_debug_free_method_jit_info): Fix a leak.
13872 Fri Sep 14 12:53:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
13874 * mini.c: redirect string.InternalAllocStr() to the managed allocator.
13876 2007-09-14 Zoltan Varga <vargaz@gmail.com>
13878 * mini-amd64.c (mono_arch_find_imt_method): Add support for AOT code.
13880 2007-09-13 Zoltan Varga <vargaz@gmail.com>
13882 * Makefile.am generics-variant-types.2.il generics.cs: Add some generics
13885 * inssel.brg: Reorganize the isinst/castclass code to reduce code duplication.
13887 * mini.c (handle_alloc): Enable managed allocators in AOT code.
13889 * aot-compiler.c (encode_patch): Add support for MONO_WRAPPER_ALLOC.
13891 * aot-runtime.c (decode_patch_info): Ditto.
13893 2007-09-12 Jonathan Chambers <joncham@gmail.com>
13895 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement
13896 static case. Cache delegates in architecture specific code,
13897 based on number of parameters.
13899 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Cache delegates
13900 in architecture specific code, based on number of parameters.
13902 * mini-trampolines.c (mono_delegate_trampoline): Architecture specific
13903 caching happen in architecture specific code now.
13905 Code is contributed under MIT/X11 license.
13907 2007-09-12 Jonathan Chambers <joncham@gmail.com>
13909 * mini.h, mini.c, mini-x86.c, mini-amd64.c, mini-hppa.c, mini-mips.c,
13910 mini-s390x.c, mini-arm.c, mini-ia64.c, mini-sparc.c, mini-ppc.c, mini-alpha.c,
13911 mini-s390.c: Add mono_arch_init and mono_arch_cleanup methods.
13913 Code is contributed under MIT/X11 license.
13915 2007-05-15 Massimiliano Mantione <massi@ximian.com>
13916 * mini.c: (mono_thread_abort) Fixed bug #82416.
13918 Tue Sep 11 16:15:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
13920 * mini.: hook the new managed GC allocation feature into the JIT.
13922 Tue Sep 11 16:14:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
13924 * mini.c: implementation for the new runtime tls opcode.
13926 2007-09-11 Martin Baulig <martin@ximian.com>
13929 (MonoDebuggerMetadataInfo): Add `mono_method_flags_offset' and
13930 `mono_method_inflated_offset'.
13932 2007-09-07 Zoltan Varga <vargaz@gmail.com>
13934 * driver.c mini.h mini.c: Add a new devel command line option for injecting
13935 async exceptions into a method.
13937 * mini-amd64.h mini-amd64.c: Implement injecting of async exceptions for the
13938 purpose of testing whenever the unwinder works at every instruction.
13940 Thu Sep 6 12:42:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
13942 * mini.c: check accessibility of method used in ldftn (fixes
13945 2007-09-04 Zoltan Varga <vargaz@gmail.com>
13947 * mini-amd64.c (mono_arch_output_basic_block): Fix a warning.
13949 * inssel.brg: Fix a warning.
13951 2007-09-03 Martin Baulig <martin@ximian.com>
13953 * debug-debugger.c: `MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE'
13954 now takes the `main_method' as argument.
13956 2007-09-02 Zoltan Varga <vargaz@gmail.com>
13958 * cpu-sparc.md (endfilter): Add missing src1:i argument.
13960 2007-08-30 Jonathan Chambers <joncham@gmail.com>
13962 * driver.c: include the cil-coff.h header on Windows.
13964 Code is contributed under MIT/X11 license.
13966 Thu Aug 30 16:17:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
13968 * mini.c, driver.c: don't include the cil-coff.h header.
13970 Thu Aug 30 14:50:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
13972 * mini.c: flag places that needs fixes fo soft-float support.
13974 Wed Aug 29 18:26:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
13976 * mini.h, inssel-float.brg: fix soft-float constant loads on big
13977 endian systems (partially from Dean Jenkins, bug #81924).
13979 2007-08-28 Mark Probst <mark.probst@gmail.com>
13981 * mini.c (check_linkdemand): Remove embedded reference object in
13982 call to LinkDemandSecurityException.
13983 (mono_jit_compile_method_inner): Call LinkDemandSecurityException
13984 with an IntPtr instead of a reference object.
13986 2007-08-28 Zoltan Varga <vargaz@gmail.com>
13988 * mini.c (handle_initobj): Handle alignment properly.
13990 * inssel.brg (mini_emit_memset): Ditto.
13992 * inssel.brg (mini_emit_memcpy): Ditto.
13994 * inssel-sparc.brg: Ditto.
13996 * mini.h mini.c inssel-*.brg: Pass alignment information to OP_MEMCPY/MEMSET.
13998 2007-08-26 Zoltan Varga <vargaz@gmail.com>
14000 * mini-exceptions.c (mono_handle_exception_internal): Skip the first frame for
14001 exceptions raised in unmanaged code. Fixes part of #82594.
14003 2007-08-24 Mark Probst <mark.probst@gmail.com>
14005 * mini.c (mono_method_to_ir), declsec.c
14006 (mono_declsec_linkdemand_aptc): Fixed custom attr leaks.
14008 2007-08-22 Martin Baulig <martin@ximian.com>
14011 (MonoDebuggerThreadInfo): New typedef.
14012 (mono_debugger_thread_table): New global variable.
14013 (mono_debugger_thread_created): New public function.
14014 (mono_debugger_thread_cleanup): New public function.
14017 (MonoDebuggerInfo):
14018 - removed `get_current_thread' and `lookup_assembly'.
14019 - removed `data_table'.
14020 - added `thread_table'.
14023 (mono_thread_start_cb): Call mono_debugger_thread_created().
14024 (mono_thread_attach_cb): Likewise.
14025 (mini_thread_cleanup): Call mono_debugger_thread_cleanup().
14026 (mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
14029 * driver.c (mono_main): Move mono_debug_init() up, before calling
14030 mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.
14032 Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
14034 * mini-x86.c, inssel-x86.brg: group multiple stack adjustments
14035 together when passing several arguments of type double (gives a small
14036 speedup and saves a few bytes of generated code).
14038 2007-08-20 Jb Evain <jbevain@novell.com>
14040 * mini.c (mono_method_to_ir): fix leak on InvalidProgramException.
14042 2007-08-20 Jb Evain <jbevain@novell.com>
14044 * mini.c (mono_method_to_ir): throw MethodAccessException
14045 and FieldAccessException instead of InvalidProgramException.
14047 2007-08-20 Mark Probst <mark.probst@gmail.com>
14049 * mini.c: CoreCLR security checks.
14051 * mini.h: Removed MonoSecurityMode (moved to
14052 metadata/security-manager.h) and mono_security_mode global var
14053 (replaced by set/get functions in security-manager.h).
14055 * driver.c: Added "core-clr-test" security mode for testing. Used
14056 set-function for setting security mode.
14058 2007-08-17 Mark Probst <mark.probst@gmail.com>
14060 * mini.c: MonoJitInfo's are freed hazardously now. Statistics for
14061 the new jit_info_table.
14063 * driver.c: Test code for the new jit_info_table (enabled by the
14064 define MONO_JIT_INFO_TABLE_TEST).
14066 2007-08-14 Zoltan Varga <vargaz@gmail.com>
14068 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
14069 detection of call <REG> instruction sequence. Fixes build on freebsd.
14071 2007-08-13 Zoltan Varga <vargaz@gmail.com>
14073 * mini-exceptions.c: Fix a warning.
14075 2007-08-11 Zoltan Varga <vargaz@gmail.com>
14077 * exceptions-amd64.c (mono_arch_handle_altstack_exception): Enable the new
14078 stack overflow handling code on amd64 too.
14080 * mini-exceptions.c (mono_setup_altstack): Make this use
14081 mono_thread_get_stack_bounds ().
14083 * mini-x86.h: Disable sigaltstack on solaris x86.
14085 2007-08-10 Zoltan Varga <vargaz@gmail.com>
14087 * mini-exceptions.c (mono_setup_altstack): Enable this to work on solaris x86.
14089 2007-08-10 Geoff Norton <gnorton@customerdna.com>
14091 * tramp-x86.c: Remove some unneeded alignment changes on Apple. Fixes #82387.
14093 2007-08-08 Zoltan Varga <vargaz@gmail.com>
14095 * mini-exceptions.c (mono_print_thread_dump): Enable this on amd64 too.
14097 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Fix a warning.
14099 2007-08-03 Neale Ferguson <neale@sinenomine.net>
14101 * mini-s390.c (add_general): Adjust offset calculation to take into account of rounding up
14104 Thu Aug 2 17:36:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
14106 * mini-ppc.c: avoid an invalid encoding of unsigned right shift by 0
14107 to be emitted (bug #82281).
14109 2007-08-01 Martin Baulig <martin@ximian.com>
14111 Merged the `debugger-dublin' branch.
14113 * debug-debugger.h (MonoDebuggerInfo):
14114 Removed the `old_*' compatibility entries.
14115 Added `debugger_version' and `data_table'.
14116 Renamed `get_method_addr_or_bpt' -> `insert_breakpoint'.
14117 Renamed `remove_method_breakpoint' -> `remove_breakpoint'.
14120 (MiniDebugMethodBreakpointInfo): Add `address_list'.
14121 (mono_debugger_check_breakpoints): Take a `MonoDebugMethodAddress *'
14122 instead of a `gconstpointer'.
14123 (mono_debugger_insert_method_breakpoint): Return a
14124 `MonoDebugMethodAddressList *'.
14126 2007-06-28 Martin Baulig <martin@ximian.com>
14128 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
14130 2007-08-01 Zoltan Varga <vargaz@gmail.com>
14132 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Avoid using
14133 __builtin_frame_address () since it is broken on older gcc versions.
14135 Tue Jul 31 17:34:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
14137 * mini.c, mini.h, mini-exceptions.c: added a bit of documentation
14138 on the stack overflow handling and made the managed stack overflows
14139 catchable in most cases using soft guard pages.
14140 * exceptions-x86.c: added code to restore the protection in the soft
14141 guard pages at the end of exception handling.
14143 2007-07-31 Zoltan Varga <vargaz@gmail.com>
14145 * mini.c (SIG_HANDLER_SIGNATURE): Fix a warning.
14147 Mon Jul 30 17:43:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
14149 * exceptions-ppc.c, mini-ppc.h: arch-specific stack overflow
14150 exception handling.
14152 Mon Jul 30 17:38:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
14154 * mini-alpha.h, mini-ia64.h, mini-sparc.h: disable the altstack
14155 signal handling support until it has been ported to the new mechanism.
14156 * mini.c: fixed stack overflow detection and use the new
14157 architecture code to handle signals on the altstack.
14159 Mon Jul 30 17:33:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
14161 * exceptions-amd64.c, mini-amd64.h: amd64 code to handle
14162 stack overflows on the alt stack.
14164 Mon Jul 30 17:29:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
14166 * exceptions-x86.c, mini-x86.h, mini.h: new code to handle
14167 stack overflows on the alt stack.
14169 Mon Jul 30 11:50:06 CEST 2007 Paolo Molaro <lupus@ximian.com>
14171 * exceptions-ppc.c: cleanup preparing for altstack support.
14173 Mon Jul 30 11:31:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
14175 * exceptions-arm.c: cleanup preparing for altstack support.
14177 2007-07-27 Mark Probst <mark.probst@gmail.com>
14179 * mini.c (print_jit_stats): Output hazard pointer stats.
14181 2007-07-26 Mark Probst <mark.probst@gmail.com>
14183 * driver.c, mini.c: Replaced security mode flags with a single
14186 Thu Jul 26 20:12:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
14188 * mini.c, mini-exceptions.c: cleanup the sigaltstack code.
14190 2007-07-25 Mark Probst <mark.probst@gmail.com>
14192 * mini.c, mini.h, driver.c (mono_main): Added command-line flag
14193 (which doesn't do anything yet) for activating Core CLR
14194 (Silverlight) security.
14196 Tue Jul 24 21:16:17 CEST 2007 Paolo Molaro <lupus@ximian.com>
14198 * mini-codegen.c: work around a possible gcc bug on arm.
14200 Tue Jul 24 17:20:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
14202 * driver.c, mini-x86.h, mini-amd64.h: print a nice error
14203 message for platforms that don't support AOT compilation.
14205 Mon Jul 23 10:29:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
14207 * mini.h, mini.c, driver.c: temporary smcs hack.
14209 Mon Jul 23 09:29:34 CEST 2007 Paolo Molaro <lupus@ximian.com>
14211 * mini-arm.h, mini-arm.c: arm EABI fixes.
14213 2007-07-22 Zoltan Varga <vargaz@gmail.com>
14215 * exceptions-x86.c (mono_arch_find_jit_info): Handle the lmf->method == NULL
14218 * tramp-x86.c (mono_arch_create_trampoline_code): Only set lmf->method for
14219 trampolines taking a method argument.
14221 * mini-x86.h (MonoLMF): Add an 'esp' field plus comments.
14223 * mini-x86.c (mono_arch_emit_prolog): Update after changes to the LMF structure.
14224 * tramp-x86.c (mono_arch_create_trampoline_code): Ditto.
14226 * exceptions-x86.c (mono_arch_get_jit_info): Properly clean up the stack after
14227 JIT compilation throws an exception. Fixes #82050.
14229 2007-07-19 Mark Probst <mark.probst@gmail.com>
14231 * mini.c: Removed the MonoLoaderErrorKind enum and replaced it
14232 with the MONO_EXCEPTION_ defines.
14234 2007-07-17 Zoltan Varga <vargaz@gmail.com>
14236 * mini-amd64.c (mono_arch_find_imt_method): Handle mov reg,IMM64 case. Fixes
14239 * mini-amd64.c (mono_arch_find_imt_method): Add some debug code to help find out
14240 the cause of an assertion.
14242 Mon Jul 16 19:31:21 CEST 2007 Paolo Molaro <lupus@ximian.com>
14244 * mini.c, jit-icalls.c: mono_get_inflated_method() is obsolete,
14247 2007-07-15 Zoltan Varga <vargaz@gmail.com>
14249 * mini-amd64.c (mono_arch_build_imt_thunk): Remove the non-32bit MonoMethod
14250 assert. Should fix #82103.
14252 2007-07-14 Zoltan Varga <vargaz@gmail.com>
14254 * mini-exceptions.c (mono_jit_walk_stack_from_ctx): Use MONO_CONTEXT_GET_SP ()
14255 here too. Fixes #82095.
14257 * mini-amd64.c (mono_arch_build_imt_thunk): Add support for non-32bit MonoMethod
14260 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a couple asserts.
14262 * mini-amd64.h: Enable IMT for amd64.
14264 * mini-amd64.c (mono_arch_build_imt_thunk): Optimize IMT thunk size.
14266 2007-07-12 Zoltan Varga <vargaz@gmail.com>
14268 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for IMT call sequences.
14270 2007-07-12 Mark Probst <mark.probst@gmail.com>
14272 * mini.c (check_linkdemand, mono_method_to_ir): Abort compilation
14273 as soon as check_linkdemand sets an exception_type.
14275 Thu Jul 12 12:18:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
14277 * mini-x86.c: fixed offsets for IMT call sequence.
14278 * mini-x86.h: enable IMT again.
14280 2007-07-11 Zoltan Varga <vargaz@gmail.com>
14282 * trace.c (mono_trace_enter_method): Decode MonoType too.
14284 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Handle signed displacements too.
14286 * mini.h mini-x86.h mini-trampolines.c: Change the signature of mono_arch_find_imt_method () to pass the calling code address too.
14288 * mini-amd64.c: Add preliminary IMT implementation.
14290 Wed Jul 11 18:21:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
14292 * mini-x86.c: adjusted mono_arch_get_vcall_slot_addr () to
14293 understand the new IMT-base interface invocation (thanks to
14294 Daniel Nauck for the report and the remote debugging session).
14296 Wed Jul 11 14:54:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
14298 * mini-x86.c: size and speed optimizations for the IMT bsearch.
14300 2007-07-11 Zoltan Varga <vargaz@gmail.com>
14302 * Makefile.am (aotcheck): Make this actually use the AOTed code.
14304 Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
14306 * mini-trampolines.c: implement AOT IMT support.
14307 * mini-x86.h: enable IMT support for wider testing.
14309 2007-07-10 Zoltan Varga <vargaz@gmail.com>
14311 * inssel.brg (emit_imt_argument): Add aot support here.
14313 * aot-runtime.c (decode_patch_info): Fix reading of MONO_PATCH_INFO_METHOD.
14315 Tue Jul 10 17:50:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
14317 * mini-x86.c, mini-x86.h, tramp-x86.c: x86 arch-specific changes
14318 of the IMT implementation, partially from massi, with my
14319 implementation of the bsearch sequence. Disabled by default until
14320 the AOT code is implemented.
14322 2007-07-10 Zoltan Varga <vargaz@gmail.com>
14324 * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
14326 * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
14328 Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
14330 * inssel.brg, mini.c, mini.h, mini-trampolines.c:
14331 arch-independent IMT JIT code from Massimiliano
14332 Mantione (massi@ximian.com) with small cleanups from me.
14334 Tue Jul 10 13:07:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
14336 * Makefile.am: fix svn invocation to get the svn revision to be
14337 independent of the local language (build fix).
14339 2007-07-09 Mark Probst <mark.probst@gmail.com>
14341 * mini.c (inline_method): Reset cfg->exception_type if the
14342 inlining is aborted. Fixes: 82049.
14344 Mon Jul 9 17:26:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
14346 * mini.c: remove assert from exception handling code when exception_ptr
14349 2007-07-05 Zoltan Varga <vargaz@gmail.com>
14351 * mini.c (mono_codegen): Add an assert.
14353 * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method
14354 enter and leave code.
14355 * mini-amd64.c (mono_arch_emit_prolog): Likewise.
14357 Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
14359 * mini-ppc.c: fixed memory corruption for localloc(0)
14362 2007-07-05 Zoltan Varga <vargaz@gmail.com>
14364 * mini.c: Fix warnings.
14366 Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
14368 * optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
14369 to emit better double->int conversions.
14371 Tue Jul 3 19:42:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
14373 * mini.c: the provided Min/Max optimizations are valid for unisgned
14376 2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
14378 * 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
14380 2007-06-28 Miguel de Icaza <miguel@novell.com>
14382 * mini.c (mono_running_on_valgrind): Add support for reporting the
14383 method and its boundaries to valgrind.
14385 2007-06-28 Martin Baulig <martin@ximian.com>
14387 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
14389 2007-06-25 Zoltan Varga <vargaz@gmail.com>
14391 * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
14393 * generic.2.cs: Add new test case.
14395 2007-06-25 Martin Baulig <martin@ximian.com>
14397 Merged the `debugger-dublin' branch.
14400 (mono_debugger_insert_method_breakpoint): New public method.
14401 (mono_debugger_remove_method_breakpoint): Likewise.
14402 (mono_debugger_check_breakpoints): New static method.
14403 (mono_debug_close_method): Call mono_debugger_check_breakpoints().
14405 * debug-debugger.h (MonoDebuggerInfo):
14406 Renamed (to keep backward compatibility in the vtable):
14407 `insert_breakpoint' -> `old_insert_breakpoint'.
14408 `remove_breakpoint' -> `old_remove_breakpoint'.
14409 `create_string' -> `old_create_string'.
14410 `lookup_class' -> `old_lookup_class'.
14411 `lookup_type' -> removed; changed into a dummy field.
14412 `lookup_assembly' -> `old_lookup_assembly'.
14413 Added (same functionality, but different signature):
14414 `create_string', `lookup_class', `lookup_assembly'
14416 `get_method_addr_or_bpt', `remove_method_breakpoint',
14417 `runtime_class_init'.
14419 * debug-debugger.c: Merged the `debugger-dublin' branch.
14421 2007-06-23 Zoltan Varga <vargaz@gmail.com>
14423 * mini-amd64.c (peephole_pass_1): Optimize away moves at the beginning of the bb as
14425 (peephole_pass): Likewise.
14427 Fri Jun 22 09:17:08 CEST 2007 Paolo Molaro <lupus@ximian.com>
14429 * driver.c: hopefully make setaffinity work also for ancient
14432 2007-06-22 Atsushi Enomoto <atsushi@ximian.com>
14434 * driver.c : win32 build fix.
14436 Thu Jun 21 19:24:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
14438 * driver.c: check for the MONO_NO_SMP env var and bind to a single
14439 processor if it is set.
14441 2007-06-21 Martin Baulig <martin@ximian.com>
14443 * debug-mini.h: New file.
14446 (mono_debugger_insert_breakpoint_full): Moved here from
14447 ../metadata/mono-debug-debugger.c.
14448 (mono_debugger_remove_breakpoint): Likewise.
14449 (mono_debugger_breakpoint_callback): Likewise.
14451 2007-06-15 Raja R Harinath <rharinath@novell.com>
14453 * jit-icalls.c (mono_helper_compile_generic_method): Update to
14454 changes in MonoGenericClass.
14456 2007-06-14 Zoltan Varga <vargaz@gmail.com>
14458 * mini-codegen.c (mono_opcode_to_type): Fix ia64 build.
14460 2007-06-14 Raja R Harinath <rharinath@novell.com>
14462 * jit-icalls.c (mono_helper_compile_generic_method): Update to
14463 removal of MonoGenericMethod.
14465 Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
14467 * mini-exceptions.c: hooks for the exception events profiling API.
14469 2007-06-14 Randolph Chung <tausq@debian.org>
14471 * Makefile.ma: Add hppa target.
14472 * mini-arch.h: Include mini-hppa.h
14473 * cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
14474 mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
14475 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
14477 2007-06-14 Randolph Chung <tausq@debian.org>
14479 * inssel.brg: Add rules for "chained" compare-branch operations so that
14480 a single compare op can affect multiple branches. Adjust cost for
14481 OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
14482 * inssel-long32.brg: Update rules to use compare-branch macros. Adjust
14483 cost for some rules so that they can more easily be overridden by
14484 per-arch rules (with fixes from lupus).
14485 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
14487 2007-06-13 Randolph Chung <tausq@debian.org>
14489 * mini-ops.h: Reorder branch ops so that they match the order of the
14490 corresponding CEE_* ops. The code expects them this way.
14491 Add new ops for HPPA target.
14492 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
14494 2007-06-13 Randolph Chung <tausq@debian.org>
14496 * mini-exceptions.c: Handle cases where the stack grows towards
14498 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
14500 Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
14502 * jit-icalls.c, mini.h, mini.c: added virtual generic invoke
14504 * driver.c: explain where a non-matching corlib is found.
14506 2007-06-13 Mark Probst <mark.probst@gmail.com>
14508 * mini.c (print_jit_stats): Output dynamic code allocation stats.
14510 2007-06-10 Sanghyeon Seo <sanxiyn@gmail.com>
14512 * mini-exceptions.c: Generate a method profile leave event during
14513 an exception to ensure that the profiler gets notified.
14515 2007-06-07 Zoltan Varga <vargaz@gmail.com>
14517 * mini-amd64.c (peephole_pass): Merge some small changes from the linear-ir
14520 * cpu-amd64.md: Add long_and/or/xor opcodes.
14522 2007-06-06 Wade Berrier <wberrier@novell.com>
14524 * cpu-s390x.md (shr_imm): Correct the length of shr_imm instruction.
14525 (./class/lib/monolite/mcs.exe:25498): WARNING **: wrong maximal instruction
14526 length of instruction shr_imm (expected 8, got 10)
14528 2007-06-06 Zoltan Varga <vargaz@gmail.com>
14530 * mini-ia64.c (mono_arch_output_basic_block): Really fix the build.
14532 2007-06-06 Mark Probst <mark.probst@gmail.com>
14534 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
14535 MonoInternalHashTable again (fixed bug in the internal hash table
14538 2007-06-06 Mark Probst <mark.probst@gmail.com>
14540 * mini.c, driver.c: Reverted the MonoInternalHashTable changes.
14541 Have to figure out what makes it crash the SWF regression.
14543 2007-06-05 Zoltan Varga <vargaz@gmail.com>
14545 * mini-ia64.c (mono_arch_lowering_pass): Fix ia64 build.
14547 Tue Jun 5 17:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
14549 * mini.c: optimize out the type check when storing null in a
14552 2007-06-04 Mark Probst <mark.probst@gmail.com>
14554 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
14555 MonoInternalHashTable.
14557 Mon Jun 4 11:29:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
14559 * inssel.brg, mini.c, mini-ops.h: optimized Math.Mini/Max
14560 signed integer methods.
14562 2007-06-02 Zoltan Varga <vargaz@gmail.com>
14564 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case
14565 permanently since the current approach doesn't work.
14567 2007-06-02 Zoltan Varga <vargaz@gmail.com>
14569 * inssel.brg (stmt): Only call delegate->invoke_impl if
14570 MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined.
14572 2007-06-01 Zoltan Varga <vargaz@gmail.com>
14574 * mini-amd64.c (mono_arch_output_basic_block): Unify div/rem opcodes and handle
14575 the sreg2==rdx case.
14577 * mini-amd64.c cpu-amd64.md: Correct length of r4const instruction and take into
14578 account if it contains a rex prefix.
14579 (peephole_pass): Handle OP_FMOVE as well.
14581 2007-06-01 Zoltan Varga <vargaz@gmail.com>
14583 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case for now
14584 as it causes regressions.
14586 2007-05-31 Zoltan Varga <vargaz@gmail.com>
14588 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement support for the
14589 static case as well.
14591 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.
14593 * mini-x86.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
14594 (mono_arch_get_this_arg_from_call): Ditto.
14596 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Removed.
14598 * inssel.brg (mini_emit_virtual_call): Call delegate->Invoke through the delegate's
14601 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
14602 (mono_arch_get_this_arg_from_call): Ditto.
14604 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Removed.
14606 * mini-trampolines.c (mono_delegate_trampoline): Complete rewrite. On first call,
14607 try to create optimized invoke code and use that for further invocations.
14608 Otherwise, use the original mono_marshal_get_delegate_invoke () implementation.
14610 * mini-x86.h mini-ia64.h: Remove MONO_ARCH_HAS_CREATE_DELEGATE_TRAMPOLINE for now.
14612 2007-05-29 Rodrigo Kumpera <kumpera@gmail.com>
14614 * inssel.brg (mini_emit_virtual_call): Statically dispatch virtual calls to
14615 sealed classes or methods.
14616 *devirtualization.cs: tests for the new optimization
14618 2007-05-29 Zoltan Varga <vargaz@gmail.com>
14620 * liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
14621 by the update_volatile () function.
14623 2007-05-27 Zoltan Varga <vargaz@gmail.com>
14625 * driver.c (mono_main): Call g_thread_init () early since newer glib versions
14628 * abcremoval.c (mono_perform_abc_removal): Avoid using alloca.
14630 2007-05-24 Jonathan Chambers <joncham@gmail.com>
14632 * mini.c: Add configure checks for header files.
14633 * mini-x86.c: Add configure checks for header files.
14634 * trace.c: Add configure checks for header files.
14635 * aot-runtime.c: Add configure checks for header files.
14636 * aot-compiler.c: Add configure checks for header files.
14637 * driver.c: Add configure checks for header files.
14638 * mini-codegen.c: Add configure checks for header files.
14640 Code is contributed under MIT/X11 license.
14642 2007-05-22 Zoltan Varga <vargaz@gmail.com>
14644 * mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
14645 icompare_imm -128 + op_iclt. Fixes #81703.
14647 2007-05-19 Zoltan Varga <vargaz@gmail.com>
14649 * mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
14651 2007-05-15 Massimiliano Mantione <massi@ximian.com>
14653 * inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
14654 inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
14655 so that all isinst checks now use "interface_bitmap".
14657 2007-05-15 Zoltan Varga <vargaz@gmail.com>
14659 * cpu-amd64.md (jmp): Fix a warning.
14661 * inssel.brg (CEE_SWITCH): Hopefully fix #80738.
14663 * basic.cs: Add new regression test.
14665 * basic.cs: Remove test which is now in basic-long.cs.
14667 * mini-ia64.c (mono_arch_output_basic_block): Sign extend in CEE_CONV_I8/CEE_CONV_I.
14669 * basic-long.cs: Add new test.
14671 2007-05-13 Zoltan Varga <vargaz@gmail.com>
14673 * mini-sparc.c (mono_spillvar_offset_float): Fix sparc build.
14675 2007-05-12 Zoltan Varga <vargaz@gmail.com>
14677 * cpu-x86.md minix-86.c: Add a peephole_pass_1 () as on amd64.
14679 * mini-x86.c (mono_arch_output_basic_block): Use mono_opcode_to_cond () in a few
14682 * mini-x86.c (mono_arch_emit_exceptions): Decrease the size of the exception
14683 throwing code a bit.
14685 * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Decrease the size of
14686 the exception throwing code a bit.
14688 * mini-x86.c (get_call_info): Allocate result from a mempool.
14690 2007-05-11 Zoltan Varga <vargaz@gmail.com>
14692 * aot-compiler.c (find_typespec_for_class): Fix the assert.
14694 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
14696 * mini.h (MonoCompile): Add 'token_info_hash' field.
14698 * mini.c: Save token->method associations during compilation so the AOT
14699 compiler can use it.
14701 * aot-compiler.c aot-runtime.c: Add support for compiling non-generic methods
14702 which reference generic classes and methods.
14704 2007-05-10 Zoltan Varga <vargaz@gmail.com>
14706 * mini.h mini-<ARCH>.h: Get rid of MONO_ARCH_HAS_XP_LOCAL_REGALLOC.
14708 * aot-compiler.c (compile_method): Fix a typo in a comment.
14710 * aot-runtime.c (decode_cached_class_info): Skip generic types.
14712 * aot-compiler.c: Add minimal support for AOTing generic code by skipping
14713 everything generic.
14715 * mini.c (mono_method_to_ir): Disable AOT when calling helper_compile_generic_method.
14717 2007-05-09 Zoltan Varga <vargaz@gmail.com>
14719 * mini.h (MonoCompile): Add 'args' field.
14721 * mini.c (mono_compile_create_vars): Store variables representing the arguments
14724 * mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
14726 2007-05-08 Zoltan Varga <vargaz@gmail.com>
14728 * mini.c (mono_compile_get_interface_var): Remove this unused function.
14730 * mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
14732 * mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
14733 opcodes for some opcodes.
14735 * mini.h *.brg *.c: Use the new opcodes.
14737 2007-05-08 Massimiliano Mantione <massi@ximian.com>
14739 * mini.h: Bumped aot revision.
14741 * inssel.brg: modified code generation of type checks for interfaces
14742 to use the new "MonoClass.interface_bitmap" instead of the old
14743 "MonoClass.interface_offsets".
14745 2007-04-30 Zoltan Varga <vargaz@gmail.com>
14747 * cpu-amd64.md (jmp): Increase the maximum size of the jmp opcode to 128.
14749 2007-04-29 Zoltan Varga <vargaz@gmail.com>
14751 * abcremoval.c (summarize_integer_value): Handle OP_LCONV_TO_I4 to fix abcrem on
14754 2007-04-27 Neale Ferguson <neale@sinenomine.net>
14756 * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
14758 2007-04-27 Wade Berrier <wberrier@novell.com>
14760 * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in
14761 mini.h) to fix build.
14763 2007-04-26 Zoltan Varga <vargaz@gmail.com>
14765 * mini-amd64.c (peephole_pass_1): Fix and reenable this pass.
14767 * mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
14768 causes the corlib unit tests to fail.
14770 2007-04-25 Zoltan Varga <vargaz@gmail.com>
14772 * mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.
14774 * mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.
14776 * mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional
14777 opcodes to the comparison relations.
14779 * mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional
14780 opcodes to their types.
14782 * mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.
14784 * mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache
14785 it in cfg->arch.cinfo.
14787 * local-propagation.c (mono_local_cprop_bb): Fix a warning.
14789 * mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in
14790 cfg->cil_offset_to_bb.
14792 2007-04-24 Zoltan Varga <vargaz@gmail.com>
14794 * liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
14795 created becase of initlocals.
14797 2007-04-23 Zoltan Varga <vargaz@gmail.com>
14799 * mini-alpha.c cpu-alpha.md: More alpha port work from
14800 Sergey Tikhonov <tsv@solvo.ru>.
14802 2007-04-21 Andreas Faerber <andreas.faerber@web.de>
14804 * Makefile.am (BUILT_SOURCES): Fix for automake 1.6.x. Fixes #81417.
14806 2007-04-19 Zoltan Varga <vargaz@gmail.com>
14808 * cpu-s390.md (break): Correct the length of break instruction.
14810 Thu Apr 19 16:28:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
14812 * mini.c: fix a couple of soft-float issues and comments.
14814 2007-04-15 Miguel de Icaza <miguel@novell.com>
14816 * trace.c (is_filenamechar): - is also a filename char.
14818 2007-04-15 Neale Ferguson <neale@sinenomine.net>
14820 * mini-s390.c: Correct checking for enum type in return value processing.
14822 2007-04-14 Raja R Harinath <rharinath@novell.com>
14824 * Makefile.am (BUILT_SOURCES): Add 'version.h'.
14825 (version.h): Makefile is in the build directory.
14827 2007-04-06 Andreas Faerber <andreas.faerber@web.de>
14829 * mini-amd64.h: fix for assertion failure on Solaris/amd64
14831 2007-04-11 Martin Baulig <martin@ximian.com>
14833 * mini.c (can_access_member): Fix handling of generic classes;
14836 2007-04-10 Zoltan Varga <vargaz@gmail.com>
14838 * aot-runtime.c (mono_aot_plt_resolve): Fix disabling of AOT. Fixes #81316.
14840 2007-04-05 Zoltan Varga <vargaz@gmail.com>
14842 * aot-runtime.c: Fix disabling of AOT. Fixes #81316.
14844 Fri Mar 23 20:25:31 CET 2007 Paolo Molaro <lupus@ximian.com>
14846 * mini-codegen.c: make sure the right spill amount is
14847 used for fp or integer registers (fixes the float_sub_spill() on ppc).
14849 Fri Mar 23 19:43:35 CET 2007 Paolo Molaro <lupus@ximian.com>
14851 * mini-ppc.c: fixes for the fp_branch_nan test.
14853 2007-03-23 Zoltan Varga <vargaz@gmail.com>
14855 * basic.cs: Comment out new test which still fails on ia64.
14857 Fri Mar 23 15:54:23 CET 2007 Paolo Molaro <lupus@ximian.com>
14859 * mini.c: immediate shifted or fix (mono_metadata_user_string assert).
14861 Fri Mar 23 12:53:28 CET 2007 Paolo Molaro <lupus@ximian.com>
14863 * mini-ppc.c, mini-ppc.h: struct passing ABI fix (bug #77968).
14865 2007-03-22 Zoltan Varga <vargaz@gmail.com>
14867 * cfold.c (FOLD_BINOP): Cast the result to gint32 to prevent overflow problems
14868 on 64 bit machines. Fixes part of #80738.
14870 * basic.cs: Add regression test.
14872 2007-03-17 Zoltan Varga <vargaz@gmail.com>
14874 * inssel.brg basic.cs: Revert previous change to fix build.
14876 * inssel.brg (SWITCH): Clean out the upper word of the switch value on 64 bit
14879 * inssel.brg (SWITCH): Use an integer comparison. Fixes #80738.
14881 * basic.cs: Add new regression test.
14883 2007-03-17 Zoltan Varga <vargaz@gmail.com>
14885 * mini-ia64.c (mono_arch_emit_prolog): Fix an assert when a function has too
14888 2007-03-16 Neale Ferguson <neale@sinenomine.net>
14890 * cpu-s390x.md: Correct length of break instruction.
14892 2007-03-16 Neale Ferguson <neale@sinenomine.net>
14894 * mini-s390x.c, cpu-s390x.md: Fix #80507 for s390x.
14895 * mini-s390.c, cpu-s390.md: Fix #80507 for s390.
14897 2007-03-15 Jonathan Chambers <joncham@gmail.com>
14899 * *.c: Begin WIN64 port.
14900 * mini.c: Use correct register in profiler.
14901 * mini-amd64.c: No inline assembly on Win64.
14902 * mini-amd64.h: Implement MONO_INIT_CONTEXT_FROM_FUNC for Win64.
14903 Only define MONO_ARCH_USE_SIGACTION on non-windows platforms.
14904 * exceptions-amd64.c: Only need gregs_from_ucontext if MONO_ARCH_USE_SIGACTION
14905 is defined. Implement mono_arch_sigctx_to_monoctx, mono_arch_monoctx_to_sigctx, and
14906 mono_arch_ip_from_context for Win64.
14908 Contributed under MIT/X11 license.
14910 2007-03-15 Zoltan Varga <vargaz@gmail.com>
14912 * exceptions-amd64.c (seh_handler): Ditto.
14914 * exceptions-x86.c (seh_handler): Fix a memory leak.
14916 Thu Mar 15 13:47:59 CET 2007 Paolo Molaro <lupus@ximian.com>
14918 * mini-arm.c, mini-mips.c, mini-ppc.c, mini-s390.c,
14919 mini-s390x.c: fixed peephole optimizations to deal
14920 correctly with 1 and 2 byte reload avoidance.
14922 Thu Mar 15 10:17:54 CET 2007 Paolo Molaro <lupus@ximian.com>
14924 * cpu-s390.md, cpu-s390x.md: update localloc length.
14926 Wed Mar 14 21:00:19 CET 2007 Paolo Molaro <lupus@ximian.com>
14928 * cpu-g4.md: added missing descriptions.
14930 2007-03-14 Miguel de Icaza <miguel@novell.com>
14932 * Makefile.am: Add support so the tail tests are not executed on
14933 PowerPC as that is a known limitation of the PowerPC port.
14935 2007-03-13 Jonathan Chambers <joncham@gmail.com>
14937 * runmdesc.bat: Move to msvc directory.
14939 2007-03-13 Jonathan Chambers <joncham@gmail.com>
14941 * runmdesc.bat: Run executable that was produced by the current
14942 target and sent via an argument.
14944 2007-03-11 Zoltan Varga <vargaz@gmail.com>
14946 * mini.c (mono_method_to_ir): Fix box+brtrue optimization. Fixes
14949 * generics.2.cs: Add regression test.
14951 2007-03-09 Wade berrier <wberrier@novell.com>
14953 * mini-ppc.h: Undo typo of MONO_CONTEXT_SET_SP (ppc doesn't define this symbol)
14955 2007-03-09 Zoltan Varga <vargaz@gmail.com>
14957 * aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
14958 AOT code depends on this.
14960 Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
14962 * mini.c: more precise tracking of types in the eval stack
14963 (part of fix for bug #81044).
14965 2007-03-07 Zoltan Varga <vargaz@gmail.com>
14967 * aot-runtime.c (mono_aot_get_class_from_name): Add a cache.
14969 * aot-compiler.c (encode_patch): Remove an obsolete comment.
14971 2007-03-06 Zoltan Varga <vargaz@gmail.com>
14973 * mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.
14975 * mini.c (mono_method_to_ir): Add a workaround for bug #80733.
14977 2007-02-22 Zoltan Varga <vargaz@gmail.com>
14979 * mini.c (type_from_op): Convert CEE_CONV_U to OP_LCONV_TO_U when the argument is
14980 a pointer on 64 bit systems. Fixes #80190.
14982 * iltests.il: Add new regression test.
14984 Tue Feb 20 11:33:28 CET 2007 Paolo Molaro <lupus@ximian.com>
14986 * mini.c: inline a constant for Environment.IsRunningOnWindows.
14988 2007-02-19 Geoff Norton <gnorton@customerdna.com>
14990 * trace.c: Remove an erroneous alignemnt check when tracing.
14991 Fixes --trace on OSX86.
14993 Wed Feb 14 19:45:56 CET 2007 Paolo Molaro <lupus@ximian.com>
14995 * mini-$(arch).h: initialize SP in context for all the archs.
14997 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
14999 * mini-x86.h: Initialize SP in MONO_INIT_CONTEXT_FROM_FUNC. Fix CAS
15000 regressions in the thread tests.
15002 2007-02-14 Zoltan Varga <vargaz@gmail.com>
15004 * *-alpha.*: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>:
15005 - fixed implementation of LOCALLOC opcode
15006 - implemented non-un compare for floats
15008 - implementation of FDIV and CKFINITE opcodes
15009 - fixes for latest mono updates
15010 - additional arch opcodes
15012 Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
15014 * Makefile.am: simplify and merge rules for cross-compilation.
15016 2007-02-07 Massimiliano Mantione <massi@ximian.com>
15018 * local-propagation.c: Actually *apply* the fix for bug 80591...
15020 Tue Feb 6 19:03:19 CET 2007 Paolo Molaro <lupus@ximian.com>
15022 * mini-exceptions.c: backuot part of the last change
15023 (fixes cas tests on amd64 related to GetExecutingAssembly ()).
15025 2007-02-06 Massimiliano Mantione <massi@ximian.com>
15026 * inssel.brg: Fix bug 59286.
15029 Tue Feb 6 12:23:50 CET 2007 Paolo Molaro <lupus@ximian.com>
15031 * mini-exceptions.c: patch from Zoltan to correctly check for
15032 stack boundaries (using the stack register, not the frame register),
15033 fixes bugs #80724, #79717.
15035 2007-02-03 Zoltan Varga <vargaz@gmail.com>
15037 * mini-ia64.c inssel-sparc.brg mini-sparc.c cpu-sparc.md: Get rid of OP_SETREG/
15038 OP_SETREGIMM, use OP_MOVE/OP_ICONST instead.
15040 * mini-amd64.c (mono_arch_output_basic_block): Fix ATOMIC_EXCHANGE in the
15041 presence of frame pointer elimination.
15043 2007-02-01 Geoff Norton <gnorton@customerdna.com>
15045 * mini-x86.h: NetBSD UCONTEX_REG defines.
15047 2007-02-01 Zoltan Varga <vargaz@gmail.com>
15049 * inssel-amd64.brg: Fix amd64 build.
15051 Thu Feb 1 14:02:09 CET 2007 Paolo Molaro <lupus@ximian.com>
15053 * mini.h: remove extern to workaround what looks likes gcc bug 26905
15056 2007-01-31 Zoltan Varga <vargaz@gmail.com>
15058 * mini-codegen.c (mono_is_regsize_var): New helper function usable by the back
15061 * mini-<ARCH>.c: Use mono_is_regsize_var ().
15063 2007-01-30 Mark Mason <mason@broadcom.com>
15065 * exceptions-mips.c: Lots of exception handling fixes, LMFs now work, some cleanups.
15066 * mini-mips.h: Add LMF magic numbers, and fix context set/get macros.
15067 * mini-mips.c: Cleanups, LMF handling now works, optimize store of zero, implement localloc
15068 beginning support for CEE_JMP [not quite working yet]
15069 * tramp-mips.c: LMF handling now works
15071 2007-01-30 Zoltan Varga <vargaz@gmail.com>
15073 * mini-amd64.c (peephole_pass): Optimize code common in initlocals blocks.
15075 * mini.h (NULLIFY_INS): New macro.
15077 Tue Jan 30 16:33:33 CET 2007 Paolo Molaro <lupus@ximian.com>
15079 * mini.c: statistical profiler fix for windows, patch
15080 from Tor Lillqvist (tml@novell.com).
15082 2007-01-30 Massimiliano Mantione <massi@ximian.com>
15083 * local-propagation.c: Fix bug 80591.
15085 Mon Jan 29 12:14:34 CET 2007 Paolo Molaro <lupus@ximian.com>
15087 * Makefile.am: put back the --export-dynamic option as with
15088 the previous gmodule flags (thanks to Robert Jordan).
15090 2007-01-28 Zoltan Varga <vargaz@gmail.com>
15092 * mini-sparc.c (peephole_pass): Fix #80622 for sparc as well.
15094 mini.h *.c: Allocate fp vregs from the same pool as the int vregs. Use this to
15095 simplify and speed up the local register allocator. Also rename some fields
15096 like iassign->vassign.
15098 * regalloc.c: Remove some functions which are no longer used since their
15099 inlined version is in mini-codegen.c.
15101 * mini-codegen.c: Rename mono_regstate2_ functions to mono_regstate_.
15103 * basic.cs objects.cs iltests.il: Merge tests from the linear IL branch.
15105 2007-01-27 Zoltan Varga <vargaz@gmail.com>
15107 * mini-amd64.c (peephole_pass): Remove optimizations which omit a
15108 narrowing. Fixes #80622.
15110 * iltests.il: Add new regresssion test.
15112 Fri Jan 26 18:31:45 CET 2007 Paolo Molaro <lupus@ximian.com>
15114 * mini.h, mini-trampolines.c, aliasing.c, mini-codegen.c,
15115 debug-debugger.c, debug-debugger.h: warning fixes.
15116 * driver.c: updated copyright year and made it fit in one line.
15118 Fri Jan 26 12:48:39 CET 2007 Paolo Molaro <lupus@ximian.com>
15120 * aot-runtime.c: updated to use mono-dl instead of gmodule.
15122 2007-01-25 Zoltan Varga <vargaz@gmail.com>
15124 * mini-x86.c (mono_arch_output_basic_block): Fix #80507 for x86.
15126 * mini-amd64.c (mono_arch_output_basic_block): Fix #80507 for amd64.
15128 * iltests.il: Add new test for bug #80507.
15130 Wed Jan 24 19:10:28 CET 2007 Paolo Molaro <lupus@ximian.com>
15132 * mini-arm.h: use soft-float also on vfp for now.
15134 Wed Jan 24 14:54:40 CET 2007 Paolo Molaro <lupus@ximian.com>
15136 * mini.c: fix some more soft-float issues.
15138 2007-01-24 Zoltan Varga <vargaz@gmail.com>
15140 * mini-sparc.h (MONO_ARCH_FRAME_ALIGNMENT): Fix sparc build.
15142 2007-01-24 Massimiliano Mantione <massi@ximian.com>
15143 * mini-arch.h, , inssel-amd64.brg, mini-x86.c, inssel-x86.brg,
15144 mini-ia64.c, mini-sparc.c, mini-alpha.c: Introduced
15145 MONO_ARCH_LOCALLOC_ALIGNMEENT to fix bug 80498.
15147 Wed Jan 24 12:04:39 GMT 2007 Paolo Molaro <lupus@ximian.com>
15149 * mini-arm.c: typo fix.
15151 2007-01-23 Neale Ferguson <neale@sinenomine.net>
15153 * mini-s390x.c: Use lgb instructions for I1 type variables instead of lb.
15155 2007-01-21 Zoltan Varga <vargaz@gmail.com>
15157 * mini.c (mono_allocate_stack_slots_full): Allocate memory from the cfg mempool.
15158 Share stack slots for scalar types. Avoid expensive g_list_free () calls.
15160 * mini-x86.c (mono_arch_allocate_vars): Don't free the result of allocate_stack_slots_full.
15162 * mini-amd64.c mini-ia64.c mini-alpha.c: Ditto.
15164 * mini.h (MonoJitStats): Add a new JIT statistics: locals_stack_size.
15166 * inssel.brg: Fix a warning.
15168 * mini.h (MonoBasicBlock): Make bb->dominated a GSList.
15170 * abcremoval.c ssa.c ssapre.c: Update after this change.
15172 * dominators.c (compute_dominators): Allocate bb->dominated from the cfg mempool.
15174 * dominators.c (df_set): Use mono_bitset_union_fast.
15176 Sat Jan 20 16:59:01 CET 2007 Paolo Molaro <lupus@ximian.com>
15178 * mini.h, genmdesc.c, genmdesc.pl, mini-${arch}.c, cprop.c,
15179 mini-codegen.c: reduce relocations and memory usage for the cpu
15182 2007-01-20 Zoltan Varga <vargaz@gmail.com>
15184 * mini-codegen.c (mono_regstate2_alloc_int): Optimize this using bsfq on amd64.
15186 * genmdesc.c genmdesc.pl mini.h: Remove some unused fields from the mdesc tables
15187 to reduce their size.
15189 2007-01-19 Mark Mason <mason@broadcom.com>
15191 * exceptions-mips.c: fix mono_arch_ip_from_context(), increase exception debug support.
15192 * mini-mips.c: more configuration macros, support long conditional branches, additional
15193 asserts, fix epilog instrumentation.
15194 * mini-mips.h: use standard stack walk
15195 * cpu-mips.md: increase size of div, rem and conditional branches
15197 Fri Jan 19 17:23:32 CET 2007 Paolo Molaro <lupus@ximian.com>
15199 * mini.h, mini-codegen.c, mini-$(arch).h: claenup references
15202 2007-01-19 Zoltan Varga <vargaz@gmail.com>
15204 * aot-compiler.c (encode_klass_info): Allow classes of the form <Type>[][].
15205 (compile_method): Ditto.
15207 * aot-runtime.c (decode_klass_info): Ditto.
15209 * mini.c (mono_method_to_ir): Call mono_get_got_var () in a place where it is
15210 needed by the code generated by inssel.brg. Also fix a warning.
15212 Thu Jan 18 17:55:22 CET 2007 Paolo Molaro <lupus@ximian.com>
15214 * mini.c: deal with enums that become genericinsts by
15215 being nested in a generic class (bug #79956).
15217 Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
15219 * mini.c: match the generic definition to check for
15220 private access with generic types (bug #78431).
15222 Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
15224 * genmdesc.pl, Makefile.am: perl implementation of genmdesc,
15225 to make life easier for people cross-compiling that insist on not
15228 2007-01-17 Mark Mason <mason@broadcom.com>
15230 * inssel-long.brg: patch to deal with mips missing flags
15231 * inssel-long32-mips.brg: implement overflow checks
15232 * insset-mips.brg: implement overflow checks
15233 * mini-mips.h: implement conditional exception handling
15234 * mini-mips.c: add mips_emit_exc_by_name(), implement conditional exception handling.
15235 Remove unused code, minor cleanups.
15236 * exceptions-mips.c: minor cleanups
15237 * mini-ops.h: add mips conditional exception ops
15238 * cpu-mips.md: add mips conditional exception ops
15241 Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
15243 * inssel.brg: patch from Mark Mason <mason@broadcom.com>
15244 to deal with mips missing of flags.
15246 Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
15248 * exceptions-ppc.c: execute fault handlers.
15250 Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
15252 * mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.
15254 Tue Jan 16 13:14:31 CET 2007 Paolo Molaro <lupus@ximian.com>
15256 * mini.c: handle also floating point values in initialize_array.
15258 Tue Jan 16 12:42:40 CET 2007 Paolo Molaro <lupus@ximian.com>
15260 * mini.c, aot-runtime.c, aot-compiler.c: enable aot compilation of
15261 array initialization and make it conditional on the intrins option.
15263 Tue Jan 16 11:28:45 CET 2007 Paolo Molaro <lupus@ximian.com>
15265 * mini.h, patch-info.h, Makefile.am, aot-compiler.c: reduce
15266 relocations and put the patch info names close to the enum definition.
15268 2007-01-15 Mark Mason <mason@broadcom.com>
15270 * basic.cs, exceptions.cs: break up large tests to increase debugability.
15272 Mon Jan 15 18:57:14 CET 2007 Paolo Molaro <lupus@ximian.com>
15274 * mini.c: optimized RuntimeHelpers::InitializeArray () calls.
15276 2007-01-12 Raja R Harinath <rharinath@novell.com>
15278 * mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
15280 Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
15282 * Makefile.am: distribute the mips sources.
15284 Wed Jan 10 19:49:33 CET 2007 Paolo Molaro <lupus@ximian.com>
15286 * mini-codegen.h: handle bug #80489 here, by excluding ecx
15289 Wed Jan 10 19:08:05 CET 2007 Paolo Molaro <lupus@ximian.com>
15291 * cpu-x86.md: back out for now as this triggers other regressions.
15293 Wed Jan 10 18:33:16 CET 2007 Paolo Molaro <lupus@ximian.com>
15295 * cpu-x86.md: force src1 and dest regpair for long shift instructions
15296 to eax:edx, so ecx can't get allocated to them (bug #80489).
15298 Tue Jan 9 12:36:11 CET 2007 Paolo Molaro <lupus@ximian.com>
15300 * mini.c, mini-exceptions.c: enabled running fault handlers
15303 2007-01-03 Miguel de Icaza <miguel@novell.com>
15305 * driver.c: If nothing fail, do not use the string "failed",
15306 because it makes it very annoying to view test result logs on the
15309 2006-12-30 Miguel de Icaza <miguel@novell.com>
15311 * debug-debugger.c (mono_debugger_main): Rename "main" to
15312 "main_method" to prevent a warning.
15314 Remove a warning for unused field.
15316 2006-12-28 Martin Baulig <martin@ximian.com>
15319 (MONO_DEBUGGER__debugger_info): Add `get_lmf_addr'.
15321 2006-12-22 Martin Baulig <martin@ximian.com>
15323 * mdb-debug-info32.s, mdb-debug-info64.s: New files.
15324 Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
15325 seperate `.mdb_debug_info' section, so we can access it from the
15326 debugger even if the binary is stripped.
15328 * debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
15329 from the `.mdb_debug_info' here to prevent the linker from
15330 removing that section.
15332 * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
15333 mdb-debug-info64.s.
15335 2006-12-19 Robert Jordan <robertj@gmx.net>
15337 * mini-x86: enable the code to return small structures in
15338 registers for FreeBSD as well. Fixes bug #80278.
15339 * aot-runtime.c: Include sys/wait.h for WEXITSTATUS/WIFEXITED.
15341 Mon Dec 18 19:47:17 CET 2006 Paolo Molaro <lupus@ximian.com>
15343 * mini-x86.c: align the stack when calling the profiler
15344 function instrumenting the prolog (on OSX).
15346 Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
15348 * mini.c: emit a break opcode where Debugger.Break () is called.
15350 2006-12-13 Miguel de Icaza <miguel@novell.com>
15352 * mini.c (mono_method_to_ir): Provide useful information on this
15353 assert, to prevent others from debugging like I did.
15355 Tue Dec 12 17:01:38 CET 2006 Paolo Molaro <lupus@ximian.com>
15357 * mini.c: enable code which was incorrectly commented
15360 Tue Dec 12 16:28:15 CET 2006 Paolo Molaro <lupus@ximian.com>
15362 * mini-x86.c: enable on OSX, too, the code to return small
15363 structures in registers.
15365 Mon Dec 11 19:22:35 CET 2006 Paolo Molaro <lupus@ximian.com>
15367 * mini-x86.c: remove the use of the dynamic code manager here, too.
15369 Mon Dec 11 19:08:33 CET 2006 Paolo Molaro <lupus@ximian.com>
15371 * mini.h, debug-debugger.c, tramp-*.c: fixed
15372 mono_debugger_create_notification_function() to use
15373 mono_global_codeman_reserve () instead of a dynamic code manager.
15375 Tue Dec 5 17:54:50 CET 2006 Paolo Molaro <lupus@ximian.com>
15377 * mini.c, jit-icalls.h, jit-icalls.c: remove the
15378 ves_array_element_address() jit icall and use a generated
15379 managed method instead (which is about 4 times faster for a rank 3
15382 2006-11-29 Mark Mason <mason@broadcom.com>
15384 * basic-calls.cs: additional tests for passing
15385 structures as function arguments.
15387 2006-11-29 Mark Mason <mason@broadcom.com>
15389 * mini-mips.h: disable custom exception handling
15390 * mini-mips.c: throw/rethrow should use jalr to call
15391 exception stubs. Fixed bug with passing structures
15392 by value. More support for tracing floating point
15395 Wed Nov 29 20:28:17 CET 2006 Paolo Molaro <lupus@ximian.com>
15397 * mini.c: fixed typo in the soft-float ldind.r4 handling
15400 Wed Nov 29 11:33:03 CET 2006 Paolo Molaro <lupus@ximian.com>
15402 * mini.c, mini.h, driver.c: added --runtime command line
15403 option to select a different runtime than the autodetected one.
15404 * jit.h: added API for embedders to initialize with a specific
15407 Tue Nov 28 21:24:55 CET 2006 Paolo Molaro <lupus@ximian.com>
15409 * mini.c: handle also boxing of r4 values (bug #80024).
15411 Tue Nov 28 19:45:44 CET 2006 Paolo Molaro <lupus@ximian.com>
15413 * mini-ppc.c: force indirect calls until we reserve
15414 enough address space for all the generated code.
15416 Tue Nov 28 20:04:34 GMT 2006 Paolo Molaro <lupus@ximian.com>
15418 * exceptions-arm.c: workaround bugs in the libc definition
15419 of struct ucontext.
15421 Mon Nov 27 15:13:41 CET 2006 Paolo Molaro <lupus@ximian.com>
15423 * inssel.brg: fixes from me and Mark Mason.
15425 2006-11-23 Dick Porter <dick@ximian.com>
15427 * wapihandles.c (mini_wapi_seminfo): No need to adjust the counter
15428 semaphore display now we've fixed the initial value
15430 Wed Nov 22 11:04:37 CET 2006 Paolo Molaro <lupus@ximian.com>
15432 * inssel.brg: partially revert the last change to fix the build.
15434 2006-11-21 Mark Mason <mason@broadcom.com>
15436 * inssel.brg: Add and use compare-and-branch macros to support
15437 architectures that do not have condition code registers (ie. MIPS).
15438 * *-mips.{c,brg,md}: Fix copyright statements
15440 2006-11-20 Mark Mason <mason@broadcom.com>
15442 * Makefile.am: remove mini-codegen.c from list of MIPS sources
15443 * mini.c: Allow GET_CONTEXT to be specified by the arch port
15444 * mini.h: Added declaration for mono_print_ins()
15445 * mini-codegen.c: added ins_spec initializer for MIPS
15446 * mini-codegen.c (mono_call_inst_add_outarg_reg): added asserts for
15447 vreg to be virtual and hreg to be non-virtual.
15448 * mini-codegen.c (mono_spillvar_offset): assert if MIPS - spilling
15449 is not yet working/implemented correctly.
15450 * mini-codegen.c (print_ins): rename to mono_print_ins(), make
15451 non-static, fixup calls to print_ins() from other parts in the file.
15453 2006-11-20 Mark Mason <mason@broadcom.com>
15455 * basic-calls.cs: added tests for passing structures as arguments
15458 Mon Nov 20 19:40:11 CET 2006 Paolo Molaro <lupus@ximian.com>
15460 * inssel-long32.brg: optimize signed division by power of two.
15462 Mon Nov 20 17:37:58 CET 2006 Paolo Molaro <lupus@ximian.com>
15464 * mini-arm.c: added support for interworking with thumb code
15465 (mono must be still be built using the ARM instruction encoding).
15467 2006-11-19 Miguel de Icaza <miguel@novell.com>
15469 * mini.c (type_from_op): Separate the conditions for OP_EQ as the
15470 verifier has different rules for it. Fixes a few verifier issues
15473 * mini-exceptions.c (mono_handle_native_sigsegv): Put the message
15474 at the end, so people know what happened.
15476 Thu Nov 16 14:07:18 CET 2006 Paolo Molaro <lupus@ximian.com>
15478 * brach-opts.c: in optimize_exception_target() make sure we
15479 are in a catch clause (fixes bug #79871).
15481 Thu Nov 16 12:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
15483 * jit-icalls.c, jit-icalls.h, mini-arm.c, mini.c:
15484 more soft-float support fixes.
15486 Wed Nov 15 18:45:47 GMT 2006 Paolo Molaro <lupus@ximian.com>
15488 * mini-arm.c, inssel-arm.brg: ABI fix for longs and doubles
15489 that are passed half on the stack and half in registers.
15491 Wed Nov 15 17:00:27 CET 2006 Paolo Molaro <lupus@ximian.com>
15493 * mini-ops.h, mini-arch.h, helpers.c, Makefile.am:
15494 more mips integration work from Mark E Mason
15495 <mark.e.mason@broadcom.com>.
15497 Wed Nov 15 16:34:03 CET 2006 Paolo Molaro <lupus@ximian.com>
15499 * exceptions-mips.c, inssel-mips.brg, mini-mips.h,
15500 cpu-mips.md, inssel-long32-mips.brg, mini-mips.c,
15501 tramp-mips.c: added sources for the mips port, not
15502 integrated in the build yet. Contributed by
15503 Mark E Mason <mark.e.mason@broadcom.com>.
15505 2006-11-14 Neale Ferguson <neale@sinenomine.net>
15507 * mini-s390[x].c (is_regsize_var): Support PTR/FNPTR too.
15509 Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
15511 * Makefile.am, inssel-float.brg, inssel-softfloat.brg:
15512 put the soft-float rules in its own file since it seems to
15513 break s390 compilation.
15515 Mon Nov 13 15:54:38 CET 2006 Paolo Molaro <lupus@ximian.com>
15517 * mini-arm.c: fixed wrnings.
15519 Fri Nov 10 19:18:32 CET 2006 Paolo Molaro <lupus@ximian.com>
15521 * mini-arm.c, mini-arm.h, cpu-arm.md, inssel-float.brg,
15522 inssel-arm.brg: ARM support for soft-float.
15524 Fri Nov 10 18:38:15 CET 2006 Paolo Molaro <lupus@ximian.com>
15526 * mini.c, jit-icalls.c, jit-icalls.h: added first cut at handling
15527 loads and stores of 32 bit fp values.
15529 2006-11-10 Zoltan Varga <vargaz@gmail.com>
15531 * mini-sparc.c (is_regsize_var): Support PTR/FNPTR too.
15533 * tramp-sparc.c (mono_arch_patch_callsite): Fix this function so it actually
15534 works. Fixes #79852 and #79463.
15536 Thu Nov 9 16:56:13 CET 2006 Paolo Molaro <lupus@ximian.com>
15538 * mini.c, mini-codegen.c, jit-icalls.c, jit-icalls.h:
15539 more soft-float support WIP and fixes.
15541 Wed Nov 8 16:40:02 CET 2006 Paolo Molaro <lupus@ximian.com>
15543 * mini-arm.c: some VFP updates.
15545 Tue Nov 7 19:45:51 CET 2006 Paolo Molaro <lupus@ximian.com>
15547 * mini-exceptions.c: 0 is a valid local var offset in some
15548 architectures, don't assert (bug #78508).
15550 Tue Nov 7 18:17:52 GMT 2006 Paolo Molaro <lupus@ximian.com>
15552 * exceptions-arm.c: fixed off by one error in stack walk code.
15554 Tue Nov 7 11:27:26 CET 2006 Paolo Molaro <lupus@ximian.com>
15556 * mini.h, mini.c: more precise tracking of type load exceptions.
15558 2006-11-03 Robert Jordan <robertj@gmx.net>
15560 * Makefile.am: [WIN32] Add monow.exe target.
15561 * driver.c: [WIN32] Don't detach the console when debugging.
15564 2006-10-30 Miguel de Icaza <miguel@novell.com>
15566 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Eliminate warning.
15568 2006-10-23 Zoltan Varga <vargaz@gmail.com>
15570 * aot-compiler.c (emit_method_info): Add a case missed earlier.
15572 * driver.c (mini_regression): Fix --regression with AOT.
15574 * aot-compiler.c (emit_method_info): Fix AOT on amd64.
15576 2006-10-17 Zoltan Varga <vargaz@gmail.com>
15578 * mini.c (GET_CONTEXT): Correct the definition of this for sparc/linux.
15580 * mini-sparc.h: Don't use sigaction on sparc/linux.
15582 * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of places.
15584 * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
15586 * mini-exceptions.c: Add proper include files for getpid ().
15588 2006-10-16 Zoltan Varga <vargaz@gmail.com>
15590 * aot-runtime.c (mono_aot_get_method): Change this to return the native code
15591 address instead of a MonoJitInfo* to avoid decoding the exception info for the
15594 * aot-runtime.c aot-compiler.c: Use uint16 instead of uint32 entries in the
15595 name cache to reduce its size.
15597 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
15599 2006-10-15 Zoltan Varga <vargaz@gmail.com>
15601 * mini-x86.c: Save/restore the current LMF structure more efficiently using
15602 the mono_lmf TLS variable.
15604 * exceptions-x86.c (mono_arch_find_jit_info): Only access lmf->method in
15605 trampoline lmf frames.
15607 * mini-sparc.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Define this on sparc as well.
15609 2006-10-14 Zoltan Varga <vargaz@gmail.com>
15611 * mini-amd64.c: Save/restore the current LMF structure more efficiently using
15612 the mono_lmf TLS variable.
15614 * mini-exceptions.c: Access the LMF structure through accessors.
15616 * mini.c: Allow the backends the option for storing the lmf in a dedicated TLS
15617 variable instead of in jit_tls->lmf.
15619 * mini-x86.c mini-amd64.c: Update after lmf->lmf_addr name change.
15621 * exceptions-amd64.c (mono_arch_find_jit_info): Only access lmf->method in
15622 trampoline lmf frames.
15624 * mini-amd64.c (mono_arch_emit_prolog): Do not set lmf->method as it is not needed.
15626 2006-10-12 Zoltan Varga <vargaz@gmail.com>
15628 * mini.c trace.c mini-x86.c: Revert these too.
15630 * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
15633 Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
15635 * genmdesc.c: removed now dead code.
15637 2006-10-09 Robert Jordan <robertj@gmx.net>
15639 * mini.c: Disable the CrashReporter on MacOS X; Fixes #74869
15641 Mon Oct 9 17:06:41 CEST 2006 Paolo Molaro <lupus@ximian.com>
15643 * mini.h: do not leave gaps in the opcode values.
15645 Mon Oct 9 16:08:51 CEST 2006 Paolo Molaro <lupus@ximian.com>
15647 * jit-icalls.h: flag functions as internal here, too.
15649 Mon Oct 9 15:58:18 CEST 2006 Paolo Molaro <lupus@ximian.com>
15651 * mini.h, aliasing.h, declsec.h, regalloc.h, trace.h: mark internal
15652 functions with the internal attribute.
15654 Mon Oct 9 15:52:45 CEST 2006 Paolo Molaro <lupus@ximian.com>
15656 * aot-compiler.c: fclose the file descriptor in the profile read loop.
15658 Fri Oct 6 16:01:38 CEST 2006 Paolo Molaro <lupus@ximian.com>
15660 * mini.c, jit-icalls.c, inssel-float.brg: beginnings of support
15663 2006-10-05 Zoltan Varga <vargaz@gmail.com>
15665 * mini-x86.c (emit_load_volatile_arguments): New function to handle arguments of
15666 tail calls as on other platforms.
15668 * mini.c (mono_method_to_ir): Fix a few tailcall problems. Fixes #79557.
15670 * iltests.il: Add a few tailcall tests.
15672 Tue Oct 3 16:33:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
15674 * driver.c: fix loop for old compilers (bug #79521).
15676 2006-10-02 Zoltan Varga <vargaz@gmail.com>
15678 * mini-exceptions.c (ves_icall_get_trace): Remove debug printf.
15680 * aot-runtime.c (mono_aot_get_class_from_name): Avoid a memory allocation.
15682 * aot-compiler.c: Add a new option 'metadata-only' to only emit the cached
15683 metadata without any code.
15685 * mini-exceptions.c (mono_handle_native_sigsegv): Add some code to print out
15686 more precise debugging information using gdb.
15688 2006-09-30 Zoltan Varga <vargaz@gmail.com>
15690 * inssel-ia64.brg: Make the helper methods static.
15692 Thu Sep 28 16:40:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
15694 * inssel-x86.brg: make the helper methods static.
15696 Thu Sep 28 16:31:32 CEST 2006 Paolo Molaro <lupus@ximian.com>
15698 * inssel-amd64.brg, mini-amd64.c: small cleanup, use inst_call.
15700 Thu Sep 28 15:36:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
15702 * mini.c: updates for monoburg changes.
15703 * inssel.brg: make a few helper functions static as they should.
15705 2006-09-27 Zoltan Varga <vargaz@gmail.com>
15707 * Makefile.am: Move mini-codegen.c to common_sources.
15709 Wed Sep 27 15:07:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
15711 * mini.h: instroduce inst_call in MonoInst for use in OUTARG
15713 * Makefile.am, cpu-g4.md, inssel-ppc.brg, mini-codegen.c, mini-ppc.c,
15714 mini-ppc.h: port to use the common local register allocator.
15716 2006-09-26 Zoltan Varga <vargaz@gmail.com>
15718 * mini.h: Remove the comment too then.
15720 Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
15722 * mini.h: put back backend.data which is to be used shortly and
15723 doesn't increase the size of MonoInst. If any 64 bit arch aligned
15724 pointers on 4 byte boundaries it'd have much bigger issues running
15725 and you can ifdef it out anyway.
15727 2006-09-26 Zoltan Varga <vargaz@gmail.com>
15729 * mini.h (MonoInst): Remove backend.data field since it is unused and increases
15730 MonoInst size by 4 bytes on 64 bit machines.
15732 Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
15734 * *.{c,h,brg}: long due removal of the unused field in MonoInst and
15735 replacement with more meaningful field names. Arch maintainers, please
15736 check the assigned names are good enough for your arch.
15738 2006-09-26 Zoltan Varga <vargaz@gmail.com>
15740 * cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the
15741 OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
15743 Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
15745 * mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
15746 relocations and memory requirements, put the optimization flags
15747 definitions in their own file.
15749 2006-09-24 Zoltan Varga <vargaz@gmail.com>
15751 * jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
15753 * mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
15755 2006-09-22 Zoltan Varga <vargaz@gmail.com>
15757 * mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
15759 Thu Sep 21 19:06:09 CEST 2006 Paolo Molaro <lupus@ximian.com>
15761 * inssel.brg: use the correct function to get the size of an item
15762 in an array, given an element class.
15763 * aot-compiler.c: do not access class->class_size directly.
15765 Thu Sep 21 12:10:56 CEST 2006 Paolo Molaro <lupus@ximian.com>
15767 * mini.h, debug-mini.c: added a debugging function to print
15768 info about local variables and arguments in a jitted method.
15770 2006-09-20 Zoltan Varga <vargaz@gmail.com>
15772 * mini-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
15774 * exceptions-ia64.c: Fix some problems reported by Bill Seurer <seurer@us.ibm.com>.
15776 2006-09-19 Zoltan Varga <vargaz@gmail.com>
15778 * mini-ia64.c (mono_arch_call_opcode): Avoid using the same loop index in the
15779 inner and outer loops when passing vtypes.
15781 Tue Sep 19 17:53:40 CEST 2006 Paolo Molaro <lupus@ximian.com>
15783 * mini-ppc.c: take into account the cpu errata for cache flushing
15784 which caused some random errors (bug #79381).
15786 2006-09-19 Zoltan Varga <vargaz@gmail.com>
15788 * mini-amd64.c (mono_arch_emit_exceptions): Emit the call to
15789 mono_arch_throw_corlib_exception using emit_call () too. Fixes #79271.
15791 2006-09-17 Zoltan Varga <vargaz@gmail.com>
15793 * aot-runtime.c (load_aot_module): Return immeditely if the AOT module was already
15796 * exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
15797 freebsd ports tree.
15799 * mini-amd64.c (emit_call): Avoid near calls on freebsd.
15800 (mono_arch_patch_code): Remove the unused handling of MONO_PATCH_INFO_CLASS_INIT.
15802 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix check for 32 bitness of
15805 2006-09-13 Zoltan Varga <vargaz@gmail.com>
15807 * aot-runtime.c (load_aot_module_from_cache): Fix PPC build.
15809 2006-09-12 Zoltan Varga <vargaz@gmail.com>
15811 * mini.c (UNVERIFIED): Add a 'break-on-unverified' MONO_DEBUG option so this
15812 macro does not have to be changed during debugging.
15814 * 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>.
15816 * cpu-pentium.md: Rename this to cpu-x86.md for consistency with other platforms.
15818 * Makefile.am mini-x86.c mini-codegen.c: Rename pentium_desc to x86_desc.
15820 * mini.c (mini_get_ldelema_ins): Allow ldelema2d optimization if
15821 MONO_ARCH_NO_EMULATE_MUL is defined.
15823 * mini-ia64.h (MONO_ARCH_CALLEE_FREGS): Reserve f33 for use by instructions.
15825 * mini-ia64.h: Define MONO_ARCH_NO_EMULATE_MUL.
15827 * mini-ia64.c: Implement CEE_MUL based on gcc emitted code.
15829 * mini-ia64.c (mono_arch_lowering_pass): Optimize store_membase_imm with offset==0.
15831 2006-09-11 Zoltan Varga <vargaz@gmail.com>
15833 * mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
15834 stuff to mini-exceptions.c where it is used.
15836 * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate altstack
15837 setup code, the real one is in mini-exceptions.c.
15839 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies on the
15840 layout of ucontext_t to helper functions in exceptions-amd64.c, as on x86. Add
15841 some changes from the freebsd ports tree.
15843 * mini-amd64.h exceptions-amd64.c: Fix the amd64 build. Get rid of the SC_
15846 * mini-amd64.h: Freebsd has MAP_ANON instead of MAP_ANONYMOUS.
15848 Mon Sep 11 13:18:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
15850 * mini.c: on Linux, check for /proc to be mounted
15851 (bug# 79351, novell bug#201204).
15853 Mon Sep 11 13:10:12 CEST 2006 Paolo Molaro <lupus@ximian.com>
15855 * mini.c: handle cases where pthread_attr_getstack() behaves
15856 incorrectly (bug #78096).
15858 Mon Sep 11 11:31:10 BST 2006 Paolo Molaro <lupus@ximian.com>
15860 * mini-arm.c: support larger stack frames (bug #79272).
15862 2006-09-08 Zoltan Varga <vargaz@gmail.com>
15864 * aot-runtime.c (mono_aot_get_class_from_name): Remove a debug printf.
15866 * aot-compiler.c: Add a hash table to the AOT file mapping class names to typedef
15869 * aot-runtime.c (mono_aot_get_class_from_name): New function used by
15870 mono_class_from_name () to find a class from its name.
15872 * mini.c (mini_init): Register mono_aot_get_class_from_name () with the runtime.
15874 2006-09-07 Zoltan Varga <vargaz@gmail.com>
15876 * mini-amd64.c (emit_call): Avoid strstr () call if possible.
15878 2006-09-05 Kornel Pal <kornelpal@gmail.com>
15880 * Makefile.am: Renamed mono-1.dll to mono.dll. (-avoid-version)
15882 2006-09-04 Zoltan Varga <vargaz@gmail.com>
15884 * mini.c (mono_icall_get_wrapper): Fix a race condition on initializing
15885 callinfo->trampoline.
15887 * mini-amd64.c (emit_call): Special case calls to the vararg array icalls. Hopefully
15889 (mono_arch_patch_code): Add some debug code to help track down similar failures in the
15892 2006-09-03 Zoltan Varga <vargaz@gmail.com>
15894 * aot-runtime.c (mono_aot_plt_resolve): Add an assert.
15896 2006-09-02 Zoltan Varga <vargaz@gmail.com>
15898 * tramp-x86.c (mono_arch_create_specific_trampoline): Don't increase
15899 stats.method_trampolines, it is already done by the generic trampoline code.
15901 * tramp-amd64.c (mono_arch_create_specific_trampoline): Ditto.
15903 2006-09-01 Zoltan Varga <vargaz@gmail.com>
15905 * mini.c: Remove some references to mono_compile_aot, and use cfg->compile_aot instead.
15907 * aot-runtime.c: Add some tweaks to the MONO_AOT_CACHE functionality.
15909 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix a FIXME.
15911 * mini.c (print_jit_stats): Print mscorlib mempool size too.
15913 * mini.c (print_jit_stats): Print new stats.
15915 * *-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
15917 2006-08-31 Zoltan Varga <vargaz@gmail.com>
15919 * mini.c (mini_get_ldelema_ins): Fix verifier error when calling
15920 Address on two dimensional arrays. Fixes #78729.
15922 * mini.h (MonoCompile): Add a 'skip_visibility' field.
15924 * mini.c (method_to_ir): Disable visibility checks if skip_visibility is set on
15927 * mini-amd64.c (mono_arch_emit_exceptions): Fix assertion introduced by the last change.
15929 * mini.c (mono_runtime_cleanup_handlers): Clean up signal handlers on unix. Fixes
15932 * mini.c (handle_array_new): Applied patch from "briaeros007". Fix
15934 (mini_get_ldelema_ins): Ditto.
15936 2006-08-30 Zoltan Varga <vargaz@gmail.com>
15938 * mini-amd64.c (mono_arch_emit_exceptions): Align fp constants to 16 bytes.
15939 (mono_arch_output_basic_block): Avoid unaligned accesses in FNEG implementation.
15942 2006-08-29 Neale Ferguson <neale@sinenomine.net>
15944 * mini-s390.c, mini-s390x.c: Fix VARARG case processing with 0 arguments. Add
15945 mono_arch_get_patch_offset as a dummy entry point to allow successful link.
15947 * exceptions-s390x.c: Cosmetic change.
15949 * tramp-s390.c: Fix warning.
15951 * cpu-s390.md: Correct length of mul_imm.
15953 Wed Aug 23 19:24:00 CEST 2006 Paolo Molaro <lupus@ximian.com>
15955 * aot-compiler.c: added binary writer with ELF backend
15956 implementation (only on Linux/x86 for now).
15958 2006-08-18 Zoltan Varga <vargaz@gmail.com>
15960 * Makefile.am: Don't run net 2.0 AOT tests.
15962 * aot-compiler.c (compile_method): Skip methods with tail calls as well.
15963 (mono_compile_assembly): Skip net 2.0 assemblies as well.
15965 * aot-runtime.c (load_patch_info): Fix an uninitialized memory error.
15967 Fri Aug 18 19:38:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
15969 * aot-compiler.c: simplified and refactored the asm-writing code
15970 to allow different backends.
15972 2006-08-18 Zoltan Varga <vargaz@gmail.com>
15974 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
15976 * aot-compiler.c aot-runtime.c: Reorg the GOT slot allocation code a
15977 little. Share patches of type TYPE_FROM_HANDLE as well.
15979 * mini.c (mono_patch_info_equal): New helper function.
15980 (mono_patch_info_hash): Ditto.
15982 * aot-compiler.c (emit_method_code): Fix s390 build.
15984 * mini.c (mono_allocate_stack_slots_full): Fix yet another place where byref
15985 is not handled because it is stored as a flag and not as a type ctor. Fixes
15988 2006-08-17 Zoltan Varga <vargaz@gmail.com>
15990 * aot-compiler.c: Fix computation of GOT slot statistics.
15992 * aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
15993 Also remove support for not PIC AOT.
15995 * mini.h: Bump AOT file format version.
15997 * objects.cs: Add a test for #78990.
15999 * mini-x86.c (mono_arch_output_basic_block): Applied patch from Peter Dettman
16000 (peter.dettman@iinet.net.au). Fixes #79087.
16002 * basic-long.cs: Add a test for the above.
16004 2006-08-16 Zoltan Varga <vargaz@gmail.com>
16006 * aot-compiler.c (get_got_offset): Add a cache for GOT entries, not yet used.
16008 * aot-compiler.c (get_plt_index): Add a cache for wrappers too. Simplify the
16011 2006-08-15 Zoltan Varga <vargaz@gmail.com>
16013 * mini.c (mini_init): Fix registration of idiv/imul opcodes which can throw
16016 2006-08-10 Jonathan Chambers <joncham@gmail.com>
16018 * mini.c: Don't verify COM proxy invoke calls
16021 2006-08-10 Dick Porter <dick@ximian.com>
16023 * wapihandles.c (mini_wapi_seminfo): More info, to help track down
16024 which process is holding semaphores locked.
16026 2006-08-08 Zoltan Varga <vargaz@gmail.com>
16028 * mini-ia64.c mini-amd64.c: Fix #79027.
16030 * mini-sparc.c (mono_arch_call_opcode): Fix the previous patch.
16032 * mini-sparc.c (mono_arch_call_opcode): Fix #79027.
16034 * mini-x86.c (mono_arch_call_opcode): Handle the case where there are no
16035 implicit arguments in a vararg call. Fixes #79027.
16037 2006-08-07 Zoltan Varga <vargaz@freemail.hu>
16039 * mini.c (mono_get_element_address_signature): Use CDECL calling convention on windows. Fixes #78969.
16040 (mono_get_array_new_va_signature): Ditto.
16042 2006-08-05 Zoltan Varga <vargaz@gmail.com>
16044 * aot-runtime.c: Call init_plt lazily.
16046 * inssel-long.brg: Fix unsigned long->int conversion.
16048 * aot-runtime.c (init_plt): Remove a redundant make_writable () call.
16050 * aot-compiler.c aot-runtime.c: Reorganize the file structure in the amd64 case so
16051 that most data is now in the .rss/.data section.
16053 2006-08-04 Zoltan Varga <vargaz@gmail.com>
16055 * aot-compiler.c: Correct the computation of the 'direct-calls' statistic.
16057 * aot-compiler.c: Print the number of methods without GOT slots as a statistics.
16059 * aot-compiler.c aot-runtime.c tramp-amd64.c: Resurrect amd64 AOT support.
16061 * tramp-amd64.c (mono_arch_patch_callsite): Fix a warning.
16063 * jit-icalls.c (mono_helper_compile_generic_method): Unbox vtypes since this is a
16064 virtual call. Fixes #79010.
16066 * mini.c (mono_method_to_ir): Pass an additional out arg to compile_generic_method
16067 and use the result as the this argument in the real call.
16069 * generics.2.cs: Add a new test for #79010.
16071 2006-08-03 Zoltan Varga <vargaz@gmail.com>
16073 * mini-x86.c: Fix a warning.
16075 * aot-compiler.c: Add a bunch of statistics.
16077 * mini.c (inline_method): Disable inlining in out-of-line bblocks.
16079 2006-08-02 Zoltan Varga <vargaz@gmail.com>
16081 * mini-arch.h Makefile.am mini-ops.h mini-codegen.c: More alpha updates.
16083 2006-08-01 Zoltan Varga <vargaz@gmail.com>
16085 * 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>.
16087 2006-07-13 Miguel de Icaza <miguel@novell.com>
16089 * mini.c (mono_method_to_ir): Obtain the original method in the
16090 CIL stream and use this to perform validation.
16094 2006-07-19 Zoltan Varga <vargaz@gmail.com>
16096 * mini-x86.c (mono_arch_get_argument_info): Fix a warning.
16097 (mono_arch_call_opcode): Ditto.
16099 * mini.c (mono_method_to_ir): Clear ins_flag at the end of CEE_CALL. Fixes
16102 * mini.c (mono_patch_info_dup_mp): New helper function.
16104 * aot-compiler.c (compile_method): Fix some of the memory allocated during
16105 compilation. Fixes #78827.
16107 2006-07-18 Kornel Pal <kornelpal@gmail.com>
16109 * declsec.c: Use original security informations for
16110 MONO_WRAPPER_MANAGED_TO_MANAGED.
16112 2006-07-15 Jonathan Chambers <joncham@gmail.com>
16114 * mini.c: Allow Com Interop methods/classes and
16115 don't verify COM wrapper calls
16118 2006-07-13 Zoltan Varga <vargaz@gmail.com>
16120 * inssel-long32.brg: Fix long->i4 checked conversion.
16122 * exceptions.cs: Add a test for the above.
16124 2006-07-08 Zoltan Varga <vargaz@gmail.com>
16126 * mini-exceptions.c (mono_setup_altstack): Fix a memory leak.
16128 * mini.c: Applied patch from Joachim Ante (joe@otee.dk). Fix some shutdown
16131 * helpers.c (mono_disassemble_code): Avoid using fixed temporary files. Fixes
16134 2006-07-03 Zoltan Varga <vargaz@gmail.com>
16136 * mini.c: Fix solaris/x86 exception handling.
16138 * Makefile.am: Get rid of $(ICU_LIBS).
16140 2006-07-02 Zoltan Varga <vargaz@gmail.com>
16142 * mini-exceptions.c: Fix handling of unhandled SIGSEGV exceptions on ia64.
16143 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Use MONO_INIT_CONTEXT_FROM_CURRENT.
16144 (ves_icall_System_Security_SecurityFrame_GetSecurityFrame): Ditto.
16146 * mini-ia64.h (MONO_CONTEXT_SET_FUNC): New macro.
16148 * mini-exceptions.c (mono_handle_native_sigsegv): Prevent infinite loops if
16149 this function causes a SIGSEGV.
16151 2006-06-22 Zoltan Varga <vargaz@gmail.com>
16153 * mini.c: Remove unused solaris/x86 includes.
16155 2006-06-21 Zoltan Varga <vargaz@gmail.com>
16157 * jit.h: Add G_BEGIN_DECLS/G_END_DECLS.
16159 2006-06-20 Jb Evain <jbevain@gmail.com>
16161 * cpu-g4.md: fix max length of start_handler instruction.
16163 2006-06-20 Massimiliano Mantione <massi@ximian.com>
16164 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78656.
16166 2006-06-16 Massimiliano Mantione <massi@ximian.com>
16167 * ssa.c: Fixed bug 78653 for SSA based deadce.
16168 * mini.h: added MONO_INST_DEFINITION_HAS_SIDE_EFFECTS flag go
16169 MonoInst.flags, used in SSA based deadce.
16170 * aliasing.c: Fixed bug 78653 for "fastpath" deadce.
16171 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78653.
16173 Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
16175 * tramp-ppc.c: don't use malloc () for trampoline code, sometimes
16176 it can end up using non executable memory on ppc64 systems
16177 running ppc32 userspace (fix from Johannes Berg).
16179 2006-06-14 Dick Porter <dick@ximian.com>
16181 * wapihandles.c: Fix a bunch of signed/unsigned warnings from gcc
16184 2006-06-13 Massimiliano Mantione <massi@ximian.com>
16185 * mini.c: Made so that inline is locally disabled if it would
16186 trigger a .cctor, because too many apps depend on this behavior
16187 (which seems to be also the one of the MS CLR).
16189 2006-06-13 Zoltan Varga <vargaz@gmail.com>
16191 * mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
16192 No idea why this worked before.
16194 * branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
16195 which branch to outer exception clauses since they could skip the
16196 inner finally clauses. Fixes #78633.
16198 * exceptions.cs: Add a test for the above.
16200 * mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
16203 * iltests.il: Add a test for the above.
16205 2006-06-12 Zoltan Varga <vargaz@gmail.com>
16207 * mini.c (remove_block_if_useless): Do not remove the bblock immediately
16208 after the end of a try bblock, to prevent asserts in mini_method_compile ().
16210 * iltests.il: Add a test for the above.
16212 2006-06-10 Zoltan Varga <vargaz@gmail.com>
16214 * mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.
16216 * mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
16217 methods as instrinsics.
16219 2006-06-09 Wade Berrier <wberrier@novell.com>
16221 * Makefile.am: Fix sources list for svn rename so that make dist succeeds
16222 (simple-cee-ops.h ssapre-mini-ops.h)
16224 2006-06-09 Neale Ferguson <neale@sinenomine.net>
16226 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
16227 * mini-s390x.c, mini-s390.c: Correct ATOMIC operations (incorrect register for CS
16229 * mini-s390x.h, mini-s390.h: Simplify MCONTEXT_GET_BP.
16230 * cpu-s390x.md: Fix max. length values for a couple of instructions.
16232 2006-06-09 Jonathan Chambers <jonathan.chambers@ansys.com>
16234 * mini-exceptions.c: Minor fix for building mono in Visual Studio.
16236 2006-06-08 Massimiliano Mantione <massi@ximian.com>
16238 * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
16239 * simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
16240 * ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
16241 * simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
16242 * local-propagation.c: In mono_cprop_invalidate_values use a whitelist
16243 of opcodes, so that bug 78549 should not happen again.
16244 * ssapre.c: Updated to use the renamed files.
16246 2006-06-08 Zoltan Varga <vargaz@gmail.com>
16248 * mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move
16249 in OP_ATOMIC_EXCHANGE_I4.
16251 2006-06-07 Wade Berrier <wberrier@novell.com>
16253 * tramp-s390.c: Fix s390 build (add missing pointer declarations
16254 in mono_debugger_create_notification_function)
16256 2006-06-06 Zoltan Varga <vargaz@gmail.com>
16258 * mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.
16260 * mini.c (type_from_stack_type): Disable some changes which do not
16263 * driver.c: Reenable opts.
16265 * mini.h (MonoStackSlot): New structure to keep track of the verification state
16266 of the evaluation stack.
16268 * mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
16269 evaluation stack trace at entry to the bblock.
16271 * mini.c (merge_stacks): New function to perform verification of stack merges.
16272 Turned off by default.
16274 * mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
16277 2006-06-06 Massimiliano Mantione <massi@ximian.com>
16279 * local-propagation.c: Fixed bug 78549.
16281 2006-06-04 Zoltan Varga <vargaz@gmail.com>
16283 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.
16285 2006-06-02 Miguel de Icaza <miguel@novell.com>
16287 * tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
16288 tramp-arm.c, tramp-ia64.c
16289 (mono_debugger_create_notification_function): Update signature to
16290 new signature and use new protocol for creating the notification
16293 Should fix the build.
16295 2006-06-02 Geoff Norton <gnorton@customerdna.com>
16297 * exceptions-ppc.c (mono_jit_walk_stack)
16298 (ves_icall_get_frame_info): Fix the build
16300 2006-06-02 Zoltan Varga <vargaz@gmail.com>
16302 * mini.c (mono_set_defaults): Fix the handling of -O=-all.
16304 2006-05-31 Raja R Harinath <rharinath@novell.com>
16306 * il2tests.2.il: New file for generics CIL tests. Add test for
16308 * Makefile.am: Update.
16311 * mini.c (mono_method_to_ir): Don't apply box+brtrue optimization
16314 2006-05-30 Massimiliano Mantione <massi@ximian.com>
16316 * aliasing.c: Fixed bug 78311.
16318 2006-05-29 Martin Baulig <martin@ximian.com>
16320 * mini-exceptions.c (mono_find_jit_info): When computing the
16321 native offset, check whether we're actually inside the method's
16322 code; call mono_debug_print_stack_frame() to format the frame.
16323 (ves_icall_System_Exception_get_trace): Call
16324 mono_debug_print_stack_frame() to format the stack frame.
16325 (ves_icall_get_trace): Update to the new debugging API.
16326 (mono_jit_walk_stack_from_ctx): Likewise.
16327 (ves_icall_get_frame_info): Likewise.
16329 * mini.c (get_method_from_ip): Use the new debugging API.
16330 (mono_print_method_from_ip): Likewise.
16333 (mono_jit_walk_stack): Use the new debugging API.
16334 (ves_icall_get_frame_info): Likewise.
16336 2006-05-27 Zoltan Varga <vargaz@gmail.com>
16338 * mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
16340 2006-05-25 Massimiliano Mantione <massi@ximian.com>
16342 * mini.c: Added "limitator" to inline for debugging.
16344 2006-05-24 Martin Baulig <martin@ximian.com>
16346 * debug-debugger.c (mono_debugger_init): Create a private,
16347 malloc()-based code manager for the notification function and
16348 intentionally leak it on exit. This fixes the crash-on-exit race
16352 (mono_debugger_create_notification_function): Added
16353 `MonoCodeManager *' argument.
16356 (mono_debugger_create_notification_function): Added
16357 `MonoCodeManager *' argument.
16359 2006-05-23 Massimiliano Mantione <massi@ximian.com>
16361 * aliasing.c: Fixed 64 bit issue.
16362 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
16363 default since all known bugs are fixed (one more time!).
16365 Tue May 23 13:47:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
16367 * mini.c: write barrier support.
16369 2006-05-23 Martin Baulig <martin@ximian.com>
16371 * debug-debugger.c: Revert Paolo's change. Add comment and #error
16372 check at the top of the file.
16374 Sun May 21 12:22:29 CEST 2006 Paolo Molaro <lupus@ximian.com>
16376 * debug-debugger.c: fix the build. Again. Hopefully Martin will stop
16377 reverting changes without reason and without changelog entries.
16379 2006-05-18 Zoltan Varga <vargaz@gmail.com>
16381 * mini-sparc.c (mono_arch_output_basic_block): Add support for large stack offets
16382 to a few opcodes. Fixes #78439.
16384 * mini-sparc.c: Rename mono_sparch_break () to mono_arch_break () to improve
16385 consistency with other archs.
16387 * mini-ia64.c (mono_arch_emit_prolog): Remove debug stuff left in by mistake.
16389 Wed May 17 18:07:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
16391 * debug-debugger.c: fix the build.
16393 2006-05-17 Martin Baulig <martin@ximian.com>
16396 (debugger_thread_vtable): Moved here from ../metadata/threads.c.
16397 (debugger_init_threads): Formerly known as mono_debugger_init_threads().
16398 (debugger_finalize_threads): Formaly known as mono_debugger_finalize_threads().
16399 (debugger_attach): Call GC_mono_debugger_add_all_threads().
16401 2006-05-11 Zoltan Varga <vargaz@gmail.com>
16403 * mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.
16405 2006-05-10 Zoltan Varga <vargaz@gmail.com>
16407 * mini-x86.c (mono_arch_instrument_epilog): Fix handling of
16408 MONO_TYPE_GENERICINST.
16410 * mini-amd64.c (mono_arch_instrument_epilog): Fix handling of
16411 MONO_TYPE_GENERICINST.
16413 2006-05-09 Zoltan Varga <vargaz@gmail.com>
16415 * mini-x86.c (mono_arch_get_vcall_slot_addr): Add a missing call sequence. Fixes
16418 2006-05-08 Zoltan Varga <vargaz@gmail.com>
16420 * mini.c (mono_create_jump_trampoline): Allocate MonoJitInfo from the domain
16422 (mono_jit_free_method): Remove the method from jump_trampoline_hash as well.
16424 2006-05-06 Zoltan Varga <vargaz@gmail.com>
16426 * mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
16427 mono_trace_cleanup ().
16429 * iltests.il: Fix problem with the newly added test.
16431 * mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
16432 due to register constraints, free up the previous hreg. Fixes #78314.
16434 * iltests.il: Add new test for #78314.
16436 * mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
16437 Interlocked.Add. Fixes #78312.
16439 * mini-amd64.c (mono_arch_get_inst_for_method): Ditto.
16441 2006-05-05 Zoltan Varga <vargaz@gmail.com>
16443 * inssel.brg (mini_emit_virtual_call): Fix a warning.
16445 2006-05-05 Martin Baulig <martin@ximian.com>
16447 * debug-mini.c (mono_debug_open_block): New method.
16450 (mono_arch_output_basic_block): Call mono_debug_open_block() at
16451 the beginning of each basic block.
16454 (mono_arch_output_basic_block): Call mono_debug_open_block() at
16455 the beginning of each basic block.
16457 2006-05-04 Massimiliano Mantione <massi@ximian.com>
16459 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
16460 default until I understand why they break the build on amd64.
16462 2006-05-04 Zoltan Varga <vargaz@gmail.com>
16464 * mini.c (mini_cleanup): Call mono_cleanup ().
16466 * mini.c (UNVERIFIED): New macro to make it easier to track down verification
16469 2006-05-04 Massimiliano Mantione <massi@ximian.com>
16471 * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
16472 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
16473 default since all known bugs are fixed, and I cannot reproduce bug
16474 77944... I'm asking Matt Hargett to test again after this commit.
16476 2006-04-28 Massimiliano Mantione <massi@ximian.com>
16478 * mini-codegen.c: Fixed typo that thrashed inline.
16480 2006-04-28 Zoltan Varga <vargaz@gmail.com>
16482 * dominators.c (compute_dominators): Avoid using a worklist since
16483 it is not correct in some cases. Instead, iterate over all bblocks as
16484 in the original paper. Fixes --compile-all -O=all System.Xml.dll.
16486 2006-04-28 Miguel de Icaza <miguel@novell.com>
16488 * mini.c (mono_jit_compile_method_inner): Use
16489 mono_prepare_exception_from_error that resets the value
16492 2006-04-27 Miguel de Icaza <miguel@novell.com>
16494 * mini.c: Move the mini_loader_error_to_exception to metadata.
16496 2006-04-27 Massimiliano Mantione <massi@ximian.com>
16498 * aliasing.c: Fixed bug 78210.
16500 2006-04-27 Massimiliano Mantione <massi@ximian.com>
16502 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
16503 default until all their problems (or the ones they trigger) are fixed.
16505 2006-04-26 Zoltan Varga <vargaz@gmail.com>
16507 * aot-runtime.c (mono_aot_get_method_from_token_inner): Fix the previous patch.
16509 * aot-runtime.c (mono_aot_get_method_from_token_inner): Mark the method
16510 as loaded only after resolving patches since that could invoke the same method.
16512 * aot-runtime.c (mono_aot_plt_resolve): Fix ppc etc. builds.
16514 * aot-compiler.c: Refactor mono_aot_compile_aot () into a bunch of smaller
16517 * aot-runtime.c (init_plt): Use a normal trampoline to transfer code to the
16520 * aot-compiler.c (emit_plt): Pass the plt offset in %eax instead of on the
16523 * mini-trampolines.c (mono_aot_plt_trampoline): New trampoline to handle calls
16524 made from AOT code through the PLT table.
16526 * mini-x86.h mini-amd64.h: Define MONO_ARCH_AOT_PLT_OFFSET_REG to the register
16527 holding the plt offset when a call is made to the aot plt trampoline.
16529 2006-04-25 Zoltan Varga <vargaz@gmail.com>
16531 * aot-runtime.c aot-compiler.c cpu-amd64.md mini-amd64.c: Update parts of the
16534 * Makefile.am (common_sources): Fix build breakage.
16536 * aot-runtime.c aot-compiler.c: Reorganize the AOT code yet again: Make all
16537 calls through a jump table similar to the ELF PLT table. Avoid indirect calls for
16538 intra-assembly calls if possible.
16540 * tramp-*.c: Add new functions for patching/nullifying PLT entries.
16542 * mini-trampolines.c: Handle PLT entries.
16544 * mini.c: Avoid creating a GOT var for calls.
16546 * jit-icalls.c (helper_ldstr_mscorlib): New helper function for loading strings
16547 from mscorlib code.
16549 * jit-icalls.c (helper_newobj_mscorlib): New helper function to create objects
16550 from mscorlib code.
16552 * mini.c (mono_method_to_ir): Use the new helper functions in throw bblocks in
16555 * mini.h: Bump AOT file format version.
16557 * mini.c (get_basic_blocks): Fix the calculation of bb->out_of_line so it
16560 2006-04-25 Martin Baulig <martin@ximian.com>
16562 * driver.c: Disable copyprop, consprop and inline when running
16563 inside the debugger.
16565 2006-04-25 Martin Baulig <martin@ximian.com>
16567 * debug-debugger.h (MonoDebuggerInfo): Replaced `get_thread_id'
16568 with `get_current_thread' and added `detach'.
16569 (MonoDebuggerMetadataInfo): Added `thread_size',
16570 `thread_tid_offset', `thread_stack_ptr_offset' and
16571 `thread_end_stack_offset'.
16573 2006-04-25 Zoltan Varga <vargaz@gmail.com>
16575 * aot.c Makefile.am: Split aot.c into two new files aot-compiler.c and
16578 * inssel.brg (mini_emit_load_intf_reg_vtable): Use a new kind of AOT constant
16579 ADJUSTED_IID to avoid the need for adjusting the IID at runtime.
16581 * mini.h (MonoJumpInfoType): Add MONO_PATCH_INFO_ADJUSTED_IID.
16583 * mini.c (mono_resolve_patch_target): Handle ADJUSTED_IID.
16585 * aot.c: Add support for ADJUSTED_IID.
16587 2006-04-24 Zoltan Varga <vargaz@gmail.com>
16589 * aot.c (emit_method_order): Don't align method_order_end.
16591 * inssel.brg (stmt): Fix interface calls in AOT code which got broken by
16592 the interface ID changes.
16594 2006-04-21 Dick Porter <dick@ximian.com>
16596 * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
16597 cleaning up a thread. Fixes the new part of bug 77470.
16599 2006-04-20 Geoff Norton <gnorton@customerdna.com>
16601 * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
16602 to managed wrapper.
16604 2006-04-19 Zoltan Varga <vargaz@gmail.com>
16606 * mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.
16608 * mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
16609 SIGSEGV. Fixes #78072.
16611 * mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
16612 unregister our SIGABRT handler.
16614 2006-04-19 Massimiliano Mantione <massi@ximian.com>
16616 * mini.c: Disabled inline where it can alter the call stack in a
16617 way visible from managed code.
16618 * driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
16621 2006-04-16 Zoltan Varga <vargaz@gmail.com>
16623 * mini-amd64.c (mono_arch_emit_prolog): Attach the thread to the runtime as it is done
16624 on other platforms. Fixes #78089.
16626 2006-04-13 Martin Baulig <martin@ximian.com>
16628 * driver.c: Also check a `MONO_INSIDE_MDB' environment variable to
16629 determine whether we're inside the debugger.
16632 (MonoDebuggerMetadataInfo): Added all offsets from `MonoDefaults'.
16634 2006-04-12 Zoltan Varga <vargaz@gmail.com>
16636 * mini.c (mono_method_to_ir): Handle multiple LEAVE statements inside a single
16637 handler clauses. Fixes #78024.
16639 * mini-sparc.c (mono_arch_output_basic_block): Handle large offsets
16640 in the CALL_MEMBASE opcodes. Fixes #78088.
16641 (mono_arch_get_vcall_slot_addr): Ditto.
16643 2006-04-10 Martin Baulig <martin@ximian.com>
16645 * debug-debugger.c: The thread handling code has now been moved
16646 into ../metadata/threads.c.
16648 2006-04-10 Zoltan Varga <vargaz@gmail.com>
16650 * driver.c (mono_main): Fix --with-gc=none build.
16652 * mini-codegen.c (mono_spillvar_offset): Improve alignment.
16653 (mono_spillvar_offset_float): Ditto.
16654 (mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
16655 hreg, not when its !global, since on ia64, there is a third category: stacked
16658 Mon Apr 10 14:39:49 CEST 2006 Paolo Molaro <lupus@ximian.com>
16660 * mini.c: set MonoInst->klass for load field address and a few other
16663 2006-04-10 Zoltan Varga <vargaz@gmail.com>
16665 * helpers.c (mono_disassemble_code): Emit debug info on amd64 as well.
16667 2006-04-07 Zoltan Varga <vargaz@gmail.com>
16669 * dominators.c (compute_dominators): Fix yet another bug which surfaced after
16670 the branch opt changes.
16672 2006-04-06 Dick Porter <dick@ximian.com>
16674 * wapihandles.c (mini_wapi_semdel): Fix parameters in semctl () call.
16676 * wapihandles.c (mini_wapi_seminfo):
16677 * driver.c (mono_main): Add semaphore info option
16679 2006-04-05 Zoltan Varga <vargaz@gmail.com>
16681 * dominators.c (compute_dominators): Fix a bug which surfaced after the recent
16682 branch optimization changes. Fixes #78009.
16684 Wed Apr 5 16:40:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
16686 * mini.c: ignore accessibility of methods in managed->native wrappers.
16688 2006-04-04 Zoltan Varga <vargaz@gmail.com>
16690 * mini.c (mini_cleanup): Call print_jit_stats () earlier since it accesses metadata.
16692 * mini.c (mini_cleanup): Free 'emul_opcode_map' as well.
16694 2006-04-03 Zoltan Varga <vargaz@gmail.com>
16696 * mini.c: Modify the branch optimizations to preserve the invariant that
16697 the entries inside the in_bb and out_bb arrays are unique.
16698 (mono_unlink_bblock): Avoid creation of new arrays.
16700 2006-04-02 Zoltan Varga <vargaz@gmail.com>
16702 * mini.c (mono_unlink_bblock): Fix regression caused by previous
16705 2006-04-01 Zoltan Varga <vargaz@gmail.com>
16707 * mini.c (optimize_branches): Remove the "optimizations" in
16708 the cbranch1/cbranch2 -> branch cases which were causing several
16709 problems in the past. Fixes #77986.
16711 2006-03-31 Chris Toshok <toshok@ximian.com>
16713 * driver.c (DEFAULT_OPTIMIZATIONS): back out the new set of
16714 default optimizations :(
16716 2006-03-31 Zoltan Varga <vargaz@gmail.com>
16718 * inssel-x86.brg mini-codegen.c mini.c: Merge some changes/fixes from linear-il
16721 2006-03-31 Massimiliano Mantione <massi@ximian.com>
16723 * local-propagation.c: Added comments to structs and removed
16724 "Mono" prefixes from local tree mover types.
16726 2006-03-30 Zoltan Varga <vargaz@gmail.com>
16728 * Makefile.am (arch_sources): Define this for each architecture so
16729 libmono_la_SOURCES is defined in one place.
16731 Wed Mar 29 20:51:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
16733 * driver.c, wapihandles.c, Makefile.am: integrate the io-layer utils
16736 Wed Mar 29 17:16:57 CEST 2006 Paolo Molaro <lupus@ximian.com>
16738 * driver.c: print the GC name supplied by configure.
16740 2006-03-29 Massimiliano Mantione <massi@ximian.com>
16742 * local-propagation.c: Added tree mover, and moved here all the
16743 local propagation code from mini.c
16744 * mini.c: Added support for treeprop, and moved all the local
16745 propagation code to local-propagation.c
16746 * mini.h: Added support for treeprop
16747 * driver.c: Added support for treeprop, enabled consprop, copyprop,
16748 treeprop, inline and deadce by default
16749 * Makefile.am: Added local-propagation.c
16751 2006-03-25 Zoltan Varga <vargaz@gmail.com>
16753 * exceptions-sparc.c: Applied patch from David S. Miller <davem@sunset.davemloft.net>: Implement correct support for sparc/linux.
16755 Fri Mar 24 20:07:19 CET 2006 Paolo Molaro <lupus@ximian.com>
16757 * debug-debugger.c: make it compile without the Boehm GC.
16759 Wed Mar 22 18:25:18 CET 2006 Paolo Molaro <lupus@ximian.com>
16761 * mini.c: fixed issue with mismatch when an icall is registered
16762 with multiple names but same address.
16764 Tue Mar 21 15:59:57 CET 2006 Paolo Molaro <lupus@ximian.com>
16766 * declsec.c, mini-exceptions.c: use write barrier to set reference
16767 fields of managed objects.
16769 2006-03-19 Zoltan Varga <vargaz@gmail.com>
16771 * mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
16772 (can_access_internals): Fix a warning.
16774 * mini.c (print_method_from_ip): Rename this to
16775 mono_print_method_from_ip so it gets exported.
16777 * trace.c: Deal with strings inside StringBuilder's containing garbage
16778 and fix memory leaks. Fixes #77848.
16780 2006-03-19 Zoltan Varga <vargaz@gmail.com>
16782 * mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
16785 2006-03-16 Neale Ferguson <neale@sinenomine.net>
16787 * mini-s390.c: Remove OP_X86_TEST_NULL.
16789 Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
16791 * mini.c: use the correct GetHashCode() for the moving collector.
16793 2006-03-16 Massimiliano Mantione <massi@ximian.com>
16795 * liveness.c: Regalloc spill cost tuning.
16797 2006-03-15 Neale Ferguson <neale@sinenomine.net>
16799 * mini-s390x.h: Correct S390_LONG macro.
16801 * mini-s390x.c: Cleanup unused code.
16803 2006-03-15 Zoltan Varga <vargaz@gmail.com>
16805 * jit-icalls.h: New file.
16807 * Makefile.am mini.c jit-icalls.c: Use a proper include file for the jit
16808 icalls and include that instead of including jit-icalls.c.
16810 * mini-ppc.c (mono_arch_output_basic_block): Remove references to
16813 Tue Mar 14 20:23:53 CET 2006 Paolo Molaro <lupus@ximian.com>
16815 * mini.c: when checking for member accessibility, also check for
16816 friend assemblies and for explicit interface implementations.
16818 2006-03-14 Zoltan Varga <vargaz@gmail.com>
16820 * mini-codegen.c (mono_local_regalloc): Remove incorrect g_free () calls.
16822 * cpu-arm.md cpu-g4.md: Remove x86_ opcodes.
16824 * mini-x86.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
16825 common cases are done first.
16827 * mini-ops.h: Only define platform specific opcodes on the given platform.
16829 * mini.h regalloc.h mini-codegen.c: Merge optimizations from the linear-il
16832 2006-03-14 Martin Baulig <martin@ximian.com>
16834 Revert Paolo's change from r57348:
16836 * mini.h: don't use gboolean for bitfields.
16837 * mini.c: verifier changes for fields and methods accessibility.
16839 2006-03-13 Neale Ferguson <neale@sinenomine.net>
16841 * mini-s390.h, mini-s390x.h: Fix calls to mono_call_inst_add_outarg_reg.
16843 * mini-s390x.c: Fix conv_r_un.
16845 * cpu-s390, cpu-s390x.md: Fix lengths.
16847 Sun Mar 12 17:31:22 CET 2006 Paolo Molaro <lupus@ximian.com>
16849 * mini.c: nested types have access to all the nesting
16850 levels, not just the enclosing types.
16852 Sun Mar 12 16:23:11 CET 2006 Paolo Molaro <lupus@ximian.com>
16854 * mini.c: added a few more verification checks.
16856 2006-03-12 Zoltan Varga <vargaz@gmail.com>
16858 * liveness.c: Merge optimizations from the linear-il branch.
16860 2006-03-11 Zoltan Varga <vargaz@gmail.com>
16862 * mini-ia64.c (emit_call): Add a comment.
16864 * tramp-ia64.c (mono_arch_patch_callsite): Handle indirect calls as well.
16866 * tramp-ia64.c: Fix some warnings.
16868 Sat Mar 11 20:15:59 CET 2006 Paolo Molaro <lupus@ximian.com>
16870 * mini.h: don't use gboolean for bitfields.
16871 * mini.c: verifier changes for fields and methods accessibility.
16873 2006-03-11 Zoltan Varga <vargaz@gmail.com>
16875 * mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
16876 lazy icall wrapper changes.
16878 * dominators.c: Replace all the dominator algorithms with faster
16879 ones from the linear-il branch.
16881 * inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
16884 * mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
16885 common cases are done first.
16887 * mini-amd64.c: Fix some warnings.
16889 * mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
16892 * mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
16895 * mini.h: Add a missing prototype.
16897 2006-03-10 Zoltan Varga <vargaz@gmail.com>
16899 * mini.c: Compile icall wrappers lazily.
16901 * mini-codegen.c: Use printf instead of g_print since its much faster.
16903 * mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
16906 * mini.c (optimize_branches): Cache the negative result from
16907 remove_block_if_useless ().
16909 * mini.c (optimize_branches): Avoid restarting the iteration after each change.
16910 Also fix some bblock linking issues.
16912 * helpers.c (mono_disassemble_code): Reduce the size of the temporary
16915 * mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.
16917 * mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
16918 accessed fields first, for better cache behavior.
16920 Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
16922 * mini.c: speedup IList<T> array accesses.
16924 2006-03-09 Zoltan Varga <vargaz@gmail.com>
16926 * mini.c (mono_method_to_ir): Handle large methods overflowing the
16927 inline_costs counter. Fixes #77190.
16929 2006-03-06 Zoltan Varga <vargaz@gmail.com>
16931 * mini-exceptions.c: Call mono_trace_is_enabled () before printing
16932 trace messages. Fixes #77706.
16934 2006-03-04 Martin Baulig <martin@ximian.com>
16936 * tramp-amd64.c, tramp-x86.c
16937 (mono_debugger_create_notification_function): Use
16938 mono_global_codeman_reserve() to allocate a buffer at runtime and
16941 * debug-debugger.h (MonoDebuggerInfo): Added `initialize'.
16943 * debug-debugger.c (mono_debugger_init): Dynamically allocate the
16944 notification function at runtime and then call `initialize' in the
16945 `MONO_DEBUGGER__debugger_info' vtable.
16947 2006-03-04 Zoltan Varga <vargaz@gmail.com>
16949 * iltests.il: Fix a visibility problem.
16951 Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
16953 * driver.c, mini.c: add hooks for the counters API.
16955 Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
16957 * driver.c: show disabled options.
16959 Wed Mar 1 12:18:51 CET 2006 Paolo Molaro <lupus@ximian.com>
16961 * linear-scan.c: always use cost-driven selection.
16963 2006-02-28 Raja R Harinath <rharinath@novell.com>
16965 * jit-icalls.c (helper_compile_generic_method): Revert change from
16968 Mon Feb 27 18:58:19 GMT 2006 Paolo Molaro <lupus@ximian.com>
16970 * cpu-arm.md, mini-arm.c: implemented MemoryBarrier.
16972 Sat Feb 25 17:39:21 CET 2006 Paolo Molaro <lupus@ximian.com>
16974 * inssel.brg: style fixes, mostly to force the updated monoburg
16975 to run for people using svn.
16977 Sat Feb 25 17:07:42 CET 2006 Paolo Molaro <lupus@ximian.com>
16979 * mini.c: match monoburg changes.
16981 Sat Feb 25 16:04:33 CET 2006 Paolo Molaro <lupus@ximian.com>
16983 * mini.h, mini.c, abcremoval.c, aliasing.c, liveness.c,
16984 ssapre.c, graph.c, ssa.c: put the mono_burg_arity[]
16985 declaration in the header file.
16987 Sat Feb 25 14:19:31 CET 2006 Paolo Molaro <lupus@ximian.com>
16989 * helpers.c: reduce relocations and mem usage.
16991 Sat Feb 25 11:58:16 CET 2006 Paolo Molaro <lupus@ximian.com>
16993 * mini.h, mini-codegen.c: disable logging features if
16994 requested by configure.
16996 Sat Feb 25 11:54:49 CET 2006 Paolo Molaro <lupus@ximian.com>
16998 * mini.c: tiny verifier changes.
17000 Fri Feb 24 18:17:52 CET 2006 Paolo Molaro <lupus@ximian.com>
17002 * mini-ops.h, inssel-x86.brg, tramp-x86.c, mini-x86.c,
17003 cpu-pentium.md: stack alignment changes for osx/x86,
17004 partially from Geoff Norton <gnorton@customerdna.com>.
17006 2006-02-24 Raja R Harinath <harinath@gmail.com>
17008 * jit-icalls.c (helper_compile_generic_method): Update to changes
17009 in metadata/class.c.
17011 2006-02-24 Zoltan Varga <vargaz@gmail.com>
17013 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a missing check.
17015 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for
17016 interface calls with large offsets.
17018 2006-02-23 Raja R Harinath <rharinath@novell.com>
17020 * jit-icalls.c (helper_compile_generic_method): Document the
17021 special-case we depend on so that we can inflate the method twice
17022 with the same context with no bad side-effects.
17024 Thu Feb 23 13:45:46 CET 2006 Paolo Molaro <lupus@ximian.com>
17026 * mini-x86.c, mini-amd64.c: fix for case when xen support
17029 Wed Feb 22 19:38:40 CET 2006 Paolo Molaro <lupus@ximian.com>
17031 * mini-x86.c, mini-amd64.c: generate code to access tls items
17032 in a faster way for Xen systems.
17034 Wed Feb 22 10:31:25 CET 2006 Paolo Molaro <lupus@ximian.com>
17036 * exceptions-x86.c, mini-x86.h, driver.c, mini-codegen.c:
17037 updates and compilation fixes for the OSX/x86 port, mostly from
17038 Geoff Norton <gnorton@customerdna.com>.
17040 Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
17042 * inssel.brg: faster interface call implementation
17043 to sync with the interface_offsets MonoVTable changes.
17045 Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
17047 * mini.c: more verification checks.
17049 Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
17051 * mini.c: added a few more verification checks.
17053 2006-02-17 Neale Ferguson <neale@sinenomine.net>
17055 * mini-s390x.c, mini-s390x.h: Check for presence of long displacement
17056 facility on the processor and use it if available.
17058 Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
17060 * driver.c, aot.c, mini.c: throw exception if the IL code is
17061 invalid or unverifiable.
17063 2006-02-17 Raja R Harinath <rharinath@novell.com>
17065 * generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
17068 2006-02-16 Zoltan Varga <vargaz@gmail.com>
17070 * generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
17072 Wed Feb 15 16:23:17 CET 2006 Paolo Molaro <lupus@ximian.com>
17074 * mini-s390x.c, mini-s390.c, mini.c, mini-amd64.c, mini-arm.c,
17075 mini-ia64.c, mini-sparc.c, mini-x86.c, mini-ppc.c: fixed
17076 handling of instantiated generic valuetypes.
17078 2006-02-11 Zoltan Varga <vargaz@gmail.com>
17080 * mini-exceptions.c mini-x86.h mini-x86.c: Get rid of
17081 MONO_INIT_CONTEXT_FROM_CALLER, and use MONO_INIT_CONTEXT_FROM_FUNC
17084 * generics.2.cs: Revert the nullable reftypes tests.
17086 2006-02-10 Zoltan Varga <vargaz@gmail.com>
17088 * mini-exceptions.c (MONO_INIT_CONTEXT_FROM_CALLER): Avoid
17089 using __builtin_frame_address (1) as it doesn't work in the presence
17090 of optimizations. Hopefully fixes #77273.
17092 * Makefile.am generics.cs generics.2.cs: Revert the generics.2.cs
17093 -> generics.cs change as it doesn't work with some automake versions.
17095 Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
17097 * mini.c: handle systems that sue a different way to
17098 retrieve the stack address of the current thread.
17100 2006-02-09 Zoltan Varga <vargaz@gmail.com>
17102 * Makefile.am generics.2.cs: Rename this to generics.cs and handle
17103 it specially in the makefile.
17105 * generics.2.cs: Add tests for nullable reference types.
17107 Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
17109 * mini.c: always handle the case when mono_jit_init()
17110 is called in a thread different from the main thread,
17111 confusing libgc (bug #77309).
17113 Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
17115 * mini-ppc.c: fix handling of exceptions in large methods (bug #74932).
17117 Fri Feb 3 18:51:35 CET 2006 Paolo Molaro <lupus@ximian.com>
17119 * mini.c: change optimize_branches () to use a single loop
17120 and introduce a new optimization to simplify some range checks.
17122 2006-02-03 Martin Baulig <martin@ximian.com>
17124 * debug-debugger.c (debugger_thread_manager_thread_created): Removed
17125 and merged with debugger_thread_manager_add_thread().
17126 (mono_debugger_main): Call debugger_thread_manager_add_thread() to
17127 inform the debugger about the main thread.
17129 2006-02-03 Zoltan Varga <vargaz@gmail.com>
17131 * basic.cs: Add test for div.un/rem.un constant folding.
17133 2006-02-03 Neale Ferguson <neale@sinenomine.net>
17135 * cpu-s390x.md: correct int_xor_imm length
17137 2006-02-03 Zoltan Varga <vargaz@gmail.com>
17139 * generics.2.cs: New test for #77442.
17141 * jit-icalls.c (helper_compile_generic_method): Check for null. Fixes
17144 2006-02-02 Martin Baulig <martin@ximian.com>
17146 * tramp-x86.c, tramp-amd64.c: It's now safe to #include
17147 <mono/metadata/mono-debug-debugger.h>
17149 * debug-mini.c: Don't #define _IN_THE_MONO_DEBUGGER.
17151 2006-02-02 Martin Baulig <martin@ximian.com>
17153 * debug-debugger.h: New header file for debug-debugger.c.
17155 * debug-debugger.c: Big API cleanup; don't run the managed Main()
17156 function is a separate thread anymore; add support for attaching.
17158 2006-02-01 Zoltan Varga <vargaz@gmail.com>
17160 * tramp-x86.c: Fix a warning.
17162 2006-01-31 Zoltan Varga <vargaz@gmail.com>
17164 * mini-amd64.c (mono_arch_compute_omit_fp): Avoid hitting an assertion
17165 on very large methods.
17167 * aot.c (load_patch_info): Fix a warning.
17169 Mon Jan 30 12:51:10 CET 2006 Paolo Molaro <lupus@ximian.com>
17171 * cpu-pentium.md, mini-x86.c, inssel.brg, inssel-x86.brg,
17172 mini-ops.h: alu membase optimizations.
17174 Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
17176 * mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
17177 to speedup StringBuilder.
17179 2006-01-27 Zoltan Varga <vargaz@gmail.com>
17181 * dominators.c (mono_compute_natural_loops): Fix detection of
17182 loop body start blocks.
17184 * mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
17186 2006-01-26 Zoltan Varga <vargaz@gmail.com>
17188 * mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
17191 2006-01-25 Massimiliano Mantione <massi@ximian.com>
17193 * aliasing.c: Fixed aliasing issue on 64 bit archs.
17195 2006-01-25 Martin Baulig <martin@ximian.com>
17197 * debug-debugger.c: Moved the `MonoDebuggerManager' and
17198 `MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
17199 started to cleanup this file a little bit.
17201 Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
17203 * mini.c: optimize a codepath frequently happening in generics code.
17205 2006-01-23 Martin Baulig <martin@ximian.com>
17207 * Makefile.am: Only compile debug-debugger.c on supported platforms.
17209 * debug-debugger.c: Kill the IO_LAYER() hack and use the io-layer
17210 functions directly.
17212 * driver.c: debug-debugger.c is only available if
17213 `MONO_DEBUGGER_SUPPORTED' is defined.
17215 2006-01-23 Martin Baulig <martin@ximian.com>
17217 * debug-debugger.c: Only enable this on platforms where the Mono
17218 Debugger is working (x86 and x86_64).
17220 2006-01-21 Martin Baulig <martin@ximian.com>
17222 The Mono Debugger is now using the normal `mono' instead of the
17223 `mono-debugger-mini-wrapper' when executing managed code.
17225 * debug-debugger.c: New file; previously known as
17226 debugger/wrapper/wrapper.c.
17228 * debug-mini.c (mono_init_debugger): Removed.
17230 * driver.c (mono_main): Added new `--inside-mdb' command line
17231 argument which is used when running inside the debugger.
17233 2006-01-20 Zoltan Varga <vargaz@gmail.com>
17235 * liveness.c (mono_analyze_liveness): Remove some unused data
17238 2006-01-17 Zoltan Varga <vargaz@gmail.com>
17240 * mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
17242 2006-01-16 Zoltan Varga <vargaz@gmail.com>
17244 * mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
17245 depends on implementation details of monobitset.
17247 * mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
17250 2006-01-15 Zoltan Varga <vargaz@gmail.com>
17252 * liveness.c: Update after monobitset changes.
17254 2006-01-14 Zoltan Varga <vargaz@gmail.com>
17256 * mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
17258 2006-01-11 Neale Ferguson <neale@sinenomine.net>
17260 * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
17262 * mini-s390x.c: Remove warning messages.
17264 2006-01-11 Ben Maurer <bmaurer@andrew.cmu.edu>
17266 * mini.c: pass the jitinfo to mono_profiler_method_end_jit.
17268 2006-01-10 Zoltan Varga <vargaz@gmail.com>
17270 * generics.2.cs: Add ldelem/stelem_any test.
17272 2006-01-10 Neale Ferguson <neale@sinenomine.net>
17274 * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
17276 2006-01-07 Zoltan Varga <vargaz@gmail.com>
17278 * inssel-long.brg: Fix int->long ovf conversion rules. Fixes #77172.
17280 2006-01-06 Zoltan Varga <vargaz@gmail.com>
17282 * generics.2.cs: Reenable vtype tests.
17284 * inssel-x86.brg: Remove an icorrect valuetype rule.
17286 2006-01-06 Neale Ferguson <neale@sinenomine.net>
17288 * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
17289 initial support for OP_ABS.
17291 2006-01-05 Neale Ferguson <neale@sinenomine.net>
17293 * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
17295 2006-01-05 Neale Ferguson <neale@sinenomine.net>
17297 * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
17298 conversion and implement LADD/LSUB.
17300 * exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
17303 2006-01-05 Neale Ferguson <neale@sinenomine.net>
17305 * mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.
17307 * exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
17310 2006-01-05 Neale Ferguson <neale@sinenomine.net>
17312 * mini-s390x.c, mini-s390x.h, mini-s390.c, mini-s390.h: Fix lmf handling when
17313 localloc is encountered. Fixes crash in test-183.cs when using gmcs
17314 (stack walk problem).
17316 2006-01-04 Zoltan Varga <vargaz@gmail.com>
17318 * aot.c (mono_aot_load_method): Fix a warning.
17320 2006-01-03 Neale Ferguson <neale@sinenomine.net>
17322 * mini-s390x.h, exceptions-s390x.c, inssel-s390x.brg: Fix compiler warnings
17324 2006-01-03 Zoltan Varga <vargaz@gmail.com>
17326 * iltests.il: Add test for #77148.
17328 * mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
17331 2006-01-03 Neale Ferguson <neale@sinenomine.net>
17333 * mini-s390x.c, inssel-s390x.brg: Remove debug statements
17335 2006-01-03 Neale Ferguson <neale@sinenomine.net>
17337 * mini-s390x.c, mini-s390x.h, exceptions-s390x.c, tramp-s390x.c, inssel-s390x.brg,
17338 cpu-s390x.md, mini-codegen.c, Makefile.am: add 64-bit s390 support to JIT.
17340 * basic-long.cs: Add lconv-to-r4/r8 tests.
17342 2006-01-03 Zoltan Varga <vargaz@gmail.com>
17344 * mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.
17346 * mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
17347 here as on other archs.
17349 2005-12-29 Neale Ferguson <neale@sinenomine.net>
17351 * mini-s390.c (mono_arch_get_inst_for_method): Add memory_barrier support.
17353 2005-12-29 Neale Ferguson <neale@sinenomine.net>
17355 * inssel-s390.brg: Correct register assignment; Rework L[ADD|SUB]_OVF[_UN] for s390.
17357 * cpu-s390.md: Fix lengths of a couple of long instructions; Add memory_barrier.
17359 * mini-s390.c: Fix long add/sub overflow instructions; Fix displacement handling in
17360 instrument_prolog; Add memory_barrier instruction.
17362 2005-12-26 Zoltan Varga <vargaz@gmail.com>
17364 * exceptions-x86.c mini-x86.h: Fix solaris/x86 exception handling.
17366 2005-12-23 Zoltan Varga <vargaz@gmail.com>
17368 * tramp-ia64.c (mono_arch_get_unbox_trampoline): Flush icache.
17370 * aliasing.c inssel.brg: Fix warnings.
17372 * inssel-ia64.brg (OP_MEMSET): Fix an optimization which previously
17373 could skip initialization of some parts of memory.
17375 * mini.c mini-ia64.c: Fix warnings.
17377 * inssel-sparc.brg: Add an implementation of lneg which actually works.
17379 2005-12-22 Zoltan Varga <vargaz@gmail.com>
17381 * aliasing.c (mono_build_aliasing_information): Add a workaround for
17382 a crash seen on sparc.
17384 * mini-sparc.c: Add implementation of Thread.MemoryBarrier.
17386 * cpu-sparc.md: Add memory_barrier opcode. Remove unused opcodes.
17388 2005-12-21 Neale Ferguson <neale@sinenomine.net>
17390 * mini-ops.h: Add s390_backchain instruction
17392 * inssel-s390.brg: Use backchaining instruction for LOADARG/STKARG operations.
17394 * cpu-s390.md: Add s390_backchain instruction
17396 * mini-s390.c: Significant ABI changes
17398 * mini-s390.h: Cater for zero length structures
17400 2005-12-20 Neale Ferguson <neale@sinenomine.net>
17402 * mini-s390.c: ABI fixes
17404 * inssel-s390.brg: Remove debug statements
17406 * cpu-s390.md: Fix length of ATOMIC_xx operations
17408 2005-12-19 Zoltan Varga <vargaz@gmail.com>
17410 * basic-float.cs: Add float<->long conversion tests.
17412 2005-12-16 Neale Ferguson <neale@sinenomine.net>
17414 * mini-s390.c: Fix LOCALLOC processing.
17416 * tramp-s390.c (s390_magic_trampoline): Fix base calculation.
17418 2005-12-15 Zoltan Varga <vargaz@gmail.com>
17420 * iltests.il: Add tests for some opcodes not covered by the other
17423 2005-12-15 Neale Ferguson <neale@sinenomine.net>
17425 * mini-s390.c: Fix ADDCC/SBB bug revealed by test_0_ulong_regress; Correct
17426 register loading for Tail processing; Correct trace output.
17428 * inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.
17430 * cpu-s390.md: Correct size of jmp instruction.
17432 2005-12-13 Neale Ferguson <neale@sinenomine.net>
17434 * mini-s390.c (mono_arch_emit_prolog): Remove some debugging bits.
17436 2005-12-13 Neale Ferguson <neale@sinenomine.net>
17438 * inssel-s390.brg tramp-s390.c cpu-s390.md mini-s390.c mini-s390.h:
17439 Bring s390 up to current level.
17441 2005-12-12 Zltan Varga <vargaz@gmail.com>
17443 * generics.2.cs: Disable the newly added tests as they do not work yet.
17445 * generics.2.cs: Add valuetype tests.
17447 2005-12-09 Zoltan Varga <vargaz@gmail.com>
17449 * basic-long.cs: Add i4->u8 test.
17451 * objects.cs: Add tests for JIT intrinsic.
17453 * mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
17454 optimizations lost by a mistake.
17456 2005-12-07 Zoltan Varga <vargaz@gmail.com>
17458 * basic-long.cs: Remove a test moved to objects.cs.
17460 * arrays.cs: Add more array tests.
17462 2005-12-06 Zoltan Varga <vargaz@gmail.com>
17464 * arrays.cs: Add new tests for multi-dimensional arrays.
17466 2005-12-06 Raja R Harinath <rharinath@novell.com>
17468 * Makefile.am (test_sources2): Add generics.2.cs.
17469 (EXTRA_DIST): Add test_sources2.
17471 2005-12-05 Ben Maurer <bmaurer@ximian.com>
17473 Support for boxing and unboxing nullable types as well as the
17474 isinst operation on nullables, per the CLI ammendment.
17476 * inssel.brg (CEE_ISINST): Special case for nullable
17478 * mini.c (handle_unbox_nullable): new method
17479 (handle_box): Special case for nullable types
17480 (mono_method_to_ir): Call handle_unbox_nullable in correct
17483 * generics.2.cs: New test suite
17485 * Makefile.am: Support for regression tests with generics.
17487 2005-12-03 Zoltan Varga <vargaz@gmail.com>
17489 * mini-amd64.c (emit_load_volatile_arguments): Add loading of arguments
17490 allocated to registers. Fixes #76800.
17492 Thu Dec 1 12:59:40 EST 2005 Paolo Molaro <lupus@ximian.com>
17494 * mini-ppc.c, inssel-ppc.brg: fix ABI issue (pinvoke3.cs).
17496 2005-11-30 Zoltan Varga <vargaz@gmail.com>
17498 * exceptions.cs: Disable test_0_long_cast () test, since it fails on a lot
17501 2005-11-29 Zoltan Varga <vargaz@gmail.com>
17503 * objects.cs basic-calls.cs: Move a test depending on valuetypes to
17506 * inssel-long32.brg (CEE_CONV_I8): Remove unused labels.
17508 * inssel-long32.brg (CEE_CONV_I8): Convert this to a branchless version.
17509 Tue Nov 29 05:41:34 EST 2005 Paolo Molaro <lupus@ximian.com>
17511 * mini-ppc.c, cpu-g4.md: ensure a fp register is converted to
17512 single precision before storing to a single precision location.
17514 2005-11-28 Raja R Harinath <rharinath@novell.com>
17516 * Makefile.am (ILASM): Use profile-dependent location of ilasm.
17518 2005-11-27 Zoltan Varga <vargaz@gmail.com>
17520 * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
17523 * basic.cs: Remove test_0_byte_compares test which was moved to
17524 objects.cs a long time ago.
17526 2005-11-22 Massimiliano Mantione <massi@ximian.com>
17528 * aliasing.c: Fixed aliasing issue on 64 bit archs.
17530 2005-11-20 Zoltan Varga <vargaz@gmail.com>
17532 * mini-ia64.c exceptions-ia64.c: Simplify the way filters/finally
17533 handlers are called.
17535 * mini-ia64.c (mono_arch_emit_exceptions): Optimize size of exception
17538 * mini-ia64.c: Add support for the throw->branch exception
17541 * driver.c (DEFAULT_OPTIMIZATIONS): Add MONO_OPT_EXCEPTION.
17543 2005-11-18 Massimiliano Mantione <massi@ximian.com>
17545 * mini.c: Enabled "fastpath" deadce :-)
17547 2005-11-18 Massimiliano Mantione <massi@ximian.com>
17549 * mini.c: Added "fastpath" deadce (deadce without SSA), and a simple
17550 alias analysis pass to support it.
17551 * mini.h: Likewise.
17553 * liveness.c: Likewise (liveness computation can use aliasing
17554 information to be more accurate).
17555 * driver.c: Added an "ssa" option go tell the JIT to use SSA, and
17556 moreover made so that "--compile-all" uses the given optimization
17557 flags and not the default ones.
17558 * aliasing.c: Alias analysis (new file).
17559 * aliasing.h: Likewise.
17560 * Makefile.am: added "aliasing.c" and "aliasing.h".
17562 2005-11-17 Zoltan Varga <vargaz@gmail.com>
17564 * mini-ops.h: Add missing OP_I opcodes so it is in synch with the
17567 2005-11-13 Zoltan Varga <vargaz@gmail.com>
17569 * mini-exceptions.c (mono_handle_exception_internal): Remove the
17570 fp >= end_of_stack exit condition, as it is not needed, and it might
17571 become true for fp eliminated frames.
17573 2005-11-11 Zoltan Varga <vargaz@gmail.com>
17575 * mini-x86.c (mono_arch_emit_epilog): Use G_STRUCT_OFFSET instead of hard
17578 Tue Nov 8 11:28:20 GMT 2005 Paolo Molaro <lupus@ximian.com>
17580 * mini-arm.c: fixed alignment of doubles/longs to match
17581 the C ABI (bug #76635).
17583 Mon Nov 7 16:13:21 CET 2005 Paolo Molaro <lupus@ximian.com>
17585 * aot.c: fix compilation with --enable-minimal=aot.
17587 Fri Nov 4 12:34:15 GMT 2005 Paolo Molaro <lupus@ximian.com>
17589 * mini-arm.c: fixed compatibility with the new
17590 floating point emulator package for compares.
17592 2005-11-03 Atsushi Enomoto <atsushi@ximian.com?
17594 * mini.c : reverted sig->pinvoke changes (r51396-51397).
17596 2005-11-01 Zoltan Varga <vargaz@freemail.hu>
17598 * mini-exceptions.c (print_stack_frame): Output to stderr.
17599 (mono_handle_native_sigsegv): Ditto.
17601 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
17603 * mini-amd64.c (mono_arch_output_basic_block): Remove unused
17604 OP_LCONV_TO_OVF_I implementation.
17606 * mini-amd64.c: Add support for the throw->branch exception
17609 * branch-opts.c (mono_branch_optimize_exception_target): Allow the case
17610 when the catch clause catches a more general exception, i.e. Object.
17612 2005-10-30 Zoltan Varga <vargaz@gmail.com>
17614 * cpu-ia64.md: Remove unused opcodes.
17616 * mini.c (GET_CONTEXT): Simplify this somewhat by removing arch
17617 specific defines for architectures defining USE_SIGACTION.
17619 * mini-ia64.c: Fix some warnings.
17621 * exceptions-ia64.c (mono_arch_ip_from_context): Fix this, the previous
17622 version seemed to skip a frame.
17624 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
17626 * mini.c: Clean up the usage of sig->pinvoke flag. Now
17627 only calls which are made to native code use this flag.
17629 2005-10-29 Zoltan Varga <vargaz@freemail.hu>
17631 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for
17632 varargs methods as well.
17634 * mini-amd64.c exceptions-amd64.c: Allow fp elimination in methods
17635 which have save_lmf set. Reorganize methods prologs a bit.
17637 * mini-amd64.c (mono_arch_compute_omit_fp): Move the check for the
17638 debugger to the proper place.
17640 2005-10-29 Martin Baulig <martin@ximian.com>
17642 * mini-amd64.c (debug_omit_fp): Temporarily disable fp elimination
17643 when running inside the debugger until the debugger has support
17646 2005-10-26 Zoltan Varga <vargaz@gmail.com>
17648 * mini.h: Fix a warning.
17650 2005-10-24 Miguel de Icaza <miguel@novell.com>
17652 * mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
17653 we expose publicly, this returns the string.
17655 2005-10-22 Zoltan Varga <vargaz@freemail.hu>
17657 * exceptions-amd64.c (mono_arch_find_jit_info): Fix some corner cases
17658 with fp elimination.
17660 2005-10-21 Zoltan Varga <vargaz@gmail.com>
17662 * mini-exceptions.c (mono_handle_native_sigsegv): Try to print a
17663 native stacktrace using the glibc 'backtrace' function if available.
17665 2005-10-20 Zoltan Varga <vargaz@gmail.com>
17667 * mini.h (MonoDebugOptions): Remove 'abort_on_sigsegv' option.
17669 * mini-exceptions.c (mono_handle_native_sigsegv): New function to
17670 handle SIGSEGVs received while in native code.
17672 * mini.c (sigsegv_signal_handler): If the SIGSEGV happened in native
17673 code, call mono_handle_native_sigsegv which will abort the runtime
17674 after printing some diagnostics, instead of converting it into a
17675 confusing NullReferenceException.
17677 2005-10-18 Zoltan Varga <vargaz@gmail.com>
17679 * cpu-pentium.md: Remove unused opcodes.
17681 2005-10-18 Zoltan Varga <vargaz@freemail.hu>
17683 * mini-amd64.h (MonoLMF): Add rsp field.
17685 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Save the sp reg into
17688 2005-10-17 Zoltan Varga <vargaz@gmail.com>
17690 * mini-codegen.c (get_register_spilling): Fix some warnings.
17692 2005-10-16 Zoltan Varga <vargaz@freemail.hu>
17694 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Add support for fp
17695 elimination during exception handling. Enable fp elimination by
17698 * mini-amd64.h mini-amd64.c: Add preliminary support for frame pointer
17701 2005-10-16 Martin Baulig <martin@ximian.com>
17703 * mini-exceptions.c
17704 (mono_debugger_run_finally): New public method for the debugger.
17706 2005-10-10 Zoltan Varga <vargaz@gmail.com>
17708 * debug-mini.c (mono_debug_init_method): Fix warning.
17710 * mini.h branch-opts.c (mono_branch_optimize_exception_target): Make
17711 the 'exname' parameter const to fix some warnings.
17713 2005-10-09 Zoltan Varga <vargaz@freemail.hu>
17715 * mini-exceptions.c (mono_handle_exception_internal): Fix another bug
17716 introduced by the previous patch.
17718 2005-10-08 Zoltan Varga <vargaz@gmail.com>
17720 * basic-float.cs: Add test for precision of float arithmetic.
17722 * mini-ia64.c (mono_arch_output_basic_block): Convert to/from doubles
17723 when loading/storing single values from/to memory.
17725 * mini.c (mono_jit_compile_method_with_opt): Create the function
17726 pointers in the correct domain.
17728 2005-10-08 Zoltan Varga <vargaz@freemail.hu>
17730 * mini-exceptions.c (mono_handle_exception_internal): Fix bug
17731 introduced by previous patch.
17733 * mini-exceptions.c (mono_handle_exception_internal): Handle the case
17734 when out_filter_idx is NULL.
17736 * mini-exceptions.c: Don't run filter clauses twice during exception
17737 handling. Fixes #75755.
17739 2005-10-07 Zoltan Varga <vargaz@gmail.com>
17741 * aot.c: Add support for ldflda wrappers.
17743 * mini.c (mono_method_to_ir): Use ldflda wrappers for CEE_LDFLDA. Fixes
17746 Tue Oct 4 20:23:25 CEST 2005 Paolo Molaro <lupus@ximian.com>
17748 * mini.c, mini.h: do not consider exception handlers blocks when
17749 setting up interface variables.
17751 2005-10-04 Zoltan Varga <vargaz@freemail.hu>
17753 * aot.c (emit_section_change): Fix emitting of sections on win32. Fixes #76322.
17755 2005-10-03 Zoltan Varga <vargaz@gmail.com>
17757 * liveness.c (mono_analyze_liveness): Revert parts of r51051 since it
17758 causes a regression.
17760 * mini.c (mini_thread_cleanup): Fix reading of freed memory.
17762 2005-10-02 Zoltan Varga <vargaz@freemail.hu>
17764 * mini.h (OP_PCONST): Move the definition of OP_PCONST into the rest
17765 of the OP_P definitions.
17767 * TODO: Add a proposal for dealing with the CEE/OP mess.
17769 * mini-amd64.c (mono_arch_output_basic_block): Merge mul_imm
17770 optimizations from the x86 port.
17772 * cpu-amd64.md: Ditto.
17774 * basic.cs basic-long.cs: Add tests.
17776 Fri Sep 30 20:07:20 CEST 2005 Paolo Molaro <lupus@ximian.com>
17778 * Makefile.am, driver.c, mini-x86.c, mini.c, mini.h, branch-opts.c:
17779 Patrik Torstensson's implementation of my exception-handling
17780 optimization idea, when the exception object is not used
17783 Fri Sep 30 19:10:29 CEST 2005 Paolo Molaro <lupus@ximian.com>
17785 * mini-x86.c, cpu-pentium.md: Patrik Torstensson's port
17786 of the mul_imm optimizations from the old jit.
17788 Fri Sep 30 11:37:51 EDT 2005 Paolo Molaro <lupus@ximian.com>
17790 * mini.c, liveness.c: patch by Patrik Torstensson and
17791 Zoltan Varga to improve performance in methods with
17794 2005-09-30 Zoltan Varga <vargaz@gmail.com>
17796 * driver.c: Remove 'Globalization' entry from --version.
17798 2005-09-28 Zoltan Varga <vargaz@gmail.com>
17800 * mini.c (mono_jit_compile_method_inner): Do not load AOT code when
17801 there is a profiler interested in JIT events.
17803 * aot.c: Load profile files produced by the AOT profiling module, and
17804 reorder methods based on the profiling info. Add a 'method_order' table
17805 to the AOT file to make mono_aot_find_jit_info work with the reordered
17808 * mini.h: Bump AOT file version info.
17810 Wed Sep 28 17:12:48 CEST 2005 Paolo Molaro <lupus@ximian.com>
17812 * mini-arm.h: work around what looks like a gcc bug when optimizations
17815 2005-09-28 Raja R Harinath <rharinath@novell.com>
17817 * Makefile.am (AM_CFLAGS): Don't use += to append inside
17818 conditionals. Use ...
17819 (PLATFORM_CFLAGS, ARCH_CFLAGS): ... these.
17821 2005-09-27 Zoltan Varga <vargaz@freemail.hu>
17823 * mini-amd64.c (mono_arch_call_opcode): Use mono_class_value_size ()
17824 to determine the amount of memory to copy when passing valuetypes.
17826 * inssel-amd64.brg: Remove PUSH(LDIND4) rules since they convert an
17827 4 byte load into a 8 byte load. Fix aligning of size in OP_OUTARG_VT.
17829 2005-09-27 Zoltan Varga <vargaz@gmail.com>
17831 * mini.h mini.c aot.c: Add infrastructure to collect pagefault
17832 information about aot.
17834 2005-09-27 Ben Maurer <bmaurer@ximian.com>
17836 * *.c: Replace the use of {Enter,Leave}CriticalSection with
17837 macros. This will allow a deadlock debugger to easily be plugged
17840 Tue Sep 27 09:32:11 EDT 2005 Paolo Molaro <lupus@ximian.com>
17842 * mini-ppc.c, cpu-g4.md: added memory barrier instruction.
17844 2005-09-27 Raja R Harinath <rharinath@novell.com>
17846 * Makefile.am (AM_CFLAGS): Rename from INCLUDES.
17847 (AM_CFLAGS) [PLATFORM_WIN32): Append to it, don't set it.
17848 (AM_CFLAGS) [ARM]: Add arch/arm directory from the build tree.
17849 ($(arch_built)) [CROSS_COMPILING]: Error out.
17851 2005-09-26 Zoltan Varga <vargaz@gmail.com>
17853 * aot.c: Add support for the no_special_static flag for classes.
17855 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
17857 * Reapply reverted patches.
17859 * *: Revert r50174 as well.
17861 * mini-amd64.c cpu-amd64.md inssel-amd64.brg: Revert r50170 as well.
17863 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
17865 * mini-amd64.c: Revert r50342 to see if this fixed buildbot.
17867 2005-09-23 Miguel de Icaza <miguel@novell.com>
17869 * mini.c (SIG_HANDLER_SIGNATURE): Only dereference info if it is
17870 part of the SIG_HANDLER_SIGNATURE.
17872 2005-09-23 Zoltan Varga <vargaz@gmail.com>
17874 * mini.h mini.c: Add a new MONO_DEBUG option to collect metadata pagefault
17877 * mini-x86.c (mono_arch_call_opcode): Fix vararg calling convention
17878 introduced by previous patch.
17880 2005-09-21 Zoltan Varga <vargaz@gmail.com>
17882 * tramp-x86.c (mono_arch_create_trampoline_code): Restore caller
17883 saved registers too.
17885 * mini-x86.c (mono_arch_allocate_vars): Rewrite this so it works based
17886 upon the information returned by get_call_info ().
17888 * mini-x86.c (add_float): Fix stack size calculation.
17889 (mono_arch_call_opcode): Rewrite this so it works based up the
17890 information returned by get_call_info ().
17891 (mono_arch_get_this_vret_args): Ditto.
17893 2005-09-21 Zoltan Varga <vargaz@freemail.hu>
17895 * mini-amd64.c (mono_arch_emit_this_vret_args): Use the information
17896 in cinfo to determine the registers which need to be used.
17898 2005-09-20 Miguel de Icaza <miguel@novell.com>
17900 * driver.c (mono_main): Add --server and --desktop flags.
17902 2005-09-16 Zoltan Varga <vargaz@gmail.com>
17904 * mini-ia64.h: Make register masks 64 bit. Don't treat argument
17905 registers as global registers.
17907 * inssel-ia64.brg (stmt): Remove OP_OUTARG_REG () rules which are no
17908 longer needed with the new register allocator.
17910 * mini-ia64.c: Use OP_MOVE instead of OP_SETREG for reg-reg moves.
17912 * cpu-ia64.md: Remove unused opcodes.
17914 * regalloc.c mini-codegen.c: Make register masks 64 bit on ia64.
17916 2005-09-16 Zoltan Varga <vargaz@freemail.hu>
17918 * cpu-amd64.md: Remove unused opcodes.
17920 * inssel-amd64.brg: Remove OP_OUTARG_REG () rules which are no longer
17921 needed with the new register allocator.
17923 * inssel-amd64.brg mini-amd64.c: Use OP_MOVE instead of OP_SETREG for
17926 2005-09-16 Raja R Harinath <rharinath@novell.com>
17928 * Makefile.am (check-local): Don't invoke semdel-wrapper.
17930 2005-09-16 Martin Baulig <martin@ximian.com>
17932 * exceptions-amd64.c
17933 (throw_exception): Don't call mono_debugger_throw_exception() if
17934 we're a rethrow - see the FIXME in the code.
17936 2005-09-15 Geoff Norton <gnorton@customerdna.com>
17938 * mini.c (mono_init_exceptions): This only works on some architectures.
17940 2005-09-15 Zoltan Varga <vargaz@gmail.com>
17942 * mini.c (mono_method_to_ir): Add OP_LMUL imm -> OP_LMUL_IMM conversion
17945 * inssel-long.brg mini-ia64.c: Add OP_LMUL_IMM rules.
17947 * mini-ia64.h mini-ia64.c: Remove the altstack support code which is
17948 now in mini-exceptions.c.
17950 2005-09-15 Zoltan Varga <vargaz@freemail.hu>
17952 * mini-amd64.h mini-am64.c: Remove the altstack support code which is
17953 now in mini-exceptions.c.
17955 2005-09-15 Zoltan Varga <vargaz@gmail.com>
17957 * exceptions-x86.c: Applied patch from Patrik Torstensson
17958 <patrik.torstensson@gmail.com>. Add stack overflow handling support for win32.
17960 * mini-exceptions.c mini-x86.c mini.c: Move the altstack setup/teardown
17961 code into mini-exceptions.c. Add some assertions to it.
17963 2005-09-12 Zoltan Varga <vargaz@gmail.com>
17965 * aot.c (emit_section_change): Applied patch from "The Software Team"
17966 (<software@solmersa.com>). Fix as errors on windows.
17968 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
17970 * tramp-amd64.c (mono_arch_create_trampoline_code): Fix saving of
17971 method info into the LMF.
17973 2005-09-11 Zoltan Varga <vargaz@gmail.com>
17975 * mini-ia64.c: Add proper unwind info for method epilogs.
17977 * exceptions-ia64.c: Add some code to help debugging.
17979 * mini-ia64.c mini-ia64.h: Add sigaltstack support.
17981 * mini-exceptions.c: Fix warning.
17983 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
17985 * mini.c: Really fix build.
17987 * mini-x86.c mini-amd64.c: Fix build.
17989 2005-09-11 Zoltan Varga <vargaz@gmail.com>
17991 * mini-ia64.c inssel-ia64.brg: Add InterlockedExchange instrinsics.
17993 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Implement
17994 some Interlocked methods as intrinsics.
17996 * mini.c (mini_get_inst_for_method): Call arch_get_inst_for_method
17997 for Thread methods as well.
17999 * mini-ops.h: Add OP_MEMORY_BARRIER opcode.
18001 * inssel.brg: Add rule for OP_MEMORY_BARRIER.
18003 * mini-ia64.c mini-x86.c mini-amd64.c
18004 cpu-ia64.md cpu-pentium.md cpu-amd64.md: Add implementation of
18007 * mini.c (mono_init_exceptions): Fix build breakage.
18009 2005-09-10 Zoltan Varga <vargaz@gmail.com>
18011 * mini-ia64.c exceptions-ia64.c tramp-ia64.c: Remove 'manual' emitting
18012 of instructions. Use the new ia64_unw_op macros for emitting unwind
18015 * mini.c (mono_init_exceptions): Initialize exception handling
18016 related trampolines at startup.
18018 Fri Sep 9 19:30:37 BST 2005 Paolo Molaro <lupus@ximian.com>
18020 * cpu-arm.md, mini-arm.c: fix for dynamic code (Gtk# apps).
18022 2005-09-09 Zoltan Varga <vargaz@gmail.com>
18024 * mini.c: Handle type loading errors gracefully during compilation and
18025 throw the appropriate exception.
18027 Fri Sep 9 09:49:14 CEST 2005 Paolo Molaro <lupus@ximian.com>
18029 * ldscript.mono, Makefile.am: use anonymous versions in the ldscript
18030 for the mono binary.
18032 2005-09-09 Martin Baulig <martin@ximian.com>
18034 * mini.c (mono_method_to_ir): Comment out the G_BREAKPOINT()'s for
18037 Thu Sep 8 14:53:45 BST 2005 Paolo Molaro <lupus@ximian.com>
18039 * mini-arm.h: use emulation for conv.r.un for the release.
18041 Thu Sep 8 11:28:45 BST 2005 Paolo Molaro <lupus@ximian.com>
18043 * mini-arm.c, objects.cs: more fixes and tests for them.
18045 Wed Sep 7 17:14:26 BST 2005 Paolo Molaro <lupus@ximian.com>
18047 * mini-arm.c: align structures to at least 4 bytes to be able
18048 to keep our current optimized memcpy.
18050 Tue Sep 6 22:51:08 BST 2005 Paolo Molaro <lupus@ximian.com>
18052 * mini-arm.c, cpu-arm.md, inssel-arm.brg: bugfixes.
18054 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18056 * mini.c: ignore SIGPIPE.
18058 2005-09-04 Zoltan Varga <vargaz@gmail.com>
18060 * mini-ia64.c (mono_arch_lowering_pass): Convert 'and_imm 255' to zext1.
18062 * mini-ia64.h mini-ia64.c: Add some minor optimizations.
18064 2005-09-02 Zoltan Varga <vargaz@gmail.com>
18066 * mini.h: Add prototype for mono_allocate_stack_slots_full.
18068 Thu Sep 1 21:05:26 BST 2005 Paolo Molaro <lupus@ximian.com>
18070 * exceptions-arm.c, mini.c, mini-arm.c, mini-arm.h:
18071 exception handling support.
18072 * mini-arm.c, mini-arm.h: bigendian fixes (partially from a
18073 patch by Brian Koropoff <briank@marakicorp.com>).
18075 Thu Sep 1 10:22:44 EDT 2005 Paolo Molaro <lupus@ximian.com>
18077 * mini.c: revert another 'optimization' which breaks when
18078 items on the eval stack need to be saved at a basic block end
18081 Wed Aug 31 17:29:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
18083 * jit-icalls.c: for arrays, ensure we always provide
18086 2005-08-30 Zoltan Varga <vargaz@gmail.com>
18088 * mini.c (mono_allocate_stack_slots_full): Fix ia64 build.
18090 * mini.c (mini_get_inst_for_method): Special case Object:.ctor as well.
18092 2005-08-29 Zoltan Varga <vargaz@gmail.com>
18094 * mini-ia64.h mini-ia64.c: Implement frame pointer elimination. Keep
18095 arguments in their original register.
18097 2005-08-28 Zoltan Varga <vargaz@gmail.com>
18099 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Optimize
18102 * mini.c (mono_method_to_ir): Disable the MUL->MUL_IMM optimization
18103 when ssapre is enabled.
18105 * inssel-long.brg: Fix bug in previous patch.
18107 * mini-ia64.c mini-ia64.h mini.c inssel-long.brg: Optimize
18108 multiplication by a constant.
18110 2005-08-27 Zoltan Varga <vargaz@gmail.com>
18112 * mini-ia64.c (mono_arch_setup_jit_tls_data): Add support for intel
18115 * tramp-ia64.c (mono_arch_create_trampoline_code): Use st8.spill for
18118 Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
18120 * inssel-arm.brg: apply changes tested by Brian Koropoff
18121 <briank@marakicorp.com>.
18123 2005-08-25 Zoltan Varga <vargaz@gmail.com>
18125 * mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.
18127 2005-08-24 Zoltan Varga <vargaz@gmail.com>
18129 * mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
18130 to the same register if dreg is just a base register.
18131 (print_ins): Improve printing of membase opcodes.
18133 * inssel-x86.brg: Add optimized ldind(reg) rules.
18135 * mini-x86.c cpu-pentium.md: Changes required to support the new rules.
18137 Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
18139 * mini.c: when running under valgrind, set the stack bottom for
18140 the GC at the actual approximate stack for the app (fixes running
18141 mono with valgrind).
18143 Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
18145 * mini.c: do no break at the first valuetype to init found
18146 (fixes bug #75791).
18148 Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
18150 * cpu-arm.md, mini-arm.c: more fixes and LMF support.
18152 Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
18154 * cpu-g4.md: fixed instruction length exposed by the nemerle compiler.
18156 2005-08-23 Zoltan Varga <vargaz@freemail.hu>
18158 * inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.
18160 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
18162 * inssel-x86.brg: Fix assert in patch_delegate_trampoline.
18164 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
18167 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
18170 * mini.c (optimize_branches): Don't quit after 1000 iterations on large
18173 Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
18175 * tramp-arm.c: allocate less memory for the trampoline and fix typo.
18177 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
18179 * mini.c (mono_method_to_ir): Remove instructions inserted after a branch
18180 in the tail recursion optimization.
18182 * mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as
18183 debug info into the assembly file.
18185 * iltests.il: Add test for filter regions.
18187 * mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
18188 initial stack of filter regions. Fixes #75755.
18190 Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
18192 * mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
18193 stack requirements.
18195 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
18197 * mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
18198 the check for an already compiled method on non-ia64 platforms.
18199 (mono_create_jump_trampoline): Store the MonoJitInfo structure into the
18202 * mini-x86.h tramp-x86.c: Add support for delegate trampolines.
18204 * inssel-x86.brg: Add some optimized call rules.
18206 2005-08-21 Zoltan Varga <vargaz@freemail.hu>
18208 * mini.c (mono_create_delegate_trampoline): Do not return an already compiled
18211 * mini.h mini-trampolines.c: Pass the trampoline argument to
18212 mono_arch_patch_delegate_trampoline.
18214 * mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.
18216 * mini-trampolines.c: Fix build.
18218 * mini-amd64.h: Add delegate trampolines.
18220 * mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.
18222 * inssel-amd64.brg: Add optimized call rules.
18224 * mini-ia64.c tramp-ia64.c: Improve instruction scheduling.
18226 * inssel-ia64.brg: Add optimized ldind(reg) rules.
18228 2005-08-20 Zoltan Varga <vargaz@freemail.hu>
18230 * mini.c (mono_create_class_init_trampoline): Fix bug caused by last
18233 * mini-ia64.c: Remove LMF fixmes.
18235 * mini-ia64.h: Remove most fields from LMF.
18237 * inssel-ia64.brg (stmt): Fix unaligned access errors.
18239 * mini-trampolines.c: Add support for IA64 function descriptors.
18241 * mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
18242 for IA64 function descriptors.
18244 Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
18246 * tramp-arm.c: patch the vtable for virtual calls. Added
18247 support code to register/unregister the LMF.
18248 * mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
18251 2005-08-19 Dick Porter <dick@ximian.com>
18253 * mini.c: Use a gsize to store the thread ID, so it can hold a 64
18254 bit value if needed.
18256 2005-08-19 Zoltan Varga <vargaz@freemail.hu>
18258 * mini.c (mini_get_method): Move handling of wrapper data here.
18260 * mini.c (mono_method_to_ir): Add support for dynamic methods.
18262 * mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
18265 * mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so
18266 bblock->code does not remain empty.
18268 2005-08-17 Zoltan Varga <vargaz@freemail.hu>
18270 * arrays.cs: Add regression test for #75832.
18272 * inssel-amd64.brg cpu-amd64.md mini-amd64.c: Fix LDELEMA optimization
18273 rules. Fixes #75832.
18275 * mini-ia64.c tramp-ia64.c exceptions-ia64.c: Implement improved
18276 instruction scheduling.
18278 2005-08-12 Zoltan Varga <vargaz@freemail.hu>
18280 * mini-exceptions.c (ves_icall_get_frame_info): Fix IA64 build.
18282 2005-08-11 Zoltan Varga <vargaz@freemail.hu>
18284 * mini-exceptions.c mini-x86.h: Move VC stuff into macros in mini-x86.h.
18286 * mini-codegen.c: Fix VC build.
18288 * cpu-pentium.md: Increase length of atomic_exhange_i4.
18290 2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18292 * mini.h: fix signature for mono_register_opcode_emulation.
18294 2005-08-09 Zoltan Varga <vargaz@freemail.hu>
18296 * mini.c: Get rid of most of the helper_sig_... constants using
18297 mono_create_icall_signature ().
18299 2005-08-08 Zoltan Varga <vargaz@freemail.hu>
18301 * jit-icalls.c (helper_ldstr): New helper function.
18303 * mini.c (get_basic_blocks): Set out_of_line for bblocks containing a throw.
18305 * mini.c (mono_method_to_ir): If an LDSTR instruction is in a bblock with a
18306 throw, load the string using a helper call instead of creating a string object.
18308 * aot.c: Update after LDSTR changes.
18310 * mini.h: Bump AOT file version.
18312 * aot.c: Save class size info into the AOT file. Print more statistics during
18315 * mini.h: Bump AOT file version.
18317 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
18318 ordering of disasm cases. Fixes #74957.
18320 Thu Aug 4 19:47:24 BST 2005 Paolo Molaro <lupus@ximian.com>
18322 * mini-ops.h, mini-arch.h, inssel.brg, mini.c, mini.h,
18323 jit-icalls.c, mini-codegen.c, Makefile.am: changes in
18324 the generic code needed for the ARM port.
18326 Thu Aug 4 19:42:54 BST 2005 Paolo Molaro <lupus@ximian.com>
18328 * exceptions-arm.c, tramp-arm.c, mini-arm.c, mini-arm.h, cpu-arm.md,
18329 inssel-arm.brg: more ARM features and fixes.
18331 Mon Aug 1 18:37:38 BST 2005 Paolo Molaro <lupus@ximian.com>
18333 * tramp-arm.c, mini-arm.c, cpu-arm.md, inssel-arm.brg: more
18334 ARM port work in progress.
18336 2005-07-30 Zoltan Varga <vargaz@freemail.hu>
18338 * mini-ia64.c (mono_arch_call_opcode): Ongoing IA64 work.
18340 * mini-exceptions.c mini-ia64.h: Ongoing IA64 work.
18342 * mini-ia64.c (ia64_emit_bundle): Ongoing IA64 work.
18344 * inssel.brg (mini_emit_memset): Add support for unaligned access.
18346 * *-ia64.*: Ongoing IA64 work.
18348 * mini-ia64.c exceptions-ia64.c: Ongoing IA64 work.
18350 2005-07-28 Zoltan Varga <vargaz@freemail.hu>
18352 * TODO: Remove out-of-data todo stuff.
18354 * mini.h mini.c (mono_create_jit_trampoline_from_token): Remove some
18357 * aot.c: Save/load MonoCachedClassInfo->has_nested_classes.
18359 * mini.h: Bump corlib version.
18361 2005-07-27 Martin Baulig <martin@ximian.com>
18364 (create_copy_ins): Added `const unsigned char *ip' argument; set
18365 `copy->cil_code' from it.
18367 2005-07-27 Martin Baulig <martin@ximian.com>
18369 * mini-exceptions.c (mono_handle_exception): Don't call
18370 mono_debugger_handle_exception() for filters.
18372 2005-07-27 Zoltan Varga <vargaz@freemail.hu>
18374 * mini-trampolines.c (mono_aot_trampoline): Handle AppDomain:InvokeInDomain
18377 2005-07-26 Martin Baulig <martin@ximian.com>
18379 Committing a patch from Michal Moskal <michal.moskal@gmail.com>.
18381 * mini.c (mono_method_to_ir): In `CEE_CALLI', only use
18382 helper_compile_generic_method() if the method is actually virtual
18385 2005-07-26 Martin Baulig <martin@ximian.com>
18388 (trampoline_code): Renamed to `mono_trampoline_code' and made it
18389 public; this is now accessed directly by the debugger.
18390 (mono_generic_trampoline_code): Removed.
18393 (mono_debug_init_method): Also add interncalls and wrappers.
18395 2005-07-23 Zoltan Varga <vargaz@freemail.hu>
18397 * mini-ia64.c mini-ia64.h: Add support for tracing/profiling.
18399 2005-07-22 Zoltan Varga <vargaz@freemail.hu>
18401 * aot.c (mono_aot_get_method_from_token): Fix a potential crash here.
18403 2005-07-21 Zoltan Varga <vargaz@freemail.hu>
18405 * aot.c (load_patch_info): Fix handling of stfld_remote wrapper.
18407 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
18409 * mini-amd64.c (mono_arch_setup_jit_tls_data): Use the nice way of
18410 getting TLS offsets on AMD64 too.
18412 2005-07-20 Kornel Pal <kornelpal@hotmail.com>
18414 * driver.c: Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32
18416 Wed Jul 20 18:05:19 BST 2005 Paolo Molaro <lupus@ximian.com>
18418 * exceptions-arm.c, mini-arm.c, tramp-arm.c, cpu-arm.md,
18419 inssel-arm.brg, mini-arm.h: ARM port work in progress.
18421 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
18423 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix build.
18425 * mini.h mini.c mini-*.h tramp-*.c: Move more cross platform trampoline code
18428 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Call
18429 mono_sparc_is_virtual_call ().
18431 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix warning.
18433 * tramp-sparc.c (mono_arch_create_trampoline_code): Fix order of
18434 trampoline parameters.
18436 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix signature.
18438 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Rename this
18439 to mono_arch_get_vcall_slot_addr.
18441 * Makefile.am tramp-sparc.c: Update the sparc port to use the generic
18444 * *-sparc.*: Merge the mini-xp-regalloc branch for sparc.
18446 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
18448 * mini-ia64.h mini-ia64.c: Finish pinvoke support.
18450 2005-07-19 Martin Baulig <martin@ximian.com>
18452 * exceptions-amd64.c (throw_exception): Call
18453 mono_debugger_throw_exception() here like we're doing it on i386.
18455 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
18457 * mini-ia64.c: Add optimized TLS access support.
18459 2005-07-18 Zoltan Varga <vargaz@freemail.hu>
18461 * mini-exceptions.c: Ongoing IA64 work.
18463 * mini-ia64.c inssel-long.brg: Ongoing IA64 work.
18465 * mini.c: Use the default optimization set when embedding. Fixes
18468 2005-07-11 Zoltan Varga <vargaz@freemail.hu>
18470 * tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts
18471 of trampolines to a separate file.
18473 * mini-trampolines.c: New file.
18475 * mini.h tramp-x86.c: Move arch independent parts of trampolines to a
18478 * tramp-x86.c: Reorganize the trampoline code to be similar to the
18481 * mini-codegen.c: Fix cygwin build.
18483 2005-07-10 Zoltan Varga <vargaz@freemail.hu>
18485 * mini.c: Add some minor changes needed by the IA64 port.
18487 * *-ia64.*: Ongoing IA64 work.
18489 2005-07-09 Zoltan Varga <vargaz@freemail.hu>
18491 * tramp-amd64.c mini-amd64.c: Update after latest AOT changes. Split
18492 trampolines into arch-independent and arch-dependent parts.
18494 * mini-amd64.c (mono_arch_lowering_pass): Fix store_membase_imm -> store_membase_reg rule.
18496 2005-07-08 Zoltan Varga <vargaz@freemail.hu>
18498 * cpu-amd64.md: Merge the xp-regalloc-branch for amd64.
18500 * mini-ops.h mini-amd64.h mini-amd64.c inssel-amd64.brg Makefile.am: Merge
18501 the xp-regalloc-branch for amd64.
18503 * mini-x86.h mini-x86.c cpu-pentium.md Makefile.am: Merge the
18504 xp-regalloc-branch for x86.
18506 2005-07-07 Zoltan Varga <vargaz@freemail.hu>
18508 * inssel.brg (OP_THROW_OR_NULL): Allways rethrow the abort exception.
18510 2005-07-06 Martin Baulig <martin@ximian.com>
18513 (mono_jit_compile_method_inner): Call mono_get_inflated_method().
18514 (mono_jit_runtime_invoke): Likewise.
18516 2005-07-05 Zoltan Varga <vargaz@freemail.hu>
18518 * aot.c (mono_compile_assembly): Allocate the GOT in the .bss segment
18521 * aot.c: Add new mono_aot_get_method_from_token () function to load AOT methods
18522 without loading their metadata. Reorganize the file format so exception handling+
18523 debug info is kept separate from normal method info. Create MonoJitInfo
18524 structures for methods lazily.
18526 * tramp-x86.c (x86_aot_trampoline): Use the new from_token method to avoid
18528 (x86_class_init_trampoline): Patch AOT class init trampolines too.
18530 * mini.c (mini_init): Install the new mono_aot_find_jit_info hook.
18532 * mini.c (mono_method_to_ir): Reduce the number of class init trampoline calls
18535 * mini.h: Bump AOT file version.
18537 2005-07-04 Zoltan Varga <vargaz@freemail.hu>
18539 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
18541 2005-07-01 Raja R Harinath <rharinath@novell.com>
18543 * Makefile.am (check-local): Call semdel-wrapper.
18545 2005-06-29 Zoltan Varga <vargaz@freemail.hu>
18547 * mini-x86.c: Revert the last change as it seems to break the build..
18549 2005-06-28 Zoltan Varga <vargaz@freemail.hu>
18551 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
18553 * mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.
18555 2005-06-27 Ben Maurer <bmaurer@ximian.com>
18557 * mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
18558 outside of the macro, so strange stuff doesn't happen with gcc4
18559 (NEW_AOTCONST_TOKEN): Likewise.
18561 2005-06-28 Martin Baulig <martin@ximian.com>
18563 * mini.c (mini_class_is_system_array): New static method; use this
18564 instead of `klass->parent == mono_defaults.array_class' everywhere
18565 since this also works for the new generic array class.
18567 2005-06-26 Ben Maurer <bmaurer@ximian.com>
18569 * inssel.brg: Remove warnings.
18571 2005-06-24 Zoltan Varga <vargaz@freemail.hu>
18573 * mini-ia64.c: Ongoing IA64 work.
18575 * basic-float.cs: Add float->i1 conversion test.
18577 * iltests.il: Add conv.u4 test.
18579 2005-06-23 Zoltan Varga <vargaz@freemail.hu>
18581 * inssel-long.brg: Fix bug caused by last change.
18583 2005-06-23 Geoff Norton <gnorton@customerdna.com>
18585 * mini-x86.h: Add __APPLE__ to the SC_* redefines with the other
18586 BSDs. Allows the x86 JIT to work on OSX86
18588 2005-06-22 Zoltan Varga <vargaz@freemail.hu>
18590 * inssel-long.brg: Use OP_LSHR_UN_IMM instead of OP_SHR_UN_IMM in
18593 * mini-ia64.c: Ongoing IA64 work.
18595 2005-06-19 Zoltan Varga <vargaz@freemail.hu>
18597 * mini-ia64.c: Ongoing IA64 work.
18599 * driver.c: Clean up jit_code_hash as well when using --regression.
18601 * inssel-long.brg: Fix long->i4/u4 conversion rules.
18603 * basic-long.cs: Add tests for long->u4 conversion.
18605 2005-06-18 Ben Maurer <bmaurer@ximian.com>
18607 * mini.c: Take mono_get_domainvar out of macros. This makes sure
18608 that we do not depend on undefined C behavior: the order stuff
18609 gets evaluated within an expression. Fixes mono when compiled on
18612 2005-06-18 Zoltan Varga <vargaz@freemail.hu>
18614 * *-ia64.*: Ongoing IA64 work.
18616 * aot.c: Lower memory usage while loading AOT methods.
18618 * tramp-x86.c: Avoid allocating+freeing MonoJitInfo structures.
18620 * mini.h: Bump AOT file format version.
18622 2005-06-17 Zoltan Varga <vargaz@freemail.hu>
18624 * mini.c (mono_method_to_ir): Allow STACK_PTR as input to SWITCH.
18626 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
18628 * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
18629 not on callee assembly). Fixed some comments.
18631 2005-06-16 Zoltan Varga <vargaz@freemail.hu>
18633 * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
18634 it gets proper disassembly.
18635 (emit_method_info): Remove some dead code.
18637 * mini.c (mini_method_compile): Allways allocate the GOT var in
18638 mono_method_to_ir for emulating opcodes.
18640 2005-06-13 Zoltan Varga <vargaz@freemail.hu>
18642 * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
18643 before freeing the code memory. Fixes #74990.
18645 * objects.cs: Add regression test for #74992.
18647 * liveness.c: Extend live ranges of arguments to the beginning of the
18648 method. Fixes #74992.
18650 * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
18651 so it points into the faulting instruction.
18653 2005-06-12 Zoltan Varga <vargaz@freemail.hu>
18655 * jit-icalls.c (mono_imul_ovf): Add exception handling.
18657 * *-ia64.*: Ongoing IA64 work.
18659 * mini.c (mini_init): Fix signature of mono_delegate_ctor.
18661 2005-06-11 Zoltan Varga <vargaz@freemail.hu>
18663 * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
18665 * *-ia64.*: Ongoing IA64 work.
18667 2005-06-10 Zoltan Varga <vargaz@freemail.hu>
18669 * basic-long.cs: Add tests for add/sub.ovf.
18671 * basic.cs: Add tests for sub.ovf.
18673 * *-ia64.*: Ongoing IA64 work.
18675 2005-06-09 Zoltan Varga <vargaz@freemail.hu>
18677 * *-ia64.*: Ongoing IA64 work.
18679 * basic.cs: Add conv.ovf.i4.un test.
18681 2005-06-09 Massimiliano Mantione <massi@ximian.com>
18683 * mini.c: (remove_block_if_useless) Fixed bug 75061.
18685 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18687 * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
18689 2005-06-07 Zoltan Varga <vargaz@freemail.hu>
18691 * *-ia64.*: Ongoing IA64 work.
18693 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18696 * mini.c: added the ability to toggle trace on/off using SIGUSR2.
18698 2005-06-04 Zoltan Varga <vargaz@freemail.hu>
18700 * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
18702 2005-06-03 Zoltan Varga <vargaz@freemail.hu>
18704 * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
18706 * mini-amd64.c (amd64_patch): Add an assert to check that the destination
18707 of a call is callable by a near call.
18709 2005-05-31 Zoltan Varga <vargaz@freemail.hu>
18711 * mini-ia64.c: Ongoing IA64 work.
18713 2005-05-29 Zoltan Varga <vargaz@freemail.hu>
18715 * genmdesc.c: Make the generated array non-static.
18717 * inssel-long.brg: Fix LSHR_IMM rule.
18719 * *-ia64.*: Ongoing IA64 work.
18721 * *-ia64.*: Ongoing IA64 work.
18723 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
18725 * *-ia64.*: Ongoing IA64 work.
18727 * *-ia64.*: Ongoing IA64 work.
18729 * mini-ia64.c: Ongoing IA64 work.
18731 * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
18733 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
18735 * objects.cs basic-calls.cs: Move some tests to objects.cs.
18737 * objects.cs basic-long.cs: Move some tests to objects.cs.
18739 2005-05-26 Zoltan Varga <vargaz@freemail.hu>
18741 * *-ia64.*: Ongoing IA64 work.
18743 * iltests.il: Add a new test.
18745 * mini.c (mono_method_to_ir): Initialize valuetypes when created using
18746 newobj. Fixes #75042.
18748 2005-05-22 Zoltan Varga <vargaz@freemail.hu>
18750 * *-ia64.*: Ongoing IA64 work.
18752 * *-ia64.*: Ongoing IA64 work.
18754 * *-ia64.*: Ongoing IA64 work.
18756 * basic.cs objects.cs: Move tests accessing static variables as well.
18758 * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
18760 2005-05-21 Zoltan Varga <vargaz@freemail.hu>
18762 * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
18764 * driver.c: Always print failed tests.
18766 * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
18769 * *ia64*: Ongoing IA64 work.
18771 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
18773 * basic.cs: Add tests for add.ovf. Fix warnings.
18775 2005-05-18 Miguel de Icaza <miguel@novell.com>
18777 * driver.c (mono_main): Avoid crash if no argument is passed to
18778 --break; Do not use g_error, but f_printf. And fix all other
18779 ocurrences of the same crash.
18781 2005-05-17 Zoltan Varga <vargaz@freemail.hu>
18783 * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
18784 and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
18787 2005-05-14 Zoltan Varga <vargaz@freemail.hu>
18789 * *-ia64.*: Add beginnings of IA64 backend.
18791 * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.
18793 2005-05-13 Zoltan Varga <vargaz@freemail.hu>
18795 * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
18798 * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
18800 * mini-amd64.c: Fix a warning.
18802 2005-05-10 Zoltan Varga <vargaz@freemail.hu>
18804 * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
18805 in float_neg. Fixes #74897.
18807 * mini-amd64.c (emit_call): Fix another near call bug.
18809 2005-05-06 Sebastien Pouliot <sebastien@ximian.com>
18811 * declsec.c: Keep the appdomain information in the structure. Added a
18812 missing "return FALSE" for Unmanaged if FullTrust is set (or else the
18813 value gets overwritten).
18814 * declsec.h: Set the default MonoArray for the the stack to 6. Added
18815 an MonoAppDomain member to MonoSecurityFrame.
18816 * mini-exceptions.c: Do not use a glist to keep GC allocated objects
18817 used in the stack walk. Now use a MonoArray which grow (double) when
18820 2005-05-05 Lluis Sanchez Gual <lluis@novell.com>
18822 * mini.c: Re-enabled runtime cleanup, since running threads should
18823 now properly stop when exiting.
18825 2005-05-05 Zoltan Varga <vargaz@freemail.hu>
18827 * mini-codegen.c: New file contaning the arch-independent local
18828 register allocator. Not used by any architectures yet.
18830 * mini.h linear-scan.c: Merge some changes from the
18831 mini-xp-local-regalloc branch.
18833 2005-04-28 Zoltan Varga <vargaz@freemail.hu>
18835 * mini-amd64.c (emit_call): Fix calls to native functions when the
18836 runtime is compiled as a shared library. Fixes #74756.
18838 * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
18839 on a literal field. Fixes #74751.
18841 2005-04-25 Raja R Harinath <rharinath@novell.com>
18843 * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
18845 2005-04-23 Zoltan Varga <vargaz@freemail.hu>
18847 * objects.cs: Add missing null casting test.
18849 2005-04-22 Zoltan Varga <vargaz@freemail.hu>
18851 * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
18852 in wrapper methods. Also rename 'address' variable to 'offset'.
18854 2005-04-20 Zoltan Varga <vargaz@freemail.hu>
18856 * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
18859 * Makefile.am (MCS): Use -unsafe instead of --unsafe.
18861 * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
18864 Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
18866 * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
18868 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
18870 * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
18871 just the last bytes.
18873 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
18875 * aot.c (mono_compile_assembly): Fix warning.
18877 * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
18878 by the _MSC_VER stuff.
18880 2005-04-16 Zoltan Varga <vargaz@freemail.hu>
18882 * inssel-long.brg: Fix #74588.
18884 * cpu-amd64.md: Fix #74591.
18886 * iltests.il: Add new regression tests.
18888 2005-04-13 Zoltan Varga <vargaz@freemail.hu>
18890 * trace.c (mono_trace_enter_method): Print enums as an int, not as a
18893 2005-04-11 Zoltan Varga <vargaz@freemail.hu>
18895 * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
18897 * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches
18898 from Bill Middleton <flashdict@gmail.com>.
18900 2005-04-10 Zoltan Varga <vargaz@freemail.hu>
18902 * arrays.cs: Add new regression test. Fix warnings.
18904 2005-04-09 Zoltan Varga <vargaz@freemail.hu>
18906 * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
18907 and leakage in CKFINITE.
18909 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
18910 this to a null op since it is called on amd64 too.
18912 * exceptions-amd64.c (get_throw_trampoline): Align stack.
18914 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
18915 body since this is not used on amd64.
18917 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
18919 * mini-amd64.c: Remove obsolete fixmes.
18921 * mini.c (print_method_from_ip): Fix debugging support.
18923 2005-2-1 Massimiliano Mantione <massi@ximian.com>
18925 * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
18926 so that expressions that don't give much gain are not reduced.
18927 * ssapre.h: Likewise.
18929 2005-04-04 Zoltan Varga <vargaz@freemail.hu>
18931 * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
18933 * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
18935 * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
18937 2005-04-01 Zoltan Varga <vargaz@freemail.hu>
18939 * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
18941 * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
18943 2005-03-31 Zoltan Varga <vargaz@freemail.hu>
18945 * mini-x86.c: If sigaltstack support is enabled, perform win32 style
18948 * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
18950 * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
18952 * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
18954 * mini-x86.h mini-x86.c exceptions-x86.c: Add support for
18955 MONO_ARCH_USE_SIGACTION. Fixes #74252.
18957 * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
18959 * mini-x86.c: Fix up stack overflow handling.
18961 * exceptions.cs: Add new regression test.
18963 2005-03-30 Zoltan Varga <vargaz@freemail.hu>
18965 * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
18966 mono_jit_thread_attach.
18968 * mini.c (mono_method_to_ir): Verify called method is not abstract.
18970 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
18972 * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
18973 avoid calling constructors using callvirt.
18975 * inssel.brg: Fix #74073.
18977 2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
18979 * aot.c, mini.h: Added mono-compiler.h header to allow/ease
18980 compilation with non-GCC compilers.
18981 * mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
18982 possible using VS.NET. Adapted from the work of J Lothian (for VC6).
18984 Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
18986 * inssel.brg, arrays.cs: fix long standing 64 bit issue in access to
18987 klass->interface_offsets (will likely fix bug#74073).
18989 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
18991 * mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.
18993 2005-03-28 Zoltan Varga <vargaz@freemail.hu>
18995 * mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
18996 to amd64_div_reg_size ().
18998 * mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.
19000 2005-03-27 Zoltan Varga <vargaz@freemail.hu>
19002 * cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.
19004 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
19006 * driver.c: Turn off automatic command line globbing under windows. Fixes #73763.
19008 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
19010 * mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.
19012 * mini.c (mono_precompile_assembly): Load and precompile referenced
19013 assemblies as well. Fixes #74015.
19015 2005-03-23 Zoltan Varga <vargaz@freemail.hu>
19017 * cpu-amd64.md (sin): Fix up maximum lengths of some opcodes.
19019 2005-03-23 Sebastien Pouliot <sebastien@ximian.com>
19021 * declsec.c: Skip linkdemand checks for intra-corlib calls. This skips
19022 a lot of checks and (anyway) permissions cannot work until corlib is
19025 Wed Mar 23 14:29:49 CET 2005 Paolo Molaro <lupus@ximian.com>
19027 * mini-ppc.c: fixed ABI issue on sysv/ppc.
19029 Tue Mar 22 19:03:17 CET 2005 Paolo Molaro <lupus@ximian.com>
19031 * tramp-ppc.c, exceptions-ppc.c: added missing icache flush
19032 calls (fixes bug#72824).
19034 Tue Mar 22 16:28:48 CET 2005 Paolo Molaro <lupus@ximian.com>
19036 * mini.c: fix tail recursion elimination (see test in bug#73936).
19038 2005-03-21 Zoltan Varga <vargaz@freemail.hu>
19040 * mini-amd64.c (mono_arch_output_basic_block): Add inline versions of
19041 some fp functions in sse2 mode.
19043 2005-03-20 Zoltan Varga <vargaz@freemail.hu>
19045 * mini-x86.c (emit_tls_get): Move tls handling into a separate helper function.
19047 2005-03-19 Zoltan Varga <vargaz@freemail.hu>
19049 * mini.h mini.c: Add mono_get_jit_tls_key ().
19051 * mini-x86.c: Enable fast TLS support on windows.
19053 2005-03-17 Sebastien Pouliot <sebastien@ximian.com>
19055 * declsec.c: Renamed aptc to allowpartiallytrustedcallers.
19056 * mini.c: Check for p/invoke method when generating code. If a
19057 p/invoke method, or it's class, isn't decorated with [Suppress
19058 UnmanagedCodeSecurity] then generate code to call System.Security.
19059 UnmanagedDemand (only if the security manager is active).
19061 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
19063 * tramp-amd64.c (create_specific_trampoline): Revert parts of the
19064 last change as it seems to cause strange crashes.
19066 Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <lupus@ximian.com>
19068 * *.c: handle unsafe function pointers where needed.
19070 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
19072 * mini.c (mono_jit_free_method): Remove the fixme too.
19074 2005-03-15 Miguel de Icaza <miguel@novell.com>
19076 * mini.c: As discussed, make the code actually free the delegate
19077 thunk now, to enable the debugging of delegate problems, use
19078 MONO_DEBUG=1 when running Mono.
19080 This takes also care of parts of the leaks as seen by Joe.
19082 2005-03-15 Zoltan Varga <vargaz@freemail.hu>
19084 * mini-amd64.c (mono_arch_setup_jit_tls_data): Enable
19085 thread_tls_offset calculation.
19087 2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
19089 * declsec.c: Reworked linkdemand checks for icall. The previous code
19090 was using the declaration code (untrusted) and didn't work as expected
19091 with the CLR 2.0. We're now more compatible with 2.0 than 1.x for this
19094 2005-03-13 Zoltan Varga <vargaz@freemail.hu>
19096 * iltests.il: Add new localloc test.
19098 * mini-amd64.c: Handle large stack allocations the same way as on
19099 windows if stack overflow handling is working.
19101 * mini-amd64.c: Allocate the signal stack using mmap.
19103 * mini.c (sigsegv_signal_handler): Fix reading of context.
19105 * mini-exceptions.c: Fix up stack overflow handling.
19107 * mini-amd64.h mini-amd64.c: Fix up stack overflow handling.
19109 * tramp-amd64.c (create_specific_trampoline): Optimize trampoline size.
19111 * exceptions-amd64.c (mono_amd64_exceptions_init): Remove this.
19113 * mini.h mini.c tramp-*.c: Move common trampoline code to mini.c.
19115 * mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Get rid of the
19116 tramp_init functions as they are no longer needed.
19118 2005-03-12 Zoltan Varga <vargaz@freemail.hu>
19120 * tramp-amd64.c (mono_amd64_tramp_init): Fix typo.
19122 * tramp-amd64.c (mono_amd64_tramp_init): Init AOT trampoline as well.
19124 * mini-amd64.h mini-amd64.c (mono_amd64_exceptions_init): Remove this.
19126 * mini.c mini-*.h: Remove OUT_OF_LINE_BBLOCK defines since all arches
19129 * mini-ops.h: Add OP_LMUL_IMM.
19131 * mini.c jit-icalls.cmini-amd64.h mini-amd64.c cpu-amd64.md: Implement
19132 long mul/div opcodes as intrinsic.
19134 * mini-amd64.c (emit_call): Handle the case when the callee might be
19137 2005-03-11 Zoltan Varga <vargaz@freemail.hu>
19139 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be
19142 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Fix ordering of cases.
19144 * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
19146 2005-03-09 Ben Maurer <bmaurer@ximian.com>
19148 * mini.c (mono_codegen): Don't leak here, to help people running
19151 2005-03-08 Zoltan Varga <vargaz@freemail.hu>
19153 * mini-amd64.c (mono_arch_output_basic_block): Fix int->float
19154 conversions in sse2 mode.
19156 * basic-float.cs: Add regression test.
19158 * mini-amd64.c: Reenable sse2.
19160 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
19162 * mini-amd64.c: Disable sse2 until some regressions are fixed.
19164 2005-03-07 Joerg Rosenkranz <joergr@voelcker.com>
19166 * driver.c: Copyright text should include 2005.
19168 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
19170 * cpu-amd64.md (load_membase): Fix more max lengths.
19172 2005-03-06 Zoltan Varga <vargaz@freemail.hu>
19174 * cpu-amd64.md (load_membase): Fix max length.
19176 * mini-ops.h: Add OP_F<xx>_MEMBASE opcodes.
19178 * inssel.brg: Add MONO_EMIT_BIALU_MEMBASE macro.
19180 * cpu-amd64.md inssel-amd64.brg mini-amd64.h mini-amd64.brg: Finish SSE2
19181 support and enable it by default. Also add OP_F<xxx>_MEMBASE opcodes.
19183 * basic-float.cs: Add rounding regression test.
19185 * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
19187 2005-03-04 Neale Ferguson <NealeFerguson@earthlink.net>
19189 * inssel-s390.brg, mini-s390.c: Add support for passing/returning small
19190 structures in registers for pinvoke wrappers.
19192 2005-03-04 Zoltan Varga <vargaz@freemail.hu>
19194 * mini-exceptions.c (ves_icall_get_trace): Return wrapper info as well.
19196 2005-03-03 Zoltan Varga <vargaz@freemail.hu>
19198 * mini.h mini.c mini-x86.c: Pass the domain of the native->managed
19199 wrapper to mono_jit_thread_attach.
19201 * mini.c (mini_jit_thread_attach): New jit icall.
19203 * mini-x86.c (mono_arch_emit_prolog): Attach to the VM in
19204 native->managed wrappers.
19206 * exceptions.cs: Add new regression test.
19208 * mini.c (optimize_branches): Check regions in the cbranch to throw
19209 block case as well. Fixes #73242.
19211 Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
19213 * mini.c: thread safety fixes.
19215 2005-02-27 Zoltan Varga <vargaz@freemail.hu>
19217 * tramp-amd64.c (amd64_magic_trampoline): Disable the method_ptr
19218 patching stuff, since delegates use jump trampolines so there is
19221 * tramp-amd64.c (create_trampoline_code): Pass NULL as 'code' in
19224 * tramp-amd64.c: Fix build.
19226 * mini-x86.c tramp-x86.c: Moved get_vtable_slot_addr into mini-x86.c and rename
19227 it to mono_arch_.... Add get_delegate_method_ptr implementation for x86.
19229 * mini-amd64.h mini.h mini-amd64.c tramp-amd64.c (mono_amd64_get_vcall_slot_addr):
19230 Rename this to mono_arch....
19231 (mono_amd64_get_delegate_method_ptr_addr): Ditto.
19233 * mini-amd64.c (mono_amd64_get_delegate_method_ptr_addr): New helper function.
19235 * mini-amd64.c (emit_call): If both the caller and the callee is
19236 guaranteed to have 32 bit addresses, emit a normal call.
19238 * tramp-amd64.c: Adapt to changes in mini-amd64.c.
19240 * tramp-amd64.c (amd64_magic_trampoline): Remove patching of trampolines.
19241 * tramp-amd64.c (amd64_magic_trampoline): Add support for patching the
19242 method_ptr inside delegates.
19244 2005-02-26 Zoltan Varga <vargaz@freemail.hu>
19246 * mini.c (mono_jit_free_method): Free the method info even if the native code is
19247 invalidated. Fixes #73001.
19249 * mini.c: Add a proper icall wrapper for mono_delegate_ctor.
19251 * mini-x86.c: Only use stdcall for pinvokes on windows.
19253 Thu Feb 24 15:22:30 CET 2005 Paolo Molaro <lupus@ximian.com>
19255 * mini.c, mini.h: make mono_lmf_addr a fast-access thread var.
19256 * mini-x86.c: remove unreliable __thread var offset detection,
19257 use the correct accessors and enable by default.
19259 2005-02-23 Zoltan Varga <vargaz@freemail.hu>
19261 * mini.c (mono_jit_free_method): Fix memory leak.
19263 2005-02-22 Zoltan Varga <vargaz@freemail.hu>
19265 * mini.c (mono_method_to_ir): Allocate a GOT var for THROW and RETHROW.
19267 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
19269 * cpu-amd64.md: Fix lengths of atomic opcodes.
19271 Mon Feb 21 16:52:20 CET 2005 Paolo Molaro <lupus@ximian.com>
19273 * driver.c: try to not imply using ICU is any good.
19275 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
19277 * mini-amd64.c (mono_arch_get_inst_for_method): Implement more
19278 functions as inline ops.
19280 * mini-ops.h inssel-amd64.brg cpu-amd64.md mini-amd64.c: Implement
19281 some Interlocked functions as inline ops.
19283 * mini.c (move_basic_block_to_end): Fix bug in last patch.
19285 * mini.h (MonoBasicBlock): Reorganize fields a bit.
19287 * mini-ops.h inssel.brg: Add OP_NOT_REACHED.
19289 * mini.c: Add support for OP_NOT_TAKEN.
19291 * mini-amd64.h mini-amd64.c: Add support for passing/returning small
19292 structures in registers for pinvoke wrappers.
19294 * mini-amd64.c: Fix warnings.
19296 2005-02-19 Zoltan Varga <vargaz@freemail.hu>
19298 * mini.h (MonoCompile): Add 'ret_var_is_local' field.
19300 * mini.h mini.c (mono_arch_create_vars): Add new arch specific hook.
19302 * mini.c (NEW_RETLOADA): If the ret variable is a local, use its
19303 address instead of loading the address from it.
19305 * mini-x86.c: Add support for returning small structs in registers
19306 on Win32. Fixes part of #70864.
19308 2005-02-18 Zoltan Varga <vargaz@freemail.hu>
19310 * trace.c (get_token): Improve error checking.
19312 2005-02-17 Zoltan Varga <vargaz@freemail.hu>
19314 * jit-icalls.c (mono_ldvirtfn): Explicitly check for a NULL obj here.
19316 2005-02-17 Sebastien Pouliot <sebastien@ximian.com>
19318 * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
19319 it can be reused for MonoClass.
19320 * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
19323 2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
19325 * mini.c: Fixed 2 cases where I sent a MonoMethod to managed code
19326 instead of a MonoReflectionMethod. The method information wasn't used
19327 when displaying SecurityException details (but will be now).
19329 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
19331 * Makefile.am : windows build fix.
19333 2005-02-14 Zoltan Varga <vargaz@freemail.hu>
19335 * iltests.il: Add new regression test.
19337 * mini.c (mono_method_to_ir): Allocate a GOT var in CEE_NEWOBJ. Fixes
19340 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
19342 * mini.c: Moved linkdemand check into helper function check_linkdemand
19343 to allow reuse for all intructions (CALL, CALLVIRT, NEWOBJ, JMP,
19346 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
19348 * declsec.c: Added statistics counter for different kinds of
19350 * mini.h: Added CAS statistic counters to MonoJitStats. Removed unused
19351 (and commented) declaration.
19352 * mini.c: Added statistics counter for security Demand code
19353 generation. Added display of security statistics.
19355 2005-02-13 Zoltan Varga <vargaz@freemail.hu>
19357 * declsec.c (mono_declsec_linkdemand_aptc): Applied patch from Robert Jordan (robertj@gmx.net).
19358 Fix compilation errors under gcc-2.95.
19360 2005-02-12 Ben Maurer <bmaurer@ximian.com>
19362 * mini.c, driver.c: Use the new jit trampoline hashtable
19364 Fri Feb 11 18:47:11 CET 2005 Paolo Molaro <lupus@ximian.com>
19366 * mini.c, jit-icalls.c: use the managed implementation of memcpy, too.
19368 2005-02-11 Martin Baulig <martin@ximian.com>
19370 * debug-mini.c (mono_debug_close_method): Free the line number array.
19372 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
19374 * aot.c: Break up large methods into smaller ones. Share GOT slots for
19377 * mini.h: Bump AOT file format version.
19379 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
19381 * declsec.c: Added LinkDemand support and it's special cases for ECMA,
19383 * declsec.h: Added macros to get/set lazyly initialized security
19384 informations about assemblies. Added new enum for different type of
19385 possible LinkDemand violation. Added function to check LinkDemands.
19386 * mini.h: Added a field to MonoCompile to hold any security violation
19387 detected when JITting a method (so it can be thrown later).
19388 * mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL
19389 and CEE_CALLVIRT. Added code to throw exception at the end of
19390 mini_method_compile (note: the exception is unhandled right now).
19392 Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
19394 * mini.c, jit-icalls.c: use the managed implementation of
19395 memset for initobj and memset, to avoid managed <-> unmanaged
19398 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
19400 * inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
19401 optimization if it would need a GOT var.
19403 * basic.cs: Add tests for constant propagation and switch statements.
19405 * ssa.c: Fix out-of-range constant propagation and switch statements.
19407 2005-02-09 <vargaz@freemail.hu>
19409 * inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.
19411 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
19413 * cpu-amd64.md (load_membase): Fix max length of load_membase.
19415 Tue Feb 8 18:21:11 CET 2005 Paolo Molaro <lupus@ximian.com>
19417 * mini.c: update to new signature of mono_class_get_allocation_ftn().
19419 2005-02-06 Neale Ferguson <NealeFerguson@earthlink.net>
19421 * cpu-s390.md, mini-s390.c: Correct bug with register usage on certain
19422 arithmetic operations.
19424 Sun Feb 6 07:10:12 EST 2005 Paolo Molaro <lupus@ximian.com>
19426 * mini-ppc.c: add a workaround for broken user code that
19427 DllImports vararg functions with non-vararg signatures.
19429 2005-02-05 Zoltan Varga <vargaz@freemail.hu>
19431 * mini.c (mono_jit_compile_method_inner): Add detection and a
19432 meaningfull error message for assemblies written in Managed C++.
19434 * tramp-amd64.c mini-amd64.h: Add support for
19435 create_trampoline_from_token ().
19437 * aot.c mini-x86.c abcremoval.c: Applied patch from
19438 Robert Jordan (robertj@gmx.net). Fix compilation errors under gcc-2.95.
19440 2005-02-04 Zoltan Varga <vargaz@freemail.hu>
19442 * mini.h mini.c mini-x86.h tramp-x86.c: Add a new kind of trampoline
19443 which takes a MonoImage/token as parameter instead of a MonoMethod.
19445 * aot.c: Use the new trampoline for initializing vtables.
19447 * aot.c: Add support for ldfld/stfld_remote wrappers.
19449 * mini-ops.h cpu-pentium.md inssel-x86.brg mini-x86.c: Add optimized
19450 rules for compare <MEM>, IMM.
19452 * mini.h (MONO_AOT_FILE_VERSION): Bump it.
19454 * aot.c: Handle inherited finalizers correctly.
19456 2005-02-03 Zoltan Varga <vargaz@freemail.hu>
19458 * inssel.brg (stmt): Add a missing _setup_... ().
19460 * aot.c: Save some parts of the class state to the AOT file and use it
19461 to recompute that state when a class is initialized.
19463 * mini.c: Install AOT hooks into the runtime.
19465 * mini.h: Bump AOT file format version.
19467 * mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
19470 * iltests.il: Add new test.
19472 Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
19474 * mini.c: fix typo.
19476 Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
19478 * mini.c: setup the statistical profiler in the thread attach
19479 callback to cope with the new single thread code.
19481 Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
19483 * mini-ppc.c: ensure we have enough room for the profiler
19484 calls (fixed bug#72084).
19486 2005-02-02 Zoltan Varga <vargaz@freemail.hu>
19488 * aot.c: Get rid of the MonoAotMethod structure and the hashtable holding
19491 2005-2-1 Massimiliano Mantione <massi@ximian.com>
19493 * driver.c: Re-enabled SSAPRE (two commits, I was just dumb).
19495 2005-2-1 Massimiliano Mantione <massi@ximian.com>
19497 * ssapre.c: Fixed an issue with down safety (this allows IronPython
19498 to succesfully execute parrotbench).
19499 * ssapre.h: Likewise.
19501 2005-2-1 Massimiliano Mantione <massi@ximian.com>
19503 * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
19504 variable for stores to method arguments (fixes a SSAPRE issue).
19506 Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
19508 * mini.c: handle value types in dup, fixes gen-112.cs.
19510 Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
19512 * mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
19513 sequence for calls in dynamic methods to avoid thunks.
19515 Tue Feb 1 11:44:01 CET 2005 Paolo Molaro <lupus@ximian.com>
19517 * mini.c: correctly remove dynamic methods from the hashtable.
19519 2005-1-20 Massimiliano Mantione <massi@ximian.com>
19521 * driver.c: Disabled SSAPRE until fix the bug that appears
19522 in IronPython's parrotbench.
19524 2005-01-31 Zoltan Varga <vargaz@freemail.hu>
19526 * aot.c (mono_compile_assembly): Get rid of Skip (other) messages.
19528 * mini.c (mono_method_to_ir): Revert the previous change.
19530 * mini.c (mono_method_to_ir): Do not inline ldfld and stfld wrappers
19531 when AOT compiling.
19533 * tramp-x86.c (x86_magic_trampoline): Avoid calls to
19534 mono_jit_info_table_find () etc. when running under valgrind.
19536 * inssel.brg: Fix warnings.
19538 * mini-exceptions.c: Fix warnings.
19540 2005-01-31 Martin Baulig <martin@ximian.com>
19542 * driver.c (compile_all_methods_thread_main): Don't try to compile
19543 generic methods or anything which has type parameters.
19545 2005-01-30 Zoltan Varga <vargaz@freemail.hu>
19547 * aot.c: Avoid costly calls to mono_method_full_name in tracing code and fix memory leaks.
19549 * TestDriver.cs: Add --verbose flags.
19551 * graph.c ssa.c: Fix 64 bit warnings.
19553 * abcremoval.h ssapre.h abcremoval.c ssapre.c mini.c tramp-amd64.c
19554 trace.c mini-exceptions.c linear-scan.c inssel-amd64.brg inssel.brg:
19555 Fix 64 bit warnings.
19557 * mini-amd64.c (mono_arch_output_basic_block): Fix uninitialized
19558 variable not spotted by gcc.
19560 * mini-amd64.c inssel-amd64.brg: Applied patch from
19561 Willibald Krenn <Willibald.Krenn@gmx.at>. Clean up usage of
19562 X86_COMPARE_MEMBASE opcodes.
19564 * exceptions-amd64.c (mono_arch_find_jit_info): Fix AMD64 build.
19566 2005-01-29 Ben Maurer <bmaurer@ximian.com>
19568 * *: MonoMethod->signature might be NULL now. You *MUST* use
19569 mono_method_signature.
19571 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
19573 * driver.c (compile_all_methods_thread_main): Compile the methods
19574 without invoking cctors.
19576 Fri Jan 28 18:28:26 CET 2005 Paolo Molaro <lupus@ximian.com>
19578 * mini.c: remove ben's "optimizations" to dup+stloc (bug #71905).
19579 * basic-calls.cs: test for the above.
19581 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
19583 * mini.c mini-exceptions.c aot.c exceptions-*.c: Update after
19584 MonoJitInfo changes.
19586 2005-01-27 Zoltan Varga <vargaz@freemail.hu>
19588 * mini-exceptions.c (mono_handle_exception): Compute the stack trace
19589 eagerly if it contains dynamic methods.
19591 * mini-exceptions.c (ves_icall_System_Exception_get_trace): New icall.
19593 * mini-exceptions.c (mono_handle_exception): Avoid computing the stack
19594 trace, it is now computed by an icall from trace_ips.
19596 * mini-exceptions.c: Fix a warning.
19598 Thu Jan 27 13:38:34 CET 2005 Paolo Molaro <lupus@ximian.com>
19600 * mini-exceptions.c: don't bother getting stack trace info if
19601 it's not going to be used.
19603 2005-01-27 Raja R Harinath <rharinath@novell.com>
19605 * Makefile.am (common_sources): Add ssapre-cee-ops.h and
19608 2005-01-26 Zoltan Varga <vargaz@freemail.hu>
19610 * mini.c (remove_block_if_useless): Only print debug stuff with -v -v.
19612 * aot.c: Avoid calling mono_method_get_header () if not needed.
19614 * mini.h: Bump AOT file format version.
19616 * mini.c (mono_emit_native_call): Allocate a GOT var here.
19618 * mini.c (mono_print_tree): Print more info for calls.
19620 2005-01-26 Sebastien Pouliot <sebastien@ximian.com>
19622 * declsec.h: Remove warning by adding missing include for marshal.h
19624 2005-01-26 Martin Baulig <martin@ximian.com>
19626 * mini.c (mono_method_to_ir): In CEE_UNBOX_ANY, don't increase
19629 2005-01-25 Zoltan Varga <vargaz@freemail.hu>
19631 * mini-amd64.c (mono_arch_call_opcode): Add missing MONO_SSA_LOAD/STORE
19634 * ssa.c (mono_ssa_compute): Fix crashes when using AOT.
19636 * aot.c (mono_compile_assembly): Fix a warning.
19638 2005-01-25 Sebastien Pouliot <sebastien@ximian.com>
19640 * declsec.c: Look for security attributes on the original MonoMethod
19641 (and not the wrapped one). This fix permissions on icalls.
19643 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
19645 * mini-amd64.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
19647 * mini.c (mono_allocate_stack_slots): Add a fixme.
19649 * mini-x86.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
19651 Sun Jan 23 16:16:48 CET 2005 Paolo Molaro <lupus@ximian.com>
19653 * inssel.brg: optimize casts of sealed types (more
19654 optimizations waiting for fixes in remoting).
19656 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
19658 * inssel.brg (stmt): Add another dummy rule.
19660 * driver.c: Fix warnings.
19662 * driver.c (mono_main): If running under valgrind, instruct glib to use
19663 the system allocation functions so valgrind can track the memory
19664 allocated by the g_... functions.
19666 * inssel.brg (stmt): Add DUMMY rule for OP_DUMMY_STORE.
19668 * mini-ops.h: Add OP_DUMMY_STORE opcode.
19670 * mini.h (MONO_BBLOCK_IS_IN_REGION): New helper macro.
19672 * liveness.c: Handle OP_DUMMY_STORE. Enable register allocation for
19673 variables in try regions.
19675 * mini.c (mini_method_compile): Don't disable optimizations on large
19676 methods when AOT compiling.
19678 * mini.c (mono_allocate_stack_slots): New arch independent method to
19679 allocate stack slots. Not yet used.
19681 2005-01-22 Ben Maurer <bmaurer@ximian.com>
19683 * debug-mini.c (mono_debug_close_method): Plug some leaks.
19685 Sat Jan 22 13:41:51 EST 2005 Paolo Molaro <lupus@ximian.com>
19687 * mini-ppc.c: make the branch info relative as the code
19688 buffer can be reallocated.
19690 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>
19692 * aot.c: Allow decoding of the new MONO_PATCH_INFO_DECLSEC.
19693 * driver.c: Removed the AOT/security restriction. Now initialize the
19694 security manager (in metadata) if --security is used.
19695 * mini.c|h: Add the MONO_PATCH_INFO_DECLSEC code to use the index,
19696 rather than the pointer to declarative security, when AOT is used.
19698 Sat Jan 22 09:35:19 EST 2005 Paolo Molaro <lupus@ximian.com>
19700 * mini.h, mini-ppc.h, mini-ppc.c: updated to use out of line
19701 basic blocks, reduced intrinsic exception throwing code size.
19703 2005-01-22 Miguel de Icaza <miguel@ximian.com>
19705 * driver.c (mini_usage): Reorder the usage screen.
19707 2005-01-21 Zoltan Varga <vargaz@freemail.hu>
19709 * mini.c (mono_resolve_patch_target): Fix warning.
19711 2005-01-20 Zoltan Varga <vargaz@freemail.hu>
19713 * mini-x86.c (mono_arch_local_regalloc): Fix bug introduced by
19716 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
19718 * mini-amd64.c (mono_arch_local_regalloc): Revert last patch as it
19719 breaks the amd64 build.
19721 * mini-x86.c (mono_arch_local_regalloc): Fix bug in div/rem
19722 register allocation. Fixes #71454.
19724 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
19726 * arrays.cs: Add new regression test.
19728 2005-1-20 Massimiliano Mantione <massi@ximian.com>
19730 * ssapre.c: Turned usage of snprintf to GString.
19731 * ssapre.h: disabled MONO_APPLY_SSAPRE_TO_SINGLE_METHOD
19732 (I left it on by mistake in my previous commit).
19734 Thu Jan 20 12:00:45 CET 2005 Paolo Molaro <lupus@ximian.com>
19736 * mini.c, cfold.c, basic-calls.cs: preserve side effects
19737 on cond branch optimization (fixes bug# 71515).
19739 2005-1-20 Massimiliano Mantione <massi@ximian.com>
19741 * abcremoval.c: Fixed bug 71062.
19742 * abcremoval.h: Likewise.
19744 2005-1-20 Massimiliano Mantione <massi@ximian.com>
19746 * mini.c: Added a new functionality to optimize_branches, the removal
19747 of useless basic blocks, and fixed some problem in the removal of
19748 critical edges; some utility functions added for both purposes.
19749 * ssapre.c: Added complex expression support, and fixed bug 70637.
19750 * ssapre.h: Likewise.
19751 * ssapre-cee-ops.h: Added file with list of "CEE_*" opcodes
19753 * ssapre-mini-ops.h: Likewise, but for "OP_*" opcodes.
19754 * driver.c: Re-enabled SSAPRE.
19756 2005-01-19 Martin Baulig <martin@ximian.com>
19758 * mini.c (mono_method_to_ir): Call mono_get_inflated_method() on
19759 the result of mono_get_method_constrained().
19761 2005-01-18 Neale Ferguson <NealeFerguson@earthlink.net>
19763 * exceptions-s390.c tramp-s390.c: Allocate code using the global code
19766 2005-01-18 Geoff Norton <gnorton@customerdna.com>
19768 * jit-icalls.c (mono_llmult_ovf): Fix other overflow conditions to
19769 be detected. Fixes #59296.
19771 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
19773 * mini-amd64.c (mono_arch_output_basic_block): Remove some assertions
19774 which can happen. Fixes #71361.
19776 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
19778 * exceptions-sparc.c tramp-sparc.c: Allocate code using the global code
19781 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
19783 * mini.c (mono_create_jump_trampoline): Revert last change as it causes
19784 appdomain-unload.exe to fail.
19786 * mini.c: Fix some memory leaks.
19788 Mon Jan 17 16:16:23 CET 2005 Paolo Molaro <lupus@ximian.com>
19790 * inssel.brg: handle the new size of rank, idepth, max_interface_id.
19791 Fixed bug and sped up some codepaths.
19793 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
19795 * mini.c: Fix some memory leaks.
19797 * exceptions.cs basic-long.cs: Add test for checked ulong->int
19800 * inssel-long.brg: Implement long_conv_to_ovf_i4_un. Fixes #71319.
19802 * inssel-long.brg: Fix conv.ovf.i8 when run on an int32. Fixes
19805 * iltests.il: Add regression test for #71320.
19807 2005-01-16 Zoltan Varga <vargaz@freemail.hu>
19809 * mini.c (mono_codegen): Fix installation of profiler hooks.
19811 * mini-sparc.c mini-amd64.c: Don't allocate stack space for dead vars.
19813 Sun Jan 16 12:19:35 CET 2005 Paolo Molaro <lupus@ximian.com>
19815 * mini.h, mini.c, cfold.c: optimize access to enum
19816 readonly fields, too. Eval conditional branches if possible
19817 to perform unreachable code removal in more cases.
19819 2005-01-15 Zoltan Varga <vargaz@freemail.hu>
19821 * tramp-amd64.c exceptions-amd64.c: Use the new global code manager.
19823 * mini.c (mono_global_codeman_reserve): New function to allocate code memory from a global
19826 * tramp-x86.c mini-x86.c exceptions-x86.c: Allocate all code memory so mono works with
19827 WinXP DEP. Fixes #71244.
19829 2005-01-14 Zoltan Varga <vargaz@freemail.hu>
19831 * inssel.brg: Allways convert CEE_CONV_OVF_I4 to a move on 64 bit platforms. Fixes #71236.
19833 2005-01-13 Zoltan Varga <vargaz@freemail.hu>
19835 * mini-x86.c (mono_arch_output_basic_block): Fix OP_ATOMIC_ADD_NEW_I4.
19837 2005-01-11 Zoltan Varga <vargaz@freemail.hu>
19839 * mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo
19842 * mini.h: Bump AOT version.
19844 * mini.h (MonoCompile): Change exvar to a hash table.
19846 * mini.c: Allocate a separate exvar for each handler block.
19848 * mini.c: Get rid of the computation of filter_lengths, its not needed.
19850 * mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
19851 ex var with the pending exception and only throw if the two are equal.
19854 * exceptions.cs: Add tests for rethrow and nested catch clauses.
19856 * mini-x86.c: Fix warnings.
19858 * Makefile.am (common_sources): Move mini-exceptions.c here as it is
19859 used by all the ports now.
19861 * aot.c: Add write-symbols and save-temps options.
19863 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
19865 * mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.
19867 Mon Jan 10 16:11:16 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
19869 * mini-ops.h, inssel-s390.brg, cpu-s390.md: Support OP_ATOMIC__xxx
19872 * tramp-s390.c: Check vtable slot belongs to the domain.
19874 * mini-exceptions.c, exceptions-s390.c: Standardize exception handling
19875 as per other platforms.
19877 * mini-s390.c, mini-s390.h: Enable out-of-line bblock support.
19879 Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
19881 * driver.c: we don't run the Main() code in a subthread anymore.
19883 Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
19885 * mini.c: added experimental rtc support in the statistical
19886 profiler: if the user has the permission, more accurate statistics
19887 are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
19888 The MONO_RTC value must be restricted to what the linux rtc allows:
19889 power of two from 64 to 8192 Hz.
19891 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
19893 * mini-x86.c (mono_arch_emit_exceptions): Fix #71121.
19895 Mon Jan 10 05:20:49 EST 2005 Paolo Molaro <lupus@ximian.com>
19897 * mini-ppc.c: better icache flush for smp.
19899 2005-01-09 Zoltan Varga <vargaz@freemail.hu>
19901 * mini-amd64.c (emit_move_return_value): Fix memory leak.
19903 * mini-x86.c (get_call_info): Add the get_call_info () code from the
19904 amd64 port, not yet used.
19906 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
19908 * mini.c (mono_method_to_ir): Disable inlining of ldfld wrappers with
19911 2005-01-07 Sebastien Pouliot <sebastien@ximian.com>
19913 * driver.c: Added --security option to activate the security manager.
19914 Right now this will allow code generation for declarative demands and
19915 is disabled when AOT is specified.
19916 * mini.c: Add code generation for declarative security demands.
19917 * mini.h: Add mono_use_security_manager as an extern gboolean.
19919 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
19921 * aot.c (mono_compile_assembly): Speed up compilation a bit by
19922 emitting more dense assembly code.
19924 * mini-sparc.c mini-sparc.h exceptions-sparc.c: Enable optimized corlib
19925 exception throwing stuff.
19927 2005-01-06 Zoltan Varga <vargaz@freemail.hu>
19929 * mini-sparc.c (mono_arch_emit_exceptions): Fix typo in previous patch. Remove
19932 * mini-amd64.c (mono_arch_emit_exceptions): Remove duplicate epilog stuff
19933 left in by mistake.
19935 * driver.c (EXCLUDED_FROM_ALL): Disable SSAPRE until bug #70637 is
19938 * mini-sparc.h mini-sparc.c: Enable out-of-line bblock support.
19940 * tramp-*.c: Only patch vtable slots if the object is in the current
19941 domain. Fixes appdomain-unload.exe.
19943 * mini-amd64.c mini-amd64.h: Enable out-of-line bblock support.
19945 * mini-amd64.c (mono_arch_local_regalloc): Port regalloc fix from
19948 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
19950 * mini.c (reverse_branch_op): New helper function.
19952 * mini.c (optimize_branches): Run the new optimization only on
19953 platforms which support it. Also reverse all kinds of branches.
19955 * mini.h (MonoBasicBlock): Add 'out_of_line' field.
19957 * mini.c (mono_method_to_ir): Set 'out_of_line' for bblocks which have
19960 * mini.c (optimize_branches): Reverse not-equals branches if the false
19961 bblock is a throw. This happens a lot of time with argument checking in
19964 * mini.c (mono_codegen): Add support for placing basic blocks after
19965 the function epilogue.
19967 * mini-x86.c mini-x86.h: Add support for placing basic blocks after the
19970 2005-01-05 Miguel de Icaza <miguel@ximian.com>
19972 * mini.c (setup_stat_profiler): Only set this up if the platform
19973 supports ITIMER_PROF.
19975 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
19977 * mini-x86.c (mono_arch_local_regalloc): Fix a bug introduced by the
19980 * inssel.brg: Fix a warning.
19982 Wed Jan 5 16:40:18 CET 2005 Paolo Molaro <lupus@ximian.com>
19984 * mini.c: added support for statistical profiler
19985 (run with: --profile=default:stat).
19987 2005-01-04 Zoltan Varga <vargaz@freemail.hu>
19989 * mini-x86.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Enable this on x86.
19991 * mini-x86.c cpu-pentium.md: More fixes for usage of global registers.
19993 * mini-amd64.c (mono_arch_local_regalloc): Port some regalloc fixes
19994 related to global registers from the amd64 port.
19996 2005-01-03 Zoltan Varga <vargaz@freemail.hu>
19998 * mini.c (mono_method_to_ir): Handle MONO_CLASSCONST.
20000 * mini-amd64.c (mono_arch_local_regalloc): Fix some regalloc problems
20001 with global registers.
20002 (mono_arch_output_basic_block): Fix SWITCH in the AOT case.
20004 * aot.c (emit_method_code): Fix the 'method emitted as' messages.
20006 2004-12-31 Zoltan Varga <vargaz@freemail.hu>
20008 * debug-mini.c (encode_value): Fix off-by-one.
20010 * aot.c (encode_value): Likewise.
20012 * mini.c (mono_method_to_ir): Disable AOT for methods containing LDPTR.
20014 2004-12-30 Zoltan Varga <vargaz@freemail.hu>
20016 * mini.c linear-scan.c: Add a workaround for the mcs crash when using
20019 * aot.c (mono_aot_load_method): Free up patch info if no longer needed.
20021 * aot.c (emit_method_info): Increase size of temp buffer.
20023 * mini-x86.c cpu-pentium.md mini.c: Load fp constants differently in
20026 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
20028 * aot.c (emit_method_info): Fix build.
20030 * aot.c: Further rework of the AOT file format to reduce the size of
20031 the method info data.
20033 * mini.h: Bump AOT file format version.
20035 2004-12-27 Martin Baulig <martin@ximian.com>
20037 * mini.c (mini_get_method): New static method; call
20038 mono_get_method_full() and mono_get_inflated_method().
20039 (mono_method_to_ir): Use mini_get_method() instead of
20040 mono_get_method_full().
20042 2004-12-26 Patrik Torstensson <patrik.torstensson@gmail.com>
20044 * mini-x86.c (atomic ops): fixed bug interlocked bug #70784.
20046 2004-12-25 Zoltan Varga <vargaz@freemail.hu>
20048 * inssel.brg (ldind_to_load_membase): Handle CEE_LDIND_I8.
20050 * inssel-amd64.brg: Add some optimization rules.
20052 2004-12-24 Ben Maurer <bmaurer@ximian.com>
20054 * aot.c: Remove the use of MonoGHashTable and other GC stuff. The
20055 standard not GC'd stuff is fine.
20057 2004-12-24 Zoltan Varga <vargaz@freemail.hu>
20059 * aot.c: Rework the AOT file format to get rid of most of the global
20060 symbols. This reduces the size of the mscorlib.dll.so by 1MB.
20062 * mini.h: Bump AOT file format version.
20064 2004-12-23 Zoltan Varga <vargaz@freemail.hu>
20066 * mini.h: Bump AOT file format version.
20068 * aot.c (mono_aot_is_got_entry): New function to determine if an
20069 address is inside a GOT.
20071 * aot.c mini-x86.c tramp-x86.c: Make all patches use the GOT.
20073 * cpu-pentium.md: Increase the maximum size of some instructions which
20074 might involve a got access.
20076 * mini.c (get_method_from_ip): Another debug helper function.
20078 * mini.c: Call mono_get_got_var () in a couple places. Handle the case
20079 when got var accesses are created during the decompose phase.
20081 * mini-sparc.c: Change mono_compile_aot to cfg->compile_aot.
20083 * mini.h mini.c mini-x86.c aot.c mini-sparc.c: Add a 'compile_corlib'
20084 argument mini_compile_method and to MonoCompile, and use this to
20085 determine whenever a given method is compiled for AOT. This allows the
20086 other methods compiled during AOT compilation to be free of AOT stuff,
20087 so the backends does not need to add special support for them by
20088 creating a fake GOT etc.
20090 * mini-x86.c (mono_arch_patch_code): Remove fake got stuff as it is no
20093 2004-12-21 Ben Maurer <bmaurer@ximian.com>
20095 * mini.c (mono_method_to_ir): It turns out that some of the
20096 x-appdomain wrappers are lax with types, so just ignore this for
20099 * inssel.brg (OP_CHECK_ARRAY_TYPE): Optimize this by only looking
20100 at the vtable->klass. If it is non-shared code we can just use the
20103 Tue Dec 21 17:43:06 CET 2004 Paolo Molaro <lupus@ximian.com>
20105 * mini-ppc.c: access MonoDomain from tls, too.
20107 2004-12-21 Sebastien Pouliot <sebastien@ximian.com>
20109 * declsec.c: Removed unused variable (and related warning ;-)
20111 2004-12-21 Ben Maurer <bmaurer@ximian.com>
20113 * iltests.il: New test for LDELEMA on an array of ref types.
20115 * mini.c (CEE_LDELEMA): We need to emit OP_CHECK_ARRAY_TYPE for
20116 all ldelema's on reftypes.
20117 (check_call_signature): Remove the OP_CHECK_ARRAY_TYPE from here,
20118 it was the wrong place to put it.
20120 * mini-x86.c (mono_arch_output_basic_block): Just use ecx as the
20121 register to pop to make this cleaner, at the request of Paolo.
20123 2004-12-20 Ben Maurer <bmaurer@ximian.com>
20125 * mini-ops.h (OP_GETHASHCODE): New op.
20127 * inssel.brg (OP_GETHASHCODE): Emit code for the new opcode
20129 * mini.c (mini_get_inst_for_method): Create the intrinsic hash
20132 For a microbenchmark, this reduces the cost of Hashtable.get_Item
20135 * mini-x86.c (mono_arch_output_basic_block): Rather than
20143 The first is 3 bytes while the second is 1. This saves 36 kb on
20144 mscorlib, quite a big saving. When bootstraping mcs, I was able to
20145 see a small boost because of icache locality.
20147 * cfold.c (FOLD_BINOPCOMM): Kill add foo, 0
20149 Mon Dec 20 12:19:40 EST 2004 Paolo Molaro <lupus@ximian.com>
20151 * Makefile.am, mini-ppc.h, mini-exceptions.c, exceptions-ppc.c:
20152 started code sharing with the generic code.
20154 Mon Dec 20 11:08:06 EST 2004 Paolo Molaro <lupus@ximian.com>
20156 * mini-ppc.c, cpu-g4.md: added code for direct access to
20159 Mon Dec 20 10:58:28 EST 2004 Paolo Molaro <lupus@ximian.com>
20161 * mini-ops.h, inssel-x86.brg, cpu-amd64.md, inssel.brg, inssel-amd64.brg,
20162 mini-amd64.c, mini-x86.c, cpu-pentium.md: renamed OP_X86_TLS_GET
20165 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
20167 * declsec.c|h: Added functions to cache the declarative stack modifiers
20168 in MonoJitInfo and to create a security frame from a MonoJitInfo
20170 * mini.c: Initialize jinfo->cas_inited to FALSE when MonoJitInfo is
20171 created. Register internal calls for System.Security.SecurityFrame::
20172 _GetSecurityFrame and _GetSecurityStack.
20173 * mini.h: Added definition for new icalls (in mini-exceptions.c) and
20174 the definitions for the new stack walk/callback mechanism.
20175 * mini-exceptions.c: Added internal call GetSecurityFrame (to get the
20176 first security frame for LinkDemands and InheritanceDemands) and
20177 GetSecurityStack for Demands. Both use the new mono_walk_stack code
20179 * mini-x86.h, mini-amd64.h, mini-sparc.h: Architecture specific stack
20180 walk initialization (lupus).
20182 2004-12-20 Ben Maurer <bmaurer@ximian.com>
20184 * mini.c (mono_method_to_ir): In CEE_DUP, handle the dup / stloc
20186 (handle_loaded_temps): Do not create a temporary variable for
20187 things that we know are temps. They will never be modified.
20188 (mono_spill_call): Set MONO_INST_IS_TEMP
20189 (mono_emulate_opcode): ditto
20191 (mono_method_to_ir.CEE_DUP): ditto
20193 2004-12-19 Ben Maurer <bmaurer@ximian.com>
20195 * mini.c (type_to_eval_stack_type): Make this handle the void type
20196 (mono_emit_call_args): set the call->type with type_to_eval_stack_type
20197 (emit_tree): use ip_in_bb to special case some common idioms
20198 Update all callers to pass in the IP.
20199 (mono_method_to_ir): Make CEE_CALL* do the above as well.
20201 This gives us a nice 2% speedup in mcs bootstrap.
20203 * mini-x86.c (peephole_pass): Peephole pass to make
20212 * mini.c (ip_in_bb): new method.
20213 (mono_method_to_ir): use this method rather than doing the hash
20216 * linear-scan.c (mono_linear_scan): When expiring actives, you
20217 don't need to keep around variables that expire on this
20218 instruction. This makes it so that:
20221 store (ebx add (ebx, 1))
20225 2004-12-19 Zoltan Varga <vargaz@freemail.hu>
20227 * mini.c (mono_method_to_ir): Optimize the common ldobj+stloc
20228 combination to avoid doing two copies. Fix up problems with previous
20231 * mini.c: Fix 64 bit warnings.
20233 * mini-x86.c (INST_IGNORES_CFLAGS): Add OP_STOREI4_MEMBASE_REG.
20235 2004-12-17 Zoltan Varga <vargaz@freemail.hu>
20237 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Port exception handling
20238 changes from the x86 code.
20240 * mini.h: Add prototype for mono_arch_get_throw_corlib_exception ().
20242 2004-12-16 Zoltan Varga <vargaz@freemail.hu>
20244 * mini-x86.c (mono_arch_emit_epilog): Optimize the corlib exception
20245 throwing code to reduce its size, unify the AOT and non-aot code and
20246 get rid of relocations in the AOT case.
20248 * mini-x86.h mini.c exceptions-x86.c
20249 (mono_arch_get_throw_corlib_exception): New arch specific function to
20250 raise corlib exceptions which doesn't require relocations in the
20253 * aot.c (emit_method): Handle PATCH_INFO_NONE as well.
20255 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
20257 * mini.c (mono_emit_method_call): Only allocate the got var when it is
20260 * mini-x86.c (mono_arch_patch_code): Add missing PATCH_INFO_METHOD_REL
20263 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
20265 * mini-x86.c, cpu-pentium.md, inssel-x86.brg: Fixed bug
20266 with add function when used from Inc/dec atomic
20267 functions. Re-enabled optimization on x86.
20268 * mini-ops.h: renamed atomic_add functions to
20269 allow _add to match the Interlocked::Add and
20270 _add_next to match Interlocked::Inc/Dec.
20272 2004-12-15 Massimiliano Mantione <massi@ximian.com>
20274 * mini.c: Fixed a subtle bug in mono_method_to_ir, about the
20275 linking of BBs to the end BB, and enabled SSAPRE also with
20276 consprop and copyprop (which was prevented by that bug).
20278 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
20280 * mini-x86.c: disabling the Interlocked optimizing code.
20282 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
20284 * aot.c (load_aot_module): Move reading of got_addr after the AOT
20285 file version check.
20287 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
20289 * mini-x86.c, inssel-x86.brg, cpu-pentium.md: removed _imm
20290 interlocked optimization due lack of support on x86, rewrote
20291 exchange to take into account that base may be in eax.
20293 xsp works again; activated Interlocked optimizing code.
20295 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
20297 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
20299 2004-12-13 Zoltan Varga <vargaz@freemail.hu>
20301 * mini-ops.h: Add new opcodes.
20303 * mini.h: Add new patch types. Add got_var to MonoCompile.
20305 * mini.h mini-x86.c mini-amd64.c aot.c: Rename
20306 mono_arch_get_aot_patch_offset () to mono_arch_get_patch_offset () and
20307 make it work with all kinds of patchable code.
20309 * inssel.brg inssel-x86.brg: Add new rules dealing with computing the
20310 address of the GOT, and referencing entries in the GOT.
20312 * mini.c: Add code to load the GOT address if needed by an opcode.
20314 * aot.c mini-x86.h mini-x86.c cpu-pentium.md: Add support for position
20315 independent AOT code on the x86 using an elf-style Global Offset Table.
20317 2004-12-14 Raja R Harinath <rharinath@novell.com>
20319 * Makefile.am (RUNTIME): Set MONO_SHARED_DIR.
20321 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20323 * mini-x86.c: disabling the Interlocked optimizing code. It segfaults
20326 2004-12-13 Patrik Torstensson <patrik.torstensson@gmail.com>
20328 * mini-x86.c,mini-ops.h,inssel-x86.brg,cpu-pentium.md: Implementation
20329 of Interlocked:Increment/Decrement/Add as inline ops.
20330 (mini-x86.c (mono_arch_get_inst_for_method and mono_arch_output_basic_block))
20332 2004-12-12 Geoff Norton <gnorton@customerdna.com>
20334 * exceptions-ppc.c: Reorder code so gcc3.4 can compile it
20335 * mini-ppc.c: Unify mono_arch_patch_code with changes in r37636.
20337 2004-12-12 Duncan Mak <duncan@ximian.com>
20339 * mini-ppc.c (mono_arch_patch_code): Hopefully made this build
20340 again. `patch_info->table_size' is no longer valid after Zoltan's
20343 2004-12-12 Martin Baulig <martin@ximian.com>
20345 * mini.c (mono_method_to_ir): Only call mono_debug_init_method()
20346 if we are the "real" method, ie. not an inlined method inside it.
20348 2004-12-11 Ben Maurer <bmaurer@ximian.com>
20350 * mini.c (CEE_LDSFLD): Make sure that the vtable has been init'd
20351 before we look in the special fields table. This fixes
20352 ../tests/thread-static-init.cs.
20354 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20356 * mini.c: return immediately after setting OP_ARRAY_RANK or CEE_LDLEN
20357 for Array get_Rank and get_Length. Fixes bug #70465.
20359 2004-12-11 Zoltan Varga <vargaz@freemail.hu>
20361 * mini.h mini.c aot.c: Put the bblock table for a SWITCH patch into a
20362 separate structure to reduce the size of MonoJumpInfo.
20364 Fri Dec 10 18:09:22 CET 2004 Paolo Molaro <lupus@ximian.com>
20366 * mini.c, mini.h, aot.c, driver.c: allow disabling the aot code.
20368 2004-12-10 Patrik Torstensson <patrik.torstensson@gmail.com>
20370 * mini.c (mini_get_inst_for_method): Changed to allow ports
20371 to return a MonoInst instead of opcode
20372 (renamed mini_get_opcode_for_method to better reflect the new functionality)
20374 * mini-[x86|s390|s390x|ppc|sparc].c (mono_arch_get_inst_for_method):
20375 Allow ports to return a created MonoInst instead of op-code, will enable
20377 (renamed mini_get_opcode_for_method to better reflected the functionality)
20379 2004-12-09 Zoltan Varga <vargaz@freemail.hu>
20381 * mini.c (NEW_AOTCONST): Share some code between the different NEW_AOTCONST macros.
20383 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
20385 * mini.c jit-icalls.c: Pass generic_context to mono_ldtoken_wrapper.
20388 2004-12-08 Martin Baulig <martin@ximian.com>
20390 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use `fsig->signature'
20391 if we're a CEE_CONSTRAINED call. Fixes gen-118.cs.
20393 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
20395 * mini-sparc.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_<X>
20398 * exceptions.cs: Disable some tests which depend on properties of x86 fp
20401 2004-12-08 Raja R Harinath <rharinath@novell.com>
20403 * Makefile.am (CLEANFILES): Add *.exe, *.dll.
20405 2004-12-07 Zoltan Varga <vargaz@freemail.hu>
20407 * mini-sparc.c (mono_arch_output_basic_block): Fix LOCALLOC_IMM
20408 bug introduced by the previous patch.
20410 Tue Dec 7 11:44:39 CET 2004 Paolo Molaro <lupus@ximian.com>
20412 * mini-ppc.c, objectc.cs: handle large structs passed by value
20413 (fixes bug #69972).
20415 Tue Dec 7 10:43:31 CET 2004 Paolo Molaro <lupus@ximian.com>
20417 * mini-ppc.c: OP_ARGLIST implementation from
20418 Geoff Norton <gnorton@customerdna.com>.
20420 Tue Dec 7 10:14:25 CET 2004 Paolo Molaro <lupus@ximian.com>
20422 * inssel-x86.brg, inssel-ppc.brg: fix reference to register
20423 in stmt: OP_OUTARG_VT (reg) (should fix bug #69785).
20425 Tue Dec 7 10:06:39 CET 2004 Paolo Molaro <lupus@ximian.com>
20427 * exceptions-ppc.c: avoid calling ppc_patch in exception trampolines.
20429 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20431 * inssel-s390.brgi, mini-ops.h, mini-s390.c : Add stubs for support of tls offset
20434 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
20436 * mini-sparc.c: Zero out localled-ed memory.
20438 * iltests.il: Add tests for zeroing out localloc-ed memory.
20440 2004-12-04 Martin Baulig <martin@ximian.com>
20442 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
20443 mono_method_get_signature_full().
20445 2004-12-03 Massimiliano Mantione <massi@ximian.com>
20447 * mini.c: Added removal of critical edges (prerequisite for SSAPRE),
20448 and some utility functions (always for SSAPRE), integrated SSAPRE.
20449 * mini.h: Likewise.
20450 * driver.c: Added ssapre option.
20451 * ssa.c: Small fix on OP_ARG handling.
20452 * ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
20453 * Makefile.am: Likewise.
20455 2004-12-02 Zoltan Varga <vargaz@freemail.hu>
20457 * tramp-x86.c (mono_arch_create_jit_trampoline): Remove code which is
20458 now in the xp code.
20460 * mini.c (mini_init): Register mono_thread_force_interruption_checkpoint
20463 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20465 * inssel-s390.brg : Add OP_OUTARG_VT (OP_REFANYTYPE (reg)) rule.
20467 * cpu-s390.md : Increase instruction length of oparglist.
20469 * mini-s390.c : Implement vararg and TYPEDEBYREF support.
20471 2004-11-30 Martin Baulig <martin@ximian.com>
20473 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, added support for
20474 virtual generic methods. We call a special helper_compile_generic_method()
20475 icall to retrieve the method from the vtable, inflate and compile
20476 it and then do a CEE_CALLI. Thanks a lot to Paolo for this idea.
20478 * jit-icalls.c (helper_compile_generic_method): New JIT icall.
20480 2004-11-30 Zoltan Varga <vargaz@freemail.hu>
20482 * mini-sparc.c: Fix up vararg corner cases. Fixes #70019.
20484 2004-11-29 Zoltan Varga <vargaz@freemail.hu>
20486 * cpu-sparc.md mini-sparc.c (long_conv_to_ovf_i): Fill missing delay slot.
20489 2004-11-27 Ben Maurer <bmaurer@ximian.com>
20491 * inssel.brg (CEE_SWITCH): The AOT stuff Zoltan added is only for
20492 platforms with PIC aot.
20494 2004-11-28 Martin Baulig <martin@ximian.com>
20496 * mini.c (mono_method_to_ir): In CEE_DUP, added handle_stobj().
20499 2004-11-28 Martin Baulig <martin@ximian.com>
20501 * mini-x86.c (mono_arch_call_opcode): Use the original type, not
20502 the result of mono_type_get_underlying_type() to check whether
20505 2004-11-26 Martin Baulig <martin@ximian.com>
20508 (mono_method_to_ir): Use `!method->signature->has_type_parameters'
20511 2004-11-26 Zoltan Varga <vargaz@freemail.hu>
20513 * mini-amd64.c (mono_arch_emit_this_vret_args): Handle this and vret
20514 the same way as the other arguments so they won't get clobbered.
20516 * mini-amd64.c (mono_arch_output_basic_block): Avoid doing virtual
20517 calls through R11 since it is clobbered by the trampoline code.
20519 2004-11-26 Raja R Harinath <rharinath@novell.com>
20521 * Makefile.am: Consistently use $(RUNTIME) rather than ./mono to
20522 pick up in-tree mscorlib.dll.
20524 2004-11-25 Zoltan Varga <vargaz@freemail.hu>
20526 * aot.c: Rename MonoAOTModule->cleanup to out_of_date.
20528 * mini-amd64.c aot.c: Switch to PIC relative AOT code. References to
20529 runtime data/code are now stored in a table similar to the GOT in ELF.
20530 This allows the code itself to be position independent.
20532 * aot.c: Fix loading of referenced assemblies after the lazy assembly
20535 * aot.c: Attach ELF type (object/function) directives to all global
20538 * tramp-amd64.c (amd64_magic_trampoline): Patch RIP relative calls too.
20540 * inssel.brg (SWITCH): Emit an AOT_CONST in the aot case.
20542 * mini-amd64.h: Turn on PIC AOT code.
20544 * mini.h (mono_arch_get_aot_patch_offset): New arch specific function
20545 returning the offset within an OP_AOTCONST instruction where the GOT
20546 offset needs to be added.
20548 * mini.h: Bump AOT file format version.
20550 2004-11-25 Martin Baulig <martin@ximian.com>
20552 * mini.c (mono_method_to_ir): In CEE_CALL, don't allow calling any
20553 uninflated generic methods.
20555 2004-11-25 Martin Baulig <martin@ximian.com>
20557 * mini.c (mono_method_to_ir): Don't allow any uninflated generic methods.
20559 2004-11-24 Martin Baulig <martin@ximian.com>
20561 * minit.c (type_to_eval_stack_type): Set `inst->klass' to the
20562 original klass (this only applies for generic instances).
20564 2004-11-24 Martin Baulig <martin@ximian.com>
20566 * mini.c (mono_method_to_ir): Use `STACK_OBJ' instead of
20567 `ldind_type [CEE_LDIND_REF]' (which would be beyond the end of
20570 2004-11-24 Zoltan Varga <vargaz@freemail.hu>
20572 * mini.c (mono_method_to_ir): Disable inlining for methods containing
20573 localloc. Fixes #69678.
20575 * iltests.il (test_0_localloc_inline): Add regression test for #69678.
20577 2004-11-23 Zoltan Varga <vargaz@freemail.hu>
20579 * mini-amd64.c (mono_arch_output_basic_block): Set %al to the number of
20580 used SSE registers on pinvoke calls. Fixes #69774.
20582 2004-11-23 Geoff Norton <gnorton@customerdna.com>
20584 * inssel-ppc.brg, mini-ppc.c: Use mono_class_from_mono_type instead of
20585 vt->inst_vtype->data.klass. This fixes generic structs and bug #69766
20587 2004-11-23 Raja R Harinath <rharinath@novell.com>
20589 * Makefile.am (MCS,ILASM): Don't refer to runtime/ directory.
20590 Refer directly to the mcs/ tree.
20592 2004-11-19 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20594 * mini-s390.c, tramp-s390.c, mini-s390.h: Add LMF processing for trampolines.
20595 Check if a trampoline for a synchronized method is required.
20597 Fri Nov 19 17:34:21 CET 2004 Paolo Molaro <lupus@ximian.com>
20599 * mini-ppc.c, cpu-g4.md: set to zero the memory allocated
20600 with localloc if needed. Throe arithmetric exception in
20601 div an rem if needed. Implement ovf checks in OP_LCONV_TO_OVF_I.
20602 Adapted from a patch by Geoff Norton <gnorton@customerdna.com>.
20604 2004-11-19 Geoff Norton <gnorton@customerdna.com>
20606 * mini-ppc.c: Call mono_type_get_underlying_type to unwrap generic
20607 types before switching on type. Fixes #69622.
20609 2004-11-19 Raja R Harinath <rharinath@novell.com>
20611 * Makefile.am (check-local): New. Integrate into 'make check'.
20612 (MCS,RUNTIME): Define using in-tree mono and mcs.
20614 (%.exe): Use $(ILASM).
20616 Fri Nov 19 14:54:07 CET 2004 Paolo Molaro <lupus@ximian.com>
20618 * mini-ppc.c: adjust initial prolog size (bug #69691).
20620 2004-11-18 Zoltan Varga <vargaz@freemail.hu>
20622 * cpu-pentium.md (localloc): Increase max instruction len. Fixes
20625 2004-11-17 Raja R Harinath <rharinath@novell.com>
20627 * Makefile.am (clean-local): Rename from 'clean'.
20629 2004-11-15 Nelae Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20631 * mini.c, mini-x86.c, mini-amd64.c, exceptions-s390.c: Add siginfo_t parameter
20632 to mono_arch_is_int_overflow.
20633 * exceptions-s390.c: Add mono_arch_is_int_overflow routine to discern between
20636 2004-11-15 Sebastien Pouliot <sebastien@ximian.com>
20638 * declsec.c|h: New files to support declarative security attributes.
20639 Added function to check if a method has (applicable) security.
20640 * mini.c|h: Add check for declarative security attributes in
20641 mono_method_check_inlining.
20642 * Makefile.am: Added declsec.c and declsec.h to the build.
20644 Mon Nov 15 11:53:46 CET 2004 Paolo Molaro <lupus@ximian.com>
20646 * mini.c, mini.h: update to keep dynamic code info per-domain.
20648 2004-11-12 Zoltan Varga <vargaz@freemail.hu>
20650 * mini.c mini-*.h: Get rid of MONO_ARCH_HAVE_RETHROW since all architectures support it now.
20651 (mini_init): Get rid of it from here too.
20653 Thu Nov 11 20:17:17 CET 2004 Paolo Molaro <lupus@ximian.com>
20655 * mini-ppc.c, mini-ppc,h, cpu-g5.md, exceptions-ppc.c:
20656 implemented OP_RETHROW (patch by Geoff Norton
20657 <gnorton@customerdna.com>).
20659 2004-11-10 Geoff Norton <gnorton@customerdna.com>
20661 * tramp-ppc.c (ppc_magic_trampoline): Don't trampoline methods
20662 between appdomains. Fixes appdomain-unload on PPC.
20664 2004-10-26 Lluis Sanchez Gual <lluis@novell.com>
20666 * exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
20667 mini-exceptions.c: handle the new wrapper types.
20668 * mini.c: The CEE_ISINST and CEE_CASTCLASS opcodes now take the
20669 token value as a MonoClass* when compiling a wrapper.
20670 mono_jit_create_remoting_trampoline now takes an additional
20671 MonoRemotingTarget parameter.
20673 2004-11-10 Martin Baulig <martin@localhost>
20675 * mini.c (mono_method_to_ir): Use `generic_container->context'
20676 rather than creating a new one.
20678 2004-11-09 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20680 * exceptions-s390.c, mini-s390, cpu-s390.md: Add support for OP_RETHROW.
20682 * inssel-390.md, mini-s390.c: Correct register allocation for globals.
20684 2004-11-09 Zoltan Varga <vargaz@freemail.hu>
20686 * aot.c (mono_aot_init): Add MONO_AOT_CACHE env variable to turn on
20687 the experimental aot cache stuff.
20689 Tue Nov 9 17:30:20 CET 2004 Paolo Molaro <lupus@ximian.com>
20691 * aot.c, mini.c, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
20692 mini-exceptions.c: update to exception clause structure changes.
20694 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
20696 * exceptions-x86.c (throw_exception): Fix warnings.
20698 * mini-x86.h mini-x86.c cpu-pentium.md exceptions-x86.c: Add support
20701 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
20703 * exceptions-sparc.c (get_throw_exception): Really fix this.
20705 2004-11-07 Ben Maurer <bmaurer@ximian.com>
20707 * tramp-*.c: we no longer support icalls without wrappers, so
20708 a bit of code can be removed here
20710 2004-11-07 Zoltan Varga <vargaz@freemail.hu>
20712 * exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
20715 * cpu-sparc.md: Add op_rethrow.
20717 * exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.
20719 * mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.
20721 * mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
20722 * mini-ops.h: Add OP_RETHROW.
20724 * mini.c inssel.brg: Distinguish between THROW and RETHROW.
20726 * cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.
20728 2004-11-05 Geoff Norton <gnorton@customerdna.com>
20730 * helpers.c: Change otool arguments from -V -v -t to -v -t on Darwin
20731 Makes the output much easier to read
20733 2004-11-05 Ben Maurer <bmaurer@ximian.com>
20735 * ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
20736 prevents another huge leak when compiling with ssa. Secondly, the
20737 performance of doing this rather than freeing the lists is much
20738 better. GList does a lock every time you allocate a list link,
20739 so that it can use a memory pool. So, it is better to just use
20740 a memory pool of our own.
20742 * ssa.c, linear-scan.c: replace g_list_remove_link with
20743 g_list_delete. The remove one does not free the GList, so we were
20744 leaking memory. On -O=all --compile-all with corlib, this cut down
20745 3 MB of allocations.
20747 2004-11-05 Zoltan Varga <vargaz@freemail.hu>
20749 * tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.
20751 * tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.
20753 * mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
20754 into a new function mono_create_jit_trampoline ().
20756 2004-11-02 Zoltan Varga <vargaz@freemail.hu>
20758 * trace.c (get_spec): Allow tracing of classes without a namespace.
20760 2004-11-02 Sebastien Pouliot <sebastien@ximian.com>
20762 * mini.c: Fix pointer overwrite in mini_method_compile.
20764 2004-11-2 Geoff Norton <gnorton@customerdna.com>
20766 * inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
20767 The darwin ABI needs some special handling for 1 and 2 byte structs
20768 Lets use lbz/lhz instead of lwz everywhere.
20769 * mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
20770 for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
20771 Use stb/sth for the former, and put the latter always on stack instead of in
20772 argument registers.
20774 2004-10-30 Zoltan Varga <vargaz@freemail.hu>
20776 * trace.c (is_filenamechar): Add '_'.
20778 2004-10-29 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20780 * mini-s390.c: Fix prolog length to allow for large trace requirements.
20782 * exceptions-s390.c: Remove dwarf unwinding stuff that was unused.
20784 2004-10-29 Zoltan Varga <vargaz@freemail.hu>
20786 * Makefile.am (libgc_libs): Do some automake magic so libmono/mono
20787 depends on libmonogc. Fixes #68805.
20789 2004-10-26 Miguel de Icaza <miguel@ximian.com>
20791 * mini.c (mono_jit_free_method): Provide extra information for
20792 this error. Currently this leaks, but will be turned into a
20793 developer option in the future.
20795 2004-10-26 Zoltan Varga <vargaz@freemail.hu>
20797 * driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
20799 2004-10-25 Zoltan Varga <vargaz@freemail.hu>
20801 * aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
20802 boundary. Fixes reading of PATCH_INFO_R4 and R8.
20803 (mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
20805 2004-10-24 Zoltan Varga <vargaz@freemail.hu>
20807 * mini-amd64.c (mono_arch_patch_code): Fix patching of class init
20808 trampolines for AOT code.
20810 2004-10-22 <vargaz@freemail.hu>
20812 * aot.c (mono_compile_assembly): Disable AOT for methods containing calls to methods of
20813 constructed types. Fixes #68136.
20815 2004-10-21 Martin Baulig <martin@ximian.com>
20817 * exceptions-x86.c (throw_exception): Call mono_debugger_throw_exception();
20818 if it returns true, unwind the stack to the call instruction.
20820 2004-10-21 <vargaz@freemail.hu>
20822 * aot.c: Reorganize the AOT file format to avoid relocations. Fix warnings.
20824 * mini.h: Bump AOT version number.
20826 * objects.cs: Add another test for unbox trampolines.
20828 * tramp-amd64.c (amd64_magic_trampoline): Disable patching of trampolines for
20831 2004-10-20 <vargaz@freemail.hu>
20833 * driver.c: Add SHARED to the set of optimizations tested.
20835 * tramp-amd64.c (amd64_magic_trampoline): Patch trampoline code as well.
20837 * mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
20838 used by CEE_NEWARR.
20840 * ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
20842 2004-10-20 Martin Baulig <martin@ximian.com>
20844 * mini-exceptions.c (mono_handle_exception): Call
20845 mono_debugger_handle_exception() to tell the debugger about
20846 catch/finally clauses.
20848 2004-10-18 Zoltan Varga <vargaz@freemail.hu>
20850 * exceptions-amd64.c (mono_arch_find_jit_info): Pop arguments of the stack.
20852 * mini-amd64.c (mono_amd64_get_vcall_slot_addr): Handle extended registers. Fixes
20855 2004-10-15 Geoff Norton <gnorton@customerdna.com>
20857 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
20858 methods as their native size, fixed bug #57543, #57545.
20859 * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
20860 This saves a temporary register and mullw call down into 1 (minor perf
20861 increase for cases like sum = sum * 5; This use to translate into:
20864 It now translates to
20867 2004-10-15 Zoltan Varga <vargaz@freemail.hu>
20869 * trace.c (mono_trace_eval): Use mono_method_desc_full_match. Fixes
20872 2004-10-11 Martin Baulig <martin@ximian.com>
20874 * mini.c (mono_method_to_ir): If we're a generic method, get the
20875 MonoGenericContainer from our MonoMethodNormal and create a
20876 MonoGenericContext from it.
20878 2004-10-08 Zoltan Varga <vargaz@freemail.hu>
20880 * inssel-long32.brg (OP_LCONV_TO_OVF_I2): Fix CONV_I1 -> CONV_I2.
20882 * basic-long.cs: Add test for checked i8->i2 cast.
20884 Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
20886 * inssel-ppc.brg: added a couple of speedup rules.
20888 2004-10-05 Zoltan Varga <vargaz@freemail.hu>
20890 * Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
20891 to speed up rebuilds.
20893 2004-10-04 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20895 * mini-s390.c: Minor fix to OP_OR_IMM.
20897 2004-10-03 Zoltan Varga <vargaz@freemail.hu>
20899 * tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
20900 better. Fixes appdomain-unload.exe on sparc.
20902 2004-10-02 Massimiliano Mantione <massi@ximian.com>
20904 * ssa.c: Fixed casts to unsigned where the value was of 64 bits in
20905 simulate_long_compare, patch by will@exomi.com (Ville-Pertti Keinonen),
20908 2004-10-02 Zoltan Varga <vargaz@freemail.hu>
20910 * jit-icalls.c: Handle a nonexisting trunc function more correctly.
20912 2004-09-30 Lluis Sanchez Gual <lluis@novell.com>
20914 * mini.c: Always generate a field read/write wrapper for members
20915 of the class MarshalByRefObject since the actual instance could
20918 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
20920 * mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
20922 2004-09-28 Zoltan Varga <vargaz@freemail.hu>
20924 * driver.c mini.h trace.c: Move the setting of the main assembly into
20925 a separate function called mono_trace_set_assembly () and call it after
20926 actually loading the main assembly. Fixes #66872.
20928 2004-09-25 Zoltan Varga <vargaz@freemail.hu>
20930 * mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
20931 using the code manager.
20933 2004-09-24 Zoltan Varga <vargaz@freemail.hu>
20935 * tramp-amd64.c mini-amd64.h: Add support for MONO_ARCH_HAVE_INVALIDATE_METHOD.
20937 2004-09-23 Zoltan Varga <vargaz@freemail.hu>
20939 * cpu-amd64.md: Fix bug in previous patch.
20941 * cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
20944 Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
20946 * mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
20947 mini-exceptions.c: updates for changed stack walk interface.
20949 2004-09-21 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
20951 * mini-s390.c, cpu-s390.md: Minor changes to OP_ARGLIST handling
20953 2004-09-17 Zoltan Varga <vargaz@freemail.hu>
20955 * mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.
20957 2004-09-13 Zoltan Varga <vargaz@freemail.hu>
20959 * driver.c (mini_regression_list): Do not call mono_assembly_close
20960 since assemblies can't be unloaded.
20962 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
20964 * cpu-amd64.md: Fix more instruction lengths.
20966 * cpu-amd64.md: Fix lengths of some instructions.
20968 2004-09-11 Ben Maurer <bmaurer@users.sourceforge.net>
20970 * inssel.brg: Make the array ldelema check aot friendly.
20972 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
20974 * mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.
20976 * cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.
20978 2004-09-10 Zoltan Varga <vargaz@freemail.hu>
20980 * mini-x86.c: Fix build.
20982 * mini-sparc.c mini-x86.c mini-amd64.c: Use the new
20983 mono_type_get_underlying_type () helper function to simplify code.
20985 2004-09-09 Martin Baulig <martin@ximian.com>
20987 * mini-amd64.c: Don't access `type->data.klass' directly, call
20988 mono_class_from_mono_type() instead since the type may be a
20991 2004-09-09 Martin Baulig <martin@ximian.com>
20993 * mini-amd64.c (get_call_info): Fix support for generic instances.
20994 (add_valuetype): Use mono_class_from_mono_type() to get the class
20995 since we can be a generic instance.
20997 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <lupus@ximian.com>
20999 * mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.
21001 2004-09-07 Ben Maurer <bmaurer@users.sourceforge.net>
21003 * liveness.c: reset spill costs on each scan: bug 62107
21005 2004-09-07 Bernie Solomon <bernard@ugsolutions.com>
21007 * exceptions-sparc.c (mono_arch_find_jit_info): remove
21008 unnecessary line that doesn't compile
21010 2004-09-07 Zoltan Varga <vargaz@freemail.hu>
21012 * mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
21013 trampolines, make them call an error function so people can fix their
21016 2004-09-06 Martin Baulig <martin@ximian.com>
21018 * mini.c (mono_method_to_ir): When initializing locals, handle a
21019 generic instances like a valuetype if it's a valuetype and like a
21020 class if it's a class.
21022 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
21024 * exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
21025 stack. Fixes #64674.
21027 * exceptions.cs: Add test for unwinding of call arguments.
21029 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <lupus@ximian.com>
21031 * mini-*.c, mini-ops.h, inssel-long32.brg: introduced
21032 OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
21033 set the carry/borrow flag). The sparc and s390 implementations
21034 can now use optimized versions (and simplify the code). ppc bugfixes.
21036 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
21038 * exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.
21040 2004-09-05 Zoltan Varga <vargaz@freemail.hu>
21042 * inssel-amd64.brg: Remove leftover 32 bit rule.
21044 * mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.
21046 2004-09-04 Zoltan Varga <vargaz@freemail.hu>
21048 * mini-exceptions.c (mono_find_jit_info): Refactor common code from
21049 mono_arch_find_jit_info functions into a new function. Fix a memory
21052 * exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
21055 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
21057 * exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
21060 * exceptions.cs: Add array size tests.
21062 * mini.c: Allocate a separate icall wrapper for each arity of
21063 mono_array_new_va. Fixes #59509.
21065 * exceptions.cs: Add testcase for 64578.
21067 * inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.
21069 * trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.
21071 2004-09-02 Martin Baulig <martin@ximian.com>
21073 * mini.c (mono_method_to_ir): When initializing the locals, call
21074 handle_initobj() on the generic instance itself, not its
21077 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
21079 * mini.h (MonoJitDynamicMethodInfo): New structure, extension of
21080 MonoJitInfo for dynamic methods.
21082 * mini.c: Rename trampoline_hash_mutex to jit_mutex.
21084 * mini.c: Add support for freeing JIT data for dynamic methods.
21086 2004-09-01 Martin Baulig <martin@ximian.com>
21088 * mini-x86.c (is_regsize_var): Added support for generic
21090 (mono_arch_emit_prolog): Make this compile again, use
21091 `x86_push_imm_template (code)'.
21093 2004-08-30 Ben Maurer <bmaurer@users.sourceforge.net>
21095 * mini-x86.c: make all push_imm instructions that get
21096 patched always emit the long form
21098 2004-08-30 Zoltan Varga <vargaz@freemail.hu>
21100 * mini.c (mono_create_jump_trampoline): Store the jump trampolines
21101 in a per-domain hash.
21103 * mini-amd64.c (merge_argument_class_from_type): Handle generic
21106 2004-08-29 Zoltan Varga <vargaz@freemail.hu>
21108 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
21111 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
21114 * mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
21115 Beginnings of SSE2 support.
21117 * exceptions.cs: Add more tests for checked int<->uint casts.
21119 2004-08-28 Martin Baulig <martin@ximian.com>
21121 * mini-x86.c (mono_arch_instrument_epilog): Added support for
21125 (mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
21126 Handle generic instances recursively.
21128 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
21130 * iltests.il: test for conv.u8 on a constant
21132 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
21134 * inssel-long32.brg: c&p rules for LCONV_x4 (membase) and
21135 LCONV_x4 (shrun_32 (membase)).
21137 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
21139 * inssel-x86.brg: c&p rules for push/setret of long
21141 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
21143 * inssel-x86.brg: c&p rules for compare (base, regvar) and
21144 compare (regvar, base)
21146 * inssel-x86.brg: more burg love
21148 * inssel.brg: more cleanup
21150 * inssel-x86.brg, inssel-long32.brg: burg cleanup.
21152 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
21154 * basic-long.cs, basic-calls.cs: new tests for optimization.
21156 2004-08-26 Zoltan Varga <vargaz@freemail.hu>
21158 * mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
21161 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
21163 * mini-amd64.c (read_tls_offset_from_method): Add another case.
21165 2004-08-25 Bernie Solomon <bernard@ugsolutions.com>
21167 * inssel.brg (mini_emit_memcpy): use
21168 NO_UNALIGNED_ACCESS to disable memcpy optimization
21170 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
21172 * mini-amd64.c: Handle generic types in various places.
21174 * mini.c (mono_method_to_ir): Handle generic types in init locals.
21176 2004-08-24 Zoltan Varga <vargaz@freemail.hu>
21178 * mini.c (handle_box): Fix warning.
21180 * mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.
21182 * mini-amd64.h: Enable the emit_state optimization.
21184 * mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.
21186 * mini-amd64.c: Add some new 64 bit peephole opts.
21188 * inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.
21190 * cpu-amd64.md: sreg1 of div instructions must be %rax.
21192 * mini-amd64.c: Register allocator fixes.
21194 * mini.c: Add an optimization to emit_state to avoid allocation of new
21195 registers on some platforms.
21197 2004-08-23 Zoltan Varga <vargaz@freemail.hu>
21199 * inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.
21201 * mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
21202 allocation. Fixes #63085.
21204 * basic-long.cs: Add new regression test.
21206 * mini-amd64.c: Register allocator improvements.
21208 2004-08-21 Zoltan Varga <vargaz@freemail.hu>
21210 * mini-amd64.c (read_tls_offset_from_method): Add another code
21213 * tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
21214 instruction sequence for nullifying class init trampolines.
21216 * objects.cs: Add new regalloc test.
21218 * mini-amd64.c inssel-amd64.brg: Optimize parameter passing.
21220 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
21222 * mini-amd64.c (mono_arch_call_opcode): Refactor this a little.
21224 * mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
21227 * driver.c: Fix profiling after TLS changes.
21229 * driver.c (mono_main): Set mono_stats.enabled if needed.
21231 * mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
21234 2004-08-20 Ben Maurer <bmaurer@users.sourceforge.net>
21236 * mini-x86.c: use a 1 op rather than a 2 op tls access
21237 instruction -> faster.
21239 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
21241 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
21244 2004-08-19 Bernie Solomon <bernard@ugsolutions.com>
21246 * exceptions-sparc.c (throw_exception): fix typo
21248 2004-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
21250 * mini-x86.c, cpu-pentium.md, inssel-x86.brg:
21251 set tree->dreg correctly with tls. Allow any
21252 register to be used.
21254 * mini-x86.c (read_tls_offset_from_method): add new code
21255 generation pattern seen with GCC.
21258 Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
21260 * mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
21261 exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
21262 exceptions-sparc.c: fix some performance issues in exception
21263 handling and setting of the stack trace for exceptions that were
21266 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
21268 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
21271 * mini-amd64.c (mono_arch_is_int_overflow): Handle all possible
21274 2004-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
21276 This patch inlines tls access, when possible.
21278 * mini.h: new arch functions for TLS intrinsics.
21279 All platforms updated with a stub.
21281 * mini.c: use the new intrinsics
21283 * mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
21284 arch specific intrinsic for tls variables
21286 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
21288 * Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
21291 2004-08-17 Ben Maurer <bmaurer@users.sourceforge.net>
21293 * mini.c: thread local allocation
21295 2004-08-16 Zoltan Varga <vargaz@freemail.hu>
21297 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.
21299 * Makefile.am: Link against the static version of libmonogc.
21301 * Makefile.am: Link the static versions of the convenience libraries
21302 into the mono executable.
21304 * mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.
21306 2004-08-15 Zoltan Varga <vargaz@freemail.hu>
21308 * mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
21309 on integer overflow.
21311 * mini-amd64.c: Reorganize function call code.
21313 * mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.
21315 2004-08-14 Ben Maurer <bmaurer@ximian.com>
21317 * inssel-x86.brg: use xor eax,eax.
21319 * basic.cs: new tests
21321 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
21323 * mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
21324 in exception throwing code.
21326 2004-08-14 Ben Maurer <bmaurer@ximian.com>
21328 * inssel-x86.brg: use xor esi,esi.
21330 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
21332 * driver.c (mono_main): Call mono_trace_parse_options earlier so it
21333 can trace methods compiled during mini_init () too.
21335 * cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle
21338 2004-08-14 Ben Maurer <bmaurer@ximian.com>
21340 * Makefile.am: static link on x86 (r=zoltan)
21342 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
21344 * tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
21345 code since it causes some programs to fail.
21347 2004-08-12 Zoltan Varga <vargaz@freemail.hu>
21349 * mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
21351 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
21353 * mini.c: ovfops_op_map - add STACK_OBJ case for
21355 * basic.cs: add test_0_pin_string as test
21358 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
21360 * Makefile.am: build C# if srcdir != builddir
21362 Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
21364 * dominators.c, mini.h, mini-x86.c: fix loop alignment with
21365 fall-through blocks.
21367 Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
21369 * driver.c: enable loop by default again and include abcrem in -O=all.
21371 2004-08-08 Zoltan Varga <vargaz@freemail.hu>
21373 * iltests.il: Add some localloc tests.
21375 * mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
21377 * inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
21380 * inssel-amd64.brg: Add some optimizations.
21382 * mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
21385 * Makefile.am: Statically link mono against libmono on AMD64.
21387 * mini-amd64.c inssel-amd64.brg: Optimizations.
21389 2004-08-07 Zoltan Varga <vargaz@freemail.hu>
21391 * mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.
21393 * tramp-amd64.c: Patch calling code in trampolines.
21395 2004-08-06 Zoltan Varga <vargaz@freemail.hu>
21397 * mini-amd64.c: pinvoke struct passing fixes.
21399 2004-08-05 Bernie Solomon <bernard@ugsolutions.com>
21401 * mini-sparc.c: redo change, make mono_arch_cpu_init call
21402 mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
21404 2004-08-05 Duncan Mak <duncan@ximian.com>
21406 * mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
21409 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
21411 * mini-amd64.c (emit_move_return_value): Move return value for normal
21414 2004-08-05 Martin Baulig <martin@ximian.com>
21416 * mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
21417 `type->type'; just modify `type' itself when dealing with enums
21418 and generic instances.
21419 (check_call_signature): Make `simple_type' a `MonoType *'.
21421 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
21423 * mini.c: Use OP_PADD to add offsets to addresses.
21425 * mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.
21427 2004-08-04 Bernie Solomon <bernard@ugsolutions.com>
21429 * mini-sparc.c (mono_arch_emit_epilog): fix check
21430 for folding last op into restore instruction
21432 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
21434 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
21435 helper methods using the code manager.
21437 * exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.
21439 * mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.
21441 Tue Aug 3 23:50:00 EST 2004 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
21443 * mini-s390x.c mini-s390x.h tramp-s390x.c inssel-s390x.brg
21444 cpu-s390x.md exceptions-s390x.c Makefile.am: S/390 64-bit JIT
21446 * mini-s390.c: fix tail processing
21448 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <lupus@ximian.com>
21450 * mini-ppc.c: mul.ovf.un exception name fix.
21452 2004-08-03 Martin Baulig <martin@ximian.com>
21454 * mini-x86.c (mono_arch_call_opcode): Correctly handle generic
21455 instances; before jumping to `handle_enum', also modify `ptype'.
21457 2004-08-02 Bernie Solomon <bernard@ugsolutions.com>
21459 * cpu-sparc.md: fcall maximal length too small.
21461 2004-08-02 Zoltan Varga <vargaz@freemail.hu>
21463 * mini-amd64.c mini.h: Add initial support for passing/returning
21464 structures to/from pinvoked methods.
21466 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <lupus@ximian.com>
21468 * mini-ppc.c: reg allocator fix.
21470 2004-07-31 Zoltan Varga <vargaz@freemail.hu>
21472 * mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.
21474 * inssel.brg: Optimize memset on 64 bit machines.
21476 * mini-amd64.c: Fix some vararg cases.
21478 2004-07-30 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
21480 * mini-s390.c: Corrected macro in emit_float_to_int
21482 * s390-abi.cs: Tests to exercise the s390 ABI
21484 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
21486 * exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
21489 * basic.cs: Add a test for add.ovf.un.
21491 2004-07-30 Bernie Solomon <bernard@ugsolutions.com>
21493 * mini-sparc.c: add case for OP_IDIV_UN
21495 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
21497 * mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.
21499 * mini-amd64.c cpu-amd64.md: Ongoing JIT work.
21501 2004-07-30 Ben Maurer <bmaurer@ximian.com>
21503 * basic.cs: regression tests.
21505 * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
21508 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
21510 * basic.cs: Add a new test.
21512 * mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling
21513 and AOT. Various fixes and optimizations.
21515 * inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.
21517 Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
21519 * mini-ppc.c: make sure temp regs are not used for global reg
21522 2004-07-29 Bernie Solomon <bernard@ugsolutions.com>
21524 * cpu-sparc.md: conv_i8 fix for 64bits
21526 * mini-sparc.c: add cases for OP_IXXX codes for 64bits
21528 2004-07-29 Ben Maurer <bmaurer@ximian.com>
21530 * cpu-pentium.md, mini-x86.c, inssel-x86.brg, mini-ops.h:
21531 add opcode for cmp BYTE PTR [eax], imm.
21533 * inssel.brg: Make memcpy and memset takes bases.
21535 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
21537 * *-amd64.*: More AMD64 work.
21539 2004-07-28 Ben Maurer <bmaurer@ximian.com>
21541 * cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:
21542 add a compare-not-equal opcode.
21544 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
21546 * mini.c: Use mono_init_from_assembly instead of mono_init.
21548 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
21550 * mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
21552 * mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
21554 * mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
21556 * inssel.brg: 64 bit fixes.
21558 * mini.h (MonoCallInst): Add some AMD64 specific data.
21560 * mini.h: Add some OP_P opcodes.
21562 2004-07-28 Ben Maurer <bmaurer@ximian.com>
21564 * basic.cs: tests for 61797 and 61740
21566 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
21568 * mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
21569 numbers in the debug info (spotted by Geoff Norton, <gnorton@customerdna.com>).
21571 2004-07-24 Zoltan Varga <vargaz@freemail.hu>
21573 * mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.
21575 * *-amd64*.*: Ongoing AMD64 work.
21577 2004-07-23 Zoltan Varga <vargaz@freemail.hu>
21579 * inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.
21581 * *-amd64*: Ongoing AMD64 work.
21583 * mini-arch.h: Add AMD64 support.
21585 * mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.
21587 * mini.h: Add new arch dependent function mono_arch_is_inst_imm.
21589 * mini-ops.h: Add new opcodes.
21591 * Makefile.am: Add AMD64 support.
21593 * inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
21594 rules into the inssel-long*.brg files.
21596 * *-amd64.*: Add beginnings of AMD64 backend.
21598 2004-07-22 Ben Maurer <bmaurer@ximian.com>
21600 * mini.c (print_dfn): commenting out the code that prints
21601 the cil. With -O=deadce, this makes -v -v crash.
21603 * cpu-pentium.md: make checkthis have a length of 2
21605 2004-04-21 Bernie Solomon <bernard@ugsolutions.com>
21607 * mini-sparc.h: fix implementations of __builtin
21608 functions for Sun compiler for V9.
21610 2004-07-16 Ben Maurer <bmaurer@ximain.com>
21612 * mini.c: use the new stelem.ref wrapper
21613 * exceptions.cs, arrays.cs: new stelem.ref tests
21615 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
21617 * mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
21618 new XSP should work with these changes).
21620 2004-07-14 Ben Maurer <bmaurer@ximain.com>
21622 * inssel-{long32,x86,}.brg: trivial optimizations.
21624 Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <lupus@ximian.com>
21626 * mini.c: load value when emitting box operation in
21629 2004-07-12 Ben Maurer <bmaurer@ximian.com>
21631 * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
21632 is one byte shorter than cmp DWORD PTR [eax], 0.
21634 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
21636 * inssel-ppc.brg: arguments on the stack are always
21637 relative to the stack pointer (spotted by Neale Ferguson).
21639 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21641 * exceptions-x86.c: delay appending the method name to the trace until
21642 after mono_jit_info_table_find is called, as this gets the real
21645 2004-07-09 Ben Maurer <bmaurer@ximian.com>
21647 * aot.c: register roots
21649 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
21651 * aot.c : I could just use PLATFORM_WIN32 flag.
21653 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
21655 * aot.c : Reverting the previous fix. This time it broke linux build.
21657 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
21659 * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
21661 2004-07-08 Zoltan Varga <vargaz@freemail.hu>
21663 * mini.c (handle_stack_args): Remove some more debugging code.
21665 * mini.c (handle_stack_args): Remove debug output left in by mistake.
21667 * driver.c mini.h aot.c: Allow additional options to be specified with
21668 --aot and pass them to mono_compile_assembly.
21670 * aot.c: Add experimental code to AOT compile all loaded assemblies
21671 on demand and save the code into a cache in the filesystem.
21673 * aot.c: Add support for more wrapper methods.
21675 * mini.c (handle_stack_args): Handle some corner cases. Fixes
21678 * cpu-*.md: Remove removed opcodes.
21680 * mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
21681 CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
21682 related icalls to marshal.c.
21684 2004-07-06 Zoltan Varga <vargaz@freemail.hu>
21686 * mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.
21688 * Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.
21690 * inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.
21692 2004-07-06 Ben Maurer <bmaurer@ximian.com>
21693 * liveness.c: If liveness is recomputated we need to reset the information
21694 for each variable. This way, if the liveness range has been narrowed
21695 by optimizations that happened after the last computation, we can return
21698 For example, if you have
21703 // Tons of code that does not affect i
21709 i = 0 is dead code and will be removed by SSA. However, when
21710 linear scan gets to the code, i will still appear to be live
21711 throughout the entire block. This prevents good register allocation.
21713 2004-07-06 Martin Baulig <martin@ximian.com>
21715 * debug-mini.c (mono_debug_init_method): Allow
21716 MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
21717 (mono_debug_add_icall_wrapper): New method.
21719 * mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().
21721 2004-07-05 Zoltan Varga <vargaz@freemail.hu>
21723 * mini.c (optimize_branches): Fix linking of bblocks in branch->branch
21726 2004-07-03 Zoltan Varga <vargaz@freemail.hu>
21728 * aot.c (mono_aot_load_method): Fix loading of debug info.
21730 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
21732 * aot.c: Add logging support.
21734 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
21736 * mini.h: Add prototype for mono_print_method_from_ip.
21738 * mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
21740 * inssel.brg: 64 bit fixes.
21742 * inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
21745 * Makefile.am: Add SPARC64 support.
21747 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
21749 * aot.c: Fix alignment problems on 32 bit platforms.
21751 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
21753 * helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
21756 * aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
21759 * mini.h: Bump AOT file version. Some 64 bit fixes.
21761 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
21763 * inssel-sparc.brg: Add new rule to avoid register moves.
21765 * inssel.brg: Add ldind_to_load_membase helper function.
21767 2004-06-30 Ben Maurer <bmaurer@ximian.com>
21769 * mini.c: OffsetToStringData intrinsic.
21771 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
21773 * ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.
21775 * objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
21778 * mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.
21779 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
21781 * mini.c: reinstated mono_compile_get_interface_var()
21782 on x86, too, since the change breaks the Gtk# build there as well.
21784 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
21786 * driver.c: remove loop from the default optimizations: it seems to
21787 interact badly with some of the other options (see bug #60613).
21789 2004-06-25 Zoltan Varga <vargaz@freemail.hu>
21791 * mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann
21792 (fld@informatik.uni-bremen.de): Add Solaris x86 support.
21794 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <lupus@ximian.com>
21796 * mini-ppc.c, cpu-g4.md: small updates to be able to compile
21797 vararg-using methods.
21799 2004-06-21 Martin Baulig <martin@ximian.com>
21801 * mini/mini-exceptions.c
21802 (mono_handle_exception): Added `gpointer original_ip' argument.
21803 After calling mono_unhandled_exception(), call
21804 mono_debugger_unhandled_exception() and if that returns true,
21805 restore the context and return.
21807 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <lupus@ximian.com>
21809 * mini-ppc.c: prefer the use of relative branches so
21810 they won't need to be patched in aot code (patch from Patrick Beard).
21812 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
21814 * aot.c: patch from Patrick Beard to make the output assembly
21815 more correct for the MacOSX assembler. Small tweak to
21816 generate sane images on Linux/PPC, too.
21818 Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
21820 * mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
21821 case until bug #59509 is fixed (shows up in #60332).
21823 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
21825 * mini.c: make sure the needed wrappers are compiled, too, with
21828 Mon Jun 14 18:36:08 CEST 2004 Paolo Molaro <lupus@ximian.com>
21830 * driver.c: remove NPTL reference in --version output.
21832 Sun Jun 13 17:25:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
21834 * aot.c: patch from Patrick Beard (pcbeard@mac.com) to
21835 generate valid assembly for the Mach-O assembler.
21837 Sun Jun 13 15:59:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
21839 * driver.c: don't include abcrem in the all optimization specifier
21840 since it slows down jit compilation too much for now.
21842 2004-06-12 Ben Maurer <bmaurer@users.sourceforge.net>
21844 * mini.c: use BIGMUL only if both operands have the same signage.
21845 * iltests.il: Test for bug 60056. (errors related to signage in
21850 Thu Jun 10 16:06:42 CEST 2004 Paolo Molaro <lupus@ximian.com>
21852 * mini.c, aot.c: memory leak fixes.
21854 Tue Jun 8 16:37:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
21856 * inssel-long32.brg: implemented a few missing ulong cast opcodes.
21858 Tue Jun 8 15:36:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
21860 * Makefile.am: remove the -static hack completely, it links in
21861 statically glib as well.
21863 Sat Jun 5 16:32:33 CEST 2004 Paolo Molaro <lupus@ximian.com>
21865 * iltests.il, mini.c: fixed bug#59580 in branch optimization.
21866 * exceptions.cs: make it compile with new mcs/csc.
21868 2004-06-03 Massimiliano Mantione <massi@ximian.com>
21869 * cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
21870 and added relevant test case.
21872 Mon May 31 19:41:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
21874 * mini.c revert Zoltan's fix to bug#58863 on ppc, since it causes
21875 regressions in gtk-sharp.
21877 2004-05-29 Zoltan Varga <vargaz@freemail.hu>
21879 * exceptions.cs: New regression tests.
21881 * jit-icalls.c (mono_llmult_ovf): Fix some boundary conditions.
21883 Sat May 29 10:45:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
21885 * mini.c: emit castclass/isinst in their own trees (bug #54209/59057).
21887 2004-05-28 Zoltan Varga <vargaz@freemail.hu>
21889 * mini-sparc.h (MONO_ARCH_NEED_DIV_CHECK): Define this.
21891 * cpu-sparc.md mini-sparc.c: Add overflow detection to div opcodes.
21893 2004-05-28 Patrik Torstensson <totte@hiddenpeaks.com>
21895 * mini.c (mono_jit_runtime_invoke): Init class in this
21896 method instead of trusting mono_jit_compile_method to
21897 do the work (because wrappers can be in object class)
21899 2004-05-27 Zoltan Varga <vargaz@freemail.hu>
21901 * mini-sparc.c (mono_arch_output_basic_block): Fix sub.imm.
21903 * basic-long.cs: New regression test.
21905 Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
21907 * cpu-g4.md, mini-ppc.c: fixes to long add/sub ovf opcodes
21908 and div/rem checks.
21910 Thu May 27 12:36:53 CEST 2004 Paolo Molaro <lupus@ximian.com>
21912 * Makefile.am: fix miguel's change to build mono statically against
21913 libmono (track build dependencies).
21915 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
21917 * cfold.c: Some glib versions do not have G_MININT32.
21919 2004-05-26 Massimiliano Mantione <massi@ximian.com>
21921 * mini-x86.c cpu-pentium.md Makefile.am basic-math.cs: Fixed problem
21922 with precision of tan, atan, sin and cos, and implemented related
21923 regressions tests (fixes bug 54467, but one new problem appeared and
21926 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
21928 * cfold.c (FOLD_BINOPZ): Avoid division by zero.
21930 * exceptions.cs: Add test for constant folding && division by zero.
21932 * driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
21933 since driver.c is in libmono too, so the optimization was useless.
21935 * driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
21936 variable to driver.c so the compiler can emit more efficient code to
21939 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21941 * Makefile.am: don't distribute generated inssel.[ch] files.
21943 2004-05-25 Zoltan Varga <vargaz@freemail.hu>
21945 * mini.c (mono_jit_compile_method_with_opt): Really emit icall wrappers
21946 into the default appdomain. Fixes #58707.
21948 * jit-icalls.c: Remove the broken approximation for truncl, doing
21949 no conversion is better.
21951 * mini.c (handle_stack_args): Avoid reusing variables for stack slots.
21954 Tue May 25 14:33:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
21956 * mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
21957 of the mcrxr instruction which is not available on some processors
21958 even if it's documented to be. Implement add and sub overflow correctly
21959 (still not complete for long unsigned). Speed up icalls a bit.
21961 2004-05-25 13:01 CET Patrik Torstenson <totte@hiddenpeaks.com>
21963 * mini.c (mono_jit_compile_method_with_opt): Make sure that
21964 we run .cctor in the current domain instead of target_domain.
21966 Fixes bug #58558, .cctor not being called in -O=shared.
21968 Tue May 25 12:46:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
21970 * mini-ppc.h, jit-icalls.c: added explicit checks for divide by zero.
21972 2004-05-24 Ben Maurer <bmaurer@users.sourceforge.net>
21974 * mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
21975 which can be done with an imm8, do it that way.
21976 (mono_arch_output_basic_block): ditto for a jmp
21977 (mono_arch_emit_prolog): Computate maximum offset of a label.
21979 2004-05-24 18:18 CET Patrik Torstenson <totte@hiddenpeaks.com>
21981 * mini-x86.c (mono_arch_local_regalloc): the reg allocator
21982 now tries to allocate prefered physical reg's for virtual
21983 regs. This reduces the number of emited spills/loads with
21984 20-30% on our core assemblies.
21986 Mon May 24 18:21:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
21988 * jit-icalls.c: truncl() is not needed and trunc() is
21989 the correct thing to do anyway (bug #58287).
21991 2004-05-24 Zoltan Varga <vargaz@freemail.hu>
21993 * mini-sparc.c (mono_arch_flush_icache): Call sync_instruction_memory
21996 Mon May 24 12:49:45 CEST 2004 Paolo Molaro <lupus@ximian.com>
21998 * driver.c: enable loop optimizations by default.
22000 Mon May 24 11:13:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
22002 * mini-x86.c: fix calc of max loop size when aligning loops start.
22004 2004-05-23 Zoltan Varga <vargaz@freemail.hu>
22006 * ssa.c (mono_ssa_cprop): Allocate carray dynamically instead of on
22009 2004-05-22 Zoltan Varga <vargaz@freemail.hu>
22011 * mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
22014 * basic-long.cs: Add tests for add/subtract of immediates with carry.
22016 * mini.c exceptions-x86.c: Remove MONO_USE_EXC_TABLES stuff.
22018 * mini.c (inline_method): Allways inline some wrappers even if the cost
22019 is too large. Fixes #58785.
22021 * mini.c: Add support for MARSHAL_CONV_FTN_DEL.
22023 2004-05-21 Zoltan Varga <vargaz@freemail.hu>
22025 * mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
22026 (crichton@gimp.org). Beginning of support for sparc/linux.
22028 * mini-sparc.c: Optimize retrieval of LMF address.
22030 Fri May 21 08:00:12 EDT 2004 Paolo Molaro <lupus@ximian.com>
22032 * exceptions-ppc.c: handle alloca in methods with clauses.
22034 Fri May 21 07:35:30 EDT 2004 Paolo Molaro <lupus@ximian.com>
22036 * mini-ppc.c: cleanups, off-by-one fixes, avoid recursive thunks.
22038 2004-05-20 Lluis Sanchez Gual <lluis@ximian.com>
22040 * mini.c: Delegate most of the abort signal work to
22041 mono_thread_request_interruption, which also handles Stop and Suspend
22044 2004-05-20 Zoltan Varga <vargaz@freemail.hu>
22046 * mini.c mini.h: Allow inlining of icall wrappers if the backend
22047 supports the save/restore lmf opcodes.
22049 2004-05-19 Zoltan Varga <vargaz@freemail.hu>
22051 * mini-x86.c (mono_arch_setup_jit_tls_data): Handle code generated
22052 by gcc-3.4 as well.
22054 * mini-x86.h mini-x86.c tramp-x86.c: Optimize lmf restoring code.
22056 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
22058 * mini.h mini.c (mini_method_compile): Only run abc removal pass on
22059 methods which contain array accesses.
22061 * mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
22062 boundaries. Fixes #58537.
22064 * iltests.il: Add regression test for #58537.
22066 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
22068 * mini-x86.c (mono_arch_local_regalloc): Last part of
22069 fix for bug #58633 (releasing register to early).
22071 2004-05-18 Miguel de Icaza <miguel@ximian.com>
22073 * basic-long.cs: Add new regression test.
22075 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
22077 * mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
22078 register too early on the chain.
22080 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
22082 * mini.c (create_helper_signature): Use a helper function to reduce
22083 the code which needs to be written. Also set the calling convention of
22084 icalls on windows. Fixes #57840.
22086 Tue May 18 11:05:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
22088 * mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
22089 exceptions-ppc.c: added helper function to get the instruction address
22090 from a signal handler context.
22092 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
22094 * helpers.c: use g_get_tmp_dir. Invokes happyness
22097 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
22099 * helpers.c: Add new env variable to pass args to objdump.
22100 Specifically for those of us who love -Mintel. r=miguel, gonzalo.
22102 2004-05-17 Radek Doulik <rodo@ximian.com>
22104 * Makefile.am (common_sources): added abcremoval.h so it get
22105 disted and daily mono packages on go-mono.com will build again
22107 2004-05-17 Massimiliano Mantione <massi@ximian.com>
22109 * abcremoval.c: Fixed coding style, added copyright header.
22111 * abcremoval.h: Fixed style and moved prototype to mini.h, added copyright header.
22113 * mini.h: Added prototype for abc removal main function.
22115 * build_relations_propagation_table.pl: Added copyright header.
22117 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
22119 * basic-long.cs: reg test for complex ceq_long bug.
22121 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
22123 * mini-x86.c (mono_arch_local_regalloc): Correctly free
22124 reg in long and clob case (bug #58343). Fixed/added comments.
22126 2004-05-14 Ben Maurer <bmaurer@users.sourceforge.net>
22128 * mini.c (mono_jit_runtime_invoke): Follow new convention
22129 of calling the invoke method with an function pointer.
22131 2004-05-14 Zoltan Varga <vargaz@freemail.hu>
22133 * ChangeLog: Fix author of memory leak patch.
22135 Fri May 14 15:13:06 CEST 2004 Paolo Molaro <lupus@ximian.com>
22137 * Makefile.am: fix make dist as well...
22140 2004-05-14 Massimiliano Mantione <massi@ximian.com>
22142 * cfold.c: Made so that conversions from pointer to int4 are no-ops
22143 on archs where pointers are 4 bytes long.
22145 * Makefile.am: Added abcremoval.c source file.
22147 * abcremoval.c: Added abcremoval.c.
22149 * abcremoval.h: Added abcremoval.h.
22151 * build_relations_propagation_table.pl: Added build_relations_propagation_table.pl.
22153 * inssel.brg: Enabled bounds check removal.
22155 * mini.c: Added support for abcrem optimization.
22157 * mini.h: Added abcrem optimization label.
22159 * driver.c: Added support for abcrem optimization.
22161 * propagated_relations_table.def: Added propagated_relations_table.def.
22163 Fri May 14 14:30:13 CEST 2004 Paolo Molaro <lupus@ximian.com>
22165 * mini.c, cfold.c: fix style.
22167 Fri May 14 14:28:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
22169 * mini.c: handle issue with the low-level implementation of
22170 some long opcodes (bug #54209).
22172 2004-05-13 Ben Maurer <bmaurer@users.sourceforge.net>
22174 * basic.cs: test for my new cmov stuff.
22176 2004-05-13 Patrik Torstensson
22178 * mini-x86.c: added OP_X86_COMPARE_MEMBASE_IMM peephole
22179 opt and added peephole documentation.
22181 Thu May 13 11:41:49 CEST 2004 Paolo Molaro <lupus@ximian.com>
22183 * tramp-ppc.c: rewrote the generic trampoline code.
22185 2004-05-11 Patrik Torstensson
22187 * mini-x86.c: optimize long shl/shr asm code (one less branch)
22189 2004-05-11 Zoltan Varga <vargaz@freemail.hu>
22191 * basic.cs basic-long.cs objects.cs: Make these compile under MS csc.
22193 * mini.h mini.c dominators.c: Applied patch from Derek Woo
22194 (derek@eecg.toronto.edu): Fix memory leaks in loop optimizations.
22196 * mini.c: Add new icalls for AsAny marshalling.
22198 Tue May 11 16:00:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
22200 * tramp-ppc.c, mini-ppc.c: more cleanups.
22202 2004-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22204 * mini.c: no warnings.
22206 Tue May 11 13:59:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
22208 * mini-ppc.c, mini.c: use mono_resolve_patch_target ().
22210 2004-05-11 Lluis Sanchez Gual <lluis@ximian.com>
22212 * mini.c: In the thread abort signal handler, if the thread is in the
22213 process of being stoped, don't throw the Abort exception, just stop the
22216 Tue May 11 12:15:24 CEST 2004 Paolo Molaro <lupus@ximian.com>
22218 * tramp-ppc.c: removed old code.
22220 Tue May 11 12:02:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
22222 * mini.h, mini-ppc.c, cfold.c: export mono_is_power_of_two().
22223 do some simple speed optimizations on ppc.
22225 Mon May 10 17:21:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
22227 * mini-ppc.c, cpu-g4.md: fixes to handle large stack frames
22228 and large offsets in load/store.
22230 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
22232 * mini-x86.c (mono_arch_local_regalloc): Remove the previous fix, since
22233 it causes regressions.
22235 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
22237 * mini-sparc.c: Fix vararg support + add beginnings of sigaltstack
22240 Fri May 7 13:25:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
22242 * jit-icalls.c: remove warnings.
22243 * inssel-x86.brg, inssel.brg, mini-x86.c, cfold.c: some simple
22244 speedups for unsafe code.
22246 2004-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
22248 * inssel.brg: Optimize Stind.[ui][12]. r=zoltan.
22250 2004-05-06 Zoltan Varga <vargaz@freemail.hu>
22252 * basic-calls.cs: Add new regression test.
22254 * mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
22257 * mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
22259 * mini-x86.c (mono_arch_local_regalloc): Free new_dest register when it
22262 2004-05-06 Patrik Torstensson
22264 * mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
22265 long reg allocation in any reg (not only eax:edx) and implemented
22266 long shl/shr ops in asm instead of helpers.
22268 2004-05-05 Zoltan Varga <vargaz@freemail.hu>
22270 * mini-sparc.h: Fix warnings.
22272 * exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
22275 * mini-exceptions.c (mono_handle_exception): Call the filter in a
22276 separate statement for clarity.
22278 * mini-sparc.c: Update status.
22280 2004-05-04 Zoltan Varga <vargaz@freemail.hu>
22282 * mini-exceptions.c (ves_icall_get_frame_info): Flush register windows
22285 Mon May 3 22:58:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
22287 * inssel-ppc.brg: another small pre-release workaround:
22288 we don't do overflow detection for long_sub_un.
22290 Sun May 2 20:12:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
22292 * mini.c, mini-ops, inssel-long32.brg: speedup ulong >> 32
22293 (also works around a weird ppc bug: 57957).
22295 Sat May 1 16:56:10 EDT 2004 Paolo Molaro <lupus@ximian.com>
22297 * tramp-ppc.c: trampoline fixes.
22299 Fri Apr 30 15:54:26 EDT 2004 Paolo Molaro <lupus@ximian.com>
22301 * mini-ppc.c: fixed typos.
22303 Thu Apr 29 20:15:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
22305 * mini-ppc.c, exceptions-ppc.c: more code saves registers
22306 at the top of the stack. Fixed typos. Use a frame registers
22307 for all the methods with exception clauses.
22309 Thu Apr 29 18:52:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
22311 * exceptions-ppc.c: restore fp registers.
22313 Thu Apr 29 18:26:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
22315 * mini-ppc.c, exceptions-ppc.c: save the registers in reverse
22316 order from the stack top (moved the stack room to save the
22317 return value for trace after the param area). Fixed corruption
22318 in restoring registers on unwind.
22320 Thu Apr 29 16:47:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
22322 * mini-ppc.c, cpu-g4.md: fixed unisgned -> double conversion.
22324 Thu Apr 29 13:50:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
22326 * exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
22327 and prolog/epilog for methods that use it. Allow
22328 enough param area room for varargs methods. Fix miguel's
22329 breakage in exception handling.
22331 Thu Apr 29 12:06:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
22333 * Makefile.am: run genmdesc only on current arch.
22335 2004-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22337 * exceptions-x86.c:
22338 * mini-x86.h: fix the build on windows.
22340 2004-04-28 Zoltan Varga <vargaz@freemail.hu>
22342 * 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.
22344 * exceptions-sparc.c exceptions-ppc.c exceptions-s390.c mini-ppc.h mini-s390.h mini-sparc.h: Fix up ports after changes.
22346 * mini-exceptions.c: New file.
22348 * mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
22349 Move some parts of the x86 exception handling code to an
22350 arch-independent file so it can be shared with other ports.
22352 Tue Apr 27 12:15:59 CEST 2004 Paolo Molaro <lupus@ximian.com>
22354 * trace.c, cpu-g4.md, inssel-ppc.brg, mini-ppc.c: some fixes for FP code.
22356 2004-04-26 David Waite <mass@akuma.org>
22358 * driver.c: remove comma from end of enumeration declaration
22360 2004-04-26 Jackson Harper <jackson@ximian.com>
22362 * driver.c: parse config file before loading first assembly. This
22363 allows the user gac to be enabled/disabled.
22365 2004-04-23 Miguel de Icaza <miguel@ximian.com>
22367 * mini-ppc.c (ppc_patch): Replaced the branch code patching with a
22368 simpler mechanism: we do not care what is encoded initially
22369 (branch absolute or relative), we care about the code and its
22370 target. I kept the old code for reference for now.
22372 The new code tries first to determine if the jump is anywhere in
22373 the -/+32 absolute meg range, if it succeeds, it encodes using the
22374 absolute branch; If not, it tried to find something in the
22375 relative range, if not, it uses the handle_thunk code.
22377 Fri Apr 23 14:20:40 EDT 2004 Paolo Molaro <lupus@ximian.com>
22379 * exceptions-ppc.c: use the correct ip register on macosx.
22381 Thu Apr 22 13:23:16 EDT 2004 Paolo Molaro <lupus@ximian.com>
22383 * exceptions.c, mini.c, mini-ppc.h: adapt code to macosx.
22385 Thu Apr 22 18:08:37 CEST 2004 Paolo Molaro <lupus@ximian.com>
22387 * mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
22388 Raise exception on integer divide by zero by hand since the hw
22389 doesn't support it. Handle NaNs in FP compares.
22391 Thu Apr 22 16:10:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
22393 * exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
22394 code reducing duplication between the platforms and enabled
22395 signal exception handling (on linux for now).
22397 Wed Apr 21 12:27:48 EDT 2004 Paolo Molaro <lupus@ximian.com>
22399 * exceptions-ppc.c: more macosx support.
22401 Wed Apr 21 16:38:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
22403 * mini-ppc.h, mini-ppc.c, cpu-g4.md: enable bigmul optimization.
22405 Wed Apr 21 16:20:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
22407 * mini.h, mini-ppc.c, cpu-g4.md: support for implicit exceptions.
22409 2004-04-19 Ben Maurer <bmaurer@users.sourceforge.net>
22411 * iltests.il: more tests.
22413 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
22415 * mini-*.c (mono_arch_get_allocatable_int_vars): Skip written-only
22418 Mon Apr 19 19:39:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
22420 * mini-ppc.c: some fixes to bootstrap mcs/corlib/etc.
22422 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
22424 * liveness.c: Mark variables as volatile in all basic blocks reachable
22425 from exception clauses.
22427 2004-04-18 Zoltan Varga <vargaz@freemail.hu>
22429 * exceptions.cs (test_0_rethow_stacktrace): Make this work with
22432 2004-04-18 Ben Maurer <bmaurer@users.sourceforge.net>
22434 * iltests.il, basic.cs: more tests for regalloc.
22436 2004-04-17 Ben Maurer <bmaurer@users.sourceforge.net>
22438 * iltests.il: Some tests for register allocation modifications
22441 2004-04-16 Zoltan Varga <vargaz@freemail.hu>
22443 * exceptions.cs: Add regression test for bug #56782.
22445 * exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
22446 original stack trace if an exception is rethrown. Fixes #56782. Oh,
22447 the beauty of fixing the same thing in 5 different files...
22449 2004-04-15 Zoltan Varga <vargaz@freemail.hu>
22451 * mini.c (mono_method_to_ir): Do not compute coverage for inlined
22454 2004-04-14 Zoltan Varga <vargaz@freemail.hu>
22456 * mini.c: Add support for STRWLPARRAY marshalling convention.
22458 Wed Apr 14 18:15:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
22460 * exceptions-ppc.c: missing fixes in mono_jit_walk_stack (need
22461 to init the context to setup the regs pointer).
22463 Wed Apr 14 17:59:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
22465 * exceptions-ppc.c: more exceptions work.
22467 Wed Apr 14 17:46:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
22469 * mini.c: avoid reusing the same MonoInst on multiple trees: this is
22472 2004-04-13 Miguel de Icaza <miguel@ximian.com>
22474 * inssel-x86.brg (reg): Add new rules for add, sub and mul that
22475 can use the memory directly.
22477 * cpu-pentium.md: Update documentation from a post from Zoltan.
22479 add x86_add_membase, x86_sub_membase, x86_mul_membase
22481 2004-04-13 Miguel de Icaza <miguel@ximian.com>
22483 * mini-ppc.c: Remove unused definitions FLOAT_REGS and
22484 GENERAL_REGS they were also hardcoded for all PPC ports.
22486 (add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
22488 Remove hard-coded limit for floating point registers, use
22489 PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
22491 Notice that in MacOS X calling conventions you can fit a lot more
22492 floating point values in registers, so I should update the PInvoke
22493 test to excercise the passing of floating point values on the
22494 stack (currently broken).
22496 2004-04-06 Miguel de Icaza <miguel@ximian.com>
22498 * tramp-ppc.c (create_trampoline_code): Added
22499 JUMP_TRAMPOLINE_SIZE.
22500 (ppc_magic_trampoline): Follow the pattern from
22501 x86_magic_trampoline: if code is set to zero, return.
22502 (create_trampoline_code): Always pass MonoMethod to the jump
22503 trampoline, before it was passing a null.
22504 (mono_arch_create_jump_trampoline): Implement the jump stub, could
22505 share the code with mono_arch_create_jit_trampoline.
22507 * mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
22509 (mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
22512 * cpu-g4.md: Added length for jmp instruction, the worst case
22513 scenario is 92 bytes (4 mandatory bytes, potential 19 registers
22516 2004-04-08 Zoltan Varga <vargaz@freemail.hu>
22518 * aot.c (mono_compile_assembly): Add back unlink removed by mistake.
22520 2004-04-07 Zoltan Varga <vargaz@freemail.hu>
22522 * mini.c: Only set bblock->real_offset when adding a new bblock, and
22523 before each IL instruction.
22525 * mini.c (CEE_BOX): Fix warnings.
22527 2004-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22529 * mini.c: removed a few unused vars and extra whitespace.
22531 2004-04-05 Ben Maurer <bmaurer@users.sourceforge.net>
22533 * inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
22535 (MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
22537 (OP_GETCHR): use the above
22538 (CEE_LDELEMA): use the above.
22540 * inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
22541 version of the generic impl.
22542 (MONO_EMIT_BOUNDS_CHECK_IMM): the same
22543 (CEE_LDELEMA): use the above.
22545 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
22547 * inssel-long32.brg (CEE_CONV_OVF_I8): Sign extend the i4 value to i8.
22550 * iltests.il: Added new regression test for #56317.
22552 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
22554 * mini-x86.c (mono_arch_setup_jit_tls_data): Use pthread_attr_get_np
22555 under NetBSD. Fixes #56450.
22557 * liveness.c (update_gen_kill_set): Fix previous patch.
22559 2004-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22561 * mini-x86.h: SA_STACK defined as SA_ONSTACK. Fixed build under NetBSD.
22563 2004-04-02 Zoltan Varga <vargaz@freemail.hu>
22565 * mini.c (mono_method_to_ir): Avoid handle_loaded_temps in
22566 ldsfld and ldsflda.
22568 * inssel-sparc.brg: Add more optimizations.
22570 * mini-sparc.c: Replace multiply/divide with shifts if possible.
22572 2004-04-01 Martin Baulig <martin@ximian.com>
22574 * mini.c (handle_box): New static function; moved the
22575 implementation of CEE_BOX here.
22576 (mono_method_to_ir): Added `constrained_call' variable.
22577 (mono_method_to_ir:CEE_CONSTRAINED_): Set it.
22578 (mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
22579 mono_method_get_constrained() to get the method.
22581 2004-04-01 Martin Baulig <martin@ximian.com>
22583 * mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
22584 (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
22585 (mono_method_to_ir): We don't need these macros anymore since
22586 mono_class_get_full() already takes care of it.
22588 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22590 * aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
22591 use @function (as doesn't accept #function here) and check the return
22592 value of system and stop if fails.
22594 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22596 * mini.c: set the timeout to 2s when calling mono_domain_finalize.
22598 2004-03-31 Zoltan Varga <vargaz@freemail.hu>
22600 * mini-ppc.c (mono_arch_patch_code): Fix ppc build.
22602 * inssel-sparc.brg mini-sparc.c aot.c: Implement AOT support.
22604 * inssel-long32.brg (OP_LNEG): Use ADC instead of ADD here. Fixes
22607 * basic-long.cs: Add test for negation of Int64.MinValue.
22609 2004-03-30 Zoltan Varga <vargaz@freemail.hu>
22611 * mini-sparc.c: Update status.
22613 * mini-sparc.c tramp-sparc.c: Save lmf in trampolines.
22615 * exceptions-sparc.c: Fix return value in filters.
22617 * inssel-sparc.brg: Fix register allocation in some rules.
22619 2004-03-28 Martin Baulig <martin@ximian.com>
22621 * mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
22624 2004-03-28 Zoltan Varga <vargaz@freemail.hu>
22626 * mini-x86.c (mono_arch_patch_code): Fix warnings.
22628 * mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
22629 dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
22630 remove unused conv_u4 opcode.
22632 * mini-x86.c: Remove valgrind workaround since it slows down things
22633 even when mono is not run under valgrind.
22635 2004-03-26 Zoltan Varga <vargaz@freemail.hu>
22637 * mini-sparc.c: Update status.
22639 * inssel-sparc.brg: Add some optimizations.
22641 * inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
22642 future delay slot filling. Add support for varargs, tail calls and JMP.
22644 * inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
22645 CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
22647 * inssel.brg: Fix register allocation in OP_ARGLIST.
22649 * inssel.brg: Fix warnings.
22651 2004-03-25 Martin Baulig <martin@ximian.com>
22653 * mini.c (inflate_generic_field): Removed.
22654 (mini_get_method): Removed, use mono_get_method_full(),
22655 (mini_get_class): Removed, use mono_class_get_full().
22656 (mono_method_to_ir): Pass our generic context to
22657 mono_field_from_token().
22659 2004-03-25 Martin Baulig <martin@ximian.com>
22661 * mini.c (mini_get_class): Take a `MonoGenericContext *' instead
22662 of a `MonoMethod *'.
22663 (mini_get_method): Take a `MonoGenericContext *' instead
22664 of a `MonoMethod *'.
22665 (TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
22666 a new local variable called `generic_context' which holds the
22667 current `MonoGenericContext *'; use it to lookup things.
22669 2004-03-24 Martin Baulig <martin@ximian.com>
22671 * mini.c (mini_get_class): New static method; if we're inside a
22672 generic instance, inflate the class if neccessary.
22673 (mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
22675 2004-03-24 Zoltan Varga <vargaz@freemail.hu>
22677 * iltests.il: New regression test for #55976.
22679 * mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
22682 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
22684 * exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
22687 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
22689 * liveness.c: Consider SSA stores as well as loads when making vars
22692 * exceptions.cs: New regression tests for register allocation.
22694 2004-03-22 Lluis Sanchez Gual <lluis@ximian.com>
22696 * mini-ppc.c, tramp-ppc.c: Added lock for accessing the domain code manager.
22697 * mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
22698 domain lock only to protect puntual access to data structures.
22699 Added access lock for sighash, jit_icall_hash_name,
22700 jit_icall_hash_addr and domain->code_mp.
22702 2004-03-20 Zoltan Varga <vargaz@freemail.hu>
22704 * driver.c: Print SIGSEGV handling method.
22706 * mini-x86.c (mono_arch_free_jit_tls_data): Add missing ifdef.
22708 * mini.c (setup_jit_tls_data): Handle case when this is called
22709 multiple times for a thread.
22711 * mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
22712 is different from fbxx_un. Fixes #54303. Also use constants instead of
22713 magic numbers in a lot of places.
22715 2004-03-19 Zoltan Varga <vargaz@freemail.hu>
22717 * exceptions.cs: Fix cctor test when --regression is used.
22719 Thu Mar 18 19:57:56 CET 2004 Paolo Molaro <lupus@ximian.com>
22721 * mini-ppc.c, exceptions-ppc.c: basic exceptions support
22724 Thu Mar 18 19:56:19 CET 2004 Paolo Molaro <lupus@ximian.com>
22726 * inssel-ppc.brg: fixed register assignments for some rules.
22728 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
22730 * exceptions.cs: Add test for exceptions in static constructors.
22732 * mini.c (mono_jit_compile_method_with_out): Move the calling of
22733 static constructors outside the domain lock. Fixes #55720.
22735 2004-03-17 Martin Baulig <martin@ximian.com>
22737 * mini.c (get_generic_field_inst): Removed, this'll never happen.
22738 (inflate_generic_field): Take the `MonoMethod *' instead of the
22739 `MonoClass *' and added support for generic method.
22740 (mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
22741 have a `field->parent->gen_params', only inflate the field if it's
22742 an open constructed type.
22744 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
22746 * exceptions-x86.c (mono_arch_handle_exception): Allocate a new
22747 exception object instead of the preconstructed ones.
22749 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22751 * mini.c: reverted changed to sigsegv_signal_handler commited
22752 accidentally in the previous patch.
22754 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22757 (mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
22758 running --aot with an old assembly.
22760 2004-03-16 Zoltan Varga <vargaz@freemail.hu>
22762 * mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
22765 * mini-sparc.c: Add support for v9 branches with prediction.
22767 2004-03-15 Bernie Solomon <bernard@ugsolutions.com>
22769 * mini.c (mini_init): #warning is GNUC only
22771 * mini-sparc.h: implement __builtin_frame_address
22772 and __builtin_return_address for Sun C compiler
22774 2004-03-15 Zoltan Varga <vargaz@freemail.hu>
22776 * exceptions-sparc.c (mono_arch_has_unwind_info): Add missing function.
22778 2004-03-14 Zoltan Varga <vargaz@freemail.hu>
22780 * basic-calls.cs: Add test for unaligned byref long argument passing.
22782 * mini-ops.h: Add sparcv9 compare and branch instructions.
22784 * inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
22785 v9 instructions if we have a v9 cpu.
22787 * mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
22788 registers for global allocation.
22790 * exceptions-sparc.c: Fixes.
22792 2004-03-11 Zoltan Varga <vargaz@freemail.hu>
22794 * liveness.c (mono_analyze_liveness): Optimized version.
22796 * inssel-sparc.brg cpu-sparc.md: Ongoing sparc work.
22798 * mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Ongoing
22801 * basic-float.cs basic-calls.cs: New regression tests.
22803 2004-03-10 Zoltan Varga <vargaz@freemail.hu>
22805 * mini-x86.h: Define SIGSEGV_ON_ALTSTACK only if we have a working
22806 sigaltstack implementation.
22808 * mini-x86.c (mono_arch_setup_jit_tls_data): Fix previous patch.
22810 * mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
22811 stuff if SIGSEGV_ON_ALTSTACK is not defined.
22813 2004-03-09 Zoltan Varga <vargaz@freemail.hu>
22815 * mini.c: Fix warnings.
22817 * mini.c (mono_resolve_patch_target): New function which contains the
22818 arch independent part of the patching process.
22820 * mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
22821 patching code to a separate function.
22823 2004-03-09 Bernie Solomon <bernard@ugsolutions.com>
22825 * mini.c (add_signal_handler): ifdef out on Windows
22827 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
22829 * mini-sparc.h mini-sparc.c inssel-sparc.brg exceptions-sparc.c
22830 cpu-sparc.md: Add exception handling support + other fixes.
22832 * driver.c: Print --help output to stdout. Fixes #55261. Also fix
22833 typed GC detection in --version.
22835 * basic.cs exceptions.cs: New regression tests.
22837 * mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
22838 the arch specific code can store data during a compilation.
22840 * mini-ops.h: Add OP_SETFRET.
22842 * mini.c (mini_get_ldelema_ins): Instead of allways calling the same
22843 function, register a separate icall for each arity, so the icalls can
22846 * mini.c (mono_print_tree): Print negative offsets in a more readable
22849 * mini.c: Make signal handling work on sparc.
22851 * mini.c (mini_init): Add emulation for lconv_to_r8_un.
22853 * inssel-long32.brg: Fix OP_LSUB_OVF_UN rule.
22855 * jit-icalls.c: Emulate truncl by aintl on solaris.
22857 * jit-icalls.c (mono_lconv_to_r8_un): New icall emulation function.
22859 2004-03-05 Zoltan Varga <vargaz@freemail.hu>
22861 * mini.c (mini_init): fconv_to_ovf can raise exceptions.
22863 2004-03-04 Lluis Sanchez Gual <lluis@ximian.com>
22865 * mini.c: In CEE_ISINST and CEE_CASTCLASS, if the type is an interface or
22866 a MarshalByRef type, inline a method that performs the check, taking into
22867 account that the object can be a proxy. Also implemented tow new opcodes:
22868 CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
22869 * inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
22870 OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
22872 Tue Mar 2 17:23:48 CET 2004 Paolo Molaro <lupus@ximian.com>
22874 * mini-ppc.c: if a relative branch displacement is too big
22875 but it points to and area reachable with an absolute branch,
22878 Tue Mar 2 16:59:40 CET 2004 Paolo Molaro <lupus@ximian.com>
22880 * mini.c: optimize small copies in cpblk.
22882 2004-03-01 Zoltan Varga <vargaz@freemail.hu>
22884 * basic-calls.cs basic-float.cs: New regression tests.
22886 * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
22887 negative offsets from %fp. Implement localloc. Fix local register
22888 allocation. Fix the case when the this argument needs to be saved to
22889 the stack. Implement some missing opcodes.
22891 2004-02-26 Zoltan Varga <vargaz@freemail.hu>
22893 * mini.c (mini_method_compile): Reenable global regalloc in methods
22894 with exception handlers.
22896 * linear-scan.c (mono_varlist_sort): Fix warning.
22898 * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
22900 * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
22903 * liveness.c: Make all variables uses in exception clauses volatile, to
22904 prevent them from being allocated to registers. Fixes #42136.
22906 2004-02-25 Zoltan Varga <vargaz@freemail.hu>
22908 * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
22909 causes regressions.
22911 * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
22912 argument to mono_arch_regalloc_cost.
22914 * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs
22917 2004-02-24 Zoltan Varga <vargaz@freemail.hu>
22919 * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
22920 Make the cost of allocating a variable to a register arch dependent.
22922 * basic-calls.cs: Fix compilation of tests.
22924 * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
22925 helper function to cut back on the number of #ifdefs needed.
22927 * mini-ppc.c: Fix compilation.
22929 * basic-calls.cs: New regression tests.
22931 * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
22933 * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
22934 of l0 since that is callee saved.
22936 * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
22939 * mini-sparc.c: Ongoing work + flag virtual calls with a special kind
22940 of delay instruction.
22942 * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
22944 * mini.h (MonoCallInst): Add 'virtual' flag.
22946 * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
22948 2004-02-23 Zoltan Varga <vargaz@freemail.hu>
22950 * *.cs: New regression tests.
22952 * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc
22955 * mini.c (mono_runtime_install_handlers): Fix build.
22957 * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
22958 'signal_stack_size' members.
22960 * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an
22961 alternate signal stack.
22963 * exceptions-x86.c: Add stack overflow handling.
22965 * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing
22966 functions to arch independent code.
22968 * mini.c (mono_print_tree): Print more detailed info for load_membase
22971 2004-02-23 Martin Baulig <martin@ximian.com>
22973 * mini.c (mini_get_method): Set `gmethod->generic_inst'.
22975 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
22977 * mini-x86.c: fixed reg allocation for div/rem.
22979 2004-02-22 Miguel de Icaza <miguel@ximian.com>
22981 * driver.c (mono_main): Report some configuratio options on --version.
22983 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
22985 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
22986 low in the address space. Correctly flush memory in thunks where we
22987 output native code.
22989 2004-02-20 Martin Baulig <martin@ximian.com>
22991 * mini.c (mini_get_method): New static method; inflate all generic
22992 methods and methods in open generic instances.
22993 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
22994 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
22996 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
22998 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
23000 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
23002 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
23004 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
23006 * mini-sparc.c (flushi mono_arch_output_basic_block): make
23007 it compile using Sun's compiler.
23009 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
23011 * 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.
23013 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
23015 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
23017 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
23019 * mini-ppc.c: handle calls outside of the allowed range with thunks
23020 allocated using the code manager.
23021 * tramp-ppc.c: use the code manager to hold generated native code.
23022 Fixed the magic trampoline to just patch vtable entries.
23024 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
23026 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
23029 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
23031 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
23034 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
23035 if we have a working __thread implementation.
23037 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
23038 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
23040 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
23042 * mini-x86.c: Fix compilation under gcc 2.
23044 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
23046 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
23047 contains a call to the wrapped function.
23049 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
23050 OP_<CALL>_IMM opcodes, and use them under X86.
23052 * mini.c (mono_jit_find_compiled_method): Fix warning.
23054 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
23056 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
23058 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
23059 functionality to mini.c.
23061 * mini.c (mono_create_jump_trampoline): New function to create a jump
23062 trampoline. Return a compiled method instead of a trampoline if it
23063 exists. Add a cache for jump trampolines.
23065 * mini.c (mono_jit_find_compiled_method): New function to return a
23066 compiled method if it exists.
23068 * mini-x86.c: Call mono_create_jump_trampoline instead of
23069 mono_arch_create_jit_trampoline.
23071 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
23072 a jump trampoline. Fixes #52092.
23074 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
23076 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
23077 which is not up-to-date. Add check_corlib_version () instead.
23079 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
23082 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
23083 since newer valgrind versions do not need it.
23085 * mini.c (mono_jit_compile_method_with_opt): New helper function to
23086 compile a method with a given set of optimizations.
23088 * mini.c: Compile icall wrappers on-demand instead of at startup.
23090 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
23091 wrapper for an icall.
23093 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
23095 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
23098 * iltests.il: Add test for non-empty stack before switch instruction.
23100 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
23102 * mini.c: Add support for new stringbuilder marshalling conventions.
23104 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
23106 2004-02-01 Martin Baulig <martin@ximian.com>
23108 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
23109 in `ginst->mtype_argv'.
23111 2004-01-31 Miguel de Icaza <miguel@ximian.com>
23113 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
23114 facilitate grepping.
23116 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
23118 * mini.c: fixed buglet in initobj generic implementation for references.
23120 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
23122 * Makefile.am: make the version script conditional.
23123 * jit-icalls.c: handle missing truncl().
23125 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
23127 * exceptions.cs: Add more tests for double->int conversion.
23129 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
23130 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
23132 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
23134 * driver.c: make --verbose --version emit an error
23135 if the loaded corlib doesn't match the runtime version.
23137 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
23139 * mini-ppc.h: export ppc_patch().
23140 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
23141 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
23142 on par or better than on MacOSX.
23144 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
23146 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
23147 mono_lookup_pinvoke_call.
23149 * mini-x86.c: Under windows, the default pinvoke calling convention is
23150 stdcall. Fixes #52834.
23152 * mini.c (optimize_branches): Add an upper bound to the number of
23153 iterations to prevent infinite loops on strange loops. Fixes #53003.
23155 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
23157 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
23158 and ISINST. Fixes #52093.
23160 * objects.cs (test_0_vector_array_cast): New tests.
23162 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
23164 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
23165 checking in Array.Set ().
23167 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
23170 * object.cs (test_0_multi_array_cast): New regression test.
23172 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
23174 * exceptions-ppc.c: fix build on Linux/PPC.
23176 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
23178 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
23179 running under valgrind.
23180 (x86_magic_trampoline): Fix build bustage.
23182 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
23183 negative values as well. This is needed for the encoding of the line number
23184 info, since sometimes the line numbers are not in increasing order.
23186 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
23188 * cpu-pentium.md (localloc): Increase the size of the localloc
23189 instruction since it is a loop under Win32.
23191 * debug-mini.c (record_line_number): Get rid of unneccesary memory
23194 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
23196 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
23197 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
23198 Max Horn (max@quendi.de). Fix file names in comments.
23200 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
23202 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
23203 avoid stack overflow.
23204 (replace_usage): Avoid uninitialized variable warnings.
23206 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
23207 and taking the address of valuetype variables.
23209 2004-01-03 Patrik Torstensson
23211 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
23212 for other purposes than FP later on.
23214 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
23216 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
23219 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
23221 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
23223 2003-12-30 Patrik Torstensson <p@rxc.se>
23225 * mini-x86.h: Decreased number of availiable fp regs.
23226 Solves corner cases with FP spilling.
23228 2003-12-23 Patrik Torstensson <p@rxc.se>
23230 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
23231 for floating point stack tracking / spilling on x86.
23234 * basic-float.cs: added float mul overflow test.
23236 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
23238 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
23240 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
23242 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
23243 supports for cond branches that overflow the immediate
23244 overflow offset. mcs can compile simple programs.
23246 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
23248 * exceptions-ppc.c: exception handling support wip:
23249 finally handlers get run on exception.
23251 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
23253 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
23256 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
23258 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
23259 initial support for stack walking and unwinding.
23261 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
23263 * driver.c (mono_main): Make corlib-out-of-sync message more
23264 descriptive. Also remove verify_corlib call.
23266 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
23268 * mini.c: make CEE_NEWARR calls and other emulated opcodes
23269 not overlap with other call's arguments, too.
23271 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
23273 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
23274 move to arch-specific code the choice of arch-specific
23275 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
23276 * mini.c: ensure emulation calls will not interleave
23279 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
23281 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
23282 the magic trampoline stack frame is dropped before executing
23285 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
23287 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
23288 and integer to fp conversions. Added support for overflowing
23289 arguments on the stack. Reserve a couple more registers as temps.
23290 Added support for aot compilation (as output still needs to be
23293 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
23295 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
23296 Don't overwrite return register in some corner cases.
23298 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
23300 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
23301 static constructors when AOT compiling.
23303 * driver.c (mono_main): Call mono_check_corlib_version.
23305 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
23307 * cpu-g4.md, basic.cs: fixed div target register.
23309 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
23311 * mini-ppc.c, basic.cs: shl_imm fix with test.
23313 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
23315 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
23316 structures by value. Misc fixes.
23317 * objects.cs: more tests.
23319 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
23321 * mini-ppc.c: lconv.ovf.i implemented.
23323 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23326 (mini_init): don't error out if someone already called g_thread_init.
23328 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
23330 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
23331 to be any type per the spec. Fix abnormal memory usage when
23332 the same object is repeatedly thrown.
23334 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
23336 * mini.c: check for overruns in IL code.
23338 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
23340 * TODO: Add/remove some todo entries.
23342 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
23344 * driver.c (mono_main): Call mono_verify_corlib.
23346 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
23348 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
23349 This has been moved to mini.c
23350 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
23351 type being casted is marshalbyref it could be a proxy, so instead of
23352 emitting the type check code, emit a call to a runtime method that will
23353 perform the check by calling CanCastTo if needed.
23355 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
23357 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
23358 methods with large stack frames under Win32.
23360 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
23362 * Makefile.am: Distribute regression tests.
23364 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
23365 at the end instead of inserting each variable into the sorted list.
23367 * linear-scan.c (mono_varlist_sort): New helper function.
23369 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
23371 * mini.c: ensure arguments and locals are within bounds.
23373 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
23375 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
23378 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
23380 * mini.c (mono_cprop_copy_values): Fix crash.
23382 * aot.c: Set verbosity back to 0.
23384 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
23386 * regalloc.c: complete memory leak fix by Laurent Morichetti
23389 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
23391 * driver.c (main_thread_handler): Revert the previous patch.
23393 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
23396 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
23397 memory from the memory pool.
23399 * driver.c (main_thread_handler): Turn on all optimizations when
23402 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
23403 an array for better performance.
23405 * regalloc.c (mono_regstate_assign): Fix memory leak.
23407 * debug-mini.c (mono_debug_serialize_debug_info): New function to
23408 serialize the debug info.
23410 * debug-mini.c (mono_debug_add_aot_method): New function to load the
23411 debug info from the serialized representation.
23413 * aot.c: Save debug info into the generated file and load it when
23416 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
23418 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
23420 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
23421 More FP-related fixes.
23423 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
23425 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
23426 and register allocation buglet. Hello world now runs.
23428 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
23430 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
23431 * tramp-ppc.c: fixed class init trampoline.
23432 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
23434 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
23436 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
23437 mini.c: more ppc changes/fixes.
23439 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
23441 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
23442 Also optimize the case when the arguments are the same in the caller
23445 * iltests.il: Add tests for tail calls with valuetype arguments.
23447 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
23449 * mini-ppc.c: fixes for struct return type.
23451 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
23453 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
23454 mono_spillvar_offset() to arch-specific code.
23456 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
23458 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
23460 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
23462 * exceptions-x86.c: Fix stack space leaks.
23464 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
23465 registers from the lmf if the method has save_lmf set.
23467 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
23469 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
23470 of icall wrappers into InvokeInDomain, since these are now per-domain.
23472 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
23474 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
23475 make some opcode emulation and intrinsic ops enabled/disabled
23476 according to the architecture. More fixes.
23478 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
23480 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
23482 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
23484 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
23485 arch-specific handling for 'this' and struct return type to
23486 arch-specific code.
23488 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23490 * aot.c: prevent divide by zero error when reporting (it happened with
23491 Accessibility.dll).
23493 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
23495 * mini.h (inst_switch): Remove unused macro.
23497 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23500 (load_aot_module): free 'info->methods' and 'info' properly. No more
23501 "free(): invalid pointer blah" messages when you have an old aot
23504 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
23506 * jit-icalls.c, mini.c: Added support for context static fields.
23508 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
23510 * mini.c (mono_method_blittable): Methods which set LastError are not
23511 blittable either. Fixes #51108.
23513 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
23515 * mini.c: flush icache.
23516 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
23518 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
23520 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
23522 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
23524 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
23527 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
23530 * inssel.brg (CEE_MKREFANY): Fix AOT case.
23532 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
23534 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
23535 instruction when the result is discarded.
23537 * iltests.il (test_0_div_regalloc): New regression test.
23539 * arrays.cs: Fix compilation error.
23541 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
23543 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
23544 float rules to inssel-x86.brg: sane architectures with FP registers
23545 don't need to implement these rules.
23547 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
23549 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
23551 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
23553 * mini.h, inssel-long32.brg: fixed endianess issues in int64
23554 implementation of 32 bit systems.
23556 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
23558 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
23559 (Jeroen Zwartepoorte).
23561 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
23563 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
23564 the caller and the callee matches.
23566 * mini.c (mono_method_to_ir): Add comment.
23568 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
23569 signbit is missing on some platforms.
23571 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
23573 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
23575 * mini.c (setup_jit_tls_data): Call the new function.
23577 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
23579 * mini-x86.c: Add experimental support for fast access to the lmf
23580 structure under NPTL/Linux 2.6.x.
23582 2003-11-06 Martin Baulig <martin@ximian.com>
23584 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
23585 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
23588 2003-11-02 Martin Baulig <martin@ximian.com>
23590 * mini.c (inflate_generic_field): New static method.
23591 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
23592 generic instance and the field is declared in a generic type, call
23593 inflate_generic_field() to inflate it. Fixes gen-28.cs.
23595 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
23597 * mini.h mini.c (mono_method_same_domain): New function to return
23598 whenever the caller and the callee are in the same domain.
23600 * tramp-x86.c (x86_magic_trampoline): Use the new function.
23602 2003-10-30 Martin Baulig <martin@ximian.com>
23604 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
23605 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
23607 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
23608 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
23610 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
23612 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
23615 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
23616 object here, so it is in the correct appdomain etc.
23618 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
23620 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
23622 (mono_method_to_ir): Avoid freeing the type created returned from
23623 mono_type_create_from_typespec, since it is put into an internal cache
23624 by the function. Fixes pointer.exe.
23626 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
23627 trampolines for icalls and pinvokes as well. Fixes #33569.
23629 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
23631 * mini.c: Update after appdomain changes.
23633 * mini.c (mono_jit_compile_method_inner): Allways compile native
23634 method wrappers in the root domain, since there can only be one
23635 instance of them, whose address is stored in method->info.
23637 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
23639 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
23640 environment variable. Instead detect automatically whenever running
23641 under valgrind using the magic macro RUNNING_ON_VALGRIND from
23644 2003-10-16 Miguel de Icaza <miguel@ximian.com>
23646 * trace.c, trace.h: New files that implement the new trace option
23649 * driver.c: Document new --trace options.
23651 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
23654 - if (mono_jit_trace_calls)
23655 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
23657 * mini.h: prototypes.
23659 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
23661 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
23663 * mini.c inssel.brg: Implement typedefbyref opcodes.
23665 * mini.c (mono_jit_compile_method): Remove unused local variable.
23667 * mini.c (mono_jit_compile_method_inner): Ditto.
23669 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
23671 * tramp-x86.c (x86_class_init_trampoline): Fix build.
23673 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
23675 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
23677 * mini.c (mono_no_aot): Remove unused global variable.
23679 * mini.c: Thread safety fixes.
23681 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
23683 * mini.c (mono_create_class_init_trampoline): Add a lock around
23684 class_init_hash_addr.
23686 * arrays.cs (test_0_newarr_emulation): Add new regression test for
23689 * mini.c: Decompose the NEWARR instruction before decomposing its
23690 arguments. Fixes #30073.
23692 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
23694 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
23697 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
23699 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
23701 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
23703 * driver.c: Add support for compiling icall wrappers to --compile.
23705 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
23707 * inssel.brg: The empty value in class->interface_offsets is -1, not
23710 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
23712 * objects.cs: New test for 'is' operator on an array of interfaces.
23714 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
23716 * tramp-ppc.c: update trampoline code to support jumps
23717 and class initialization.
23719 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
23721 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
23723 * inssel.brg (OP_UNBOXCAST): Fix #46027.
23725 * inssel.brg (OP_UNBOX): Remove unused rule.
23727 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
23728 region instead of one for each method. Fixes #47813.
23730 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
23732 * exceptions.cs (test_0_nested_finally): New regression test for
23733 nested exception handlers.
23735 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
23737 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
23739 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
23742 * mini.c (mono_method_check_inlining): Make the inlining limit
23743 configurable by an environment variable.
23745 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
23747 * mini.h: Bump AOT file version.
23749 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
23750 token, store the image along with the token, since the token might not
23751 refer to the same image as the method containing the relocation,
23752 because of inlining.
23754 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
23756 * mini.c (mono_precompile_assemblies): New function to compile
23757 all methods in all loaded assemblies.
23759 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
23761 * regalloc.h regalloc.c (MonoRegState): Change the type of
23762 iassign and fassign to int*, since they can contain large negative
23763 values if the register is spilled. Also added some comments. Fixes
23766 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
23767 under Win32. Fixes #42964.
23769 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
23771 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
23773 * aot.c: Added support for AOT compiling methods which contain calls
23774 to wrappers. Currently, only remoting-invoke-with-check wrappers are
23777 * driver.c (compile_all_methods): Run the compilation in a thread
23778 managed by mono. Fixes #44023.
23780 * mini.c (mono_codegen): Print full method name in verbose output.
23782 * mini-x86.c (mono_arch_patch_code): Fix warning.
23784 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
23785 jumps, since the method we are jumping to might be domain-specific.
23787 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
23789 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
23791 * inssel.brg: string chars are unsigned.
23793 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
23795 * TODO: New todo item.
23797 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
23798 which calls mono_runtime_class_init and patches the call site to
23799 avoid further calls.
23800 (mono_arch_create_class_init_trampoline): New arch specific function
23801 to create a class init trampoline.
23802 (create_trampoline_code): Generalized so it can create
23803 class init trampolines as well.
23805 * mini.c (helper_sig_class_init_trampoline): New helper variable.
23806 (mono_create_class_init_trampoline): New function to create and cache
23807 class init trampolines.
23808 (mono_find_class_init_trampoline_by_addr): New function to lookup the
23809 vtable given the address of a class init trampoline. Used by the
23811 (mono_codegen): Generate a call to a trampoline instead of
23812 mono_runtime_class_init in LDSFLD[A].
23813 (mono_codegen): Add relocations for the new trampoline.
23815 * mini.h mini-x86.c aot.c: Added a new relocation type:
23816 MONO_PATCH_INFO_CLASS_INIT.
23818 * mini.h: Bump AOT version number.
23820 * aot.c: Create a copy of the loaded code instead of using the original
23821 so methods which call each other will be close in memory, improving
23824 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
23825 patch since it breaks the regression tests.
23827 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
23828 for the register saving instruction sequence since the
23829 frame_state_for function in glibc 2.3.2 don't seem to detect it.
23831 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
23833 * TODO: Fix todo item && remove another.
23835 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
23837 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
23840 * aot.c: Moved the check for MONO_LASTAOT into the initialization
23841 function of the module.
23843 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
23844 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
23845 --no-aot command line option.
23847 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
23849 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
23850 by Bernie Solomon (bernard@ugsolutions.com).
23852 * inssel.brg: Refactor the interface offset table related code into
23853 its separate functions and add support for the AOT case.
23855 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
23857 * aot.c (mono_aot_get_method_inner): Fix memory leak.
23859 * aot.c: Added mono_aot_verbose variable and made all debugging
23860 output depend on the value of this variable.
23862 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
23863 method_label and info_label.
23865 * mini.h mini-x86.c aot.c: Added a new relocation type
23866 MONO_PATCH_INFO_IID for klass->interface_id.
23868 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
23869 the MonoJitInfo structure.
23871 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
23872 a non-root appdomain in shared mode.
23874 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
23876 * aot.c: make aot loader less verbose. Remove free of unused variable.
23878 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
23880 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
23882 * .cvsignore: Added *.dll.
23884 * mini.c (mono_print_tree_nl): New function callable while debugging.
23886 * mini.c (mono_print_code): Export this.
23888 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
23891 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
23893 * mini.h (MonoCompile): Added 'jit_info' field.
23895 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
23896 the cfg structure, since it is needed by the AOT compiler.
23898 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
23900 * aot.c: A major rewrite. Changes include:
23901 - save exception tables for methods which have them.
23902 - cache failed lookups in aot_get_method () to avoid the (slow) calls
23903 to g_module_symbol.
23904 - reworked the file format so it is now much smaller and needs
23905 fewer relocation entries.
23907 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
23909 * aot.c (load_aot_module): Fix build bustage on platforms without
23912 2003-09-04 Martin Baulig <martin@ximian.com>
23914 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
23916 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
23918 * TODO: Some new optimization ideas.
23920 * aot.c: Move AOT module loading logic here from mono_assembly_open.
23922 * aot.c: Save the optimization flags used to compile the code into
23925 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
23926 support emitting domain specific code.
23928 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
23929 no longer domain neutral. It can be made domain neutral by compiling
23930 with --optimize=shared.
23932 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
23933 between appdomains.
23935 * driver.c mini.h mini.c: New --no-aot debugging option which disables
23936 loading of AOT code.
23938 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
23940 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
23941 if there is no domain neutrality information.
23943 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
23945 * aot.c (mono_compile_assembly): Emit a symbol containing the file
23946 format version into the generated library.
23948 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
23949 callee method into the caller since one of them could be shared.
23951 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
23952 system exceptions from AOT code now works.
23954 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
23955 method if it is domain neutral and the callee is not.
23957 * graph.c (cfg_emit_one_loop_level): Fix warning.
23959 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
23961 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
23964 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
23966 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
23967 is needed by code which is executed before mono_runtime_init ().
23968 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
23970 * mini.c (mono_thread_abort): Fix warning.
23971 (mono_jit_compile_method): Call static constructor in the AOT case too.
23973 * aot.c (mono_compile_assembly): Fix warning.
23975 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23977 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
23979 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
23981 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
23983 * cpu-pentium.md: Fix the length of call opcodes so they include the
23984 ESP restoring instruction. Fixes #47968.
23986 2003-08-28 Martin Baulig <martin@ximian.com>
23988 * mini-x86.c (mono_arch_call_opcode): Added support for
23989 MONO_TYPE_GENERICINST.
23991 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
23993 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
23995 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
23996 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
23998 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
24001 2003-08-26 Martin Baulig <martin@ximian.com>
24003 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
24004 when reporting an error, set this to the actual error location.
24005 (mono_method_to_ir): Report the correct error location if
24006 get_basic_blocks() returned an error.
24008 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
24010 * mini.c (mono_type_blittable): OBJECT is not blittable.
24011 (mono_method_blittable): Methods which have marshalling descriptors
24012 are not blittable either. Fixes #47842.
24014 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
24016 * driver.c mini.c: Use an environment variable instead of a global
24017 variable. Also fix the build.
24019 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
24020 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
24023 * driver.c mini.c: Added --with-valgrind option to turn off some
24024 code which prevents mono from running under valgrind.
24026 * mini.c (mono_emit_call_args): Fixed warning.
24028 * mini.c (mono_emulate_opcode): Fixed warning.
24030 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
24032 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
24033 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
24034 regalloc.c, regalloc.h: specify available registers in arch-specific
24035 code and support floats in the regallocator (patch by Laurent Morichetti
24038 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
24040 * mini.c: mono_thread_current() can be called only after
24041 mono_runtime_init(): rearrange code to not call it early on.
24043 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
24045 * mini.c: allocate jump tables in the code mempools.
24047 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
24049 * mini.c, mini.h: make sure per-thread data allocated by the jit is
24052 2003-08-10 Miguel de Icaza <miguel@ximian.com>
24054 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
24055 12 to 16. This fixes bug #47453.
24058 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
24060 * mini-ppc.c: fixed indexed load and unsigned compares.
24062 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
24064 * mini.c: reenabled installation of handler for
24065 thread abort signal.
24067 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
24069 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
24070 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
24071 until it's fixed and actually useful.
24073 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
24075 * inssel-long32.brg: couple more opcodes implemented.
24077 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
24079 * mini-sparc.c: Even more opcodes implemeted.
24081 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
24083 * mini-sparc.c: More opcodes implemented.
24085 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
24087 * mini-sparc.c: More opcodes implemented.
24089 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
24091 * inssel-sparc.brg: Add some needed rules. Direct
24093 * Makefile.am: Use inssel-sparc.brg
24094 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
24095 an assert happy for now.
24097 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
24099 * mini-sparc.c: Fixed compile errors.
24100 * exceptions-sparc.c: Same. We now produce a mono binary
24101 on sparc-linux. Yea.
24103 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
24105 * mini-sparc.c: Renamed registers. Also some macro cleanups.
24106 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
24107 They compile, but do not work.
24109 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
24111 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
24112 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
24113 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
24116 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
24118 * mini.c: more opcodes implemented and better support for generics.
24120 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
24122 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
24123 * mini.c, mini.h: first cut at generics support: some new instructions
24124 added and changed the behaviour of some of the existing ones.
24126 2003-07-21 Miguel de Icaza <miguel@ximian.com>
24128 * mini.c: Removed definition of metadata_shared mutex here.
24130 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
24132 * mini-x86.c: make vararg calls work for instance methods.
24134 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
24136 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
24137 returns the arguments in a separte list, now.
24139 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
24141 * aot.c, mini.c: updates for array type representation changes.
24143 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
24145 * mini.c: register function to perform jit shutdown.
24147 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
24149 * mini.c: use a faster allocator if possible.
24151 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
24153 * aot.c: some cleanups and portability changes.
24155 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
24157 * mini.c: use faster allocation for CEE_BOX if possible.
24159 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
24161 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
24162 Moved inlined mempcy code to its own function so that is can be
24163 reused. Added an inline memset function as well (optimized initobj).
24164 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
24166 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
24168 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
24170 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
24172 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
24173 arch code can setup the cpu for CLR execution, if needed.
24174 We use it on x86 to set the precision of FP operations.
24176 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
24178 * mini.c: disable some optimizations if we can guess they'll cost too
24179 much for a given method.
24181 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
24183 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
24185 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
24186 * mini.h mini.c mini-x86.c: Added instruction level coverage
24187 info collection support.
24189 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
24191 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
24192 is now implemented in the profiling API. Get rid of a couple of
24193 unnecessary global variables.
24195 2003-06-15 Nick Drochak <ndrochak@gol.com>
24197 * basic-long.cs: tests for negative values for bigmul, and unsigned.
24198 * cpu-g4.md: add op_bigmul and op_bigmul_un
24199 * cpu_pentium.md: add op_bigmul_un
24200 * inssel-long32.brg: add rule for unsigned bigmul
24201 * mini-ops.h: define OP_BIGMUL_UN
24202 * mini-x86.c: THE BUG: handle (un)signed properly
24203 * mini.c: choose unsigned opcode if needed.
24204 This set of patches fixes bug #44291
24206 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
24208 * mini.c (optimize_branches): improved to handle all kinds of
24209 conditional branches.
24211 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
24213 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
24214 don't raise exceptions.
24216 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
24218 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
24219 to arch-specific files.
24221 2003-06-09 Martin Baulig <martin@ximian.com>
24223 * Makefile.am (libs): Added $(LIBGC_LIBS).
24225 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
24227 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
24228 and OP_ATAN (fixes bug#44293).
24230 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
24232 * Makefile.am, mini-x86.c: rename cpu description array to
24233 pentium_desc, since some compilers define the 'pentium' preprocessor
24236 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
24238 * mini.c (mini_select_instructions): add explicit branch if the
24239 following block is not the false target of a conditional branch -
24240 we need this with any optimization that reorder or remove bblocks
24242 * mini.c (optimize_branches): bug fixes
24244 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
24246 * mini.c (mono_method_to_ir): inline static readonly fields
24248 * ssa.c (fold_tree): start cfold support for long (very simple
24251 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
24253 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
24255 * inssel.brg: fixed memcpy (bug #44219).
24257 2003-06-05 Dick Porter <dick@ximian.com>
24259 * driver.c: Set the glib log levels to not abort if g_message
24262 g_set_prgname() has to happen before mini_init() so that the
24263 process handle gets the info.
24265 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
24267 * driver.c: add intrins to the default optimizations to get wider
24270 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
24272 * mini.h: some large basic blocks will overflow a 16-bit
24273 integers for symbolic registers.
24275 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
24277 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
24278 (mono_arch_output_basic_block): fix bug 43499
24280 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
24282 * mini.c: kill duplicated definition of mono_debug_format.
24284 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
24286 * mini-x86.c, arrays.cs: fixed register allocation bug.
24288 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
24290 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
24292 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
24294 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24297 (print_method_from_ip): also print source location information if
24300 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
24302 * mini.c (mono_find_block_region): bug fix in region code
24303 (mini_method_compile): enable removing unreachable code again, but
24304 only in methods without exception clauses.
24306 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
24308 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
24309 Implemented arglist opcode and handling of TypedReference type.
24310 Fixed x86 call convention when a structure is returned.
24311 Minimal support for calling static vararg methods.
24313 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
24315 * mini.c (mini_method_compile): always remove unreachable code,
24316 because the code in them may be inconsistent (access to dead
24317 variables for example).
24319 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
24321 * driver.c, debug-mini.c: warning fixes.
24323 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
24325 * Makefile.am, jit.h, mini.h: install header for embedding mono.
24327 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
24329 * mini.c: thread-static fields are registered in mono_class_vtable(),
24330 so ensure the function is called before checking for them.
24332 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
24334 * mini.c (optimize_branches): fix for bug 43586
24336 * jit-icalls.c (mono_llmult_ovf): added an additional check for
24337 overflow (fixes Bug #43639)
24339 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
24341 * mini.c, objects.cs: allow the use of stobj for primitive types.
24343 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
24345 * mini.c: be less strict about argument checking until we support
24346 running the verifier.
24348 2003-05-27 Nick Drochak <ndrochak@gol.com>
24350 * basic-long.cs: tests for (ulong)int * (ulong)int also
24351 * mini.c: use the same trick for (ulong)int * (ulong)int
24353 2003-05-27 Nick Drochak <ndrochak@gol.com>
24355 * basic-long.cs: add regression test for (long)int * (long)int
24356 * cpu-pentium.md: add op_bigmul specification
24357 * inssel-long32.brg: add OP_BIGMUL rule
24358 * mini-ops.h: add OP_BIGMUL
24359 * mini-x86.c: register allocator: handle case where src1 needs to be
24361 * mini.c: substitute special BIGMUL opcode in the tree for
24362 (long)int * (long)int
24364 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
24366 * jit-icalls.c: call the type ctor on field access if needed.
24368 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
24370 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
24371 to a method (including results of ldelema, bug#43207).
24373 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
24375 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
24376 colors to show exception handler blocks.
24378 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
24379 (fix for pinvoke7.cs).
24381 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
24383 * mini.h, mini.c: ensure correct initialization order for types that
24384 require it. Prepare for lazy compilation of jit icall wrappers.
24385 Provide a name for opcode emulation to reduce unneeded mallocing.
24387 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
24389 * mini-x86.c: better register restoring code and profiling
24390 support for tail calls.
24392 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
24394 * mini.h, driver.c: prepare for leaf methods optimization.
24396 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
24398 * mini.c: get targets of branches before converting a method.
24400 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
24402 * mini.c (optimize_branches): added some experimental code (disbaled)
24404 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
24406 * mini.c (optimize_branches): fix branch to branch optimization
24408 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
24410 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
24412 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
24414 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
24417 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
24419 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
24420 enable use of interface variables again.
24422 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
24423 I1 to registers because there is no simply way to sign extend 8bit
24424 quantities in caller saved registers on x86.
24426 * inssel-float.brg: set costs of some rules to 2 so
24427 that monobure always select the arch. specific ones if supplied,
24428 regardless of the order we pass the files to monoburg.
24430 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
24432 * mini.c, mini-x86.c: since the magic trampoline for jumps
24433 can't patch the code directly, we do it as soon as the
24434 method gets compiled.
24436 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
24438 * mini-x86.c, mini.h: introduce a new patching method
24439 to support CEE_JMP and tail calls.
24440 * mini.c: obey tail.call. Don't precompile methods target
24442 * tramp-x86.c: new trampoline code to handle methods
24443 reached through a jump.
24445 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
24447 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
24448 bit values to registers
24450 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
24452 * mini.c (mono_compile_get_interface_var): share interface
24453 variables if possible.
24455 2003-05-16 Martin Baulig <martin@ximian.com>
24457 * debug-mini.c (mono_init_debugger): New function to initialize
24458 the debugger. This is not in the debugger since it needs to
24459 access some of mini's internals.
24461 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
24463 * mini.c (mono_method_to_ir): inlining fixes/cleanups
24465 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
24467 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
24468 for value type handling.
24470 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
24472 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
24473 (mono_method_check_inlining): enable inlining of all kinds of wrappers
24475 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
24477 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
24478 the constructor through a proxy.
24480 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
24482 * jit-icalls.c, inssel.brg: fixes to array element address
24485 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
24487 * mini-x86.c (is_regsize_var): allocate pointer to registers
24489 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
24491 * driver.c: fixed typo, added intrins to the set of optimizations
24492 tested with regressions.
24494 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
24496 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
24497 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
24500 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
24502 * inssel.brg: remove some common pop instructions without side effects
24504 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
24506 * inssel-x86.brg: fixed thinko in int to double conversions.
24508 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
24510 * mini.c, jit-icalls.c: added runtime thread-static variable support.
24512 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
24514 * inssel-long32.brg: two more missing instructions.
24516 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
24518 * mini.c (mono_emit_call_args): set the cil_code for all arguments
24519 if not already set.
24521 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
24523 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
24526 * basic-float.cs: Added tests for negative zero.
24528 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
24530 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
24531 a couple of missing operations for long casts, with test cases.
24533 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24535 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
24537 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
24539 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
24540 code size estimation.
24542 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
24544 * mini.c (mono_jit_create_remoting_trampoline): make it work with
24545 abstract methods (fix bug 42542)
24547 * aot.c: add ability to handle array types
24549 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
24551 * mini.c: Call the _specific versions of the object allocation
24552 functions if possible.
24554 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
24556 * driver.c: call setlocale ().
24558 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
24560 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
24563 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
24565 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
24567 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
24568 wrappers (fix bug 42122)
24570 2003-05-04 Martin Baulig <martin@ximian.com>
24572 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
24574 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
24575 s/mini_set_defaults/mono_set_defaults/g.
24577 2003-05-04 Martin Baulig <martin@ximian.com>
24579 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
24581 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
24583 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
24584 (reported by Don Roberts).
24586 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
24588 * mini.c: temporarily work around two bugs for this release.
24590 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
24592 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
24593 that contains -export-dynamic and it makes using the ld script
24595 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
24597 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
24599 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
24602 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
24604 * mini.c: make sure leave calls all the needed finally blocks,
24605 even when the target jumps out of multiple exception clauses.
24607 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
24609 * ldscript, Makefile.am: add linker script to reduce the number of
24610 exported symbols (should also fix the issues with libwine defining
24611 some of the same symbols in io-layer).
24613 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
24615 * driver.c (mini_main): Avoid assertion when no file name is given on
24618 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
24620 * driver.c: added --version/-V command line option.
24621 Added the inline optimization in the regression tests.
24623 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
24625 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
24626 to the type in the method signature (fixes bug#42134).
24628 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
24630 * mini.c: when inlining, check this is not null only when needed (bug #42135).
24632 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
24634 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
24636 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24638 * driver.c: fixed bug #42100.
24640 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
24642 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
24644 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
24646 * mini.c: moved most of the code required to do inlining to its own
24647 function so it can be reused. Inline also ctors if appropriate.
24649 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
24651 * Makefile.am: Link with -export-dynamic so shared libs loaded by
24652 the runtime can call mono API functions.
24654 2003-04-27 Martin Baulig <martin@ximian.com>
24656 * debug-mini.c (mono_debug_init_method): Added
24657 `guint32 breakpoint_id' argument; if the method has a breakpoint,
24658 send a notification to the debugger.
24660 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
24661 running in the Mono Debugger, just pass the breakpoint number to
24662 mono_debug_init_method().
24664 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
24666 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
24668 * mini.c: allow some more unsafe compares.
24670 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
24672 * mini-x86.c, Makefile.am: make distcheck works (partially from
24673 a patch by Richard Lee <r.h.lee@attbi.com>).
24674 * regset.c, regset.h: removed, they are unused.
24676 2003-04-25 Dick Porter <dick@ximian.com>
24678 * driver.c: Usage reports the name as 'mono' not 'mini'
24679 * exceptions-x86.c: Build and run on freebsd
24681 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
24683 * Makefile.am: install the program with the 'mono' name and
24684 the library as libmono instead of mini and libmini.
24686 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
24688 * driver.c: provide the APIs for the embedding interface of the old jit.
24690 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
24692 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
24694 2003-04-23 Martin Baulig <martin@ximian.com>
24696 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
24698 * driver.c: Added `--debug' command line argument to enable
24701 2003-04-23 Martin Baulig <martin@ximian.com>
24703 * debug.[ch]: Removed. The code is now in
24704 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
24706 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
24709 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
24711 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
24713 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
24716 (mini_cleanup): moved mono_runtime_cleanup call after the call to
24717 mono_domain_finalize.
24718 (mini_method_compile): use mono_method_profile* if the the option is
24721 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
24723 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
24724 methods with their wrapper.
24726 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
24727 methods with their wrapper.
24729 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
24732 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
24735 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
24738 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
24740 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
24742 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
24744 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
24745 of the mempool. This is slightly faster and uses less memory
24747 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
24749 * mini.c: avoid O(n) allocation for variables.
24751 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
24753 * mini.c: handle items on the stack after inlining methods.
24755 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
24757 * mini.c: make the method->opcode optimization dependent
24758 on MONO_OPT_INSTRINS and do it lazily.
24760 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
24762 * driver.c: print overall results at the end of regression run.
24764 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
24766 * inssel.brg: don't overwrite symbolic registers.
24768 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
24770 * inssel-x86.brg: fix conversion from long to float.
24772 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
24774 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
24776 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
24778 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
24780 * driver.c: Added --print-vtable option as in the old JIT.
24782 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
24784 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
24786 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
24788 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
24790 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
24792 * mini.c regalloc.c regalloc.h: Fix memory leak.
24794 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
24796 * aot.c (mono_aot_get_method): register all used strings
24798 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
24800 * mini.c: always intern strings references with ldstr at compile time.
24802 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
24804 * Makefile.am: add BUILT_SOURCES.
24806 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
24808 * driver.c: give a better error message when the assembly to execute
24809 doesn't have an entry point.
24811 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
24813 * Makefile.am: added hack for automake
24815 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
24818 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
24820 22003-04-07 Martin Baulig <martin@ximian.com>
24822 * Makefile.am: Added Makefile.am.
24824 * debugger-main.c: Removed, this is now in the debugger where it
24827 * mini.pc.in: Call this package `mini' for the moment.