1 2008-10-25 Martin Baulig <martin@ximian.com>
3 * debug-mini.c (write_variable): Use
4 `MONO_DEBUG_VAR_ADDRESS_MODE_DEAD' for dead variables.
6 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
8 * cpu-x86.md: Add unsigned variants of packd and packw.
12 * mini-x86.h: Emit the right instruction for packd and packw.
13 Add unsigned variants of packd and packw.
15 * simd-intrinsics.c: Packd and packw were used in place of their
16 unsigned variants. Change that.
17 Add intrinsics for (Signed)PackWithSignedSaturation.
19 * simd-methods.h: Add (Signed)PackWithSignedSaturation.
21 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
23 * simd-intrinsics.c (vector4i_intrinsics): New table of intrinsic type.
25 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
27 * mini-ops.h: Remove dword packed add/sub with saturation ops.
29 * cpu-x86.md: Remove dword packed add/sub with saturation ops.
31 * simd-intrinsics.c (vector4ui_intrinsics): Remove methods without
34 * simd-intrinsics.c (vector8s_intrinsics): Fix ordering.
36 2008-10-24 Mark Probst <mark.probst@gmail.com>
38 * method-to-ir.c, mini.c: Special casing for the synchronized
39 wrapper for the ldtoken+GetTypeFromHandle case.
41 2008-10-24 Zoltan Varga <vargaz@gmail.com>
43 * mini.c (mono_replace_ins): Move this to branch-opts.c.
45 * mini.c (mono_replace_ins): Propagate has_array_access flag to the newly
46 created/split bblocks.
48 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
50 * mini-ops.h: Add packed signed mul high.
54 * mini-x86.c (mono_arch_output_basic_block): Same.
56 * simd-methods.h: Add PackWithUnsignedSaturation and ShiftRightLogic.
58 * simd-intrinsics.c (vector8s_intrinsics): New table of intrinsic type.
60 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
62 * basic-simd.cs: Tests for Vector16sb.
64 2008-10-24 Zoltan Varga <vargaz@gmail.com>
66 * inssel.brg (stmt): Fix OP_HARD_NOP rule.
68 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
70 * mini-ops.h: Add packed signed min, max and compare greater.
74 * mini-x86.c (mono_arch_output_basic_block): Same. Add packed add/sub with
77 * simd-methods.h: Add CompareGreaterThan.
79 * simd-methods.h: Remove CompareEquals.
81 * simd-intrinsics.c: Add new TODO entry and some cosmetic changes.
83 * simd-intrinsics.c (vector16sb_intrinsics): New table of intrinsic type.
85 * simd-intrinsics.c (vector4f_intrinsics): Rename CompareEquals to
88 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
90 * basic-simd.cs: Fix tests due to change in the API.
92 2008-10-21 Zoltan Varga <vargaz@gmail.com>
94 * mini.c method-to-ir.c: Use mono_field_get_name () for accessing field->name.
96 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
98 * basic-simd.cs: Fix name change in Vector4f::CompareEqual.
100 * simd-intrinsics.c (simd_intrinsic_emit_store_aligned): Don't use
101 inst_offset as this has invalid values for LDADDR.
103 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
105 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
107 * simd-intrinsics.c (vector4ui_intrinsics): Add SignedPackWithUnsignedSaturation.
109 2008-10-21 Zoltan Varga <vargaz@gmail.com>
111 * method-to-ir.c (initialize_array_data): Use mono_field_get_data ()
112 for accessing field->data.
114 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
116 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
118 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
120 * simd-methods.h: Add SignedPackWithUnsignedSaturation.
122 * simd-intrinsics.c (vector8us_intrinsics): Add SignedPackWithUnsignedSaturation.
124 2008-10-21 Zoltan Varga <vargaz@gmail.com>
126 * dominators.c (mono_compute_natural_loops): Allocate GList enties
127 from the cfg mempool.
129 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
131 * basic-simd.cs: Tests for new methods in Vector8us.
133 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
135 * mini-ops.h: Add multiply and store high.
139 * mini-x86.c (mono_arch_output_basic_block): Same.
141 * simd-methods.h: Same.
143 * simd-intrinsics.c (vector8us_intrinsics): Add MultiplyStoreHigh
146 2008-10-19 Zoltan Varga <vargaz@gmail.com>
148 * method-to-ir.c (mono_emit_method_call_full): Remove a needless call to
149 mono_class_setup_vtable ().
151 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Use
152 mono_class_get_vtable_entry () for accessing klass->vtable.
154 * aot-runtime.c (load_method): Avoid a crash when using MONO_LOG_LEVEL.
156 * aot-compiler.c (add_generic_instances): Avoid a crash if a class is not
159 * method-to-ir.c (mono_save_token_info): Don't save references made from
162 * aot-compiler.c (add_generic_instances): Add static rgctx wrappers for cctors
163 of generic instances.
165 * aot-runtime.c (find_extra_method): Search in all loaded AOT images.
167 2008-10-19 Mark Probst <mark.probst@gmail.com>
169 * cpu-ppc.md, mini-ppc.c: The length of the code generated for
170 OP_JMP depends on the method signature. Calculate it properly.
172 2008-10-19 Zoltan Varga <vargaz@gmail.com>
174 * aot-runtime.c (mono_aot_find_jit_info): Handle extra methods which are
177 * aot-compiler.c (emit_and_reloc_code): Allow direct calling of generic
179 (emit_extra_methods): Add another table mapping method indexes to
180 offsets in the extra_method_info table.
182 * mini.h: Bump AOT file format version.
184 * aot-runtime.c: Merge most of the code from mono_aot_get_method
185 and mono_aot_get_method_from_token () into one function.
187 2008-10-19 Mark Probst <mark.probst@gmail.com>
189 * mini-ppc.c (emit_load_volatile_arguments): Inner loop needs a
192 2008-10-18 Zoltan Varga <vargaz@gmail.com>
194 * aot-compiler.c aot-runtime.c: Fix the hash function used for the extra
197 * method-to-ir.c (mono_method_to_ir2): Change a !compile_aot assert to
200 * mini.c (mono_patch_info_equal): Compare the generic context as well.
202 * mini.h: Bump aot file format version.
204 * aot-compiler.c aot-runtime.c: Generalize the wrapper handling code so the
205 AOT file can contain native code for methods which are not in the METHOD
206 table. Generate code for non-sharable generic instances of generic methods
207 found in the METHODSPEC table.
209 * method-to-ir.c (mono_method_to_ir2): Remove the aot restriction when
210 encoding generic type handles.
212 * ir-emit.h (NEW_AOTCONST_TOKEN): Add a generic_context argument.
213 (NEW_TYPE_FROM_HANDLE_CONST): Add a generic_context argument.
215 * ir-emit.h: Rewrite the EMIT_NEW_XXXCONST macros to use the NEW_XXXCONST
216 macros + MONO_ADD_INS.
218 * mini.c (mono_jump_info_token_new2): New function which takes a generic
221 * mini.h (MonoJumpInfoToken): Include fields for a generic context.
223 * mini.h: Bump aot file format version.
225 * aot-compiler.c aot-runtime.c: Update after changes to MonoJumpInfoToken.
227 2008-10-17 Mark Probst <mark.probst@gmail.com>
229 * mini-x86.h, mini-x86.c, exceptions-x86.c: Align stack on all
230 platforms, with definable stack alignment value. Set to 16 now
233 * mini.c, mini.h, driver.c: Command line option for disabling
236 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
238 * basic-simd.cs: Tests for new methods in Vector4ui.
240 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
242 * mini-ops.h: Add packed int shuffle.
246 * mini-x86.c (mono_arch_output_basic_block): Same.
248 * simd-intrinsics.c (vector4ui_intrinsics): Add compare equal,
249 extract mask, max, min, shuffle.
251 * simd-intrinsics.c (vector8us_intrinsics): Add max and min.
253 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
255 * basic-simd.cs: Tests for new methods in Vector8us.
257 2008-10-17 Mark Probst <mark.probst@gmail.com>
259 * method-to-ir.c (mono_method_to_ir2): "refanytype" produces a
260 RuntimeTypeHandle, not a TypedReference.
262 Fri Oct 17 14:40:50 CEST 2008 Paolo Molaro <lupus@ximian.com>
264 * simd-intrinsics.c: remove relocations.
266 2008-10-17 Zoltan Varga <vargaz@gmail.com>
268 * mini-amd64.c (mono_arch_output_basic_block): Port the IREM_IMM
269 optimizations from the x86 backend.
271 Fri Oct 17 12:00:51 CEST 2008 Paolo Molaro <lupus@ximian.com>
273 * simd-methods.h, simd-intrinsics.c: debloat method names and
274 prepare for no relocations.
276 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
278 * mini-ops.h: Add packed min/equal and sum of absolute differences.
282 * mini-x86.c (mono_arch_output_basic_block): Same.
284 * simd-intrinsics.c (vector16b_intrinsics): Add average, compare equal,
285 extract mask, max, min and sum of absolute differences.
287 * simd-intrinsics.c: Increase SIMD_INTRINSIC_NAME_MAX due to new huge
290 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
292 * basic-simd.cs: Test for the other mono_simd_simplify_indirection bug.
293 Renamed one test for consistency.
295 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
297 * simd-intrinsics.c (mono_simd_simplify_indirection): Apply the previous
298 fix to the code that deal with other blocks.
300 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
302 * basic-simd.cs: Test for the mono_simd_simplify_indirection bug.
304 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
306 * simd-intrinsics.c (mono_simd_simplify_indirection): Simplify the code
307 that deals with vreg interference. Explicitly check for OP_LDADDR to be
308 able to process the source reg.
310 2008-10-16 Martin Baulig <martin@ximian.com>
312 * mini-ops.h, cpu-amd64.md, cpu-x86.md: Added new `hard_nop' opcode.
314 * inssel.brg: Add `OP_HARD_NOP'.
316 * mini.h (MonoCompile): Added `keep_cil_nops' flag.
318 * mini.c (mono_method_to_ir): In `CEE_NOP': generate a
319 `OP_HARD_NOP' instruction when running inside the debugger.
321 * method-to-ir.c (mono_method_to_ir2): In `CEE_NOP': generate a
322 `OP_HARD_NOP' instruction when running inside the debugger.
324 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
326 * simd-intrinsics.c (get_simd_vreg): Using sreg1 of OP_XMOVE
327 now works. The issue with the regalloc tripping up no longer
330 * simd-intrinsics.c (load_simd_vreg): Same.
332 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
334 * basic-simd.cs: Tests for new Vector8ui methods.
336 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
338 * simd-intrinsics.c (get_simd_vreg): Simplify code and test
339 only for type. This fixes crashes where MonoInst::klass is checked
340 for ops of type != VTYPE or OBJ.
342 * simd-intrinsics.c (load_simd_vreg): Same.
344 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
346 * mini-ops.h: Add ops for packed shuffle/max/avg and
351 * mini-x86.c (mono_arch_output_basic_block): Same.
353 * simd-intrinsics.c (vector8us_intrinsics): Add avg, shuffle and
356 * simd-intrinsics.c (simd_intrinsic_emit_extract_mask): New function
357 to emit extract mask op.
359 * simd-intrinsics.c (simd_intrinsic_emit_shuffle): Retrofic this function
360 to emit word shuffles.
362 2008-10-15 Mark Probst <mark.probst@gmail.com>
364 * mini.c (mono_allocate_stack_slots_full): Align stack frame to
365 the largest alignment needed by a variable, but at least
368 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
370 * basic-simd.cs: Tests for the fixes in the last commit.
372 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
374 * simd-intrinsics.c (get_simd_vreg): Drop the is_this_ptr, this function
375 no longer handles STACK_PTR input.
377 * simd-intrinsics.c (get_simd_vreg): Don't crash when MonoInst::klass == -1.
379 * simd-intrinsics.c (load_simd_vreg): New function that works like
380 get_simd_vreg but handles STACK_PTR input.
382 * simd-intrinsics.c (simd_intrinsic_emit_getter): Use load_simd_vreg
383 as the input can be an arbitrary pointer.
385 * simd-intrinsics.c (simd_intrinsic_emit_ctor): Try the
386 LDADDR local optimization directly otherwise use a store op.
388 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
390 * basic-simd.cs: Tests for dup low and dup high.
392 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
394 * mini-ops.h: Add dup low and dup high ops.
398 * mini-x86.c (mono_arch_output_basic_block): Same.
400 * simd-intrinsics.c (vector4f_intrinsics): Same.
402 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
404 * basic-simd.cs: Tests for recently added functionality.
406 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
408 * mini-ops.h: Add remaining sse1 fp ops.
410 * cpu-x86.md: Add remaining sse1 fp ops.
412 * mini-x86.c (mono_arch_output_basic_block): Same.
414 * mini.h: Add enum for simd FP compare conditions.
416 * simd-intrinsics.c (vector4f_intrinsics): Add all new ops.
418 * simd-intrinsics.c (simd_intrinsic_emit_binary): Set inst_c0 to flags
419 so the backed can generate the appropriate op.
421 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
422 This patch squeese one more byte from the SimdIntrinsc struct.
424 * mini-x86.c (mono_arch_cpu_enumerate_simd_versions: Use the version number
425 a a shift amount intead of simply or'ing it.
427 * mini.h: Change SIMD_VERSION_* values to be sequential intead of masks.
429 * simd-intrinsics.c (struct SimdIntrinsc): Squeese simd_version and simd_emit_mode into a single
430 byte so we can have an aditional flags field without increasing struct size.
432 * simd-intrinsics.c (emit_intrinsics): Use the value of simd_version as a shift amount before checking
433 against the simd_supported_versions bitmask.
435 * simd-intrinsics.c: Set SIMD_INTRINSIC_NAME_MAX to an appropriate value.
437 Mon Oct 13 10:58:10 CEST 2008 Paolo Molaro <lupus@ximian.com>
439 * mini.c: remove rawbuffer code (the only use here is unsafe because
440 it takes locks during signal handling and the kernel now provides much
441 better info in proc/pid/smaps these days).
443 2008-10-13 Zoltan Varga <vargaz@gmail.com>
445 * mini-amd64.c (mono_arch_output_basic_block): Fix the changes to
446 OP_X86_PUSH_OBJ. Fixes #434620.
448 * objects.cs: Add a test.
450 2008-10-12 Rodrigo Kumpera <rkumpera@novell.com>
452 * basic-simd.cs: Remove PackWithUnsignedSaturation tests as it turns out
453 that the packuswb/packusdw don't work with unsigned numbers for what
454 would be negative numbers in signed format.
456 * cpu-x86.md: Add doubleword forms of many ops and packing ones.
457 Fix the len of fconv_to_r8_x and xconv_r8_to_i4.
459 * mini-ops.h: Add doubleword forms of many ops and packing ones.
461 * mini-x86.c: Emit doubleword forms of many ops and packing ones.
463 * simd-intrinsics.c (SimdIntrinsc): Rename the flags field to simd_version.
465 * simd-intrinsics.c (vector4f_intrinsics): Use simd_version field for sse3 ops.
467 * simd-intrinsics.c (vector4u_intrinsics): Rename to vector4ui_intrinsics and
470 * simd-intrinsics.c (simd_version_name): New function, returns the name of the
471 version as the enum in mini.h.
473 * simd-intrinsics.c (emit_intrinsics): Instead of having a special emit mode
474 for sse3 ops, check the simd_version field if present. This way the code
475 works with all versions of sse.
477 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
479 * simd-intrinsics.c: Fixed intrinsic name typo.
481 * mini.h: Added missing simd exported function.
483 * basic-simd.cs: Added tests for Vector4ui.
484 Fixed broken test for Vector16b.
486 2008-10-10 Zoltan Varga <vargaz@gmail.com>
488 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Increase
489 the max length to 64.
491 2008-10-10 Mark Probst <mark.probst@gmail.com>
493 * method-to-ir.c: Only do the fast virtual generic method call for
496 * mini.h, mini-trampolines.c: The new generic virtual remoting
497 trampoline handles virtual method calls via the vtable (as done by
498 the fast virtual generic method calls) to remoting proxies.
500 * mini.c (mono_jit_create_remoting_trampoline): For generic
501 methods reate a generic virtual remoting trampoline.
503 * mini-amd64.h: Enable fast virtual generic method calls again.
505 2008-10-10 Mark Probst <mark.probst@gmail.com>
507 * mini-ppc.c: Use SP (r1), not frame_reg (which might be r31) to
508 restore registers when doing tail calls.
510 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
512 * simd-intrinsics.c (emit_intrinsics): Vector4u was renamed to
515 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
517 * basic-simd.cs: Add test for Vecto16b.PackWithUnsignedSaturation.
519 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
521 * simd-intrinsics.c (emit_intrinsics): Retrofit to new type names.
523 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
525 * basic-simd.cs: Retrofit for API changes.
527 2008-10-10 Mark Probst <mark.probst@gmail.com>
529 * mini-ppc.c: Handle integer stack arguments for tail calls.
531 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
533 * optflags-def.h: Removed sse3 optimization.
537 * mini-x86.c (mono_arch_cpu_optimizazions): Remove detection of
540 * mini-x86.c: Added mono_arch_cpu_enumerate_simd_versions.
542 * mini.h: Added enumeration with simd versions.
544 * simd-intrinsics.c (emit_intrinsics): Use the new static var
547 * simd-intrinsics.c: Added mono_simd_intrinsics_init.
549 * mini.c (mini_init): Call mono_simd_intrinsics_init.
551 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
553 * basic-simd.cs: Added tests for Vector8u and Vector16u.
555 * basic-simd.cs: Fixed test naming.
557 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
559 * mini-ops.h: Added ops for packed and saturated math, shifts
560 and packing/unpacking.
562 * cpu-x86.md: Added descriptors for the above ops.
564 * mini-x86.c: Added code to emmit the above ops.
566 * simd-intrinsics.c: Added support for Vector16u and Vector8u.
568 2008-10-08 Zoltan Varga <vargaz@gmail.com>
570 * aot-compiler.c (compile_method): Enable AOT for generic code.
572 * ir-emit.h (NEW_DOMAINCONST): Use domainvars in AOT code as well.
574 Wed Oct 8 16:35:43 CEST 2008 Paolo Molaro <lupus@ximian.com>
576 * mini.c: add a workaround for a common screwup that ends up blamed
577 to mono (other processes blocking signal delivery).
579 2008-10-07 Zoltan Varga <vargaz@gmail.com>
581 * method-to-ir.c (mono_method_to_ir2): Clear ins_flag on all code paths
582 in the LDFLD/STFLD opcodes. Fixes #432673.
584 * iltests.il.in: Add a new test.
586 Tue Oct 7 19:59:07 CEST 2008 Paolo Molaro <lupus@ximian.com>
588 * mini-arm.c: attach the thread in unmanaged->managed transitions
589 using delegates (bug #433148).
591 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
593 * basic-simd.cs: Use new ShuffleSel constants.
595 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
597 * driver.c (opt_sets): Added combinations of simd, sse2 and sse3.
599 * mini-x86.c (mono_arch_cpu_optimizazions): Detect sse3 and now
600 only disable simd intrinsics if no sse2 is detected.
602 * optflags-def.h: Added sse3.
604 * simd-intrinsics.c: Avoid generated sse3 intrinsics if the optimization
607 2008-10-07 Zoltan Varga <vargaz@gmail.com>
609 * aot-compiler.c (add_wrappers): Fix Delegate/MulticastDelegate classes
610 when adding delegate-invoke wrappers.
612 2008-10-07 Zoltan Varga <vargaz@gmail.com>
614 * Makefile.am: Reenable the simd tests.
616 2008-10-07 Bill Holmes <billholmes54@gmail.com>
618 * mini-amd64.c (mono_arch_emit_outarg_vt) : In the ArgValuetypeAddrInIReg case,
619 add a call to mono_call_inst_add_outarg_reg for the arg->dreg to make sure that no
620 other vreg is allocated to that hreg.
622 Contributed under MIT/X11 license.
624 2008-10-07 Zoltan Varga <vargaz@gmail.com>
626 * Makefile.am: Disable the simd tests for now as Mono.Simd is not
629 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
631 * basic-simd.cs: New test suite for SIMD intrinsics.
633 * Makefile.am: Added new tests.
635 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
637 * cpu-x86.md: Added new instructions to handle float to int using SSE regs.
641 * mini-x86.h: Enable mono_arch_decompose_opts if simd intrinsics are enabled.
643 * mini-x86.c (mono_arch_decompose_opts): Decompose float to int conversion
644 using SSE2 aware opcodes.
646 * mini-x86.c (emit_float_to_int): Disable the SSE2 optimization if OPT_SIMD
647 is enabled, this code path is only reachable if conversion ops are emmited after
650 * mini.h: Added MonoCompile::fconv_to_r8_x_var to hold the float to int var.
652 This optimization saves 6 bytes per conversion against the old version.
654 2008-10-06 Zoltan Varga <vargaz@gmail.com>
656 * aot-compiler.c (compile_method): Don't skip methods referencing
657 generic methods without a corresponding entry in token_info_hash, since
658 encode_method_ref () can handle all generic methods now.
660 * method-to-ir.c (mono_save_token_info): Don't save the token info if a
661 generic context is set.
663 * method-to-ir.c (mono_method_to_ir2): Put back a disable_aot for
664 generic sharing of LDTOKEN.
666 2008-10-06 Mark Probst <mark.probst@gmail.com>
668 * mini-amd64.h: Temporarily disabled fast virtual generic method
669 calls because it breaks the System.Runtime.Remoting tests.
671 2008-10-06 Zoltan Varga <vargaz@gmail.com>
673 * aot-compiler.c (add_wrappers): Add delegate-invoke wrappers.
675 * method-to-ir.c (check_inline_called_method_name_limit): Return TRUE
676 so inlining actually works.
677 (check_inline_caller_method_name_limit): Ditto.
679 Mon Oct 6 11:04:38 CEST 2008 Paolo Molaro <lupus@ximian.com>
681 * mini-ppc.c: mono_arch_flush_icache () cast pointer using gsize for
682 64 bit safety (from Olaf Hering and Andreas Färber).
684 2008-10-06 Zoltan Varga <vargaz@gmail.com>
686 * mini-trampolines.c (mono_aot_trampoline): Delegate processing to
687 mono_magic_trampoline () if aot_get_method_from_token () fails. Remove
688 unused virtual call support code.
690 * aot-runtime.c (decode_method_ref): Add a 'no_aot_trampoline' out argument.
692 * aot-runtime.c (mono_aot_get_method_from_vt_slot): Return NULL for methods
693 which can't use aot trampolines.
694 (decode_patch): Don't create aot trampolines for methods which can't use
697 * aot-compiler.c (encode_method_ref): Add a marker for methods which can't
700 * mini.h: Bump AOT image format version.
702 2008-10-05 Zoltan Varga <vargaz@gmail.com>
704 * method-to-ir.c (mono_method_to_ir2): Pass cil_method instead of cmethod
705 to save_token_info () since cmethod is inflated for constrained calls.
707 * mini-<ARCH>.h mini-x86.c: Remove some unused defines.
709 2008-10-04 Andreas Färber <andreas.faerber@web.de>
711 * Makefile.am: Add build rules for ppc64.
712 This avoids the build failing at pedump with unresolved symbols
713 due to lack of arch_sources. Instead it will now fail earlier
714 due to lack of cpu-ppc64.md.
716 Contributed under MIT/X11 license.
718 2008-10-04 Mark Probst <mark.probst@gmail.com>
720 * mini-amd64.c (mono_arch_emit_call): Support stack arguments for
723 * iltests.il.in: Add test case for tail call with many arguments.
725 2008-10-03 Zoltan Varga <vargaz@gmail.com>
727 * method-to-ir.c (mono_method_to_ir2): Add an !cfg->compile_aot assert
728 to the fast virtual generic method code until the aot case is fixed.
730 2008-10-03 Mark Probst <mark.probst@gmail.com>
732 * mini-ppc.c, mini-ppc.h: Implement generic virtual method thunks.
734 2008-10-03 Mark Probst <mark.probst@gmail.com>
736 * mini-amd64.c, mini-amd64.h: Implement generic virtual method
739 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
741 * simd-intrinsics.c: Forgot to add this one.
743 * mini-codegen.c: Fix macro in case SIMD is not supported.
745 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
747 This patch land initial JIT support for simd intrinsics.
749 * mini-x86.h: Added new define to make --enable_minimal work on x86.
751 * Makefile.am: Added simd-intrinsics.c
753 * simd-intrinsics.c: New file with simd instrinsic related
756 * cfold.c (mono_constant_fold_ins2): Fold XZERO.
758 * cpu-x86.md: Add simd related instructions.
760 * driver.c: Added MONO_OPT_SIMD to the default set of optimizations.
762 * driver.c: Added two new --regression variants.
764 * ir-emit.h (MONO_EMIT_NEW_VZERO): Emit XZERO if the type is a simd intrinsic.
766 * local-propagation.c (mono_local_cprop2): Eliminate useless XMOVE.
768 * local-propagation.c (mono_local_deadce): Use new macro MONO_IS_NON_FP_MOVE and
769 extract some complicated logic to helper functions.
771 * method-to-ir.c (mono_type_to_regmove): Handle simd intrinsics.
773 * method-to-ir.c (mini_emit_inst_for_method): Emit simd intrinsics.
775 * method-to-ir.c (mono_handle_global_vregs): If a simd intrinsic was found, apply
776 the specialized simplification pass.
778 * method-to-ir.c (mono_spill_global_vars): Use new macro.
780 * mini-codegen.c: Added SIMD constants to all regbanks arrays.
782 * mini-codegen.c: Added reg_bank_table_init to initialize the reg desc -> bank
785 * mini-codegen.c: Define a version of the reg_bank macro that uses desc_to_reg_type
786 if MONO_ARCH_NEED_SIMD_BANK is defined.
788 * mini-ops.h: Added the new simd ops.
790 * mini-x86.c: Added mono_arch_xregname.
792 * mini-x86.c (mono_arch_cpu_optimizazions): Disable MONO_OPT_SIMD if SSE3 is not detected.
794 * mini-x86.c (mono_arch_output_basic_block): Add simd related opcodes.
796 * mini-x86.h: Define simd related MONO_ARCH macros.
798 * mini.c (mono_type_to_load_membase): Handle simd intrinsics.
800 * mini.c (mono_type_to_store_membase): Handle simd intrinsics.
802 * mini.h: Added new macros MONO_IS_NON_FP_MOVE, MONO_IS_REAL_MOVE, MONO_IS_ZERO and
803 MONO_CLASS_IS_SIMD to deal with simd related IR.
805 * mini.h (MonoInst): Added spill_var to the backend union.
807 * mini.h (MonoCompile): Added uses_simd_intrinsics and iconv_raw_var.
809 * mini.h: Added forward declarations of the new simd fuctions.
811 * optflags-def.h: Added new optimization names SIMD.
813 * regalloc.c (mono_regstate_reset): Set next vreg to be the max value of the 3 reg banks.
815 * regalloc.h: Added support for working with 3 register banks.
817 * regalloc.h (MonoRegState): Added xsymbolic field if a third regbank is required.
819 * ssa2.c (mono_ssa_deadce2): Use new MONO_IS_ZERO macro.
821 Fri Oct 3 16:03:22 CEST 2008 Paolo Molaro <lupus@ximian.com>
823 * mini-exceptions.c: remove 64 bit related ifdef clutter.
825 2008-10-03 Zoltan Varga <vargaz@gmail.com>
827 * mini-exceptions.c (mono_handle_soft_stack_ovf): Unprotect two pages
828 instead of one on 64 bit systems.
830 * method-to-ir.c: Remove unused includes.
832 2008-10-02 Zoltan Varga <vargaz@gmail.com>
834 * aot-compiler.c (emit_exception_debug_info): Use jinfo->used_regs instead of
835 cfg->used_int_regs, since the two are different on arm.
837 2008-10-02 Mark Probst <mark.probst@gmail.com>
839 * method-to-ir.c, inssel.brg, mini-trampolines.c: Use
840 mono_method_get_vtable_index() to get the vtable index.
842 2008-10-02 Mark Probst <mark.probst@gmail.com>
844 * method-to-ir.c (mono_method_to_ir2): Don't create native
845 wrappers for array methods, because they're never called (and if
846 they were called they wouldn't work).
848 2008-10-02 Mark Probst <mark.probst@gmail.com>
850 * method-to-ir.c (mono_method_to_ir2): Array methods are
851 special-cased and must not be invoked indirectly via the (M)RGCTX
852 when generic sharing is turned on. Fixes #431413.
854 2008-10-01 Mark Probst <mark.probst@gmail.com>
856 * method-to-ir.c: When generic sharing is active, call
857 non-interface virtual generic methods via the standard trampoline.
859 * mini-trampolines.c: Handle virtual generic shared methods.
861 * mini.h, mini-x86.c, mini-x86.h: New argument for
862 mono_arch_build_imt_thunk() which is non-NULL for virtual generic
863 method thunks and which is the trampoline to call if the lookup
864 fails. Enable the virtual generic method thunk for x86.
866 * mini-amd64.c, mini-arm.c, mini-ia64.c, mini-sparc.c,
867 mini-ppc.c (mono_arch_build_imt_thunk): Add the additional
868 argument but assert that it's NULL, because these archs don't yet
869 implement the virtual generic method thunk. Changes in the IMT
870 thunk data structures.
872 2008-10-01 Zoltan Varga <vargaz@gmail.com>
874 * aot-compiler.c (emit_globals): Avoid invalid characters in
875 the static linking symbol.
877 * objects.cs: Add a test for the range check optimization. Fix warnings.
879 * branch-opts.c (mono_if_conversion): Add back the 'optimize range checks'
880 optimization from the current JIT.
882 * method-to-ir.c (mini_emit_inst_for_method): Decompose String.Length
883 later in decompose_array_access_opts () to allow more optimizations.
885 * method-to-ir.c (mono_handle_soft_float): Rename this to
886 mono_decompose_soft_float () for consistency.
888 * mini-ops.h: Fix arguments of OP_STRLEN.
890 * method-to-ir.c (save_cast_details): Extract the cast details saving code
891 into a separate function.
892 (reset_cast_details): Ditto.
893 (handle_unbox): Save cast details. Fixes #431254.
895 * method-to-ir.c: Remove some obsolete FIXMEs.
897 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
899 * ir-emit.h (alloc_dreg): Write a warning before crashing.
901 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
903 * mini-codegen.c: More work on macros to make them
904 ready for multiple regbanks.
906 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
908 * method-to.ir.c (mono_type_to_regmove): Remove static modifier.
910 * mini.h: Export mono_type_to_regmove. Fix signature of mono_regname_full.
912 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
914 * mini-codegen.c (mono_spillvar_offset): Proper support for
917 2008-09-30 Zoltan Varga <vargaz@gmail.com>
919 * mini-amd64.c (mono_arch_emit_epilog): Remove some duplicated code from
920 the stack overflow changes.
922 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
924 * mini-codegen.c: Make all bank macros depend on reg_bank.
926 * mini-codegen.c (mono_local_regalloc): Make free mask
927 initialization regbank aware.
929 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
931 * mini-codegen.c (mono_local_regalloc): Extract callee
932 mask selection to a function and make it regbank aware.
934 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
936 * mini-codegen.c (mono_local_regalloc): Changed the cloberring
937 code to deal with many regbanks.
939 2008-09-30 Zoltan Varga <vargaz@gmail.com>
941 * mini-codegen.c: More fp->regbank changes.
943 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
945 * mini-codegen.c: Change asserts to use MONO_NUM_REGBANKS instead
946 of a hardcoded constant.
948 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
950 * method-to-ir.c (type_from_stack_type): Fix typo.
952 2008-09-29 Zoltan Varga <vargaz@gmail.com>
954 * mini-ia64.c (emit_move_return_value): Convert float return values to
957 * objects.cs: Add a new test.
959 * mini-ia64.c (mono_arch_allocate_vars): Disable fp elimination for
960 VARARG methods to fix an assert later.
962 * mini-mips.h mini-mips.c mini-ops.h cpu-mips.md: Update the mips back
963 end so it at least compiles.
965 2008-09-28 Zoltan Varga <vargaz@gmail.com>
967 * method-to-ir.c (emit_optimized_ldloca_ir): Fix this.
969 2008-09-28 Rodrigo Kumpera <rkumpera@novell.com>
971 * method-to-ir.c (mono_method_to_ir2): Extract the ldloca + initobj
972 optimization to a new function (emit_optimized_ldloca_ir) and enable
973 it for both ldloca and ldloca_s.
975 2008-09-28 Zoltan Varga <vargaz@gmail.com>
977 * method-to-ir.c (mono_method_to_ir2): Remove an unnecessary assert in the
978 gshared CASTCLASS code.
980 * driver.c (mono_main): Add a workaround for shutdown crashes seen on
981 amd64, where the libc stack unwinder encounters stack frames referring to
982 native code in unmapped memory.
984 * method-to-ir.c (mini_emit_check_array_type): Add support for generic
987 * generics.cs: Add new test.
989 2008-09-27 Zoltan Varga <vargaz@gmail.com>
991 * mini-arm.h driver.c: Print the fp model when using --version on arm. Also,
992 add a check that one of the ARM_FPU_ constants is defined.
994 * mini-exceptions.c (mono_handle_soft_stack_ovf): Really fix the build.
996 * mini-exceptions.c: Fix build on non-altstack platforms.
998 * method-to-ir.c (mono_method_to_ir2): Fix aot support for the
1001 * ir-emit.h: Add a comment to NEW_PCONST.
1003 * mini-exceptions.c (mono_altstack_restore_prot): Fix a warning.
1005 * mini.h (MonoJitDomainInfo): Move some fields here from MonoDomain.
1007 * mini.c aot-runtime.c method-to-ir.c driver.c mini-trampolines.c: Update
1008 after the changes to MonoJitDomainInfo.
1010 2008-09-27 Mark Probst <mark.probst@gmail.com>
1012 * mini-ppc.c, tramp-ppc.c, mini-ppc.h: Implement generic code sharing.
1014 2008-09-27 Mark Probst <mark.probst@gmail.com>
1016 * mini-ppc.c: Compiler warning fixes.
1018 2008-09-27 Mark Probst <mark.probst@gmail.com>
1020 * mini-ppc.c: Special handling for 1/2 byte structs on Darwin only
1023 2008-09-27 Mark Probst <mark.probst@gmail.com>
1025 * exceptions-ppc.c, mini-ppc.h: Compile
1026 mono_arch_handle_altstack_exception() on Darwin, too.
1028 2008-09-27 Mark Probst <mark.probst@gmail.com>
1030 * method-to-ir.c (mono_emit_rgctx_method_call_full): Must also
1031 work on archs which don't have generic sharing implemented, only
1032 without the vtable_arg.
1034 2008-09-26 Mark Probst <mark.probst@gmail.com>
1036 * mini.c: Added comment explaining why delegate ctor icall
1037 wrappers are compiled.
1039 2008-09-26 Mark Probst <mark.probst@gmail.com>
1041 * mini.c: Don't produce trampolines to delegate ctor icall
1042 wrappers but compile them upfront.
1044 Fri Sep 26 17:00:46 CEST 2008 Paolo Molaro <lupus@ximian.com>
1046 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: amd64 support code for calling a
1047 runtime-set function when going back to managed code. Currently this
1048 is used to set back the protection on the soft ovf pages and/or to
1049 throw the stack overflow exception that happened in unmanaged code.
1051 Fri Sep 26 16:46:23 CEST 2008 Paolo Molaro <lupus@ximian.com>
1053 * tramp-x86.c, mini-x86.h, mini-x86.c: x86 support code for calling a
1054 runtime-set function when going back to managed code. Currently this
1055 is used to set back the protection on the soft ovf pages and/or to
1056 throw the stack overflow exception that happened in unmanaged code.
1058 Fri Sep 26 16:34:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
1060 * mini.h, mini.c, mini-trampolines.c, mini-exceptions.c: added
1061 the support code for restoring stack protection after stack overflows
1062 that happen in unmanaged code. Don't set the exec permission on the
1065 2008-09-26 Zoltan Varga <vargaz@gmail.com>
1067 * mini-trampolines.c (mono_delegate_trampoline): Add wrappers even if
1068 delegate->method_ptr is set. Fixes #428054.
1070 2008-09-25 Zoltan Varga <vargaz@gmail.com>
1072 * tests.cs: Rename to ratests.cs.
1074 * method-to-ir.c: Merge the emit_get_rgctx () calls into the
1075 emit_get_rgctx_... functions.
1077 2008-09-25 Mark Probst <mark.probst@gmail.com>
1079 * method-to-ir.c: Eliminated macro EMIT_GET_RGCTX.
1081 2008-09-25 Mark Probst <mark.probst@gmail.com>
1083 * mini-trampolines.c (mono_magic_trampoline): Unwrap wrappers
1084 before asserting that method is sharable.
1086 2008-09-25 Mark Probst <mark.probst@gmail.com>
1088 * method-to-ir.c, mini.c, jit-icalls.c: New function for checking
1089 whether method needs a static RGCTX wrapper used instead of
1092 * generic-sharing.c, mini.h: A few functions moved to
1093 metadata/generic-sharing.c.
1095 2008-09-25 Mark Probst <mark.probst@gmail.com>
1097 * method-to-ir.c, mini.c, mini-exceptions.c, mini-trampolines.c:
1098 Generic code sharing for value types, which essentially means
1099 treating value type methods like static methods. The RGCTX is
1100 passed in the same way.
1102 2008-09-25 Zoltan Varga <vargaz@gmail.com>
1104 * method-to-ir.c (mono_method_to_ir2): Avoid an assert in the NEWOBJ
1105 opcode when creating multi-dimensional arrays of open types.
1107 * generic-sharing.c (mono_method_check_context_used): Handle arrays of
1110 * generics.cs: Add a test.
1112 * mini-codegen.c: Use macros everywhere for checking floats instead of == 'f'.
1114 2008-09-24 Zoltan Varga <vargaz@gmail.com>
1116 * mini.h (MonoCompile): Add 'disable_vreg_to_lvreg' flag.
1118 * mini.c (mini_method_compile): Set it when running under the debugger.
1120 * method-to-ir.c (mono_handle_global_vregs): Disable global->local
1121 vreg optimization if the flag is set.
1123 * driver.c (mono_main): Add --attach= option to pass options to
1126 * mini.c (sigquit_signal_handler): Start the attach agent.
1128 * ssapre.c: Disable this to save space since it is not yet ported to
1131 * regalloc2.c: Disable this to save space.
1133 * mini.h (MonoJitStats): Remove unused analyze_stack_repeat.
1135 Wed Sep 24 16:01:49 CEST 2008 Paolo Molaro <lupus@ximian.com>
1137 * decompose.c, method-to-ir.c, mini-codegen.c, regalloc2.c: make
1138 the -v option useful again.
1140 2008-09-24 Zoltan Varga <vargaz@gmail.com>
1142 * mini-amd64.c (mono_arch_output_basic_block): Add support for
1145 * inssel.brg (mini_emit_castclass): Avoid the szarray!=array checks for
1146 arrays of arrays. Fixes #428406.
1148 * method-to-ir.c (mini_emit_castclass): Ditto.
1150 * objects.cs: Add new test.
1152 2008-09-23 Rodrigo Kumpera <rkumpera@novell.com>
1154 * method-to-ir.c (type_to_eval_stack_type): The code path for the new JIT
1155 was wrong at it choked against target_type_is_incompatible for byref types.
1157 2008-09-23 Zoltan Varga <vargaz@gmail.com>
1159 * mini-codegen.c: Use 'bank' macros instead of 'is_fp' macros in most
1162 Tue Sep 23 15:31:45 CEST 2008 Paolo Molaro <lupus@ximian.com>
1164 * mini-exceptions.c: update a few more exceptions-related counters.
1166 Tue Sep 23 15:28:29 CEST 2008 Paolo Molaro <lupus@ximian.com>
1168 * aot-runtime.c, method-to-ir.c, mini.c, mini-trampolines.c: use the
1169 new functions to allocate from persistent mempools.
1171 2008-09-23 Zoltan Varga <vargaz@gmail.com>
1173 * mini.h regalloc.h mini-codegen.c: Generalize the regalloc code to allow
1174 multiple register banks in the future.
1176 * mini-codegen.c (mono_local_regalloc): Fix a warning.
1178 2008-09-22 Rodrigo Kumpera <rkumpera@novell.com>
1180 * mini.c (type_to_eval_stack_type): Remove duplicated function.
1182 * method-to-ir.c (type_to_eval_stack_type): Make this version compatible with both JIT.
1184 * mini.h: Export type_to_eval_stack_type.
1186 This function was nearly duplicated in method-to-ir.c and mini.c. The difference
1187 is only ins->klass of byref types.
1189 2008-09-22 Zoltan Varga <vargaz@gmail.com>
1191 * method-to-ir.c (mini_emit_memset): Use a default alignment of 4.
1192 (mini_emit_memcpy2): Ditto.
1194 * mini-amd64.c: Fix a warning.
1196 2008-09-21 Mark Probst <mark.probst@gmail.com>
1198 * exceptions-ppc.c (mono_arch_get_call_filter): Fixed stack frame
1201 2008-09-19 Rodrigo Kumpera <rkumpera@novell.com>
1203 * method-to-ir.c: Extract stloc micro-optimization to a
1204 function and apply it to all cases.
1206 2008-09-19 Mark Probst <mark.probst@gmail.com>
1208 * method-to-ir.c: Don't fail generic code sharing in cases we
1211 2008-09-18 Mark Probst <mark.probst@gmail.com>
1213 * mini-ppc.c: Handle structs in tailcalls on Darwin.
1215 Tue Sep 16 21:07:11 CEST 2008 Paolo Molaro <lupus@ximian.com>
1217 * *.c, *.md, mini-ops.h: introduced relaxed_nop opcode for spin wait
1220 Tue Sep 16 16:39:16 CEST 2008 Paolo Molaro <lupus@ximian.com>
1222 * trace.c: make tracing more useful and correct, with per-thread
1225 2008-09-15 Mark Probst <mark.probst@gmail.com>
1227 * mini-ppc.c (mono_arch_emit_call): Convert floats to R4 when
1228 doing a method call and the argument is an R4.
1230 2008-09-14 Zoltan Varga <vargaz@gmail.com>
1232 * aot-compiler.c (add_wrappers): Do not generate runtime invoke wrappers for
1235 2008-09-13 Mark Probst <mark.probst@gmail.com>
1237 * mini-ppc.c: Convert result to single for OP_ICONV_TO_R4.
1239 2008-09-12 Zoltan Varga <vargaz@gmail.com>
1241 * mini.h (MONO_IS_JUMP_TABLE): Handle GOT_ENTRY.
1242 (MONO_JUMP_TABLE_FROM_INS): Ditto.
1244 2008-09-11 Zoltan Varga <vargaz@gmail.com>
1246 * driver.c: Add a --agent argument (not supported yet) to load managed
1247 agent assemblies before loading the main assembly, similarly to how the
1248 Java VM handles agents.
1250 2008-09-11 Mark Probst <mark.probst@gmail.com>
1252 * mini-ppc.c (mono_arch_allocate_vars): Use arch-independent
1253 function to do stack layout of local variables.
1255 2008-09-11 Mark Probst <mark.probst@gmail.com>
1257 * mini-ppc.c (calculate_sizes): Bugfix in sigcookie position
1260 2008-09-11 Zoltan Varga <vargaz@gmail.com>
1262 * method-to-ir.c ssa2.c mini.c mini-amd64.c decompose.c ssa.c abcremoval.c
1263 abcremoval2.c branch-opts.c driver.c dominators.c: Disable parts of the
1264 JIT if DISABLE_JIT is defined.
1266 * Makefile.am: Avoid compiling/linking in inssel.c if DISABLE_JIT is
1269 2008-09-10 Mark Probst <mark.probst@gmail.com>
1271 * iltests.il.in: Disable the fconv test on PPC (the result is
1272 undefined according to ECMA).
1274 2008-09-10 Mark Probst <mark.probst@gmail.com>
1276 * iltests.il.in: Enable tail call tests for PPC.
1278 * mini.h: Add variable for storing incoming valuetype argument
1279 addresses for tail calls.
1281 * mini-ppc.c: Implement valuetype arguments and return values for
1284 2008-09-09 Mark Probst <mark.probst@gmail.com>
1286 * mini-ppc.c: Partially implement tail calls (struct arguments and
1287 return values not supported).
1289 * method-to-ir.c: Enable tail calls on PPC.
1291 2008-09-08 Zoltan Varga <vargaz@gmail.com>
1293 * aot-compiler.c (emit_wrapper_info): Omit the klass name from
1294 runtime-invoke wrappers to work around the problem of them getting
1295 assigned to a random class.
1297 * aot-runtime.c (mono_aot_get_method): Ditto.
1299 2008-09-07 Zoltan Varga <vargaz@gmail.com>
1301 * mini-exceptions.c mini-mips.h mini-s390.h exceptions-mips.c: Kill
1302 the CUSTOM_EXCEPTION_HANDLING and CUSTOM_STACK_WALK defines.
1304 2008-09-07 Mark Probst <mark.probst@gmail.com>
1306 * method-to-ir.c (mono_method_to_ir2): Disable tail calls for PPC
1307 until they're implemented properly.
1309 * exceptions-ppc.c: Use arch-independent exception-handling code
1310 instead of custom one.
1312 * exceptions-ppc.c, mini-ppc.c, mini-ppc.h: Bug fixes and changes
1315 * tramp-ppc.c, mini-ppc.c: Fixed warnings.
1317 * decompose.c, aot-runtime.c, aot-compiler.c: PPC code also
1318 applies when __powerpc__ is defined.
1320 2008-09-06 Zoltan Varga <vargaz@gmail.com>
1322 * aot-runtime.c (mono_aot_get_method): Add another cache mapping wrapper
1323 methods to their code to avoid computing the full name of wrappers and
1324 doing a lookup in a string hash table.
1326 2008-09-05 Zoltan Varga <vargaz@gmail.com>
1328 * method-to-ir.c: Remove the CHECK_BBLOCK () stuff it is not needed since
1329 we identify bblocks before method_to_ir () is ran.
1331 * branch-opts.c (mono_optimize_branches): Avoid nullifying the exit bblock.
1332 Also avoid optimizing branches pointing to themselves.
1334 * mini.c (mini_method_compile): Ditto. Fixes #422947.
1336 2008-09-05 Rodrigo Kumpera <rkumpera@novell.com>
1338 * driver.c (mono_main): Enable the new verifier under core-clr and cas.
1340 2008-09-05 Zoltan Varga <vargaz@gmail.com>
1342 * tramp-arm.c (mono_arch_nullify_class_init_trampoline): Implement this.
1343 (mono_arch_patch_plt_entry): Fix the calculation of the jump_entry.
1344 (mono_arch_get_nullified_class_init_trampoline): Return 'code' instead of
1347 * aot-compiler.c (emit_plt): Fix the arm plt entries, previously they all
1348 jumped to the same entry in plt_jump_table.
1350 2008-09-02 Rodrigo Kumpera <rkumpera@novell.com>
1352 * method-to-ir.c (initialize_array_data): Handle field with RVA from
1355 2008-08-31 Zoltan Varga <vargaz@gmail.com>
1357 * method-to-ir.c (handle_isinst): Do the assignment at the beginning, so the
1358 other assignment can be if converted. Saves 1.5% on corlib size and fixes
1361 2008-08-29 Geoff Norton <gnorton@novell.com>
1363 * aot-compiler.c: The Mach/ARM compiler doesn't understand the bss
1364 segment, and doesn't properly handle .space as .text. Fixes
1367 2008-08-29 Geoff Norton <gnorton@novell.com>
1369 * mini.c: Disable the mach exception handler when running on
1372 2008-08-29 Geoff Norton <gnorton@novell.com>
1374 * aot-compiler.c: Patch from Renaldas Zioma to properly register
1375 globals on Darwin/ARM
1377 2008-08-28 Zoltan Varga <vargaz@gmail.com>
1379 * mini.c: Avoid not initializing the runtime when doing AOT compilation,
1380 since too many things depend on it. Instead, call
1381 mono_runtime_set_no_exec ().
1383 * mini.c (mono_create_tls_get): Call mono_alloc_preg (cfg) when running with
1386 * aot-compiler.c: Add an 'asm-only' AOT option.
1388 * mini.c: Avoid initializing the runtime when doing AOT compilation.
1390 * aot-compiler.c (compile_method): Disable gshared support for now as it
1393 2008-08-27 Bill Holmes <billholmes54@gmail.com>
1395 * mini-amd64.h : Fix a compiler warning.
1397 * exceptions-amd64.c (mono_arch_unwindinfo_install_unwind_info) :
1398 Changed to use a callback function to retrieve the unwind info.
1399 This avoids problems observed when code blocks were removed by
1400 unloading an app domain.
1402 * mini-amd64.c (mono_arch_cpu_optimizazions) : Removing the peephole
1403 and branch excludes for Winx64. The fix in exceptions-amd64.c allows them
1406 Contributed under MIT/X11 license.
1408 2008-08-27 Bill Holmes <billholmes54@gmail.com>
1410 * mini-amd64.c (mono_arch_output_basic_block) : Fix the OP_X86_PUSH_OBJ
1411 case to keep the stack aligned to 8.
1413 Contributed under MIT/X11 license.
1415 2008-08-26 Zoltan Varga <vargaz@gmail.com>
1417 * aot-runtime.c (mono_aot_get_method): Add a cache for wrapper names to
1418 avoid repeated linear searches.
1420 2008-08-25 Zoltan Varga <vargaz@gmail.com>
1422 * aot-compiler.c (add_wrappers): Avoid calling get_runtime_invoke with
1423 methods it can't handle.
1425 * aot-compiler.c (add_method): Avoid adding a method twice.
1426 (add_wrappers): Add runtime invoke wrappers for all methods.
1428 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): New
1429 function to create an aot-compatible version of this trampoline.
1431 * aot-compiler.c aot-runtime.c: Add support for AOT rgctx fetch trampolines.
1433 2008-08-24 Zoltan Varga <vargaz@gmail.com>
1435 * aot-compiler.c (compile_method): Skip wrappers of generic icalls.
1437 * method-to-ir.c (mono_method_to_ir2): Replace an assert in UNBOX_ANY
1438 with a generic sharing failure.
1440 * aot-compiler.c (emit_klass_info): Call mono_class_get_nested_types ().
1442 * method-to-ir.c (mono_method_to_ir2): Rethrow the correct exception in
1443 CEE_RETHROW. Fixes #419634.
1445 * mini.c (mono_method_to_ir): Ditto.
1447 * exceptions.cs: Add a new test.
1449 * generic-sharing.c (mini_type_stack_size): Always pass TRUE as allow_open
1450 to mono_type_stack_size_internal () since some callers might not pass in
1453 * mini-x86.c (mono_arch_emit_prolog): Store the rgctx before calling
1454 instrument_prolog. Fixes #419878.
1456 * mini.c (mono_compile_create_var_for_vreg): Make the lvars representing
1457 doubles in soft float mode volatile.
1459 2008-08-23 Zoltan Varga <vargaz@gmail.com>
1461 * ir-emit.h (NEW_ARGSTORE): Use cfg->args and cfg->arg_types to fix the build.
1463 * method-to-ir.c (mono_save_args): Use ARGSTORE instead of TEMPSTORE
1464 to handle soft float correctly.
1466 * tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Implement
1469 * mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.
1471 * exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
1472 to sp, since the generics catch code requires it.
1474 * mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
1477 * method-to-ir.c (emit_imt_argument): Pass imt_arg to
1478 mono_arch_emit_imt_argument ().
1480 * mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.
1482 * mini-arm.c tramp-arm.c: Generic sharing updates.
1484 2008-08-22 Zoltan Varga <vargaz@gmail.com>
1486 * mini-arm.c: Fix the arm build.
1488 * generic-sharing.c (mini_type_get_underlying_type): New helper function
1489 handling enums, generic instances and generic sharing.
1490 (mini_type_stack_size_full): Ditto.
1492 * mini-amd64.c mini-x86.c mini-arm.c: Use the new functions.
1494 * mini.h (struct): Add 'uses_rgctx_reg' and 'uses_vtable_reg' fields.
1496 * method-to-ir.c: Set the new fields when using RGCTX_REG/VTABLE_REG.
1498 * tramp-arm.c: Implement the rgctx fetch and the generic class init
1501 * mini-arm.c: Various small generic sharing changes.
1503 * tramp-x86.c (mono_arch_create_generic_class_init_trampoline): Implement
1505 (mono_arch_create_trampoline_code): Remove most of the GENERIC_CLASS_INIT
1508 * mini-trampolines.c (mono_create_generic_class_init_trampoline): New
1509 helper function to return a generic class init trampoline.
1511 * method-to-ir.c mini.c: Use it.
1513 * tramp-amd64.c (mono_arch_create_generic_class_init_trampoline): New
1514 arch-specfic function to return a generic class init trampoline.
1516 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Remove most of
1517 the GENERIC_CLASS_INIT custom code.
1519 * method-to-ir.c (mono_method_to_ir2): If RGCTX_REG is not defined, that is
1520 a fatal error, not a sharing failure.
1522 * tramp-<ARCH>.c (mono_arch_get_rgctx_lazy_fetch_offset): Removed, no longer
1525 * mini-trampolines.c (mono_rgctx_lazy_fetch_trampoline): Get the additional
1526 trampoline argument from MONO_ARCH_VTABLE_REG.
1528 * tramp-x86.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
1529 order of the arguments to the C trampoline: pass 'slot' as the trampoline
1530 argument, and pass the vtable in VTABLE_REG.
1532 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
1533 order of the arguments to the C trampoline: pass 'slot' as the trampoline
1534 argument, and pass the vtable in VTABLE_REG.
1535 (mono_arch_create_trampoline_code_full): Remove some special casing for
1536 the rgctx fetch trampoline.
1538 * mini.c (mono_method_to_ir): Fix the STELEM_ANY+null value optimization.
1541 * iltests.il: Add a test for it.
1543 2008-08-21 Zoltan Varga <vargaz@gmail.com>
1545 * aot-compiler.c (compile_method): Enable AOT support for generics sharing.
1547 * method-to-ir.c (mono_method_to_ir2): Remove an aot restriction which is
1550 * mini-trampolines.c (mono_magic_trampoline): Add a sync wrapper here,
1551 use mono_jit_info_table_find () to avoid recursion.
1552 (mono_delegate_trampoline): Add a sync wrapper here.
1554 * method-to-ir.c (mono_method_to_ir2): Don't call mono_ldftn_nosyc
1557 * mini.c (mono_method_to_ir): Ditto.
1559 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Remove
1560 add_sync_wrapper argument. Don't add a sync wrapper here.
1561 (mono_create_jump_trampoline): Don't add a sync wrapper here.
1563 * jit-icalls.c (mono_ldftn_nosync): Removed, no longer needed.
1565 2008-08-20 Bill Holmes <billholmes54@gmail.com>
1567 * exceptions-amd64.c (seh_handler): For Winx64 adding missing copy
1568 of nonvolatile registers back from MonoContext to CONTEXT.
1570 Contributed under MIT/X11 license.
1572 2008-08-20 Bill Holmes <billholmes54@gmail.com>
1574 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): When shifting the
1575 arguments on Winx64 there are only 4 argument registers. For this
1576 logic to work the last argument must be pulled from the stack.
1578 Contributed under MIT/X11 license.
1580 2008-08-20 Zoltan Varga <vargaz@gmail.com>
1582 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
1584 * aot-runtime.c aot-compiler.c patch-info.h mini.c: Get rid of
1585 MONO_PATCH_INFO_WRAPPER, encode/decode wrapper methods like the others in
1586 encode/decode_method_ref ().
1588 * aot-compiler.c (encode_patch): Handle STATIC_RGCTX_INVOKE wrappers.
1590 * aot-runtime.c (decode_patch): Ditto.
1592 * mini.c (mono_resolve_patch_target): Handle RGCTX_FETCH sub-patches of type
1593 MONO_PATCH_INFO_METHOD.
1595 * aot-runtime.c (decode_exception_debug_info): Decode the contents of
1598 * aot-compiler.c (emit_exception_debug_info): Emit the contents of
1601 * method-to-ir.c (emit_imt_argument): Fix AOT+gshared support.
1603 * mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
1604 one from the caller.
1606 * aot-runtime.c (decode_generic_inst): New function to decode and
1607 return a interned generic inst.
1608 (decode_klass_ref): Use it.
1609 (decode_method_ref): Ditto.
1611 * aot-compiler.c (emit_exception_debug_info): Save
1612 jinfo->has_generic_jit_info too.
1614 2008-08-19 Zoltan Varga <vargaz@gmail.com>
1616 * mini-ia64.c (mono_arch_output_basic_block): Add OP_FCONV_TO_I.
1618 * iltests.il.in: Add a test for fconv_to_i.
1620 * liveness.c: Disable the liveness2 pass for now to save space.
1622 * regalloc2.c: Include mempool-internals.h to fix warnings.
1624 * aot-compiler.c (encode_method_ref): Encode the context of generic
1627 * aot-runtime.c (decode_method_ref): Inflate generic methods using
1628 the context saved in the aot file.
1630 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
1632 * mini-x86.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.
1634 * method-to-ir.c (mono_method_to_ir2): When using CEE_JMP, make arguments
1635 volatile so they won't be optimized away.
1637 2008-08-19 Rodrigo Kumpera <rkumpera@novell.com>
1643 * dominators.c: Remove duplicated functions that now are in
1644 mempool-internals.h.
1646 2008-08-19 Zoltan Varga <vargaz@gmail.com>
1648 * aot-compiler.c: Fix warnings.
1650 * aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.
1652 * aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.
1654 * method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
1657 * mini.c (mono_resolve_patch_target): Ditto.
1659 * aot-compiler.c (encode_patch): Add support for RGCTX_FETCH.
1660 (encode_klass_ref): Add support for encoding VARs/MVARs.
1662 * mini.c (mono_patch_info_dup_mp): Handle RGCTX_FETCH.
1664 * aot-runtime.c (decode_patch_info): Rename to 'decode_patch'. Split out
1665 the handling of the got entries into a separate 'decode_got_entry' function.
1666 Add support for RGCTX_FETCH.
1668 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RDI since RAX is
1669 clobbered by the trampoline code.
1671 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RAX since that is
1672 not clobbered by the indirect calling code.
1674 2008-08-18 Zoltan Varga <vargaz@gmail.com>
1676 * mini-x86.c (mono_arch_patch_code): Handle RGCTX_FETCH/GENERIC_CLASS_INIT
1679 2008-08-18 Rodrigo Kumpera <rkumpera@novell.com>
1681 * method-to-ir.c (mono_emit_method_call_full): Alloc the constructor
1682 signature using the compilation mempool otherwise we would leak it.
1684 2008-08-18 Zoltan Varga <vargaz@gmail.com>
1686 * method-to-ir.c (mono_method_to_ir2): Emit the generic class inits using
1687 mono_emit_abs_call ().
1689 * patch-info.h: Add GENERIC_CLASS_INIT.
1691 * mini.c (mono_resolve_patch_target): Handle GENERIC_CLASS_INIT.
1693 * mini-amd64.c (emit_call_body): Treat abs calls which have a patch info
1694 as their target as a near call.
1696 * mini.c (mono_codegen): Handle patches stored in cfg->abs_patches in the
1698 (mono_resolve_patch_target): Add support for MONO_PATCH_INFO_RGCTX_FETCH.
1700 * method-to-ir.c (mono_emit_abs_call): New helper function which emits a
1701 call to a runtime function described by a patch.
1703 * method-to-ir.c: Emit rgctx entry fetches and class init trampolines using
1704 mono_emit_abs_call, this has the advantage that the ABS handling code in
1705 mono_codegen () can handle them both, and can handle other stuff in the
1706 future without additional code.
1708 * mini.h (struct MonoJumpInfoRgctxEntry): New structure describing an rgctx
1710 (MonoCompile): Add 'abs_patches' hashtable, which contains patches describing
1713 * mini.h: Add missing bblock related prototypes.
1715 * mini.h (MonoCompile): Remove unused reverse_inst_list and
1716 reverse_inst_list_len fields.
1718 * mini.c: Refactor this file a bit by moving branch optimizations to
1721 * method-to-ir.c: Merge generic sharing changes missed earlier.
1723 * aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST.
1725 * aot-runtime.c (decode_patch_info): Refactor the code dealing with the
1726 shared patches. Process METHODCONST as a shared patch.
1728 * liveness.c (mono_analyze_liveness): Disable the liveness2 code for now
1729 as it crashes on the 2.0 mscorlib.
1731 * aot-compiler.c (is_shared_got_patch): Revert the last change as it seems
1734 * aot-compiler.c: Use is_plt_patch () in a few additional places.
1735 (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST, which is generated
1738 * aot-compiler.c: Reorganize the got handling code to be a bit more
1741 2008-08-17 Zoltan Varga <vargaz@gmail.com>
1743 * aot-compiler.c: Make the patch_to_plt_offset hash table use
1744 mono_patch_info_equals/hash, and use it to massively simplify
1747 * mini.c (mono_patch_info_hash): Simplify this and add support for
1750 * patch-info.h: Rename RGCTX_LAZY_FETCH_TRAMPOLINE to just RGCTX_FETCH.
1752 * mini.c aot-compiler.c aot-runtime.c: Revert the LAZY_FETCH_TRAMPOLINE
1753 handling code, since an offset is not enough to identify a trampoline.
1755 * method-to-ir.c: Remove some g_assert (!cfg->compile_aot) lines.
1757 2008-08-17 Mark Probst <mark.probst@gmail.com>
1759 * mini.c (mono_op_imm_to_op): Add case for OP_IMUL_IMM.
1761 * method-to-ir.c (mono_method_to_ir2): Decompose OP_CKFINITE.
1763 * mini-ops.h: Argument and result types for OVF_CARRY ops.
1765 * decompose.c: PPC decompositions for various ops.
1767 * cpu-ppc.md, inssel-ppc.brg, mini-ppc.c: PPC changes for Linear IL.
1769 2008-08-17 Zoltan Varga <vargaz@gmail.com>
1771 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Make this
1772 call the generic trampoline code using a call, instead of a jump, to
1773 remove some special casing from the generic trampoline code.
1775 * mini.c (mono_resolve_patch_target): Handle LAZY_FETCH_TRAMPOLINE.
1776 (mono_codegen): Ditto.
1778 * aot-compiler.c aot-runtime.c: Ditto.
1780 * patch-info.h: Add MONO_PATCH_INFO_RGCTX_LAZY_FETCH_TRAMPOLINE.
1782 * mini-trampolines.c (mono_find_rgctx_lazy_fetch_trampoline_by_addr): New
1783 helper function to find the offset corresponding to a lazy fetch trampoline.
1785 * mini.h (MonoCompile): Add 'orig_method' field to hold the original method
1786 when doing generic sharing.
1788 * aot-compiler.c: Use cfg->orig_method instead of cfg->method in a lot of
1791 * mini.c (mono_create_rgctx_lazy_fetch_trampoline): Move this to
1792 mini-trampolines.c to be with the other trampoline creation functions.
1794 * method-to-ir.c (mono_emit_method_call): Remove the 'signature' argument
1795 as it is equal to method->signature in most cases, add a
1796 mono_emit_method_call_full variant which takes a signature and an imt
1799 2008-08-16 Zoltan Varga <vargaz@gmail.com>
1801 * jit-icalls.c (mono_helper_compile_generic_method): Don't pass the context
1802 to this function, since it could be computed easily from the method
1804 (mono_helper_compile_generic_method_wo_context): Removed, not needed any
1807 * method-to-ir.c mini.c: Remove references to
1808 compile_generic_method_wo_context.
1810 * method-to-ir.c (mono_method_to_ir2): Enable AOT for virtual
1811 generic method calls.
1813 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_1 for 1
1814 dimensional non-szarrays.
1816 * mini.c (mini_init): Register mono_array_new_1.
1818 * jit-icalls.c (mono_array_new_1): New jit icall.
1820 * mini-trampolines.c (mono_magic_trampoline): For jumps, patch the GOT entries
1821 pointing to the method.
1823 * aot-runtime.c (mono_aot_get_method_from_token): Register GOT slots holding
1824 method addresses belonging to METHOD_JUMP patches in the
1825 jump_target_got_slot_hash.
1826 (mono_aot_load_method): Ditto.
1828 * aot-compiler.c (compile_method): Allow AOT compilation of methods with
1829 METHOD_JUMP patches.
1831 * mini.c (mini_create_jit_domain_info): New helper function which
1832 initializes/frees domain->runtime_info.
1833 (mini_free_jit_domain_info): Ditto.
1834 (mini_init): Install the domain hook functions with the runtime.
1836 * mini.h (MonoJitDomainInfo): New structure which stores the domain specific
1837 information maintained by the JIT.
1839 * mini.c (mono_resolve_patch_target): For PATCH_INFO_METHOD_JUMP, move the
1840 insertion into jump_table_hash into mono_codegen (), also implement proper
1843 * method-to-ir.c (mono_method_to_ir2): Don't disable AOT for CEE_JMP and
1844 tail calls, it is already done by the aot code.
1846 * method-to-ir.c (mono_method_to_ir2): Handle CEE_JMP using the tail call
1849 * iltests.il.in: Make the jmp test a bit more complex.
1851 * aot-compiler.c (encode_method_ref): Handle references to normal methods of
1852 generic instances which doesn't have a token.
1854 * aot-runtime.c (decode_method_ref): Ditto.
1856 * method-to-ir.c (handle_unbox_nullable): Don't disable AOT, the aot code
1857 can handle this case now.
1858 (handle_box): Ditto.
1860 2008-08-15 Geoff Norton <gnorton@novell.com>
1862 * mini-x86.c: Fix alignment on Apple x86, and re-disable the alignment
1865 2008-08-15 Zoltan Varga <vargaz@gmail.com>
1867 * method-to-ir.c (mono_method_to_ir2): Allow AOT compilation of methods
1868 calling generic methods.
1870 * aot-compiler.c (encode_patch): Handle MONO_PATCH_INFO_METHOD_RGCTX.
1872 * aot-runtime.c (decode_patch_info): Ditto.
1874 * mini.c (mono_resolve_patch_target): Ditto.
1876 * patch-info.h: Add METHOD_RGCTX.
1878 * mini-amd64.c (mono_arch_output_basic_block): Optimize LOCALLOC_IMM.
1880 2008-08-14 Zoltan Varga <vargaz@gmail.com>
1882 * mini-amd64.c (mono_arch_emit_call): Nullify call->vret_var if returning
1883 arguments in registers.
1885 * decompose.c (mono_decompose_vtype_opts): Create a var for the vreg in
1886 OP_VCALL too, don't depend on OP_OUTARG_VTRETADDR doing it.
1888 * mini.c (mini_method_compile): Abort aot compilation for generic
1889 methods if generic sharing is disabled.
1891 * mini.c (mono_method_to_ir): Disable AOT for virtual calls requiring
1894 * method-to-ir.c (mono_method_to_ir2): Disable AOT for virtual calls
1895 requiring an mrgctx.
1897 * decompose.c (mono_decompose_vtype_opts): Emit the correct sized
1898 store instructions when converting a vcall to a normal call.
1900 * mini.c (sigprof_signal_handler): Call mono_find_jit_info instead of
1901 mono_arch_find_jit_info.
1903 2008-08-13 Zoltan Varga <vargaz@gmail.com>
1905 * method-to-ir.c (check_inline_called_method_name_limit): Optimize this to
1906 avoid calling mono_method_full_name () for every method even if the
1908 (check_inline_caller_method_name_limit): Ditto.
1910 2008-08-12 Zoltan Varga <vargaz@gmail.com>
1912 * driver.c (main_thread_handler): Allow AOT compilation of multiple
1913 assemblies in one run.
1915 * aot-compiler.c (mono_compile_assembly): Only print out a count of
1916 skipped methods if it is not 0.
1918 * Makefile.am (aotcheck): AOT compile all test assemblies in one run.
1920 2008-08-12 Bill Holmes <billholmes54@gmail.com>
1922 * mini.c (mono_codegen): Changing a preprocessor check from WIN64 to
1923 MONO_ARCH_HAVE_UNWIND_TABLE.
1925 Contributed under MIT/X11 license.
1927 2008-08-12 Bill Holmes <billholmes54@gmail.com>
1929 * mini-amd64.c (mono_arch_cpu_optimizazions): Remove peephole and branch
1930 from default optimizaton list on Winx64.
1932 * mini-amd64.c (emit_tls_get): Added Winx64 specific implementation for GetTLS.
1934 * mini-amd64.c (mono_arch_emit_prolog): Adding an offset on Winx64 to get
1935 the LMF from the MonoJitTlsData structure.
1937 * mini-amd64.c (mono_arch_setup_jit_tls_data): Added Winx64 implementation.
1939 Contributed under MIT/X11 license.
1941 2008-08-12 Zoltan Varga <vargaz@gmail.com>
1943 * mini.c (sigsegv_signal_handler): Fix the build.
1945 * mini-amd64.c (emit_call_body): Use image->aot_module instead of
1946 assembly->aot_module.
1948 * aot-runtime.c: Use image->aot_module instead of searching in the aot_modules
1949 hash table. This simplifies and speeds up a lot of code, and fixes support
1952 * mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes if the thread is not registered
1955 * mini-exceptions.c: Ditto.
1957 * exceptions-*c.c (mono_arch_find_jit_info): Remove unused 'trace' and
1958 'native_offset' argument, since these are computed in the
1959 mono_find_jit_info () function.
1961 * mini-exceptions.c (mono_find_jit_info): Make this non-static, as it
1962 is used by exceptions-ppc.c.
1964 * exceptions-ppc.c: Call mono_find_jit_info () instead of
1965 mono_arch_find_jit_info ().
1967 * mini-ppc.h exceptions-ppc.c mini-mips.h mini-mips.c exceptions-mips.c
1968 mini-exceptions.c: Get rid of the CUSTOM_STACK_WALK stuff, use the
1969 generic code in mini-exceptions.c.
1971 2008-08-11 Zoltan Varga <vargaz@gmail.com>
1973 * mini-ppc.c (mono_arch_flush_register_windows): Add this for ppc.
1975 * aot-runtime.c (mono_aot_get_plt_info_offset): Fix a warning.
1977 * aot-runtime.c (mono_aot_get_method): Avoid doing all the loading inside
1978 the aot lock, to avoid deadlocks when mono_aot_get_class_from_name () is
1979 called while holding the loader lock. Fixes #415608.
1980 (mono_aot_get_method_from_token_inner): Ditto.
1982 2008-08-09 Zoltan Varga <vargaz@gmail.com>
1984 * exceptions-ppc.c (mono_jit_walk_stack): Use MONO_INIT_CONTEXT_FROM_CURRENT
1985 to reduce differences between this and the generic implementation in
1987 (ves_icall_get_frame_info): Ditto.
1989 * mini-ppc.h (MONO_INIT_CONTEXT_FROM_CURRENT): Define this for ppc too.
1991 * mini-exceptions.c (mono_exceptions_init): Remove an #ifdef which is no
1994 * exceptions-ppc.c (arch_get_call_filter): Rename this to
1995 mono_arch_get_call_filter () and make it non-static, for consistency with the
1996 other architectures.
1998 2008-08-09 Rodrigo Kumpera <rkumpera@novell.com>
2001 * local-propagation.c:
2002 * mini-x86.c: Correct the name of arch defines.
2004 2008-08-09 Zoltan Varga <vargaz@gmail.com>
2006 * method-to-ir.c (mono_op_to_op_imm_noemul): Correct name of
2007 NO_EMULATE_LONG_SHIFT_OPS define.
2009 2008-08-08 Zoltan Varga <vargaz@gmail.com>
2011 * method-to-ir.c (mono_method_to_ir2): Remove some code from CEE_MONO_LDPTR
2012 now that aot-ed icall wrappers use CEE_MONO_ICALL_ADDR.
2014 * aot-compiler.c aot-runtime.c: Add support for static aot compilation.
2015 MACH fixes. Merged from the 2.0 branch.
2017 * method-to-ir.c (mono_method_to_ir2): Handle CEE_MONO_ICALL_ADDR.
2019 * mini.c (mono_resolve_patch_target): Error out if an icall is not found.
2020 (mono_method_to_ir): Handle CEE_MONO_ICALL_ADDR.
2022 * exceptions-arm.c (mono_arch_get_throw_exception_generic): Add AOT support.
2024 * method-to-ir.c mini.c driver.c aot-compiler.c: Update after
2025 mono_marshal_get_native_wrapper () signature changes.
2027 2008-08-07 Rodrigo Kumpera <rkumpera@novell.com>
2029 * jit-icalls.c (mono_fconv_ovf_u8): Work around soft-float double to long
2030 conversion bug under arm.
2032 2008-08-06 Rodrigo Kumpera <rkumpera@novell.com>
2034 * cpu-arm.md: Increase long_conv_to_ovf_i4_2 max length to 36.
2036 * mini-arm.c (mono_arch_output_basic_block): Implement long to int conversion
2037 with overflow checking.
2039 2008-08-05 Marek Habersack <mhabersack@novell.com>
2041 * Makefile.am (GENMDESC_PRG): when cross-compiling use full path
2042 to the genmdesc.pl file
2044 2008-08-05 Zoltan Varga <vargaz@gmail.com>
2046 * ir-emit.h (EMIT_NEW_ARGSTORE): Fix the usage of param_types and
2047 arg_array in the soft-float versions of the LOAD/STORE macros.
2049 * method-to-ir.c (mono_method_to_ir2): Fix a warning in the arm switch
2052 * ir-emit.h (NEW_VARLOADA): Handle SOFT_FLOAT correctly.
2054 2008-08-02 Zoltan Varga <vargaz@gmail.com>
2056 * mini-ia64.c (add_valuetype): Only reserve half parameter slot for each member of
2057 a float HFA. Fixes #413621.
2059 2008-08-02 Gert Driesen <drieseng@users.sourceforge.net>
2061 * mini-x86.c (mono_arg_get_argument_info): Rename last occurrence of
2062 frame_size to args_size. Fixes build.
2064 2008-08-02 Zoltan Varga <vargaz@gmail.com>
2066 * mini-x86.c (mono_arch_get_argument_info): Rename frame_size to args_size,
2067 and don't align it to MONO_ARCH_FRAME_ALIGNMENT.
2069 * mini-x86.h: Change MONO_ARCH_FRAME_ALIGNMENT to 8 so doubles stored on
2070 the stack are not unaligned. Fixes #413247.
2072 Fri Aug 1 18:46:42 CEST 2008 Paolo Molaro <lupus@ximian.com>
2074 * mini.c: update jitted methods performance counters.
2076 Fri Aug 1 16:30:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
2078 * mini-exceptions.c: increase the exceptions thrown performance
2079 counter in mono_handle_exception ().
2081 2008-07-29 Zoltan Varga <vargaz@gmail.com>
2083 * aot-runtime.c: Use MonoImage's as keys in the aot_modules hash so the aot
2084 can work with netmodules.
2086 2008-07-28 Geoff Norton <gnorton@novell.com>
2088 * mini-x86.h: Correct the frame alignment on OSX. Fixes the jit
2091 2008-07-28 Zoltan Varga <vargaz@gmail.com>
2093 * mini-x86.c (mono_arch_emit_call): Emi the osx stack alignment at the
2096 2008-07-28 Bill Holmes <billholmes54@gmail.com>
2098 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
2099 The float param registers and other param registers must be the
2100 same index on Windows x64.
2102 * mini-amd64.c (mono_arch_allocate_vars) : Implementing the
2103 ArgValuetypeAddrInIReg argument case. Setting the argument
2104 op to OP_VTARG_ADDR (OP_REGOFFSET)).
2106 * mini-amd64.c (mono_arch_call_opcode) : Winx64 fix. Use the size
2107 variable computed above as the copy length for arguments of storage
2108 type ArgValuetypeAddrInIReg.
2110 * mini-amd64.c (mono_arch_emit_call) : Implementing the
2111 ArgValuetypeAddrInIReg argument case. This case will rely on
2112 mono_arch_emit_outarg_vt to emit the correct code later in the process.
2114 * mini-amd64.c (mono_arch_emit_call) : On Winx64 there always needs to be
2115 a 32 byte stack allocation for all calls. We will omit the adjustment for
2116 jump and tail call instructoins as they do not follow the typical call behavior.
2118 * mini-amd64.c (mono_arch_emit_outarg_vt) : Implementing the case for
2119 ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
2120 local variable and pass the local variable by reference to the called method.
2122 * mini-amd64.c (mono_arch_emit_prolog, emit_load_volatile_arguments) :
2123 Implementing the ArgValuetypeAddrInIReg argument case. When the address
2124 of a struct is passed in a register it must be saved with the other
2125 volatile argument on the stack.
2127 * mini-amd64.c (mono_arch_emit_prolog) : Winx64 fix. When omitting the
2128 frame pointer the stack adjustment value must be saved to the unwind
2131 Contributed under MIT/X11 license.
2133 2008-07-28 Zoltan Varga <vargaz@gmail.com>
2135 * inssel-x86.brg (stmt): Add missing OP_X86_OUTARG_ALIGN_STACK rule
2136 which got lost in the merge.
2138 2008-07-27 Zoltan Varga <vargaz@gmail.com>
2140 * method-to-ir.c: Make the helper_sig variables extern to fix the ppc
2143 * mini-amd64.c (emit_call_body): Add a no_patch case missed earlier.
2145 * mini-amd64.c (emit_call_body): Avoid aligning the call instruction on
2146 icalls, since they won't be patched.
2148 * exceptions-amd64.c (mono_arch_get_restore_context_full): Use a slightly
2149 different code sequence when running under valgrind to prevent some valgrind
2152 * iltests.il.in: Add new regression test.
2154 * method-to-ir.c (mono_method_to_ir2): Fix handling of inlined methods which
2157 * method-to-ir.c (mono_method_to_ir2): Use get_vreg_to_inst () instead of
2158 accessing cfg->vreg_to_inst directly to prevent a crash in LDFLD.
2160 * iltests.il.in: Add new test.
2162 * aot-compiler.c: Fix some warnings.
2164 * decompose.c (mono_decompose_long_opts): Implement OP_ICONV_TO_OVF_I8_UN.
2167 2008-07-27 Zoltan Varga <vargaz@gmail.com>
2169 * driver.c (mono_main): Fix the --gc=none build. Fixes #412482.
2170 (mini_usage_jitdeveloper): Add a missing --wapi option.
2172 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2174 * mini-codegen.c: Simplify the is_fp macros.
2175 (free_up_ireg): Remove, use free_up_reg instead.
2176 (free_up_reg): Fix the fp case.
2178 2008-07-26 Zoltan Varga <vargaz@gmail.com>
2180 * cpu-arm.md (loadr8_membase): Increase the length of this as this is not
2183 * exceptions-x86.c: Merge some changes which seemed to have got lost
2184 in the linear-ir merge.
2186 * liveness.c: Disable the liveness2 pass on 32 bit platforms.
2188 * method-to-ir.c (mono_handle_global_vregs): Make the component vregs of a
2189 long vreg volatile even if the variable was already created.
2191 * liveness.c (update_liveness2): Avoid eliminating dead definitions of
2194 2008-07-26 Zoltan Varga <vargaz@gmail.com>
2196 * cpu-x86.md (fcall_membase): Increase the size of the fcall opcodes.
2198 * mini.c (mono_jit_compile_method_inner): Add support for
2199 MONO_EXCEPTION_BAD_IMAGE.
2201 * method-to-ir.c (mono_method_to_ir2): Avoid a crash if
2202 mini_method_get_context () returns NULL. Fixes #356531.
2204 * mini.c (mono_method_to_ir): Ditto.
2206 * method-to-ir.c (mono_method_to_ir2): Create a variable if needed when
2207 accessing a field of a valuetype in LDFLD/STFLD. Fixes #412399.
2209 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2211 * method-to-ir.c (mono_method_to_ir2): Initialize an uninitialized variable
2212 in the LDFTN implementation.
2214 2008-07-25 Mark Probst <mark.probst@gmail.com>
2216 * mini-trampolines.c (mono_magic_trampoline): When sharing generic
2217 code, patch calls to icalls, too, even if they're not in the
2218 shared generic code hash. Fixes #411962.
2220 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2222 * cpu-x86.md: Increase the length of the fcall opcodes.
2224 * mini-x86.c (emit_move_return_value): Avoid some precision issues for
2225 calls returning floats.
2227 * method-to-ir.c (mono_method_to_ir2): Remove the generic sharing restrictions
2230 * method-to-ir.c (mono_method_to_ir2): Merge some LDFTN gsharing changes
2233 * method-to-ir.c (handle_delegate_ctor): Avoid putting dynamic methods
2234 into the domain->method_code_hash.
2236 * aot-compiler.c: Fix win32 build.
2238 * method-to-ir.c (EMIT_GET_RGCTX): Call EMIT_NEW_LDARG in emit_get_rgctx ().
2240 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_specific in the
2241 gshared NEWARR implementation.
2243 * cpu-sparc.md: Remove duplicate localloc_imm opcode.
2245 * ir-emit.h (NEW_ARGLOAD): Use cfg->args and cfg->arg_types so this macro
2246 can be used outside of method_to_ir.
2248 * mini.h (MonoCompile): Add arg_types field.
2250 * method-to-ir.c (inline_method): Save/Restore cfg->args and cfg->arg_types.
2252 * method-to-ir.c (mono_method_to_ir2): Set cfg->args and cfg->arg_types to
2253 the values of the local arg_array and param_types array.
2255 2008-07-24 Zoltan Varga <vargaz@gmail.com>
2257 * method-to-ir.c (mono_method_to_ir2): Allocate a GOT var for NEWOBJ, since
2258 got accesses might only get generated later when NEWOBJ is decomposed.
2260 * method-to-ir.c (handle_delegate_ctor): Add an optimization to avoid
2261 looking up the native code of the target method when a delegate is called
2264 * mini-trampolines.c (mono_delegate_trampoline): Add the other half of the
2267 * debug-debugger.c (MONO_DEBUGGER__debugger_info): Fix a warning.
2269 * aot-runtime.c aot-compiler.c: Add a new option 'no-dlsym' which makes
2270 AOT work on platforms without a working dlsym implementation.
2272 * mini.h: Bump AOT image format version.
2274 2008-07-24 Mark Probst <mark.probst@gmail.com>
2276 * mini-exceptions.c: Free a MonoType with
2277 mono_metadata_free_type() instead of g_free().
2279 * aot-runtime.c: Free a MonoType.
2281 2008-07-24 Zoltan Varga <vargaz@gmail.com>
2283 * method-to-ir.c (mono_method_to_ir2): Add a comment for the box+brtrue
2286 * mini-codegen.c (mono_local_regalloc): Remove the remaining items from the
2289 2008-07-23 Massimiliano Mantione <massi@ximian.com>
2290 * mini.c (sigprof_signal_handler): call the new "runtime initialized"
2293 2008-07-23 Zoltan Varga <vargaz@gmail.com>
2295 * method-to-ir.c (mono_method_to_ir2): Set the stack type properly for
2296 NEWOBJ calls on valuetypes.
2298 * iltests.il.in: Add new test.
2300 * mini-x86.c (mono_arch_emit_call): Use mini_type_stack_size ().
2302 2008-07-22 Zoltan Varga <vargaz@gmail.com>
2304 * mini-exceptions.c: Fix some warnings. Remove one ia64 special case as it
2305 is no longer needed.
2307 * mini-ia64.c (mono_arch_emit_prolog): In native-to-managed wrappers, widen
2308 non register sized integer arguments.
2309 (mono_arch_call_opcode): Add support for ArgInFloatRegR4.
2310 (mono_arch_emit_outarg_vt): Pass a more reasonable alignment to
2313 * method-to-ir.c (mono_method_to_ir2): Handle the ret_var_is_local case in
2316 * method-to-ir.c (ADD_WIDEN_OP): New macro to insert a widening op when
2317 two a binop with different sized arguments is emitted.
2319 * mini.c (mono_bblock_insert_after_ins): Properly link up with the next
2320 instruction in the ins==NULL case.
2322 2008-07-23 Zoltan Varga <vargaz@gmail.com>
2324 * mini-ops.h: Add OP_X86_OUTARG_ALIGN_STACK.
2326 * mini-x86.c: Fix osx build.
2328 * mini-amd64.c (mono_arch_output_basic_block): Handle varargs in the CALL_REG
2331 * method-to-ir.c (mono_spill_global_vars): Avoid fusing a load+store into the
2332 instruction for non int sized variables.
2334 * method-to-ir.c (mono_method_to_ir2): Fix an assert in the LDFLD
2337 2008-07-23 Robert Jordan <robertj@gmx.net>
2339 * method-to-ir.c: Fix MSVC build.
2341 2008-07-22 Zoltan Varga <vargaz@gmail.com>
2343 * method-to-ir.c (mono_method_to_ir2): When calling native code which returns
2344 a non int sized type, widen it to an int since newer versions of gcc seem to
2345 generate code which needs this.
2347 * ssa2.c abcremoval2.c: Fix warnings.
2349 * *: Merge the Linear IR branch.
2351 The original branch is at trunk/branches/vargaz/mini-linear-il, and
2352 the ChangeLog file there describes all the changes done over the years.
2353 Further documentation can be found at www.mono-project.com/Linear_IL.
2355 2008-07-21 Bill Holmes <billholmes54@gmail.com>
2357 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
2358 The float param registers and other param registers must be the
2359 same index on Windows x64.
2361 Contributed under MIT/X11 license.
2363 2008-07-21 Rodrigo Kumpera <rkumpera@novell.com>
2365 * mini.c: Make the previous fix GC safe.
2367 2008-07-21 Raja R Harinath <harinath@hurrynot.org>
2369 * Makefile.am (version.h): Allow a trailing '/' in the repository URL.
2371 2008-07-21 Bill Holmes <billholmes54@gmail.com>
2373 * mini-amd64.c (get_call_info): Correcting the case for MONO_TYPE_TYPEDBYREF
2374 on Winx64. This type will not be passed on the stack (ArgOnStack), but
2375 ArgValuetypeAddrInIReg instead.
2377 Contributed under MIT/X11 license.
2379 2008-07-21 Zoltan Varga <vargaz@gmail.com>
2381 * mini-codegen.c (get_register_spilling): Fix a warning.
2383 2008-07-17 Rodrigo Kumpera <rkumpera@novell.com>
2385 * mini.c: Use mono_runtime_class_init_full to avoid leaking memory
2386 for types which the initialization fails. Raises the provided exception
2387 at the right stop after cleanup.
2389 2008-07-16 Zoltan Varga <vargaz@gmail.com>
2391 * aot-compiler.c: Free most of the memory allocated during compilation.
2393 * mini.c (mini_parse_debug_options): Fix a leak.
2395 * mini.c (mini_method_compile): Don't add the method to the jit info tables
2396 during aot compilation.
2398 2008-07-14 Zoltan Varga <vargaz@gmail.com>
2400 * mini.c (mono_method_to_ir): Disable aot for code using CCASTCLASS on x86 as
2401 it has too much register pressure.
2403 2008-07-13 Zoltan Varga <vargaz@gmail.com>
2405 * inssel.brg (CEE_CASTCLASS): Remove some dead code.
2407 2008-07-12 Zoltan Varga <vargaz@gmail.com>
2409 * mini-x86.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
2412 * mini-amd64.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
2413 on amd64 similar to the way it is done on arm.
2415 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
2417 * aot-runtime.c (load_aot_module): Rename 'info' to 'amodule' for
2418 consistency, normalize error messages, avoid loading aot-only modules in
2421 * driver.c (mono_main): Rename --aot-only command line option to --full-aot
2424 * aot-compiler.c aot-runtime.c tramp-arm.c: Implement aot-only support.
2426 2008-07-11 Martin Baulig <martin@ximian.com>
2429 (MonoDebuggerInfo): Add `interruption_request'.
2431 2008-07-12 Zoltan Varga <vargaz@gmail.com>
2433 * aot-compiler.c (emit_plt): Remove some dead code.
2435 * exceptions-arm.c (mono_arch_get_call_filter_full): Initialize ji.
2437 * aot-runtime.c (mono_aot_get_plt_info_offset): New helper function to
2438 return the plt info offset belonging to a given plt entry.
2440 * mini-trampolines.c (mono_aot_plt_trampoline): Use
2441 mono_aot_get_plt_info_offset.
2443 * aot-runtime.c aot-compiler.c tramp-arm.c: Change the arm plt code to be
2444 similar to the amd64 code by makeing jumps through a separate jump table
2445 instead of embedding the jump addresses into the code.
2447 2008-07-11 Zoltan Varga <vargaz@gmail.com>
2449 * mini.c (mono_method_to_ir): Disable aot for calling ldtoken in a generic
2452 2008-07-10 Martin Baulig <martin@ximian.com>
2454 * mini.c (mini_method_compile): Disable generics sharing when
2455 running in the debugger.
2457 2008-07-10 Zoltan Varga <vargaz@gmail.com>
2459 * mini.c (mono_method_to_ir): Create the got var in CEE_REFANYVAL.
2461 * inssel.brg (CEE_CASTCLASS): Avoid reusing temporary registers to prevent
2462 the local register allocator from running out of registers on x86 when
2465 2008-07-10 Bill Holmes <billholmes54@gmail.com>
2467 * inssel-long.brg For OP_LCONV_TO_OVF_I4 an int cast is needed when
2468 expressing IntMin for the VS Compiler. See Compiler Warning (level 2)
2471 Contributed under MIT/X11 license.
2473 2008-07-10 Zoltan Varga <vargaz@gmail.com>
2475 * aot-compiler.c: Get rid of whitespace in the generated assembly file to
2476 speed up the assembler.
2478 2008-07-09 Zoltan Varga <vargaz@gmail.com>
2480 * mini-arm.h tramp-arm.c exceptions-arm.c aot-compiler.c: Beginnings of aot-only
2483 * mini.c: Move the soft float handling macros a bit earlier, add
2484 NEW_TEMPSTORE_SOFT_FLOAT macro, fix warnings, add soft-float support in one
2487 * mini.h: Add prototype for mono_arch_fixup_jinfo.
2489 * mini.c (mini_init): In aot-only mode, set the root domain code manager to
2490 read-only to help catch code allocation requests.
2492 * mini.c inssel.brg aot-compiler.c: Make the use of IMT runtime configurable,
2493 and turn it off when using --aot-only or when compiling with --aot=full.
2495 * mini.c (mono_resolve_patch_target): In aot-only mode, allocate the
2496 jump table for switches from the normal domain mempool, not the code
2499 * mini-trampolines.c (get_unbox_trampoline): New function to return an
2500 unbox trampoline which handles aot-only mode too.
2502 * aot-runtime.c (mono_aot_get_unbox_trampoline): New function to lookup
2503 an AOTed unbox trampoline.
2505 * aot-compiler.c (emit_trampolines): Emit unbox trampolines.
2507 2008-07-09 Bill Holmes <billholmes54@gmail.com>
2509 * wapihandles.c: Fixing MSVC builds. Include statement changed from <> to
2512 Contributed under MIT/X11 license.
2514 2008-07-09 Bill Holmes <billholmes54@gmail.com>
2516 * mini.c (mono_codegen): Allocate space at the end of the code block and store
2517 the unwind information for the method at the end of the allocated block.
2519 * mini-amd64.h: Added declarations for the unwind routines and adding field to
2520 MonoCompileArch to hold the unwind info for SEH on Winx64
2522 * mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
2523 frame pointer info for the method being compiled.
2525 * exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
2526 the call to mono_exception_from_token.
2528 * exceptions-amd64.c: Added mono_arch_unwindinfo* implementations. This code is responsible
2529 storing the method prolog information in a format that the Winx64 SEH can understand. This
2530 information is stored a the end of the method block because it is all 32-bit offset based.
2532 Contributed under MIT/X11 license.
2534 2008-07-09 Zoltan Varga <vargaz@gmail.com>
2536 * mini.h: Remove duplicate definitions of the mini_wapi_ functions.
2538 * wapihandles.c: Fix warnings.
2540 * aot-runtime.c (load_aot_module): Add a missing error message in aot-only
2543 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
2544 mono_jit_compile_method in aot-only mode since that calls the type
2547 * mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
2548 get_delegate_invoke_impl in aot-only mode.
2550 * mini.c (mono_global_codeman_reserve): Reenable the aot-only check.
2552 2008-07-08 Zoltan Varga <vargaz@gmail.com>
2554 * trace.c (mono_trace_enter_method): Fix printing of Type instances.
2556 * aot-compiler.c (compile_method): Disable the check for GSHARED since it
2559 * inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).
2561 * tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
2562 init trampoline from the AOT file as well.
2564 * mini-amd64.c (mono_arch_register_lowlevel_calls): Register
2565 mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
2568 * mini.c (mini_init): Move the call to mono_exceptions_init () after
2571 * exceptions-amd64.c: Add _full variants for the remaining exception code
2572 creation functions as well, allow emission of relocatable code, remove
2573 caching since that is now done by the caller.
2575 * mini-exceptions.c: Add _full variants for the remaining exception code
2576 creation functions as well, add aot-only support.
2578 * aot-compiler.c (compile_method): Allow calls to methods of constructed types
2579 if we can determine a proper token for them.
2580 (add_wrappers): Add a few more wrappers.
2581 (emit_method_code): Remove some dead code.
2582 (emit_trampolines): Emit exception code too.
2584 * mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.
2586 * jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
2587 mono_array_new_va which avoids varargs.
2589 * mini-exceptions.c (mono_exceptions_init): Fix the ppc build.
2591 * mini-trampolines.c: Call mono_create_specific_trampoline () instead of
2592 mono_arch_create_specific_trampoline () in all places.
2594 * aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
2595 a bit so it can be used for other things as well.
2597 * mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
2600 * exceptions-amd64.c: Rename the caching from the exception code creation
2601 functions, it is done by the caller instead.
2603 * exceptions-amd64.c: Change the signature of the exception code creation
2604 functions to allow the creation of relocatable code later.
2606 * mini-exceptions.c: Add a set of functions to query the various
2607 runtime-generated exception functions.
2609 * mini.c mini-exceptions.c: Use the newly added functions instead of the
2610 mono_arch_.. () functions.
2612 2008-07-07 Zoltan Varga <vargaz@gmail.com>
2614 * mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.
2616 * aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.
2618 * mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
2619 (mini_get_vtable_trampoline): Ditto.
2621 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
2622 code in the AOT case by returning the code size and a list of relocations to
2625 * mini-trampolines.c (mono_create_specific_trampoline): New helper function.
2627 2008-07-07 Bill Holmes <billholmes54@gmail.com>
2629 * mini-amd64.c: On Winx64 the calling convention always requires the caller to
2632 Contributed under MIT/X11 license.
2634 2008-07-07 Zoltan Varga <vargaz@gmail.com>
2636 * aot-compiler.c (emit_exception_debug_info): Serialize the debug info first
2637 so the buffer size can be computed correctly. Fixes #404735.
2639 * debug-mini.c (mono_debug_serialize_debug_info): Lookup the debug info
2640 normally as cfg->debug_info is already freed.
2642 2008-07-06 Zoltan Varga <vargaz@gmail.com>
2644 * mini-amd64.c: For calls returning vtypes in registers, don't store
2645 the return address on the stack, instead allocate a separate local for
2648 2008-07-05 Mark Probst <mark.probst@gmail.com>
2650 * mini-trampolines.c, mini.h: Add an argument to
2651 mono_create_jit_trampoline_in_domain() for turning off the adding
2652 of the sync wrapper.
2654 * mini.c: Use the JIT trampoline without sync instead of
2655 ldftn_nosync in static RGCTX invoke wrappers so that the call can
2658 2008-07-04 Mark Probst <mark.probst@gmail.com>
2660 * driver.c: Turn on GSHARED optimization by default.
2662 2008-07-04 Zoltan Varga <vargaz@gmail.com>
2664 * mini-trampolines.c mini.c mini.h tramp-<ARCH>.c: Rename MONO_TRAMPOLINE_GENERIC
2665 to MONO_TRAMPOLINE_JIT since it better reflects what it does.
2667 * mini-trampolines.c (mono_get_aot_trampoline_code): New internal function to
2668 create a variant of the generic trampoline code callable from AOTed trampolines.
2670 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Add support for generic
2671 trampoline code callable from AOTed trampolines.
2673 * aot-compiler.c aot-runtime.c: Add support for AOTing trampolines.
2675 2008-07-04 Mark Probst <mark.probst@gmail.com>
2677 * inssel.brg, mini-ops.h: New opcode for doing CHECK_THIS in a
2678 pass-through manner.
2680 * mini.c: Generic method sharing. Pass MRGCTX to generic methods
2681 and don't fail sharing for them anymore.
2683 * mini-exceptions.c: Handle exceptions in shared generic methods.
2685 * generic-sharing.c: When checking the context of a generic
2686 method, also check its class's context. Don't treat wrappers as
2689 * mini-trampolines.c: Some code factored out to
2690 metadata/generic-sharing.c. Handle the MRGCTX case.
2692 * jit-icalls.c, jit-icalls.h: ldvirtfn icall for generic sharing -
2693 we must deal with the method being of another instantiation of the
2694 class. Add static rgctx invoke wrappers to generic methods.
2696 2008-07-04 Mark Probst <mark.probst@gmail.com>
2698 * mini.c: Provide all jit infos of generic shared methods with a
2701 * mini-exceptions.c: Handle the new situation that a generic info
2702 might be available, but not info about the this/vtable/mrgctx
2705 2008-07-03 Mark Probst <mark.probst@gmail.com>
2707 * mini.c: Don't accept ldftn and ldvirtftn with uninstantiated
2710 2008-07-03 Zoltan Varga <vargaz@gmail.com>
2712 * dominators.c (check_dominance_frontier): Fix a warning.
2714 * mini.h: Add some missing prototypes.
2716 * ssa.c local-propagation.c debug-debuger.c: Fix warnings.
2718 * driver.c (mono_jit_init_version): Correct the comments since the first
2719 argument should be the name of the root domain, not a filename.
2721 * aot-runtime.c (make_writable): Error out if this is called while running
2723 (load_aot_module): Ditto.
2725 * aot-compiler.c: Really fix the computation of method indexes.
2727 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Remove the previous
2728 optimizations as this is no longer called frequently.
2730 * mini-trampolines.c (mono_create_delegate_trampoline): Precompute the invoke
2731 method and the invoke impl code and pass it to the delegate trampoline instead of
2732 just the delegate class.
2734 2008-07-02 Zoltan Varga <vargaz@gmail.com>
2736 * aot-compiler.c: Fixup the computation of method indexes.
2737 (add_wrappers): Create the base methods of the runtime invoke wrappers using
2738 the method builder infrastructure.
2740 * aot-runtime.c (decode_exception_debug_info): Don't crash if the method
2743 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): In aot-only
2744 mode, load the method right away instead of creating a trampoline.
2746 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Eliminate locking.
2748 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Eliminate locking, speed up
2751 2008-07-01 Zoltan Varga <vargaz@gmail.com>
2753 * aot-runtime.c (decode_patch_info): Don't create trampolines in aot_only mode.
2754 (mono_aot_load_method): Use method_index instead of method->token.
2756 * mini.c (mono_jit_compile_method_inner): Move the aot_only check down, so it
2757 can handle icalls etc. properly.
2759 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
2761 * aot-compiler.c aot-runtime.c: Allow AOTing many wrapper types.
2763 * mini.c (mono_resolve_patch_target): Handle JIT_ICALL_ADDR.
2764 (mono_codegen): Convert calls made by JIT icall wrappers to the icalls into
2765 JIT_ICALL_ADDR patch type.
2767 * patch-info.h: Add JIT_ICALL_ADDR patch type.
2769 * mini.c (mono_method_to_ir): Allow AOTing methods which access the interruption
2771 (mono_resolve_patch_target): Handle INTERRUPTION_REQUEST_FLAG.
2773 * patch-info.h: Add INTERRUPTION_REQUEST_FLAG.
2775 2008-06-30 Zoltan Varga <vargaz@gmail.com>
2777 * mini.c: Use domain->jit_code_hash_lock for controlling access to
2778 domain->jit_code_hash.
2780 2008-06-29 Zoltan Varga <vargaz@gmail.com>
2782 * mini.c (mini_parse_debug_options): Add 'dont-free-domains' option.
2784 2008-06-27 Zoltan Varga <vargaz@gmail.com>
2786 * mini-trampolines.c (mono_delegate_trampoline): Don't pass a gsctx to
2787 get_this_arg_from_call, let it compute it when needed.
2789 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'code' argument, compute
2790 gsctx from code only when needed.
2792 * mini-trampolines.c (get_generic_context): Rename this to
2793 mono_get_generic_context_from_code (), and move it to generic-sharing.c, where
2794 it can be called by the arch backends.
2796 * mini-exceptions.c (mono_print_thread_dump): Allow the argument to be NULL.
2798 2008-06-26 Zoltan Varga <vargaz@gmail.com>
2800 * driver.c (mono_main): Add experimental --aot-only command line option.
2802 * mini.c: Error out when creating trampolines or JIT compiling if --aot-only is
2805 2008-06-26 Kornél Pál <kornelpal@gmail.com>
2807 * driver.c (DllMain): Remove mono_module_handle.
2809 Contributed under MIT/X11 license.
2811 2008-06-25 Zoltan Varga <vargaz@gmail.com>
2813 * aot-compiler.c: Add not-yet-usable 'full' option. Add some infrastructure code
2814 for emitting methods which are not in the source assembly. Detect and report
2815 failure of assembling+linking.
2817 * aot-compiler.c (emit_klass_info): Call mono_class_setup_vtable ().
2819 * aot-compiler.c: Move the contents of the has_glot_slots array to MonoCompile.
2821 2008-06-24 Rodrigo Kumpera <rkumpera@novell.com>
2823 * mini.c: Check if stats is enabled so we don't allocate memory when not needed.
2825 2008-06-24 Zoltan Varga <vargaz@gmail.com>
2827 * mini.h: Remove some obsolete prototypes.
2829 * mini.c: Avoid storing MonoMethod pointers in the JIT stats, store their string format instead.
2831 2008-06-24 Mark Probst <mark.probst@gmail.com>
2833 * mini.c (get_object_generic_inst): Variable-sized arrays are not
2834 supported by Visual Studio, so use alloca().
2836 2008-06-23 Zoltan Varga <vargaz@gmail.com>
2838 * mini-ia64.c (add_valuetype): Increase *gr too when passing a HFA to be in sync with the ABi.
2841 2008-06-23 Mark Probst <mark.probst@gmail.com>
2843 * mini.c: Fail sharing of a generic method if it contains an open
2844 catch clause (because we don't pass MRGCTXs yet).
2846 2008-06-23 Mark Probst <mark.probst@gmail.com>
2848 * mini.c: When compiling a method with generic sharing, insert the
2849 method instantiated with an all-Object generic context into the
2850 jit info table, instead of the context of the first instantiation
2851 of the method we happen to compile.
2853 2008-06-18 Martin Baulig <martin@ximian.com>
2855 * debug-debugger.h (MonoDebuggerInfo): Replaced `version' with
2856 `major_version' and `minor_version'.
2858 2008-06-17 Mark Probst <mark.probst@gmail.com>
2860 * generic-sharing.c, mini.c, mini.h, aot-runtime.c:
2861 mono_method_is_generic_sharable_impl() takes an additional
2862 argument specifying whether to treat type variables as reference
2865 2008-06-17 Mark Probst <mark.probst@gmail.com>
2867 * mini.h: Removed obsolete prototypes.
2869 2008-06-17 Mark Probst <mark.probst@gmail.com>
2871 * mini.c: Don't fail generic sharing for initobj and sizeof - we
2872 already handle them.
2874 2008-06-17 Mark Probst <mark.probst@gmail.com>
2876 * mini.h, mini-trampolines.c, tramp-alpha.c, tramp-amd64.c,
2877 tramp-arm.c, tramp-hppa.c, tramp-ia64.c, tramp-mips.c,
2878 tramp-ppc.c, tramp-s390.c, tramp-s390x.c, tramp-sparc.c,
2879 tramp-x86.c: Added a MonoGenericContext* argument to
2880 mono_arch_get_unbox_trampoline() so that it can call other
2881 functions which require it.
2883 2008-06-17 Mark Probst <mark.probst@gmail.com>
2885 * mini.h, mini-trampolines.c, mini-amd64.c, mini-x86.c,
2886 mini-alpha.c, mini-arm.c, mini-ia64.c, mini-ppc.c:
2887 mono_arch_get_this_arg_from_call() takes a
2888 MonoGenericSharingContext* as well.
2890 2008-06-17 Mark Probst <mark.probst@gmail.com>
2892 * mini.c: Factor out code for emitting unbox into emit_unbox() and
2893 implement generic sharing of unbox.
2895 2008-06-17 Mark Probst <mark.probst@gmail.com>
2897 * mini.c: Don't compute the vtable to determine whether a field is
2898 special static, because it might not work for open types.
2900 2008-06-17 Mark Probst <mark.probst@gmail.com>
2902 * mini.c: Removed the unused token_type and token_source arguments
2903 from get_runtime_generic_context_ptr().
2905 2008-06-17 Marek Habersack <mhabersack@novell.com>
2907 * mini.c (ADD_BINOP): fix the build
2909 2008-06-16 Zoltan Varga <vargaz@gmail.com>
2911 * mini.c (ADD_BINOP): When operating on a native int and an int32, insert
2914 2008-06-16 Mark Probst <mark.probst@gmail.com>
2916 * mini.h: Removed class relations enum that's not used anymore.
2918 2008-06-16 Mark Probst <mark.probst@gmail.com>
2920 * tramp-x86.c, tramp-amd64.c: Slot access code for MRGCTXs.
2922 * mini-trampolines.c: Distinguish between RGCTXs and MRGCTXs in
2923 the lazy fetch trampoline access code.
2925 2008-06-15 Zoltan Varga <vargaz@gmail.com>
2927 * mini-codegen.c (mono_local_regalloc): Add some micro optimizations.
2929 2008-06-14 Zoltan Varga <vargaz@gmail.com>
2931 * mini.c: Fix some soft-float bugs. Fixes #378735 and #398348.
2933 * mini.h (MONO_INST_LIST_ENTRY): Fix warnings on arm.
2935 * mini.c (mono_method_to_ir): Check call signature for NEWOBJ as well.
2937 2008-06-13 Zoltan Varga <vargaz@gmail.com>
2939 * mini-x86.c inssel-x86.brg cpu-x86.md: Implement unsigned min/max
2942 * mini-ops.h: Add MIN/MAX_UN opcodes.
2944 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Implement unsigned min/max
2947 * basic-math.cs: Add more min/max tests.
2949 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
2951 2008-06-13 Mark Probst <mark.probst@gmail.com>
2953 * mini.c: Small fix in the prologue of emit_castclass.
2955 2008-06-13 Zoltan Varga <vargaz@gmail.com>
2957 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
2959 * mini.c (mini_get_inst_for_method): Remove the Min/Max intrinsics, they
2960 do not work even for unsigned types. Fixes #400014.
2962 * basic-math.cs: Add regression tests for unsigned Min/Max.
2964 2008-06-13 Mark Probst <mark.probst@gmail.com>
2966 * mini.c: Added additional context_used argument to several
2967 functions, which will be needed for sharing generic methods. Use
2968 GET_RGCTX macro wherever appropriate. Declare only one
2969 context_used in mono_method_to_ir().
2971 2008-06-13 Mark Probst <mark.probst@gmail.com>
2973 * mini.c, generic-sharing.c: Removed generic class relations.
2975 * mini.c, tramp-amd64.c, tramp-x86.c: Additional arguments to
2976 functions due to MRGCTX changes.
2978 2008-06-13 Mark Probst <mark.probst@gmail.com>
2980 * inssel.brg, inssel-long.brg, inssel-long32.brg, mini-ops.h,
2981 graph.c, local-propagation.c, aliasing.c: New opcodes for calls
2982 with calculated IMT.
2984 * mini.c: Generic sharing of calls via generic interfaces.
2986 * jit-icalls.c, jit-icalls.h: Helper function for compiling a
2987 generic method with non-constant MonoGenericContext*. Instead,
2988 the context is taken out of the method itself.
2990 2008-06-13 Mark Probst <mark.probst@gmail.com>
2992 * mini.c: Generic sharing of ldvirtftn.
2994 2008-06-13 Mark Probst <mark.probst@gmail.com>
2996 * mini.c: Generic sharing of ldftn.
2998 2008-06-13 Mark Probst <mark.probst@gmail.com>
3000 * mini.c: Do pass VTable/RGCTX argument to static generic methods.
3002 2008-06-13 Mark Probst <mark.probst@gmail.com>
3004 * mini.c: Generic sharing of the special case of ldtoken followed
3005 by a call to GetTypeFromHandle.
3007 2008-06-13 Mark Probst <mark.probst@gmail.com>
3009 * mini.c: Generic sharing of box for nullable types.
3011 2008-06-13 Zoltan Varga <vargaz@gmail.com>
3013 * mini-s390x.c (add_stackParm): Fix computation of offsets when arguments
3014 are passed on the stack. Fixes #324807.
3016 2008-06-12 Bill Holmes <billholmes54@gmail.com>
3018 * mini-amd64.c:add_valuetype: Adding Winx64 code to fill the ArgInfo
3019 for the ArgValuetypeAddrInIReg case.
3021 * mini-amd64.c:mono_arch_allocate_vars: Adding a case for
3022 ArgValuetypeAddrInIReg to avoid asserts. Code needs to be added here.
3024 * mini-amd64.c: mono_arch_call_opcode: Adding Winx64 code for an ArgInfo of
3025 type ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
3026 local variable and pass the local variable by reference to the called method.
3028 * mini-amd64.c: mono_arch_emit_prolog: Adjust the stack for calls to
3029 mono_jit_thread_attach and mono_get_lmf_addr for Winx64.
3031 Contributed under MIT/X11 license.
3033 2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
3035 * debug-mini.c (mono_debug_free_method_jit_info): Moved to metadata/mono-debug.c.
3037 * debug-mini.c (mono_debug_print_vars): Release memory after printing
3040 2008-06-10 Martin Baulig <martin@ximian.com>
3043 (mono_debug_close_method): Check whether `cfg->epilogue_begin != NULL'.
3045 2008-06-09 Kornél Pál <kornelpal@gmail.com>
3047 * main.c: Add and set argv [argc] to NULL to match C specification that fixes
3048 possible error when no arguments are passed.
3050 Contributed under MIT/X11 license.
3052 2008-06-09 Rodrigo Kumpera <rkumpera@novell.com>
3054 * mini-exceptions.c (ves_icall_get_trace): Skip source locations
3055 where the file name is NULL.
3057 2008-06-09 Zoltan Varga <vargaz@gmail.com>
3059 * mini.c: Fix s390 build.
3061 2008-06-08 Zoltan Varga <vargaz@gmail.com>
3063 * trace.c (mono_trace_parse_options): Fix warnings.
3065 * mini-amd64.c: Revert most of the last patch for now as it breaks the build.
3067 2008-06-07 Zoltan Varga <vargaz@gmail.com>
3069 * mini.c (remove_block_if_useless): Avoid printing the method name.
3071 * mini.c: Remove needless setting of ins->cil_code which is now done by
3074 * mini-amd64.c: Add some code to avoid saving callee saved registers in the
3077 * tramp-amd64.c (mono_arch_patch_callsite): Tell valgrind to discard the
3078 translated code after it has been patched.
3080 2008-06-06 Zoltan Varga <vargaz@gmail.com>
3082 * mini-amd64.c (emit_call_body): Align the call displacement to 4 bytes to
3083 avoid problems during code patching on SMP systems.
3084 (emit_call): Avoid adding a patch info which is already added by
3086 (mono_arch_emit_exceptions): Ditto.
3088 2008-06-05 Zoltan Varga <vargaz@gmail.com>
3090 * tramp-*.c (mono_arch_get_unbox_trampoline): No need to check for ret->byref,
3091 MONO_TYPE_ISSTRUCT already checks for it.
3093 2008-06-05 Bill Holmes <billholmes54@gmail.com>
3095 * mini-amd64.c:merge_argument_class_from_type: When marshaling
3096 structs with floats on Winx64 the float registers are not used.
3097 The integer registers are always used..
3098 * mini-amd64.c:add_valuetype: When marshaling structs on Winx64
3099 only one register will be used and only if the size of the struct
3100 is 1,2,4, or 8 bytes.
3102 * tramp-amd64.c : Adjusting size used for mono_global_codeman_reserve
3105 Contributed under MIT/X11 license.
3107 2008-06-05 Martin Baulig <martin@ximian.com>
3109 * debug-debugger.c (debugger_lookup_class): Also call
3110 mono_class_setup_methods() here; we're only called from RTI.
3112 2008-06-05 Andreas Färber <andreas.faerber@web.de>
3114 * mini.c (mini_init): Add DTrace probes ves-init-{begin,end}.
3115 (mini_method_compile) Add DTrace probes method-compile-{begin,end}.
3116 * Makefile.am (libmono_la_LIBADD,libmono_static_la_LIBADD,mono_LDADD):
3117 Post-process object files and add dtrace-generated object, if necessary.
3119 Contributed under MIT/X11 license.
3121 2008-06-04 Mark Probst <mark.probst@gmail.com>
3123 * inssel.brg, mini-ops.h: Added opcode for unboxcast with computed
3126 * mini.c: Generic sharing for unbox.any and castclass.
3128 2008-06-04 Mark Probst <mark.probst@gmail.com>
3130 * mini.c: Ignore tailcall prefix in shared generic code and when
3131 doing calls which require a vtable/rgctx argument.
3133 2008-06-04 Mark Probst <mark.probst@gmail.com>
3135 * mini.c: Don't free the JIT info.
3137 * driver.c: Changes in the JIT info table testing code.
3139 2008-06-03 Zoltan Varga <vargaz@gmail.com>
3141 * tramp-arm.c (mono_arch_create_trampoline_code): Check for thread
3142 interruption. Fix some warnings.
3144 * tramp-*.c (mono_arch_create_trampoline_code): Call the _force_ variant of
3145 interruption_checkpoint.
3147 Tue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
3149 * jit.h, mini.h, trace.c, driver.c: introduce an API to enable tracing
3150 from embedding applications.
3152 2008-06-02 William Holmes <billholmes54@gmail.com>
3154 * mini-amd64.c : Correcting some of the issues for Winx64 dealing with
3155 reserving 32 bytes on the stack when making calls.
3157 Contributed under MIT/X11 license.
3159 2008-06-01 Zoltan Varga <vargaz@gmail.com>
3161 * mini-arm.c (mono_arch_output_basic_block): Merge some small fixes from
3162 the linear IL branch.
3164 * driver.c: Print out more information for --version on arm.
3166 2008-05-30 Zoltan Varga <vargaz@gmail.com>
3168 * mini-amd64.c (mono_arch_emit_prolog): Increase max_offset when processing
3169 bb_exit instead, since out of line bblocks might not actually be emitted
3172 * mini-amd64.c (mono_arch_emit_prolog): Increase bb->max_offset by the
3173 maximum epilog size for out of line bblocks if tracing is enabled.
3175 * iltests.il.in: Merge tests/long-shift.regalloc.il into this file.
3177 2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
3179 * arrays.cs: Regression tests for allocating arrays with negative sizes.
3181 2008-05-28 Zoltan Varga <vargaz@gmail.com>
3183 * mini-x86.h mini-x86.c inssel-x86.brg cpu-x86.md: Add support for
3184 CAS instrinsics. Optimize the implementation of the ATOMIC_EXCHANGE
3187 2008-05-27 Zoltan Varga <vargaz@gmail.com>
3189 * mini.c (mini_get_inst_for_method): Add support for CAS instrinsics when
3190 the 'value' to store is a constant.
3192 * mini-ops.h: Add OP_ATOMIC_CAS_IMM opcodes.
3194 * mini-amd64.c (mono_arch_output_basic_block): Optimize the the implementation
3195 of ATOMIC_EXCHANGE opcodes, add support for the CAS opcodes.
3197 2008-05-26 Zoltan Varga <vargaz@gmail.com>
3199 * mini.c generic-sharing.c jit-icalls.c aot-compiler.c: Use accessor functions
3200 for accessing method->generic_container.
3202 2008-05-24 Zoltan Varga <vargaz@gmail.com>
3204 * mini.c (mono_method_check_inlining): Avoid creating vtables if possible.
3206 * mini.c (SIG_HANDLER_SIGNATURE): Fix sparc build too.
3208 * mini.c (SIG_HANDLER_SIGNATURE): Fix IA64 build.
3210 * mini.c (mono_jit_compile_method_inner): Avoid a crash if mono_class_vtable ()
3213 2008-05-23 Zoltan Varga <vargaz@gmail.com>
3215 * driver.c (mono_main): Set mono_setup_vtable_in_class_init to FALSE.
3217 * mini.c: Handle the case when mono_class_vtable () fails.
3219 2008-05-23 Massimiliano Mantione <massi@ximian.com>
3220 * mini.c (sigprof_signal_handler): Support call chains (backtrace) in
3223 2008-05-22 Mark Probst <mark.probst@gmail.com>
3225 * mini.c, jit-icalls.c, jit-icalls.h: Make generic sharing work
3226 together with domain sharing.
3228 2008-05-22 Mark Probst <mark.probst@gmail.com>
3230 * mini.c: Treat callvirts to final methods like non-virtual calls
3231 when doing generic sharing, i.e. look them up in the runtime
3234 2008-05-22 Mark Probst <mark.probst@gmail.com>
3236 * inssel.brg, mini-ops.h: Added opcodes for mkrefany and refanyval
3237 with computed types (for generic sharing).
3239 * mini.c: Generic sharing for mkrefany and refanyval.
3241 2008-05-22 Zoltan Varga <vargaz@gmail.com>
3243 * inssel.brg (mini_emit_virtual_call): Avoid constructing a generic vtable if
3246 * mini-trampolines.c (mono_magic_trampoline): Avoid calling setup_methods () in
3247 the generic sharing code.
3249 * mini-trampolines.c (mono_magic_trampoline): Call mono_class_setup_methods ()
3252 2008-05-21 Zoltan Varga <vargaz@gmail.com>
3254 * mini.h: Remove the declaration of mono_aot_init_vtable ().
3256 2008-05-21 C.J. Adams-collier <cjac@colliertech.org>
3258 * driver.c: updated copyright date
3260 2008-05-21 Zoltan Varga <vargaz@gmail.com>
3262 * aot-runtime.c mini.c: Remove the AOT init_vtable stuff as it is no longer
3265 2008-05-19 Martin Baulig <martin@ximian.com>
3267 * debug-debugger.h (MonoDebuggerInfo): Add `using_mono_debugger'
3268 pointing to the new `_mono_debug_using_mono_debugger' variable.
3271 (mono_main): Check mono_debug_using_mono_debugger() rather than
3272 the `MONO_INSIDE_MDB' environment variable to check whether we're
3273 inside the debugger.
3275 2008-05-19 Zoltan Varga <vargaz@gmail.com>
3277 * mini.c (mini_method_compile): Use cfg->args [0] for accessing the this
3280 2008-05-08 Rodrigo Kumpera <rkumpera@novell.com>
3282 * declsec.h: Move MONO_SECMAN_FLAG to metadata/metadata-internals.h.
3284 * mini.c: Added mini_assembly_can_skip_verification. This
3285 function checks if the assembly requested to skip verification.
3286 Fixes part of #387274.
3288 2008-05-07 Zoltan Varga <vargaz@gmail.com>
3290 * mini.c (mini_get_method): Disable the check for open generic classes when
3291 using generic sharing.
3293 * generics.cs: Add a test for #387034.
3295 * mini.c (mini_get_method): Check whenever the method class is an open generic
3296 type, and return NULL in that case, causing a verification error. Fixes
3299 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3301 * driver.c (mono_main): Revert r102623. The right
3302 thing to do is to enable the verifier under verifiable
3303 unless a --security flag was passed.
3305 We need this non-trivial behavior for --verify-all otherwise
3306 mcs-compileall won't be able to use it. As it needs everything to
3307 be verified under validil.
3309 2008-05-06 Martin Baulig <martin@ximian.com>
3313 * debug-mini.c (mono_debugger_thread_created): Add proper locking.
3314 (mono_debugger_thread_cleanup): Likewise.
3315 (mono_debugger_extended_notification): Likewise.
3317 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3319 * mini.c (mono_method_to_ir): Verify visibility of call related opcodes
3320 against both inflated and non-inflated methods. We need to check against the
3321 generic definition for cases where the instantiated method is not visible.
3322 We need to check against the inflated types for cases where the instantiation
3323 changes any super type. This fixes #382986.
3325 Note that this doesn't need to be applied to other parts of mono_method_to_ir
3326 that check for visibiliy as generic params only appears as the type subject
3327 of tokens on call opcodes. Field manipulation and ldftn must always
3328 target an exact type.
3330 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3332 * driver.c (mono_main): Using --verify-all enables the verifier under validil mode
3333 if no related --security flag is passed.
3335 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3337 * mini-arch.h: Prepare support for ppc64.
3339 Contributed under MIT/X11 license.
3341 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3343 * aot-runtime.c: Prepare support for ppc64.
3345 Contributed under MIT/X11 license.
3347 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3349 * mini-ops.h: Prepare support for ppc64.
3351 Contributed under MIT/X11 license.
3353 2008-05-04 Andreas Färber <andreas.faerber@web.de>
3355 * helpers.c: Add support for OSX/ppc64 and Linux/ppc64 (dis)assemblers.
3357 Contributed under MIT/X11 license.
3359 2008-05-03 Zoltan Varga <vargaz@gmail.com>
3361 * aot-runtime.c (load_aot_module): Avoid trying to load aot code for dynamic
3362 assemblies, since aot_name is not a full path, causing us to load MS.NET
3363 assemblies on windows.
3365 2008-04-28 Kornél Pál <kornelpal@gmail.com>
3367 * mini.c (mono_jit_compile_method_inner): Use g_warning instead of g_error
3368 for unsupported METHOD_IMPL_ATTRIBUTE_NATIVE.
3369 * main.c: Use UTF-8 encoded command line instead of Windows default code
3370 page on Windows to support Unicode.
3371 * driver.c (DllMain): New function for mixed-mode assembly support.
3372 * Makefile.am: Add -Wl,--kill-at to libmono_la_LDFLAGS on Windows to
3373 export __stdcall functions without decoration.
3375 Contributed under MIT/X11 license.
3377 2008-04-28 Mark Probst <mark.probst@gmail.com>
3379 * tramp-amd64.c, mini-amd64.c: Preserve R11 in the trampoline by
3380 saving it very early.
3382 2008-04-28 Mark Probst <mark.probst@gmail.com>
3384 * mini.h, mini.c: Lots of code for accessing the old RGCTX
3385 deleted. The only way to access the new RGCTX is via the
3388 * mini.c, mini-amd64, mini-x86.c, mini-exceptions.c: Pass the
3389 vtable instead of the RGCTX to static methods.
3391 * mini-tramplines.c, tramp-amd64.c, tramp-x86.c: Trampoline for
3392 accessing the new RGCTX.
3394 * generic-sharing.c: There is no separation between self, type
3395 arguments and other types in the RGCTX anymore.
3397 2008-04-25 Jonathan Chambers <joncham@gmail.com>
3399 * mini-amd64.c (add_general): Remove previous stack adjustment.
3400 (mono_arch_call_opcode): Remove OP_OUTARG_MEMBASE and instead simply
3401 adjust stack pointer after pushing args. Adjust ARGS_OFFSET to account
3402 for 32 bytes of stack space reserved for all calls.
3404 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Remove.
3405 (OP_AMD64_OUTARG_ALIGN_STACK): Take argument to specify size of stack
3408 Code contributed under MIT/X11 license.
3410 2008-04-23 Rodrigo Kumpera <rkumpera@novell.com>
3412 * mini.c (mini_method_verify): Only verify non-inflated methods, check
3413 against the root definition, peeling out method and type instantiations.
3414 Cache verify success results, code that fails verification is still
3415 checked multiple times.
3417 2008-04-23 Zoltan Varga <vargaz@gmail.com>
3419 * mini.c (mono_method_to_ir): Avoid inserting write barriers for stores of null.
3421 2008-04-23 Jonathan Chambers <joncham@gmail.com>
3423 * mini-amd64.c (add_general): Always increment stack on Win64.
3424 (mono_arch_call_opcode): Use OP_OUTARG_MEMBASE instead of OP_OUTARG
3427 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Add OP_OUTARG_MEMBASE for
3428 stack based argument handling on Win64.
3430 Code contributed under MIT/X11 license.
3432 2008-04-23 Raja R Harinath <harinath@hurrynot.org>
3434 * Makefile.am (version.h): Add support for git-svn.
3436 2008-04-22 Zoltan Varga <vargaz@gmail.com>
3438 * mini-exceptions.c (mono_handle_native_sigsegv): Rework the gdb calling code
3439 so instead of calling g_spawn_command_line_sync, we do everything by hand,
3440 avoiding allocations and libc functions which might deadlock.
3442 * mini-exceptions.c (mono_handle_native_sigsegv): Avoid calling gdb if the
3443 'no-gdb-backtrace' option is set.
3445 * mini.c (mini_parse_debug_options): Parse 'no-gdb-backtrace' option.
3447 * mini.h (MonoDebugOptions): Add 'no_gdb_backtrace' option.
3449 2008-04-21 Martin Baulig <martin@ximian.com>
3451 * debug-debugger.h (MonoDebuggerInfo): Removed `attach', `detach'
3452 and `get_lmf_addr'; `notification_address' is no longer a pointer.
3454 2008-04-21 Martin Baulig <martin@ximian.com>
3456 * debug-debugger.h (MonoDebuggerInfo): Added `thread_vtable_ptr',
3457 `thread_vtable', `event_handler_ptr' and `event_handler'.
3459 2008-04-21 Martin Baulig <martin@ximian.com>
3461 * debug-debugger.h (MonoDebuggerInfo): Added `init_code_buffer';
3462 allows delayed initialization of the `executable_code_buffer' when
3465 2008-04-21 Martin Baulig <martin@ximian.com>
3467 * mini.h (mono_debugger_create_notification_function): Removed.
3468 * tramp-*.c (mono_debugger_create_notification_function): Removed.
3470 * mdb-debug-info64.s
3471 (MONO_DEBUGGER__notification_function): Added this in the .text section.
3473 * mdb-debug-info32.s
3474 (MONO_DEBUGGER__notification_function): Added this in the .text section.
3476 * Makefile.am: Fix the mdb-debug-info*.s logic; the debugger
3477 currently only works on x86 and x86_64, so don't create it on ppc.
3479 2008-04-21 Martin Baulig <martin@ximian.com>
3481 * mini.h (MonoDebugOptions): Added `mdb_optimizations'.
3484 (mini_method_compile): In the fp elimination check, check
3485 `debug_options.mdb_optimizations' in addition to
3486 mono_debug_using_mono_debugger().
3488 * driver.c (mono_main): Added `--debug=mdb-optimizations' option to
3489 disable some JIT optimizations which are only disabled when
3490 running inside the debugger.
3491 Added `--help-debug' option to describe the debugging options.
3492 (parse_debug_options): New static function to parse the `--debug'
3493 options, so we can easily add more stuff in future.
3495 2008-04-20 Zoltan Varga <vargaz@gmail.com>
3497 * mini.c (set_exception_type_from_invalid_il): Avoid reading invalid memory when
3498 the method has no body.
3500 2008-04-19 Jonathan Chambers <joncham@gmail.com>
3502 * mini-amd64.c (cpuid): Implement with MSVC intrinsic as inline
3503 assembly is not allowed in MSVC 64-bit compiler.
3504 (mono_arch_cpu_init): Don't set floating point precision on MSVC build
3505 as we get floating point exceptions everywhere.
3507 * exceptions-amd64.c (get_throw_trampoline): Push empty args on stack to
3508 correctly align arguments for call to throw_exception.
3509 (prepare_for_guard_pages): Cast to guint64 instead of unsigned long.
3511 Code contributed under MIT/X11 license.
3513 2008-04-19 Zoltan Varga <vargaz@gmail.com>
3515 * mini-amd64.c (amd64_patch): Make the check for (%rip) addressing more strict.
3517 2008-04-17 Zoltan Varga <vargaz@gmail.com>
3519 * inssel.brg (OP_SWITCH): Use (gint64) instead of (long) to cast a large constant.
3521 * mini-amd64.c (NEW_INS): Set cil_code.
3523 * mini.c (mini_method_compile): Move the disabling of fp elimination to here
3524 from mini-amd64.c so all debugger related logic is in one place.
3526 * mini.c: Set cfg->ip to NULL after passes which set it so instructions created
3527 later won't have a random ip assigned to them.
3529 2008-04-16 Zoltan Varga <vargaz@gmail.com>
3531 * mini-trampolines.c (mono_create_jump_trampoline): Add an assert to check that
3532 the arch specific function initializes code_size.
3533 (mono_create_delegate_trampoline): Ditto.
3535 * mini-mips.h mini-mips.c inssel-mips.brg inssel-long32-mips.brg cpu-mips.md
3536 tramp-mips.c: Resurrect MIPS port and also fix the issues on little-endian
3539 * liveness.c (mono_analyze_liveness): Disable the initlocals optimization if
3540 running under the debugger.
3542 * linear-scan.c (mono_linear_scan): Avoid sharing registers if running under the
3545 * mini.c (mini_method_compile): Set a few flags in cfg if running under the
3546 debugger. Also move the disabling of optimizations here from driver.c.
3547 (mono_allocate_stack_slots_full): Avoid sharing stack slots if running under the
3550 * mini.h (MonoCompile): Add a few new flags.
3552 2008-04-15 Zoltan Varga <vargaz@gmail.com>
3554 * mini.c (mono_method_to_ir): Set cfg->ip before processing an IL instruction
3555 so the cil_code field of created MonoInst's is properly set.
3556 (mini_select_instructions): Ditto.
3558 * mini.h (MONO_INST_NEW): Initialize the cil_code field using cfg->ip.
3559 (MONO_INST_NEW_CALL): Ditto.
3561 * mini.c inssel.brg inssel-x86.brg inssel-amd64.brg: Use MONO_INST_NEW ()
3562 in many places so the ins->cil_code field is properly initialized.
3564 * mini.c (mono_bblock_add_inst): Call MONO_ADD_INS () so the logic is in one
3567 2008-04-14 Zoltan Varga <vargaz@gmail.com>
3569 * mini.c (mini_method_compile): Print a different message when compiling a
3572 * mini.c (GENERIC_SHARING_FAILURE): Print a failure message when verbose_level
3575 2008-04-11 Zoltan Varga <vargaz@gmail.com>
3577 * mini-amd64.c (mono_arch_output_basic_block): Implement OP_ABS directly using
3580 * basic-math.cs: Fix warnings. Add a test for Math.Abs ().
3582 2008-04-11 Zoltan Varga <vargaz@gmail.com>
3584 * mini.c (handle_stack_args): Make this return void since its return value was
3585 never used. Also set cfg->unverifiable for invalid IL instead of calling
3588 2008-04-10 Mark Probst <mark.probst@gmail.com>
3590 * mini.c: Make sure "this" is live in catch clauses with type
3591 variables in shared generic code.
3593 2008-04-08 Mark Probst <mark.probst@gmail.com>
3595 * mini.c: Replaced uses of MONO_TYPE_IS_REFERENCE with calls to
3596 generic_class_is_reference_type() to ensure the proper behaviour
3597 when sharing generic code and the type in question is a type
3600 2008-04-08 Zoltan Varga <vargaz@gmail.com>
3602 * mini-exceptions.c: Applied patch from Mark Spruiell (mes@zeroc.com). Fix
3603 race conditions when printing thread dumps. Fixes #377738.
3605 2008-04-08 Massimiliano Mantione <massi@ximian.com>
3607 aliasing.c (update_aliasing_information_on_inst): Fixed a bug which
3608 shows up when both MonoInst arguments can cause aliasig.
3609 There is likely no way in the current JIT to trigger this problem, but
3610 it showed up in the development of generics sharing, when in a new
3611 opcode both args of an OP_GROUP can be aliases (addresses of a local).
3612 When the generics sharing code will be committed, its tests will be
3613 valid also for this bug.
3615 2008-04-08 Zoltan Varga <vargaz@gmail.com>
3617 * aot-runtime.c (decode_patch_info): Always transform PATCH_INFO_WRAPPER to
3620 * mini.c (mono_resolve_patch_target): Fix a crash in the AOT case if method is
3623 2008-04-07 Zoltan Varga <vargaz@gmail.com>
3625 * mini-exceptions.c (mono_handle_exception_internal): When --debug=casts is used,
3626 use a more detailed exception message for InvalidCastException.
3628 * mini.h (MonoJitTlsData): Add 'class_cast_from' and 'class_cast_to' fields.
3630 * driver.c (mono_main): Add --debug=casts option to turn on better
3631 InvalidCastException message details.
3633 * mini.c (mini_get_debug_options): New helper function to return the address of
3634 the debug_options variable.
3636 * mini.c (mono_get_jit_tls_intrinsic): New helper function to create a load of
3637 the jit_tls TLS variable.
3639 * mini.c (mono_jit_tls): New TLS variable.
3641 * inssel.brg: Save the details of a cast to a TLS variable when the --debug=casts
3644 2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
3646 * mini.h: Removed verifer related stuff. This code was moved to verify.c
3648 * mini.c: Removed verifer related stuff, code moved to verify.c.
3650 * driver.c: Using code from verify.c instead of mini.c.
3652 2008-04-05 Zoltan Varga <vargaz@gmail.com>
3654 * mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
3657 2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
3659 * mini.c (check_for_method_verify): Enabling verification of
3660 corlib if mono_verify_all is set. Bugs in the verifier preventing that
3663 2008-04-04 Zoltan Varga <vargaz@gmail.com>
3665 * exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
3666 caller saved registers as well.
3668 * exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
3669 saved registers as well.
3671 2008-03-30 Zoltan Varga <vargaz@gmail.com>
3673 * mini-x86.c cpu-x86.md inssel-x86.brg: Add min/max intrinsics.
3675 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of the non-SSE2 floating point
3678 2008-03-27 Zoltan Varga <vargaz@gmail.com>
3680 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'gsctx' argument and pass it
3682 (get_call_info): Take a gsctx argument instead of 'cfg'.
3684 2008-03-26 Zoltan Varga <vargaz@gmail.com>
3686 * mini.c (check_for_method_verify): Avoid verifying mscorlib methods even if
3687 mono_verify_all is set.
3689 * driver.c (compile_all_methods_thread_main): Don't exit at the first error.
3691 * mini.c mini.h: Remove the unused and incomplete stack merge verification code.
3693 2008-03-25 Zoltan Varga <vargaz@gmail.com>
3695 * driver.c (compile_all_methods_thread_main): Error out if compilation fails with
3698 * driver.c mini.c mini.h: Add a --verify-all development option to test the
3699 verifier and the code generated by the compiler.
3701 2008-03-25 Mark Probst <mark.probst@gmail.com>
3703 * mini.c: Generic sharing of the non-nullable case of the box
3706 2008-03-24 Zoltan Varga <vargaz@gmail.com>
3708 * inssel.brg: Fix the build.
3710 * iltests.il.in: Add a test for lconv.ovf.u8.un.
3712 2008-03-24 Rodrigo Kumpera <rkumpera@novell.com>
3714 * mini.c (mono_method_to_ir): Implement readonly for ldelema and
3715 Array:Address. Fixes #372410.
3717 * iltests.il.in: New tests for readonly prefix.
3719 2008-03-23 Zoltan Varga <vargaz@gmail.com>
3721 * mini.h mini.c mini-trampolines.c: Move trampoline related code to
3724 * mini.h mini.c mini-exceptions.c: Move mini_init_exceptions () to
3727 * mini-amd64.c mini-s390.c (mono_arch_lowering_pass): Use mono_decompose_op_imm ().
3729 * mini.c (mono_decompose_op_imm): New helper function.
3731 * mini-s390x.c (calculate_sizes): Rename this to get_call_info for consistency
3732 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
3735 * mini-s390x.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
3736 mono_arch_output_basic_block. Fix warnings.
3738 * inssel-s390x.brg: Remove the unneccesary OP_LMUL_IMM rule to fix the s390x build
3741 2008-03-22 Zoltan Varga <vargaz@gmail.com>
3743 * mini-exceptions.c (ves_icall_get_frame_info): Remove the ia64/s390 workarounds
3744 since the extra frame is now detected automatically inside the loop.
3746 * mini-s390.c (mono_arch_peephole_pass_2): Remove the arch independent peephole
3747 opts which are now in mono_peephole_ins ().
3749 * mini-s390.c (mono_arch_output_basic_block): Fix OP_FCALL_MEMBASE.
3751 * mini-exceptions.c (ves_icall_get_frame_info): Skip native-to-managed wrapper
3752 frames and skip duplicate managed-to-native frames. Fixes #367665.
3754 * mini-x86.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
3755 opts which are now in mono_peephole_ins ().
3756 (mono_arch_peephole_pass_2): Ditto.
3758 * mini-codegen.c (mono_peephole_ins): Fix a problem on 32 bit platforms.
3760 * mini-codegen.c (mono_peephole_ins): New helper function containing the
3761 arch independent peephole optimizations.
3763 * mini-amd64.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
3764 opts which are now in mono_peephole_ins ().
3766 * mini-amd64.c (mono_arch_peephole_pass_2): Ditto.
3768 * mini-s390.c (mono_arch_output_basic_block): Fix build.
3770 * tramp-s390.c (mono_arch_get_vcall_slot): Handle an additional instruction
3773 * mini-s390.c (mono_arch_output_basic_block): Handle big offsets in the
3774 CALL_MEMBASE opcodes. Fix setting of the destination in the OP_LCONV_TO_OVF_I
3777 2008-03-21 Zoltan Varga <vargaz@gmail.com>
3779 * mini-s390.c (calculate_sizes): Rename this to get_call_info for consistency
3780 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
3783 * mini-s390.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
3784 mono_arch_output_basic_block. Fix warnings.
3786 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3788 * inssel-long32.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
3791 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3793 * inssel-long.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
3796 * iltests.il: Add new tests.
3798 2008-03-20 Kornél Pál <kornelpal@gmail.com>
3800 * mini.c: Removed Windows version macros.
3802 2008-03-20 Mark Probst <mark.probst@gmail.com>
3804 * generic-sharing.c: Put reflection types in the extensible part
3805 of the runtime generic context.
3807 * mini.c: Generic sharing of the GetTypeHandle special case of the
3808 ldtoken instruction.
3810 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3812 * mini.h (MONO_BB_FOR_EACH_INS_SAFE): New helper macro.
3814 * mini-<ARCH>.c: Use the new macro instead in the peephole/lowering passes.
3816 * mini.h (MONO_DEL_INS): Rename to MONO_DELETE_INS and Add a 'bb' argument for
3817 consistency with the other version on the linear IR branch.
3819 * mini-<ARCH>.c: Update callers of MONO_DEL_INS.
3821 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i/conv.ovf.u.
3823 * iltests.il.in: Add new tests.
3825 2008-03-19 Zoltan Varga <vargaz@gmail.com>
3827 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i.un/conv.ovf.u.un.
3829 * iltests.il.in: Add new tests.
3831 2008-03-19 Mark Probst <mark.probst@gmail.com>
3833 * mini.c: Two variables with the same name were declared in
3834 nesting contexts and one wasn't initialized. Fixed.
3836 2008-03-19 Mark Probst <mark.probst@gmail.com>
3838 * mini.c: Generic sharing of the initobj instruction.
3840 Tue Mar 18 20:18:02 CET 2008 Paolo Molaro <lupus@ximian.com>
3842 * mini.c: make the test to optimize ldtoken from typeof() more
3845 2008-03-18 Mark Probst <mark.probst@gmail.com>
3847 * mini.c: Generic sharing of the initobj instruction for reference
3850 Tue Mar 18 12:39:27 CET 2008 Paolo Molaro <lupus@ximian.com>
3852 * mini.h, mini-amd64.c, mini-x86.c, tramp-amd64.c, tramp-x86.c: change
3853 the mono_breakpoint_clean_code() code to perform bound checks.
3855 Tue Mar 18 11:50:14 CET 2008 Paolo Molaro <lupus@ximian.com>
3857 * mini.h, mini-trampolines.c, tramp-*.c: change the signature of
3858 mono_arch_patch_callsite() to include the start of the managed method
3859 to be able to perform bound checks.
3861 2008-03-17 Mark Probst <mark.probst@gmail.com>
3863 * mini.c: Generic sharing for the isinst instruction.
3865 2008-03-17 Mark Probst <mark.probst@gmail.com>
3867 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
3868 inssel-long32-mips.brg: Added opcodes for doing indirect calls
3869 with the runtime generic context argument.
3871 * mini.c: Share calls to several types of unsharable methods by
3872 putting the address of the method code in the runtime generic
3873 context and doing an indirect call.
3875 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
3878 2008-03-16 Mark Probst <mark.probst@gmail.com>
3880 * generic-sharing.c: Change due to a change in the runtime genric
3883 2008-03-15 Martin Baulig <martin@ximian.com>
3886 (mono_arch_nullify_class_init_trampoline): Add call to
3887 mono_breakpoint_clean_code() to make things work when running
3888 inside the debugger.
3891 (mono_arch_nullify_class_init_trampoline): Add call to
3892 mono_breakpoint_clean_code() to make things work when running
3893 inside the debugger.
3895 2008-03-14 Zoltan Varga <vargaz@gmail.com>
3897 * inssel-long.brg (reg): Fix 64 bit build.
3899 2008-03-14 Mark Probst <mark.probst@gmail.com>
3901 * mini.c, mini.h: Share static generic code by passing it an
3902 implicit argument pointing to the runtime generic context.
3904 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
3905 inssel-long32-mips.brg: New opcodes for calling shared static,
3906 which need to be passed the runtime generic context.
3908 * mini-amd64.c, mini-x86.c: Save the runtime generic context
3909 argument on the stack in the prologue if needed. New function for
3910 finding the runtime generic context argument from the registers
3911 saved by the trampoline.
3913 * mini-amd64.h, mini-x86.h: Specify which register to use for the
3914 runtime generic context argument.
3916 * tramp-amd64.c: Also restore the register used for the runtime
3917 generic context argument.
3919 * mini-trampoline.c: Resolve shared static calls by consulting the
3920 runtime generic context via the new argument.
3922 * generic-sharing.c: Add an argument to sharability-checking
3923 functions that specifies whether type variables should be treated
3924 as sharable type arguments.
3926 * inssel-x86.brg: Removed a superfluous, buggy rule.
3928 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
3931 2008-03-14 Martin Baulig <martin@ximian.com>
3933 * debug-debugger.c (main_thread_handler): Call
3934 mono_runtime_run_main() without sending any notifications.
3936 * debug-debugger.h (MonoDebuggerInfo): Added `get_method_signature.
3938 2008-03-14 Zoltan Varga <vargaz@gmail.com>
3940 * mini-trampolines.c (mono_magic_trampoline): Fix build on platforms without IMT.
3942 2008-03-14 Mark Probst <mark.probst@gmail.com>
3944 * tramp-x86.c: Fixed register restore offsets in the trampoline
3945 code for ECX and EDX.
3947 2008-03-12 Geoff Norton <gnorton@novell.com>
3949 * mini-arm.h: Add some #defines for locating sp, pc, r4 with
3950 different ucontext_t implementations.
3951 * exceptions-arm.c: Use the above defines to get exceptions working on
3952 iPhone (based on a patch by Luke Howard lukeh@padl.com)
3953 * mini-arm.c: Implement iPhone icache support (based on a patch by
3954 Luke Howard lukeh@padl.com)
3956 2008-03-12 Mark Probst <mark.probst@gmail.com>
3958 * mini.c: Enable generic sharing of calls to non-static
3959 non-interface non-generic non-value-type methods.
3961 * mini-trampolines.c: Resolve calls from shared generic code.
3963 2008-03-11 Zoltan Varga <vargaz@gmail.com>
3965 * Makefile.am il2tests.il iltests.il.in: Delete il2tests, merge it into iltests.
3967 * tramp-amd64.c (mono_arch_create_trampoline_code): Correctly save RBP as well.
3969 Mon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>
3971 * mini.c: some fixes for the AOT compiler.
3973 2008-03-07 Zoltan Varga <vargaz@gmail.com>
3975 * cpu-amd64.md: Add clob:1 to some float opcodes.
3977 2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
3979 * mini.h: Added MiniVerifierMode enumeration.
3981 * mini.c: Added mini_verifier_set_mode to control
3982 the usage of the new verifier.
3984 * mini.c (mono_method): Integrated the new verifier.
3986 * driver.c: Extended --security option with validil and
3987 verifiable options to activate the new verifier.
3989 2008-03-07 Zoltan Varga <vargaz@gmail.com>
3991 * mini.c jit-icalls.h jit-icalls.c: Generalize the exception creation
3992 optimization to ctors taking 0 or 2 arguments too.
3994 * mini.c (mono_method_to_ir): Optimalize the size of the exception throwing code
3997 * jit-icalls.h (mono_create_corlib_exception): New JIT icall.
3999 * mini-amd64.c (mono_arch_emit_prolog): Improve the first_bb optimization a bit.
4001 2008-03-06 Zoltan Varga <vargaz@gmail.com>
4003 * mini.c (mono_method_to_ir): Apply one of the ldstr optimizations in the
4004 non-aot case as well.
4006 * cpu-amd64.md: Reduce the max size of some frequently used opcodes.
4008 * aot-runtime.c (decode_patch_info): Update this after the ldfld/stfld wrapper
4011 * aot-compiler.c (encode_patch): Ditto.
4013 * mini.h (G_MININT32): Fix the definition of this.
4015 2008-03-05 Zoltan Varga <vargaz@gmail.com>
4017 * mini.h: Define G_MININT32/G_MAXINT32 if using an older glib version.
4019 * cfold.c: Remove definition of G_MININT32 which is now in mini.h.
4021 2008-03-04 Zoltan Varga <vargaz@gmail.com>
4023 * mini-amd64.c (mono_arch_compute_omit_fp): Don't disable fp elimination for
4024 methods returning vtypes in registers.
4025 (mono_arch_allocate_vars): Ditto.
4027 * mini-amd64.c (mono_arch_get_this_arg_reg): New arch specific helper function.
4029 * tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg ().
4031 * generics.cs: Add a test from the linear IR branch.
4033 * mini-amd64.c (emit_load_volatile_arguments): Handle vtypes passed in regs too.
4035 * mini.c (inline_method): Cache failed inline attempts.
4037 2008-03-04 Mark Probst <mark.probst@gmail.com>
4039 * mini.c: For shared methods of generic classes put the location
4040 of "this" into the MonoGenericJitInfo.
4042 * mini-x86.c, mini-amd64.c, mini.h: Added function for fetching a
4043 register out of a MonoContext by register number. Add the generic
4044 sharing context as an argument to mono_arch_find_this_argument().
4046 * mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
4047 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c: Added stub
4048 for new arch function.
4050 * mini-exception.c: Handle open exception clauses in shared
4053 * mini-trampolines.c: Supply additional argument to
4054 mono_arch_find_this_argument().
4056 2008-03-04 Zoltan Varga <vargaz@gmail.com>
4058 * Makefile.am (regtests): Run the bench.exe tests last.
4060 2008-03-03 Zoltan Varga <vargaz@gmail.com>
4062 * mini-amd64.c (mono_arch_emit_prolog): Improve the first bblock optimization
4065 2008-03-02 Zoltan Varga <vargaz@gmail.com>
4067 * mini.c (mono_method_to_ir): Allow callvirt on static methods for compatibility
4070 * mini-amd64.c (mono_arch_emit_prolog): Fix tracing after the last change.
4072 * mini-amd64.c (mono_arch_emit_prolog): Avoid saving dead arguments.
4074 * mini.c (mono_method_check_inlining): Avoid disabling inlining for methods
4075 whose class has no cctor.
4077 * liveness.c (mono_analyze_liveness): Mark dead arguments with MONO_INST_IS_DEAD.
4079 2008-03-01 Zoltan Varga <vargaz@gmail.com>
4081 * mini.c (mono_method_to_ir): Report calling a static method using callvirt as
4084 2008-02-29 Zoltan Varga <vargaz@gmail.com>
4086 * mini-ops.h: Remove OP_SPARC_INARG_VT, add a new OP_VTARG_ADDR opcode instead
4087 to be in sync with the code on the linear IR branch.
4089 * mini-sparc.c inssel-sparc.brg: Use OP_VTARG_ADDR.
4091 * inssel-s390.brg (OP_SETRET (freg)): Set dreg correctly.
4093 2008-02-27 Zoltan Varga <vargaz@gmail.com>
4095 * mini-mips.c: Use cfg->vret_addr instead of cfg->ret.
4097 * mini-s390x.c: Use cfg->vret_addr instead of cfg->ret.
4099 * mini-s390.c: Use cfg->vret_addr instead of cfg->ret.
4101 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_VARS define.
4103 * mini-<ARCH>.c (mono_arch_create_vars): Define this for all architectures.
4105 * mini.c (mono_method_to_ir): Avoid invalid memory reads for methods without a
4108 2007-11-14 Yoichi NAKAYAMA <nakayama@pixela.co.jp>
4110 * inssel-mips.brg (OP_OUTARG_MEMBASE (CEE_LDIND_R4 (base))): Add missing
4111 OP_LOADR4_MEMBASE emission.
4113 * mini-codegen.c (mono_spillvar_offset_int): Remove assertion.
4114 (mono_spillvar_offset_float): Ditto.
4116 * mini-mips.c (mono_arch_emit_prolog): Ditto.
4118 * inssel-long32-mips.brg: Fix wrong branching, reduce redundant code
4121 * basic-long.cs: Add regression tests for them.
4123 * mini-mips.c (add_float32_arg): Respect o32 calling convention in gr
4125 (mono_arch_allocate_vars): Fix representation of single-precision float
4127 (mono_arch_output_basic_block): Ditto.
4129 * inssel-mips.brg: Ditto, remove duplicate items.
4131 * mini-mips.c (emit_load_volatile_arguments): New function to handle
4132 arguments of tail calls as on other platforms.
4133 (mono_arch_output_basic_block): Handle tail calls.
4135 * inssel-mips.brg (OP_OUTARG_VT (CEE_LDOBJ (base))): Correct destination
4138 * objects.cs (test_5_pass_static_struct): Add test for it.
4140 Contributed under MIT/X11 license.
4142 2008-02-26 Zoltan Varga <vargaz@gmail.com>
4144 * Makefile.am: Use gmcs for compiling the regression tests.
4146 * *.2.cs *.2.il: Rename to *.cs and *.il.
4148 2008-02-24 Zoltan Varga <vargaz@gmail.com>
4150 * regalloc.h: Make the vassign array smaller.
4152 * mini.c (mini_method_compile): Remove an unused field in cfg.
4154 * mini-codegen.c: Add a bunch of micro optimizations.
4156 2008-02-23 Zoltan Varga <vargaz@gmail.com>
4158 * regalloc.h: Remove some unused fields.
4160 2008-02-22 Zoltan Varga <vargaz@gmail.com>
4162 * mini-amd64.c (mono_arch_patch_code): Fix a warning.
4164 * ssa.c (mono_ssa_remove): Avoid declaring volatile variables dead.
4166 2008-02-22 Mark Probst <mark.probst@gmail.com>
4168 * mini.h: New trampoline type (RGCTX_LAZY_FETCH).
4170 * mini-trampolines.c, tramp-amd64.c, tramp-x86.c: RGCTX lazy fetch
4171 trampoline: Fetch an entry from the runtime generic context. If
4172 it's NULL, jump to the actual trampoline to fill the runtime
4173 generic context. Otherwise, return it.
4175 * mini.c: Call the lazy fetch trampoline to get entries out of the
4176 runtime generic context.
4178 * tramp-ia64.c, tramp-arm.c, tramp-alpha.c, tramp-s390.c,
4179 tramp-s390x.c, tramp-ppc.c, tramp-hppa.c, tramp-mips.c,
4180 tramp-sparc.c: Stubs for the lazy fetch trampoline.
4182 2008-02-21 Mark Probst <mark.probst@gmail.com>
4184 * mini.c: Fetch data out of the extensible part of the runtime
4185 generic context instead of calling a helper function.
4187 * generic-sharing.c: Some functions moved into
4188 metadata/generic-sharing.c. Helper function for fetching other
4189 types now checks and asserts against extensible rgctx (just for
4190 debugging purposes - the helper function isn't called anymore
4191 unless for debugging).
4193 2008-02-21 Zoltan Varga <vargaz@gmail.com>
4195 * mini-arm.c (mono_arch_output_basic_block): Implement proper argument passing
4196 for tail calls up to the point that the tests in iltests.exe run. Also add a
4197 dummy CKFINITE implementation.
4198 (mono_arch_emit_prolog): Avoid saving the method in the LMF since it is only
4199 needed for trampoline LMF frames.
4201 * exceptions-arm.c (mono_arch_find_jit_info): Only read lmf->method for
4202 trampoline LMF frames.
4204 2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
4206 * mini.c (inline_method): clean any pending loader error when inlining fail.
4207 Otherwise loader errors in mono_method_to_ir leaks and cause spurious errors.
4209 2008-02-21 Zoltan Varga <vargaz@gmail.com>
4211 * aot-compiler.c (encode_patch): Handle ICALL_ADDR patch type.
4213 * aot-runtime.c (decode_patch_info): Ditto.
4215 * mini.c (mono_resolve_patch_target): Ditto.
4217 * aot-compiler.c (compile_method): Add some experimental code for AOT compiling
4220 * patch-info.h (PATCH_INFO): Add 'ICALL_ADDR' patch type.
4222 * mini.c (mono_method_to_ir): Convert a CEE_MONO_LDPTR opcode to an AOT constant
4223 if it references an icall address.
4225 2008-02-20 Zoltan Varga <vargaz@gmail.com>
4227 * cpu-s390x.md: Remove some more unused opcodes.
4229 * cpu-s390x.md: Remove some unused opcodes.
4231 * mini-ia64.c (mono_arch_lowering_pass): Add some more opcodes. Use
4232 mono_op_imm_to_op ().
4234 * mini-sparc.c (opcode_to_sparc_cond): Use the mono_opcode_to_cond () functions
4235 instead of a switch statement.
4237 * mini-sparc.c (mono_arch_allocate_vars): Allocate a stack slot for use by
4238 the int<->float conversion opcodes instead of using mono_spillvar_offset_float ().
4240 * mini-codegen.c: Eliminate rassign macro which is no longer needed.
4242 * mini-codegen.c: Remove unused mono_regstate2_... functions.
4244 * mini-codegen.c (mono_print_ins_index): Avoid printing an index when it is
4247 2008-02-19 Zoltan Varga <vargaz@gmail.com>
4249 * driver.c (mono_main): Improve error reporting when an assembly cannot be
4250 opened. Fixes #362607.
4252 * cpu-ia64.md cpu-s390x.md: Remove some unused opcodes.
4254 * iltests.il.in: Add a test for static methods in interfaces.
4256 2008-02-18 Zoltan Varga <vargaz@gmail.com>
4258 * genmdesc.c (build_table): Fix a crash on older glib versions.
4260 * cpu-sparc.md: Remove some unused opcodes.
4262 * genmdesc.c: Error out if the .md contains CEE_ opcodes if
4263 MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.
4265 * cpu-amd64.md: Remove some unused opcodes.
4267 * mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
4268 like the other opcodes.
4270 2008-02-17 Zoltan Varga <vargaz@gmail.com>
4272 * mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.
4274 * mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.
4276 * mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
4277 variables 'cfg' instead of 'm' for consistency.
4279 * mini-x86.c: Use cfg->vret_addr instead of cfg->ret.
4281 * mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
4282 argument holding the vtype return address, to avoid the ambigious use of
4283 cfg->ret for this purpose.
4285 * mini.c (NEW_RETLOADA): Use vret_addr if set.
4287 * mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.
4289 * mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
4290 new mono_print_ins () function which only takes one argument.
4292 2008-02-15 Zoltan Varga <vargaz@gmail.com>
4294 * mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
4297 2008-02-14 Zoltan Varga <vargaz@gmail.com>
4299 * mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.
4301 * mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.
4303 * mini-x86.c: Sync with the version on the linear IR branch by adding new
4304 opcodes and other small changes.
4306 * mini-ops.h: Add some new opcodes from the linear IR branch.
4308 * mini-ops.h: Get rid of the OP_X86_..._MEMBASE opcodes.
4310 * mini-x86.c inssel-x86.brg cpu-x86.md: Get rid of the confusing _MEMBASE
4311 opcodes, use the REG_MEMBASE opcodes instead.
4313 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Get rid of the confusing _MEMBASE
4314 opcodes, use the REG_MEMBASE opcodes instead.
4316 * mini-amd64.c (mono_arch_output_basic_block): Sync with the version on the
4319 * mini.c (mono_op_imm_to_op): New helper function.
4321 * mini-ops.h: Add some opcodes from linear IR branch.
4323 2008-02-13 Zoltan Varga <vargaz@gmail.com>
4325 * mini-alpha.h mini-alpha.c tramp-alpha.c: Alpha port updates from Sergey Tikhonov
4328 2008-02-12 Zoltan Varga <vargaz@gmail.com>
4330 * mini.c (mono_normalize_opcodes): Always convert CEE_CONV_R4/R8 to
4333 * mini-ia64.c cpu-ia64.md: Add OP_ICONV_TO_R4/R8.
4335 2008-02-09 Zoltan Varga <vargaz@gmail.com>
4337 * aot-compiler.c (emit_method_code): Add an assert.
4339 * mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
4340 the IMT code so it is AOT friendly. Enable AOT for methods which call interface
4343 2008-02-08 Zoltan Varga <vargaz@gmail.com>
4345 * mini-arm.c (mono_arch_output_basic_block): Fix the ordering of arguments for
4346 some load/store opcodes so they are consistent.
4347 (mono_arch_emit_prolog): Simplify some code.
4349 * aot-runtime.c (mono_aot_get_plt_entry): Fix a warning.
4351 * objects.cs: Add tests for large argument offsets on ARM.
4353 * mini-arm.c (mono_arch_emit_prolog): Fix handling of arguments with large
4354 stack offsets. Fixes #359651.
4356 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R4/R8 properly.
4358 * cpu-s390x.md: Add OP_LCONV_TO_R4/R8.
4360 * cpu-ia64.md mini-ia64.h mini-ia64.c: Get rid of CEE_ opcodes.
4362 * mini-ops.h: Add OP_ICONV_TO_R_UN opcode.
4364 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R_UN too.
4366 * cpu-s390x.md cpu-s390.md mini-s390x.c mini-arm.c cpu-arm.md mini-s390.c: Get
4367 rid of CEE_CONV_R_UN.
4369 * mini-s390x.c mini-s390x.h cpu-s390x.md inssel-s390x.brg: Get rid of CEE_ opcodes.
4371 2008-02-07 Zoltan Varga <vargaz@gmail.com>
4373 * mini-s390.c mini-s390.h cpu-s390.md: Get rid of CEE_ opcodes.
4375 * mini.c (mono_normalize_opcodes): Add some more opcodes.
4377 * mini-arm.c mini-arm.h cpu-arm.md: Get rid of CEE_ opcodes.
4379 * cpu-amd64.md: Remove some unused opcodes.
4381 * mini-sparc.c mini-sparc.h cpu-sparc.md: Get rid of CEE_ opcodes.
4383 * mini-x86.c mini-x86.h cpu-x86.md: Get rid of CEE_ opcodes.
4385 * mini.c mini-<ARCH>.c: Remove mono_arch_local_regalloc (), instead make
4386 arch specific functions for its parts. Call the peephole pass after local
4387 regalloc so the prolog can compute a more accurate max_offset.
4389 * mini.c (mono_normalize_opcodes): New mini pass to convert CEE_ opcodes to
4390 the corresponding OP_I/OP_L opcodes.
4392 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of CEE_ opcodes.
4394 * mini-sparc.c (mono_arch_output_basic_block): Fix the sparc build.
4396 2008-02-06 Zoltan Varga <vargaz@gmail.com>
4398 * mini-s390.c (mono_arch_get_inst_for_method): Remove the Interlocked cases
4399 as they are handled in mini.c.
4401 * mini-s390x.c (mono_arch_get_inst_for_method): Ditto.
4403 * mini-<ARCH>.c (mono_arch_get_inst_for_method): Remove the MemoryBarrier
4404 case since it is handled in mini.c.
4406 * cpu-sparc.md (sparc_setfreg_float): Fix the sparc build.
4408 * mini-ops.h: Add new opcodes OP_CALL/OP_CALLVIRT.
4410 * *.c: Use the new opcodes in the IR and back end code.
4412 * mini-ops.h cpu-<ARCH>.md: Correct the name of the bgt_un opcodes.
4414 * mini-amd64.c (emit_call_body): Use a far-call for calling dynamic methods.
4416 2008-02-06 Mark Probst <mark.probst@gmail.com>
4418 * mini-trampolines.c (mono_generic_class_init_trampoline): Removed
4419 an assert because it has a race condition.
4421 2008-02-06 Zoltan Varga <vargaz@gmail.com>
4423 * tramp-amd64.c (mono_arch_patch_callsite): Add more diagnostics.
4425 * inssel.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused CEE_RET opcode.
4427 * mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused LDIND/STIND opcodes.
4429 * *.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of OP_SETREG/OP_SETFREG/OP_SETREGIMM,
4430 use OP_MOVE/OP_FMOVE/OP_ICONST instead.
4432 2008-02-05 Zoltan Varga <vargaz@gmail.com>
4434 * cpu-amd64.md (move): Correct the maximum size of move.
4436 2008-02-05 Mark Probst <mark.probst@gmail.com>
4438 * tramp-amd64.c, tramp-x86.c, mini-trampolines.c: Added a check in
4439 the generic class init trampoline to return quickly if the class
4442 2008-02-04 Zoltan Varga <vargaz@gmail.com>
4444 * tramp-amd64.c (mono_arch_patch_callsite): Add some diagnostics to help debug
4445 issues where an 32 bit callsite cannot be patched by a 64 bit address.
4447 2008-02-03 Zoltan Varga <vargaz@gmail.com>
4449 * generics.2.cs generics-variant-types.2.il: Merge some tests from the linear IR
4452 2008-01-31 Zoltan Varga <vargaz@gmail.com>
4454 * objects.cs: Add some soft-float tests.
4456 * mini.c: Fix a couple more soft-float issues.
4458 * helpers.c (mono_disassemble_code): Fix disassembly on ARM.
4460 * mini-amd64.c (peephole_pass): Use IXOR instead of LXOR for zeroing a register to
4463 2008-01-30 Zoltan Varga <vargaz@gmail.com>
4465 * exceptions-x86.c (mono_arch_find_jit_info): Fix stack unwinding when an
4466 exception happens while compiling a virtual method.
4468 2008-01-29 Zoltan Varga <vargaz@gmail.com>
4470 * mini-sparc.c (mono_arch_emit_epilog): Fix folding of negative return values.
4472 * mini-sparc.c: Fix build.
4474 * mini-sparc.c (get_call_info): Add support for generic sharing.
4476 * mini-exceptions.c: Add a FIXME.
4478 2008-01-27 Zoltan Varga <vargaz@gmail.com>
4480 * mini-exceptions.c (mono_handle_exception_internal): Remove the old style
4481 altstack handling code.
4483 * mini-s390.c (mono_arch_emit_exceptions): Really fix a warning.
4485 * mini-s390.c (mono_arch_emit_exceptions): Fix a warning.
4487 * mini-s390.c: Add support for generic sharing.
4489 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
4491 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
4493 * mini-s390x.c (mono_arch_emit_exceptions): Fix a warning.
4495 * mini-s390x.c: Add support for generic sharing.
4497 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
4499 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
4501 * mini-s390x.c: Use is_imm16 instead of is_uimm16 when checking whenever s390_aghi
4502 can be used since it takes a 16 bit signed immediate.
4504 * inssel-s390x.brg: Fix OP_SETRET.
4506 * mini-s390x.c (mono_arch_output_basic_block): Fix OP_BREAK.
4508 * mini-codegen.c (mono_opcode_to_cond): Fix a warning.
4510 * mini-s390x.c cpu-s390x.md: Implement sext.i4 properly by sign extension.
4512 * mini.c (mono_create_delegate_trampoline): Don't use mono_create_ftpntr here.
4514 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_addr_from_ftnptr
4517 * mini-ia64.h mini-ia64.c: Add minimal support for the delegate trampoline
4520 * mini.h inssel-x86.brg inssel-amd64.brg tramp-alpha.c tramp-ia64.c: Get rid
4521 of the unused mono_arch_patch_delegate_trampoline stuff.
4523 2008-01-26 Zoltan Varga <vargaz@gmail.com>
4525 * basic-long.cs: Move the fp related tests to basic-float.cs.
4527 * mini-ops.h (OP_OUTARG_FREG_R4): New opcode.
4529 * mini-ia64.c inssel-ia64.brg: Implement proper R4 argument passing.
4531 * basic-calls.cs: Add a test for proper float argument passing.
4533 * mini-ia64.h (mono_ia64_context_get_ip): Do not substract 1 from the ip
4534 if the context corresponds to an exception received through a signal.
4536 * exceptions.cs: Add a test for nullref handling at the start of a try
4539 * mini-ia64.c (mono_arch_call_opcode): Fix ia64 argument passing.
4541 * jit-icalls.c (mono_break): New JIT icall.
4543 * mini-<ARCH>.c: Use mono_break instead of mono_arch_break.
4545 * mini-arm.c (arm_patch): Add support for patching the blx calling sequence.
4547 2008-01-25 Zoltan Varga <vargaz@gmail.com>
4549 * cpu-*.md: Get rid of unused opcodes.
4551 * cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.
4553 * Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
4556 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
4559 * mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
4560 the arch independent trampoline code in mini-trampolines.c.
4562 * aot-runtime.c (mono_aot_init_vtable): Fix a warning.
4564 * mini.c (get_runtime_generic_context_ptr): Fix a warning.
4566 * mini-s390.h: Remove an unused define.
4568 * mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
4569 the arch independent trampoline code in mini-trampolines.c.
4571 * mini-arm.c (mono_arch_emit_prolog): Fix build.
4573 2008-01-24 Zoltan Varga <vargaz@gmail.com>
4575 * mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.
4577 * mini-s390.c (mono_arch_emit_prolog): Fix build.
4579 * mini-s390x.c (mono_arch_emit_prolog): Fix build.
4581 * mini-ppc.c (mono_arch_emit_prolog): Fix build.
4583 * cpu-amd64.md: Use smaller sizes for int opcodes.
4585 * *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.
4587 * *.cs: Add some tests from the linear-ir branch. Move structs tests to
4590 * driver.c (mono_main): Add a --break-at-bb command line argument for JIT
4593 * mini.h *.c: Change cfg->vars to contain the MonoMethodVar entries directly
4594 instead of though a pointer to save an indirection when accessing elements of
4597 * mini.h (MONO_IS_COND_BRANCH_OP): Move these macros here from mini.c. Fix
4599 (NOT_IMPLEMENTED): New helper macro.
4600 (MONO_BB_FOR_EACH_INS): New helper macro to iterate through the instructions
4603 * *.c: Use the new helper macro.
4605 2008-01-21 Zoltan Varga <vargaz@gmail.com>
4607 * mini-x86.h (MONO_ARCH_AOT_SUPPORTED): Disable AOT for apple x86.
4609 2008-01-20 Zoltan Varga <vargaz@gmail.com>
4611 * mini-amd64.c (mono_arch_emit_prolog): Optimize the omit fp case to save two
4614 2008-01-18 Zoltan Varga <vargaz@gmail.com>
4616 * mini-amd64.c (mono_arch_emit_prolog): Disable the new optimization if
4617 profiling is enabled.
4619 * mini-amd64.c (mono_arch_call_opcode): Emit the save_sp_to_lmf instruction at
4621 (mono_arch_emit_prolog): Add more first bblock optimizations.
4623 * mini-amd64.c (mono_arch_call_opcode): Keep assignments to the arg registers
4624 in order if possible.
4625 (mono_arch_emit_prolog): Optimize assignments to arg registers in the first
4626 bblock, since the arguments are still in their original registers.
4628 * mini.c (type_from_op): Calling add.ovf on floats is not valid IL code.
4630 2008-01-17 Zoltan Varga <vargaz@gmail.com>
4632 * mini.c (mono_method_to_ir): Use the no-spilling optimization for CEE_CALLI
4635 * mini-amd64.c (mono_arch_emit_prolog): Save an instruction if the LMF is at
4638 * mini-amd64.h (MONO_ARCH_HAVE_NOTIFY_PENDING_EXC): Turn on this for amd64.
4640 * exceptions-amd64.c (mono_arch_notify_pending_exc): New function to
4641 process async exceptions received while in unmanaged code.
4643 * mini.c (mini_init): Install a callback with the runtime which will be called
4644 when a thread receives an async exception while in unmanaged code.
4646 * mini.c driver.c: Update after mono_get_native_wrapper () signature change.
4648 * mini-s390x.c (mono_arch_output_basic_block): Fix s390x build.
4650 2008-01-16 Wade Berrier <wberrier@novell.com>
4657 2008-01-16 Zoltan Varga <vargaz@gmail.com>
4659 * mini-x86.c (mono_arch_output_basic_block): Remove some gccism which prevents
4660 compilation with sun cc.
4662 * cpu-*.md: Fix the build.
4664 * cpu-x86.md: Fix the length of some load membase opcodes. Fixes #354241.
4666 * mini-amd64.h: Add some comments to the MonoLMF structure.
4668 * mini-ops.h cpu-amd64.c: Add a OP_AMD64_SAVE_SP_TO_LMF opcode.
4670 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Avoid setting the rip field
4671 in the LMF structure if possible. This saves two instructions in the
4672 managed->native wrappers.
4674 * mini-ops.h *.md: Make some opcodes names uniform by removing the op_ prefix.
4676 2008-01-16 Mark Probst <mark.probst@gmail.com>
4678 * generic-sharing.c: New type argument lookup code which uses the
4679 runtime generic context template.
4681 2008-01-15 Zoltan Varga <vargaz@gmail.com>
4683 * mini.c (mono_method_to_ir): Avoid emitting a write barrier when storing NULL.
4685 * mini-arm.c (add_general): Fix arm eabi parameter passing.
4686 (mono_arch_output_basic_block): Fix localloc implementation.
4688 * mini-amd64.c (peephole_pass): Sync store+load optimizations with the x86 version.
4690 * mini-ia64.c (peephole_pass): Fix ia64 build.
4692 * mini-amd64.c (peephole_pass): Fix a warning.
4694 * mini-amd64.c (mono_arch_allocate_vars): Make sure the LMF is always stored
4695 at a constant offset from sp/fp.
4697 * exceptions-amd64.c (mono_arch_find_jit_info): Compute the LMF address from fp/sp
4698 instead of obtaining it from *lmf in the managed method case.
4700 2008-01-14 Zoltan Varga <vargaz@gmail.com>
4702 * exceptions-amd64.c (mono_arch_find_jit_info): Remove some duplicate code.
4704 Mon Jan 14 12:33:06 CET 2008 David S. Miller <davem@davemloft.net>
4706 * mini.h (MonoInstList): New type.
4707 (MONO_INST_LIST_INIT, MONO_INST_LIST_EMPTY,
4708 __MONO_INST_LIST_ADD, MONO_INST_LIST_ADD,
4709 MONO_INST_LIST_ADD_TAIL, __MONO_INST_LIST_DEL,
4710 __MONO_INST_LIST_SPLICE, MONO_INST_LIST_SPLICE,
4711 MONO_INST_LIST_SPLICE_TAIL, MONO_INST_LIST_SPLICE_INIST,
4712 MONO_INST_LIST_SPLICE_TAIL_INIT, mono_container_of,
4713 MONO_INST_LIST_ENTRY, MONO_INST_LIST_FIRST_ENTRY,
4714 MONO_INST_LIST_LAST_ENTRY, MONO_INST_LIST_FOR_EACH,
4715 MONO_INST_LIST_FOR_EACH_PREV, MONO_INST_LIST_FOR_EACH_SAFE,
4716 MONO_INST_LIST_FOR_EACH_PREV_SAFE,
4717 MONO_INST_LIST_FOR_EACH_ENTRY,
4718 MONO_INST_LIST_FOR_EACH_ENTRY_REVERSE,
4719 MONO_INST_LIST_FOR_EACH_ENTRY_SAFE,
4720 mono_inst_list_first, mono_inst_list_last,
4721 mono_inst_list_next, mono_inst_list_prev): New instruction
4722 list handling interfaces.
4723 (MonoBasicBlock): Remove 'last_ins' and 'code', replace with
4724 list head 'ins_list'.
4725 (MonoInst): Replace next pointer with list head 'node'.
4726 (MonoCallInst): Make 'out_args' a MonoInstList.
4727 (MONO_INST_NEW_CALL): Explicitly init ->out_args.
4728 (MonoCompile): Delete reverse_inst_list and
4729 reverse_inst_list_len.
4730 * mini-hppa.c (mono_arch_call_opcode, NEW_INS,
4731 mono_arch_lowering_pass, mono_arch_local_regalloc,
4732 mono_arch_output_basic_block, mono_arch_emit_prolog):
4733 Convert to new instruction lists.
4734 (insert_after_ins): Delete.
4735 * inssel.brg (MONO_EMIT_NEW_BRANCH_BLOCK): Convert to new
4737 * mini-hppa.h (MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Likewise.
4738 * mini.c (NEW_BBLOCK, ADD_BBLOCK, CHECK_BBLOCK,
4739 split_bblock, mono_add_ins_to_end, mono_emit_call_args,
4740 mono_emulate_opcode, mono_emit_load_got_addr,
4741 inline_method, mono_method_to_ir, mono_print_bb_code,
4742 print_dfn, decompose_pass, nullify_basic_block,
4743 replace_out_block_in_code, remove_block_if_useless,
4744 merge_basic_blocks, move_basic_block_to_end,
4745 try_unsigned_compare, optimize_branches, mono_print_code,
4746 mini_select_instructions, remove_critical_edges): Likewise.
4747 * mini-amd64.c (emit_sig_cookie, mono_arch_call_opcode,
4748 peephole_pass_1, peephole_pass, mono_arch_lowering_pass,
4749 mono_arch_output_basic_block, mono_arch_emit_prolog):
4751 * mini-mips.c (mono_arch_call_opcode, peephole_pass,
4752 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4753 mono_arch_output_basic_block): Likewise.
4754 (inst_list_prepend, insert_after_ins): Delete.
4755 * mini-mips.h (MONO_EMIT_NEW_BRANCH_NONZERO_LABEL,
4756 MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Convert to new
4758 * mini-x86.c (emit_sig_cookie, mono_arch_call_opcode,
4759 peephole_pass_1, peephole_pass, mono_arch_output_basic_block,
4760 mono_arch_emit_prolog): Likewise.
4761 * cfold.c (mono_constant_fold): Likewise.
4762 * liveness.c (visit_bb, mono_analyze_liveness,
4763 optimize_initlocals): Likewise.
4764 * ssapre.c (dump_code, process_bb, code_motion): Likewise.
4765 * graph.c (mono_draw_code_cfg): Likewise.
4766 * ssa.c (mono_ssa_rename_vars, mono_ssa_compute,
4767 mono_ssa_remove, mono_ssa_avoid_copies, mono_ssa_create_def_use,
4768 mono_ssa_cprop): Likewise.
4769 * abcremoval (get_relations_from_previous_bb, process_block):
4771 * local-propagation (mono_cprop_invalidate_values,
4772 mono_local_cprop_bb): Likewise.
4773 * mini-s390x.c (mono_arch_call_opcode, emit_sig_cookie,
4774 peephole_pass, mono_arch_output_basic_block,
4775 mono_arch_emit_prolog): Likewise.
4776 * mini-arm.c (mono_arch_call_opcode, peephole_pass,
4777 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4778 mono_arch_emit_prolog): Likewise.
4779 (insert_after_ins): Delete.
4780 * aliasing.c (print_code_with_aliasing_information,
4781 mono_build_aliasing_information, mono_aliasing_deadce):
4782 Convert to new instruction lists.
4783 * mini-ia64.c (emit_sig_cookie, mono_arch_call_opcode,
4784 peephole_pass, NEW_INS, mono_arch_lowering_pass,
4785 mono_arch_local_regalloc, mono_arch_output_basic_block):
4787 (insert_after_ins): Delete.
4788 * mini-sparc.c (emit_sig_cookie, mono_arch_call_opcode,
4789 peephole_pass, mono_arch_output_basic_block): Convert to
4790 new instruction lists.
4791 * mini-codegen (InstList, inst_list_prepend,
4792 insert_after_ins): Delete.
4793 (insert_before_ins, get_register_force_spilling,
4794 get_register_spilling, free_up_ireg, free_up_reg,
4795 create_copy_ins, create_spilled_store, alloc_int_reg,
4796 alloc_float_reg, alloc_reg, mono_local_regalloc): Convert
4797 to new instruction lists.
4798 * mini-ppc.c (mono_arch_call_opcode, peephole_pass,
4799 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4800 mono_arch_output_basic_block, mono_arch_emit_prolog): Likewise.
4801 (insert_after_ins): Delete.
4802 * mini-alpha.c (NEW_INS, peephole_pass, mono_arch_lowering_pass,
4803 mono_arch_local_regalloc, mono_arch_output_basic_block,
4804 mono_arch_call_opcode): Convert to new instruction lists.
4805 (insert_after_ins): Delete.
4806 * mini-s390.c (mono_arch_call_opcode, emit_sig_cookie,
4807 peephole_pass, mono_arch_output_basic_block,
4808 mono_arch_emit_prolog): Convert to new instruction lists.
4810 2008-01-11 Zoltan Varga <vargaz@gmail.com>
4812 * mini-amd64.c (mono_arch_output_basic_block): Use a 4 byte load in OP_CHECK_THIS.
4814 * mini-sparc.c (mono_arch_output_basic_block): Use a byte load in CHECK_THIS.
4817 * Makefile.am (version.h): Make this work with non-bash shells.
4819 2008-01-10 Zoltan Varga <vargaz@gmail.com>
4821 * mini.c (handle_delegate_ctor): Optimize away setting of NULL target.
4823 2008-01-08 Zoltan Varga <vargaz@gmail.com>
4825 * mini.c (mono_method_to_ir): Fix possible reading of invalid memory in
4826 the InitializeArray optimization.
4828 2008-01-06 Zoltan Varga <vargaz@gmail.com>
4830 * mini.c driver.c: Don't include os/gc_wrapper.h.
4832 2008-01-05 Zoltan Varga <vargaz@gmail.com>
4834 * mini.c (print_jit_stats): Print GC statistics if available.
4836 2008-01-04 Zoltan Varga <vargaz@gmail.com>
4838 * mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.
4840 2007-12-29 Zoltan Varga <vargaz@gmail.com>
4842 * mini-ppc.c (mono_arch_get_delegate_invoke_impl): Fix flushing of icache.
4844 2007-12-26 Zoltan Varga <vargaz@gmail.com>
4846 * mini.c (mini_init): Move the setting of GC_stackbottom to mono_gc_base_init ().
4848 * mini.c (mini_init): Call mono_gc_base_init () instead of MONO_GC_PRE_INIT ().
4850 * driver.c (mono_main): Ditto.
4852 2007-12-23 Zoltan Varga <vargaz@gmail.com>
4854 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_delegate_invoke ().
4856 * aot-compiler.c (emit_klass_info): Avoid emitting info if one of the methods
4857 in the vtable can't be encoded.
4858 (compile_method): Ditto.
4860 2007-12-21 Zoltan Varga <vargaz@gmail.com>
4862 * mini.c (setup_jit_tls_data): Use the MONO_ARCH_INIT_TOP_LMF_ENTRY macro if
4865 * mini-amd64.h mini-amd64.c exceptions-amd64.c tramp-amd64.c: Rename lmf->ebp to
4868 * exceptions-amd64.c (mono_arch_find_jit_info): Fix the detection of whenever
4869 the top LMF entry belongs to the current method.
4871 * mini.c: Update after renaming of mono_thread_get_pending_exception ().
4873 2007-12-20 Zoltan Varga <vargaz@gmail.com>
4875 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix a warning.
4877 * tramp-ia64.c (mono_arch_create_trampoline_code): Ditto.
4879 * tramp-sparc.c (mono_arch_create_trampoline_code): Check for thread interruption.
4881 * tramp-amd64.c (mono_arch_create_trampoline_code): Ditto.
4883 * tramp-x86.c (mono_arch_create_trampoline_code): Check for thread interruption.
4885 * cpu-amd64.md mini-amd64.h mini-amd64.c inssel-amd64.brg: Add ulong->double
4888 * basic-float.cs: Add an ulong->double cast test.
4890 2007-12-15 Zoltan Varga <vargaz@gmail.com>
4892 * mini.c (mono_method_to_ir): Fix a warning.
4894 2007-12-14 Zoltan Varga <vargaz@gmail.com>
4896 * mini-ops.h: Add OP_SWITCH.
4898 * mini.c graph.c ssa.c aliasing.c mini-<ARCH>.c inssel-<ARCH>.brg: Avoid using
4899 CEE_SWITCH in back-end code, use OP_SWITCH instead.
4901 2007-12-11 Geoff Norton <gnorton@novell.com>
4903 * mini-s390x.c: Minor change to the MAX() define to allow
4904 it to compile with other gcc versions.
4906 2007-12-11 Geoff Norton <gnorton@novell.com>
4909 * mini-s390x.c: Implement sext_i4 to fix the build on s390x
4911 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
4913 exceptions-arm.c (mono_arch_get_restore_context): Restore
4916 exceptions-arm.c (throw_exception): Save the frame pointer.
4917 This is a partial fix for #323747. Only the client side is
4920 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
4922 * mini.c (mono_method_to_ir): Verbose message in CEE_NEWOBJ
4923 was using an unrelated variable to log the class which
4924 needed the cctor to be called. This was crashing on arm.
4926 2007-12-09 Robert Jordan <robertj@gmx.net>
4928 * mini-x86.c (mono_arch_emit_epilog):
4929 Consider all kinds of 64-bit types. Fixes #323114.
4931 2007-12-08 Zoltan Varga <vargaz@gmail.com>
4933 * tramp-amd64.c (mono_arch_create_trampoline_code): Clean up the code a bit.
4935 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4937 * mini-amd64.c (peephole_pass): Add a missing instruction check.
4939 Fri Dec 7 22:08:23 CET 2007 Paolo Molaro <lupus@ximian.com>
4941 * mini.c: run type ctor before allocating an object, not only
4942 when running it's constructor method (fixes at least part of bug #342507).
4944 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4946 * mini-trampolines.c (mono_delegate_trampoline): Fix a warning.
4948 * mini-trampolines.c (mono_generic_class_init_trampoline): Remove a debug printf.
4949 * mini.h mini-amd64.c mini-x86.c: Get rid of the mono_arch_find_vtable ()
4952 * tramp-x86.c tramp-amd64.c mini-trampolines.c: Pass the vtable argument to
4953 mono_generic_class_init_trampoline () the same as it is done with the other
4956 * mini-arm.h mini-arm.c tramp-arm.c inssel-arm.brg cpu-arm.md
4957 aot-runtime.c aot-compiler.c: Implement AOT support.
4959 2007-12-07 Mark Probst <mark.probst@gmail.com>
4961 * mini-trampolines.c (mono_generic_class_init_trampoline): Fixed
4962 build for archs which don't have the vtable trampoline defined
4965 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4967 * tramp-x86.c (mono_arch_create_trampoline_code): Fix the build.
4969 * tramp-ppc.c (mono_arch_create_trampoline_code): Use the new helper function.
4971 * mini-trampolines.c (mono_get_trampoline_func): New helper function.
4973 * tramp-<ARCH>.c: Use the new helper function.
4975 2007-12-07 Mark Probst <mark.probst@gmail.com>
4977 * inssel.brg: Added a pattern for the OP_TRAMPCALL_VTABLE
4978 trampoline call, which takes a vtable argument.
4980 * graph.c, mini-ops.h, local-propagation.c, aliasing.c: Treat
4981 OP_TRAMPCALL_VTABLEs like other calls.
4983 * mini-amd64.c, mini-amd64.h, mini-x86.c, mini-x86.h: Designated a
4984 register to hold the vtable argument to the OP_TRAMPCALL_VTABLE
4985 call. Implemented a support function which fetches the vtable
4986 from a register set.
4988 * mini.c, mini.h, tramp-amd64.c, tramp-x86.c, mini-trampolines.c:
4989 Implemented a generic class init trampoline, using the
4990 OP_TRAMPCALL_VTABLE opcode.
4992 * mini.c: Implemented static field access when sharing generic
4993 code. This implies initing the class using the new
4994 OP_TRAMPCALL_VTABLE call.
4996 2007-12-07 Mark Probst <mark.probst@gmail.com>
4998 * mini.c: Don't compile methods with sharing enabled if their
4999 classes are disabled for sharing.
5001 2007-12-06 Zoltan Varga <vargaz@gmail.com>
5003 * inssel.brg: Add a missing sign extension to the GETCHR and array access
5004 opcodes. Fixes #346563.
5006 * objects.cs: Add a new test.
5008 * aot-compiler.c (emit_method_code): Put back an #ifdef which is needed.
5010 * mini-<ARCH>.h mini.c aot-compiler.c aot-runtime.c: Get rid of the
5011 HAVE_PIC_AOT define and use AOT_SUPPORTED instead.
5013 2007-12-06 Zoltan Varga <vargaz@gmail.com>
5015 * mini-arm.h mini-arm.c: Add support for the common vtable trampoline.
5017 2007-12-03 Zoltan Varga <vargaz@gmail.com>
5019 * mini-arm.c (mono_arch_emit_exceptions): Avoid uninitialized memory in the
5022 2007-12-02 Zoltan Varga <vargaz@gmail.com>
5024 * patch-info.h (PATCH_INFO): Add DELEGATE_TRAMPOLINE.
5026 * mini.c aot-compiler.c aot-runtime.c: Implement the delegate creation
5027 optimization in the AOT case.
5029 2007-11-30 Zoltan Varga <vargaz@gmail.com>
5031 * aot-runtime (mono_aot_get_method_from_vt_slot): Add support for multi-byte method ref encodings.
5033 * aot-runtime.c (decode_klass_ref): Implement decoding of generic instances.
5035 * aot-compiler.c (encode_klass_ref): Implement proper encoding of generic instances.
5037 * mini.c (mono_method_to_ir): Optimize the common ldftn+create delegate combination.
5039 * mini-trampolines.c (mono_delegate_trampoline): Add some code to handle the case when the delegate
5040 is created by the inlined delegate ctor.
5042 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
5044 * mini.c (mono_jit_compile_method_inner): Replace calls to delegate invoke with the trampoline here too.
5046 2007-11-29 Zoltan Varga <vargaz@gmail.com>
5048 * cpu-x86.md: Fix the length of ckfinite.
5050 2007-11-28 Zoltan Varga <vargaz@gmail.com>
5052 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
5054 * mini-x86.c (mono_arch_output_basic_block): Clean up the fp stack properly in CKFINITE.
5055 (mono_arch_output_basic_block): Get rid of unused last_ins and last_offset.
5057 * mini-x86.c (mono_arch_output_basic_block): Add some micro optimizations.
5059 * mini-x86.c inssel-x86.brg cpu-x86.md: Move the implementation of the
5060 OP_START_HANDLER/OP_ENDFINALLY/OP_ENDFILTER opcodes to mini-x86.c.
5062 2007-11-28 Martin Baulig <martin@ximian.com>
5065 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline()
5066 after creating the trampoline.
5068 2007-11-27 Zoltan Varga <vargaz@gmail.com>
5070 * aot-runtime.c (load_aot_module): Check runtime version if needed.
5072 * aot-compiler.c: Add bind-to-runtime-version for producing AOT files which only load into a runtime with
5075 * generic-sharing.c (mono_helper_get_rgctx_other_ptr): Change the signature to take the calling class
5076 instead of the calling method to help AOT.
5078 * mini.c (get_runtime_generic_context_other_ptr): Update after the change.
5080 2007-11-26 Zoltan Varga <vargaz@gmail.com>
5082 * aot-runtime.c (mono_aot_init_vtable): Simplify this if MONO_ARCH_COMMON_VTABLE_TRAMPOLINE
5085 2007-11-23 Zoltan Varga <vargaz@gmail.com>
5087 * aot-compiler.c (emit_class_name_table): Properly encode generic class names.
5089 * aot-compiler.c (compile_method): Correct check for generic method definitions.
5090 (encode_method_ref): No need to handle generic method definitions specially.
5092 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
5094 * aot-runtime.c (decode_klass_ref): Clean this up and rename from
5097 * aot-compiler.c (encode_klass_ref): Clean this up and rename from
5099 (compile_method): Enable generic sharing.
5101 2007-11-22 Zoltan Varga <vargaz@gmail.com>
5103 * mini.c (get_runtime_generic_context_other_ptr): Disable AOT here.
5104 (mini_method_compile): Add preliminary support for AOTing shared generic code.
5106 * aot-compiler.c (compile_method): Add preliminary support for AOTing shared
5109 * mini-trampolines.c: Fix a warning.
5111 * mini.c (get_runtime_generic_context_other_ptr): Use NEW_METHODCONST instead of
5113 (mono_method_to_ir): Use NEW_DOMAINCONST in one place.
5114 (generic_class_is_reference_type): Remove unused function.
5116 * mini-trampolines.c (mono_magic_trampoline): Avoid loading metadata if possible
5117 in the generic vtable trampoline case.
5119 * aot-runtime.c (mono_aot_init_vtable): Use the generic vtable trampoline.
5121 * aot-runtime.c (mono_aot_get_method_from_vt_slot): New helper function to
5122 return an AOT method based on a vtable slot.
5124 * aot-compiler.c (compile_method): Avoid AOTing synchronized methods for now.
5126 * mini.c (mini_get_vtable_trampoline): Export this.
5128 2007-11-22 Martin Baulig <martin@ximian.com>
5131 (MonoDebuggerInfo): Move `debugger_version' up.
5133 2007-11-22 Martin Baulig <martin@ximian.com>
5136 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline().
5138 * mini-trampolines.c
5139 (mono_delegate_trampoline): Call mono_debugger_trampoline_compiled()
5140 after compiling the method.
5142 2007-11-20 Martin Baulig <martin@ximian.com>
5145 (mono_debugger_insert_method_breakpoint): Moved into mono-debug-debugger.c.
5146 (mono_debugger_remove_breakpoint): Likewise.
5147 (mono_debugger_check_breakpoints): Likewise.
5149 * debug-debugger.c: Implement the new breakpoint interface here.
5151 2007-11-18 Zoltan Varga <vargaz@gmail.com>
5153 * mini-amd64.c (mono_arch_output_basic_block): Unify the implementation of
5154 CEE_CONV_I1/SEXT_I1 and I2 since they are the same.
5156 * mini-x86.c (mono_arch_output_basic_block): Ditto.
5158 2007-11-17 Zoltan Varga <vargaz@gmail.com>
5160 * mini-amd64.c (mono_arch_output_basic_block): Fix a typo.
5162 * mini-x86.c (mono_arch_get_inst_for_method): Remove code which is now in
5165 * mini-ia64.c (mono_arch_get_inst_for_method): Remove code which is now in
5168 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for methods
5169 returning a vtype in a register.
5171 * mini.c (mini_get_inst_for_method): Move the handling of the atomic operations
5172 here from the arch specific code.
5174 * mini-amd64.c (mono_arch_get_inst_for_method): Remove code which is now in
5177 * mini-amd64.c (mono_arch_output_basic_block): Add some micro optimizations.
5178 (mono_arch_emit_prolog): Increment maximum prolog size.
5180 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Move the implementation of the
5181 START_HANDLER/ENDFINALLY/ENDFILTER opcodes to mini-amd64.c.
5183 * mini-x86.c (get_call_info): Receive a MonoCompile instead of a
5184 MonoGenericSharingContext.
5186 * mini-ia64.c (get_call_info): Receive a MonoCompile instead of a
5187 MonoGenericSharingContext. Allocate memory from the cfg mempool.
5189 2007-11-15 Mark Probst <mark.probst@gmail.com>
5191 * mini.c, mini.h, generic-sharing.c: Functions for producing code
5192 which extract fields out of the runtime generic context. Full
5193 sharing of the NEWARR opcode.
5195 Thu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>
5197 * abcremoval.c, mini.c, ssa.c, ssapre.c: updated to implement
5198 --enable-minimal=ssa.
5200 2007-11-13 Zoltan Varga <vargaz@gmail.com>
5202 * mini-trampolines.c (mono_delegate_trampoline): Update after
5203 mono_marshal_get_delegate_invoke () signature change.
5205 2007-11-13 Mark Probst <mark.probst@gmail.com>
5207 * mini.c: Removed the shared context in favor of the generic
5208 sharing context. Allocate the MonoJitInfo structure with room for
5209 the generic sharing context if it's needed.
5211 * mini.h: Remove MonoGenericSharingContext declaration. It's in
5212 domain-internals.h now.
5214 * mini-x86.c: Pass the generic sharing context to get_call_info ().
5216 * generic-sharing.c: Several changes for working without a shared
5217 context and instead operating on open types instead.
5219 2007-11-12 David S. Miller <davem@davemloft.net>
5221 * inssel-sparc.brg: Fix double instruction emit.
5223 2007-11-12 Zoltan Varga <vargaz@gmail.com>
5225 * mini.c (mono_jit_runtime_invoke): Avoid trying to compile the Array
5226 Get/Set/Address methods.
5228 * mini.c debug-debugger.c mini-trampolines.c: Update after
5229 mono_marshal_get_delegate_invoke signature change.
5231 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
5233 * cpu-arm.md: Increase the max size of OP_THROW to 24 bytes.
5234 This can happens with dynamic methods. Fixes the other bug in #322722.
5236 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
5238 * tramp-arm.c (mono_arch_patch_callsite): Support patching
5241 * mini-arm.c (arm_patch): Implement patching of BX call
5242 sequence. Fixes one of the bugs in #322722.
5244 2007-11-03 David S. Miller <davem@huronp11.davemloft.net>
5246 * mini-sparc.c (mono_arch_flush_icache): Make more efficient
5247 under Linux. We only need to flush every 32-byte cache line.
5249 2007-11-07 Massimiliano Mantione <massi@ximian.com>
5252 move_basic_block_to_end: Add branches when needed, eventually creating
5254 optimize_branches: added a parameter that tells if it's ok to create
5255 new BBs (doing is "df_visit" has been called is (IMHO) a nightmare),
5256 and avoid calling move_basic_block_to_end when it's not ok.
5259 2007-11-07 Mark Probst <mark.probst@gmail.com>
5261 * mini.c: Abort inlining call to InitializeArray if something
5262 looks wrong. Let the icall handle it, which now has proper safety
5265 2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
5267 * mini.c (mono_spill_call): add support for soft-float.
5269 * mini.c (mono_method_to_ir): add support for soft-float
5270 to inlined functions that return float.
5272 * mini.c (mono_method_to_ir): add support for soft-float
5273 to cee_stsfld opcode on float fields.
5275 2007-11-05 Geoff Norton <gnorton@novell.com>
5277 * mini-x86.h: Fix the structure access for X86 Leopard.
5280 2007-11-05 Martin Baulig <martin@ximian.com>
5282 * mini-trampolines.c
5283 (mono_magic_trampoline): Call mono_debugger_trampoline_compiled()
5284 after compiling the method to notify the debugger.
5286 2007-11-05 Martin Baulig <martin@ximian.com>
5288 * debug-debugger.h (MonoDebuggerInfo): Use the new breakpoint tables.
5290 2007-11-02 Zoltan Varga <vargaz@gmail.com>
5292 * mini-sparc.c (EMIT_COND_SYSTEM_EXCEPTION_GENERAL): Applied patch from
5293 David Miller <davem@davemloft.net>. Allow larger offsets in branches.
5295 2007-11-01 Zoltan Varga <vargaz@gmail.com>
5297 * mini-amd64.c (mono_arch_emit_prolog): Check the domain as well for
5298 native-to-managed wrappers.
5300 2007-11-01 Geoff Norton <gnorton@novell.com>
5302 * mini-ppc.h, mini-x86.h: Handle Leopards renaming of some structure
5305 Wed Oct 31 20:23:14 CET 2007 Paolo Molaro <lupus@ximian.com>
5307 * mini.c, mini-x86.c: when getting back from unmanaged code
5308 to managed via a marshaled delegate we also need to set the
5311 Wed Oct 31 19:53:33 CET 2007 Paolo Molaro <lupus@ximian.com>
5313 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: breakpoint table support
5316 Wed Oct 31 19:29:30 CET 2007 Paolo Molaro <lupus@ximian.com>
5318 * mini.c, mini.h, mini-x86, tramp-x86.c, mini-x86.h: added API to
5319 let the debugger or other external agents to tell the JIT when
5320 a sw breakpoint has been inserted in the code that the JIT needs
5321 to be able to inspect.
5323 2007-10-31 Martin Baulig <martin@ximian.com>
5326 (MonoDebuggerInfo): Remove `runtime_class_init'.
5328 2007-10-30 Martin Baulig <martin@ximian.com>
5331 (mono_debugger_thread_created): Added `MonoThread *' argument.
5332 (mono_debugger_extended_notification): New public method.
5333 (mono_debugger_trampoline_compiled): New public method.
5336 (MonoDebuggerThreadInfo): Added `thread' and
5337 `extended_notifications' fields.
5340 (debugger_executable_code_buffer): New static variable.
5343 (MonoDebuggerInfo): Added `executable_code_buffer',
5344 `executable_code_buffer_size', `breakpoint_info_area',
5345 `breakpoint_table' and `breakpoint_table_size'.
5347 2007-10-26 Rodrigo Kumpera <rkumpera@novell.com>
5349 * mini-arm.c (mono_arch_build_imt_thunk): Take the advantage
5350 that IP either is an unused value or the vtable pointer. IMT
5351 calls use vtable + offset now. Reduced by almost half the size
5354 2007-10-26 Jonathan Chambers <joncham@gmail.com>
5356 * mini-amd64.c: Begin Win64 port. Use AMD64_ARG_REG#
5357 defines to access param registers. Replace long usage with
5358 gsize as sizeof(long) != sizeof(void*) on Win64.
5360 * mini-amd64.h: Add %rdi and %rsi to MonoLMF structure
5361 on Win64. Fix intrinsic, use _AddressOfReturnAddress
5362 instead of non-existant _GetAddressOfReturnAddress.
5364 * tramp-amd64.c: Use AMD64_ARG_REG# defines to access
5365 param registers. Save/restore %rdi and %rsi in MonoLMF.
5367 * exceptions-amd64.c: Use AMD64_ARG_REG# defines to access
5368 param registers. Modify (throw_exception) signature to take
5369 %rdi and %rsi on Win64.
5371 Code is contributed under MIT/X11 license.
5373 Thu Oct 25 23:06:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
5375 * helpers.c: unlink debugging output files.
5377 2007-10-25 Zoltan Varga <vargaz@gmail.com>
5379 * mini.c: Move mono_create_ftnptr () to object.c.
5381 2007-10-24 Rodrigo Kumpera <rkumpera@novell.com>
5383 * helpers.c (mono_disassemble_code): MonoCompile parameter is now
5384 optional. This function can now be used to disassemble code generated
5385 outside the JIT such as trampolines and IMT thunks.
5387 * mini-arm.h: defined MONO_ARCH_HAVE_IMT.
5389 * mini-arm.c (decode_vcall_slot_from_ldr): added, extract the
5390 vtable pointer from a ldr instruction.
5392 * mini-arm.c (mono_arch_get_vcall_slot_addr): support the
5393 new IMT call sequence.
5395 * mini-arm.c (mono_arch_output_basic_block): emit the IMT
5396 call sequence for interface invocations.
5398 * mini-arm.c (mono_arch_emit_imt_argument): added, required
5399 for imt support. This function is empty since IMT on ARM requires no
5400 special handling on the IR side.
5402 * mini-arm.c (mono_arch_find_imt_method): added, required for
5405 * mini-arm.c (mono_arch_find_this_argument): added, required
5408 * mini-arm.c (arm_emit_value_and_patch_ldr): added, patches
5409 a ldr instruction to load a value stored in the code stream.
5411 * mini-arm.c (mono_arch_build_imt_thunk):added, required
5415 2007-10-23 Zoltan Varga <vargaz@gmail.com>
5417 * mini.c (mini_init): Install the jump trampoline callback.
5419 Tue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5421 * mini-trampolines.c: handle synchronized methods with the common
5422 vtable trampoline (bug #335601).
5424 2007-10-17 Zoltan Varga <vargaz@gmail.com>
5426 * mini-ia64.h mini-amd64.c: Add support for the common vtable trampoline.
5428 * inssel.brg (mini_emit_virtual_call): Fix the computation of ins->inst_offset on
5431 * mini-ia64.h mini-ia64.c: Add support for IMT.
5433 * mini-x86.c (mono_arch_emit_prolog): Increase the size allocated for the
5434 prolog. Fixes #331958.
5436 2007-10-15 Zoltan Varga <vargaz@gmail.com>
5438 * mini-sparc.h mini-sparc.c: Add support for the common vtable trampoline.
5440 Mon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5442 * mini-ppc.c, mini-ppc.h: ppc support for the common vtable
5445 Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5447 * mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
5450 Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
5452 * mini-x86.c, mini-x86.h: x86 support for the common vtable
5455 Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
5457 * mini-trampolines.c: changed the magic rampoline to understand
5458 the common vtable trampoline method: the method to invoke is
5459 determined by the vtable displacement of the call.
5461 Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
5463 * mini.c, mini.h: register the common vtable trampoline if the
5464 architecture supports it.
5466 Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5468 * cpu-amd64.md: use the correct max length for tls_get.
5470 2007-10-14 Zoltan Varga <vargaz@gmail.com>
5472 * mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
5473 CEE_STELEM_ANY. Fixes #333696.
5475 Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
5477 * exceptions-x86.c: provide more graceful handling of the case where
5478 we followed a bogus function pointer from managed code (bug #332866).
5480 2007-10-11 Mark Probst <mark.probst@gmail.com>
5482 * mini.h, mini.c: Introduced the MonoGenericSharingContext, which
5483 replaces the generic_shared flag and will carry more information
5486 * generic-sharing.c: Added mini_type_stack_size() which allows
5487 allows open types if given a generic sharing context.
5488 mini_get_basic_type_from_generic() takes a
5489 MonoGenericSharingContext* instead of a MonoCompile* now.
5491 * mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
5492 mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
5493 mini-sparc.c, mini-x86.c: Trivial changes required by the two
5494 changes above. Just passing arguments through to the right
5497 Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
5499 * mini-arm.c: unify the call emission to emit_code_seq().
5501 Wed Oct 10 13:05:46 CEST 2007 Paolo Molaro <lupus@ximian.com>
5503 * tramp-arm.c: reduced the trampoline size.
5505 2007-10-10 Mark Probst <mark.probst@gmail.com>
5507 * generic-sharing.c, mini.h, mini-amd64.c, mini-x86.c: Moved type
5508 variable handling out of arch-specific code.
5510 Wed Oct 10 10:49:28 CEST 2007 Paolo Molaro <lupus@ximian.com>
5512 * mini-arm.c: implemented fast delegate dispatch.
5514 2007-10-09 Zoltan Varga <vargaz@gmail.com>
5516 * mini-amd64.c (mono_arch_compute_omit_fp): Add more checks to ensure
5517 that fp elimination is turned off if the space required by locals is too
5520 Tue Oct 9 21:01:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
5522 * Makefile.am, mini-arm.c, mini-arm.h, tramp-arm.c: ported
5523 ARM to the new style trampoline.
5525 2007-10-09 Zoltan Varga <vargaz@gmail.com>
5527 * tramp-amd64.c: Rework the specific trampoline code to make it smaller.
5529 * mini-amd64.h mini-amd64.c: Export amd64_patch as mono_amd64_patch.
5531 2007-10-09 Martin Baulig <martin@ximian.com>
5534 (MonoDebuggerMetadataInfo): Added `field_info_type_offset' and
5535 `field_info_offset_offset'.
5537 Tue Oct 9 09:47:51 CEST 2007 Paolo Molaro <lupus@ximian.com>
5539 * mini-ppc.c, mini-ppc.h, mini-ops.h, inssel-ppc.brg, cpu-g4.md:
5540 removed more internal usage of the r11 register and made it available
5541 to the register allocator.
5543 2007-10-08 Mark Probst <mark.probst@gmail.com>
5545 * mini.c, mini-amd64.c, mini-x86.c: Allow open generic contexts
5546 when sharing generics and treat type variables as references.
5548 Mon Oct 8 10:55:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
5550 * mini-ppc.c: started removing the internal uses of register r11
5551 to eventually allow the register allocator to manage it as an
5552 additional available register.
5554 Mon Oct 8 14:25:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
5556 * tramp-amd64.c: fixed memory corruption in the trampoline generation.
5558 Mon Oct 8 12:06:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
5560 * tramp-ppc.c, tramp-x86.c: reduce the alignment requirements for
5561 specific trampolines as they are not performance critical as a jump
5562 target (maybe align as before only for AOT code?). This saves about
5563 200 KB of native code on x86 for monodevelop startup.
5565 Mon Oct 8 10:04:40 CEST 2007 Paolo Molaro <lupus@ximian.com>
5567 * tramp-ppc.c: reduce the size of the trampolines, saves 160KB on
5568 monodevelop startup.
5570 2007-10-06 Zoltan Varga <vargaz@gmail.com>
5572 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Allow signed displacements.
5574 * mini-sparc.h mini-sparc.c: Implement IMT support.
5576 * tramp-sparc.c (mono_arch_create_trampoline_code): Rework the trampoline code so
5577 its smaller and doesn't clobber sparc_g1.
5579 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Update after trampoline changes.
5581 Fri Oct 5 18:28:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
5583 * mini-ppc.c: optimized the size of the IMT thunks a bit.
5585 Fri Oct 5 18:08:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
5587 * mini-ppc.c: implemented fast delegate invocation.
5589 Fri Oct 5 00:01:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
5591 * mini-ppc.h, mini-ppc.c: IMT support for the PPC architecture.
5593 Thu Oct 4 22:04:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
5595 * mini-ppc.c, mini-ppc.h, tramp-ppc.c, Makefile.am: port the PPC
5596 code to the new style trampoline in preparation for IMT support.
5598 Thu Oct 4 19:01:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
5600 * mini-ppc.c, tramp-ppc.c: don't use r13 as it's used by the PPC EABI
5601 systems already. This also reduces the specific trampiline sizes and
5602 prepares for the use of r12 as the IMT identifier register.
5604 Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5606 * mini-mips.h: endianess fix (simplified from a patch by
5607 Thomas Kunze <thommy@tabao.de>, bug #323737).
5609 Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
5611 * exceptions-ppc.c, mini-ppc.h: refactor to use macros
5612 to access ucontext fields and enable netbsd support
5613 (partially from Magnus Henoch <mange@freemail.hu>).
5615 Thu Oct 4 12:35:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5617 * genmdesc.pl: patch from Henryk Plötz <henryk@openmoko.org> to
5618 use the preprocessor from the CPP env var if it is set.
5620 Wed Oct 3 17:11:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
5622 * mini-trampolines.c: fixed an assertion and moved it earlier in the
5623 code, before interface_offset gets used.
5625 2007-10-02 Zoltan Varga <vargaz@gmail.com>
5627 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
5628 mono_class_setup_vtable () before accessing klass->vtable.
5630 2007-10-01 Zoltan Varga <vargaz@gmail.com>
5632 * aot-compiler.c (get_plt_index): Rework the handling of wrappers to be not so
5635 Mon Oct 1 15:00:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5637 * mini.c, mini-trampolines.c, mini.h: enable the lazy filling of the
5638 IMT slots (this saves hundreds of KB of memory in programs like
5639 IronPython and Monodevelop).
5641 Mon Oct 1 14:44:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
5643 * mini.c: print the delegate counter.
5645 Mon Oct 1 14:36:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
5647 * mini-x86.c: make it easier to enable the debugging code for IMT
5650 2007-09-28 Martin Baulig <martin@ximian.com>
5653 (MonoDebuggerMetadataInfo): Add `klass_image_offset',
5654 `mono_method_klass_offset' and `mono_method_token_offset'.
5656 2007-09-20 Mark Probst <mark.probst@gmail.com>
5658 * mini.c: First generics sharing implementation. Can only share
5659 in very simple cases. If sharing doesn't work it falls back to
5660 dedicated compilation.
5662 * mini.h: Flag in MonoCompile to specify whether generic
5663 compilation is shared. Flags enum for marking which generic inst
5664 of a context is used. Prototypes for helper functions.
5666 * generic-sharing.c: Helper functions for generic method sharing.
5668 * optflags-def.h: Optimization flag (gshared) for enabling generic
5669 method sharing added.
5671 * Makefile.am: generic-sharing.c added.
5673 2007-09-19 Daniel Nauck <dna@mono-project.de>
5675 * mini.c (mono_thread_abort): fixed typo in r86014. It should be '==' instead of '!='.
5677 2007-09-19 Massimiliano Mantione <massi@ximian.com>
5678 * mini.c (mono_thread_abort): Correctly handle ThreadAbortException,
5681 2007-09-19 Martin Baulig <martin@ximian.com>
5683 * mini.c (mini_cleanup): Only call mono_debugger_cleanup() here;
5684 mono_debug_cleanup() is now part of mono_cleanup().
5686 2007-09-18 Zoltan Varga <vargaz@gmail.com>
5688 * driver.c (mono_main): Fix a warning.
5690 2007-09-17 Zoltan Varga <vargaz@gmail.com>
5692 * aot-compiler.c: Optimize various parts when processing large assemblies.
5695 * mini.c (mono_patch_info_hash): Improve hash function.
5697 2007-09-14 Jonathan Chambers <joncham@gmail.com>
5699 * mini-exceptions.c: Add HAVE_UNISTD_H check around include.
5701 Code is contributed under MIT/X11 license.
5703 2007-09-14 Zoltan Varga <vargaz@gmail.com>
5705 * mini.c (mini_init): Fix a leak.
5707 * debug-mini.c (mono_debug_free_method_jit_info): Fix a leak.
5709 Fri Sep 14 12:53:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
5711 * mini.c: redirect string.InternalAllocStr() to the managed allocator.
5713 2007-09-14 Zoltan Varga <vargaz@gmail.com>
5715 * mini-amd64.c (mono_arch_find_imt_method): Add support for AOT code.
5717 2007-09-13 Zoltan Varga <vargaz@gmail.com>
5719 * Makefile.am generics-variant-types.2.il generics.cs: Add some generics
5722 * inssel.brg: Reorganize the isinst/castclass code to reduce code duplication.
5724 * mini.c (handle_alloc): Enable managed allocators in AOT code.
5726 * aot-compiler.c (encode_patch): Add support for MONO_WRAPPER_ALLOC.
5728 * aot-runtime.c (decode_patch_info): Ditto.
5730 2007-09-12 Jonathan Chambers <joncham@gmail.com>
5732 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement
5733 static case. Cache delegates in architecture specific code,
5734 based on number of parameters.
5736 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Cache delegates
5737 in architecture specific code, based on number of parameters.
5739 * mini-trampolines.c (mono_delegate_trampoline): Architecture specific
5740 caching happen in architecture specific code now.
5742 Code is contributed under MIT/X11 license.
5744 2007-09-12 Jonathan Chambers <joncham@gmail.com>
5746 * mini.h, mini.c, mini-x86.c, mini-amd64.c, mini-hppa.c, mini-mips.c,
5747 mini-s390x.c, mini-arm.c, mini-ia64.c, mini-sparc.c, mini-ppc.c, mini-alpha.c,
5748 mini-s390.c: Add mono_arch_init and mono_arch_cleanup methods.
5750 Code is contributed under MIT/X11 license.
5752 2007-05-15 Massimiliano Mantione <massi@ximian.com>
5753 * mini.c: (mono_thread_abort) Fixed bug #82416.
5755 Tue Sep 11 16:15:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
5757 * mini.: hook the new managed GC allocation feature into the JIT.
5759 Tue Sep 11 16:14:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
5761 * mini.c: implementation for the new runtime tls opcode.
5763 2007-09-11 Martin Baulig <martin@ximian.com>
5766 (MonoDebuggerMetadataInfo): Add `mono_method_flags_offset' and
5767 `mono_method_inflated_offset'.
5769 2007-09-07 Zoltan Varga <vargaz@gmail.com>
5771 * driver.c mini.h mini.c: Add a new devel command line option for injecting
5772 async exceptions into a method.
5774 * mini-amd64.h mini-amd64.c: Implement injecting of async exceptions for the
5775 purpose of testing whenever the unwinder works at every instruction.
5777 Thu Sep 6 12:42:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
5779 * mini.c: check accessibility of method used in ldftn (fixes
5782 2007-09-04 Zoltan Varga <vargaz@gmail.com>
5784 * mini-amd64.c (mono_arch_output_basic_block): Fix a warning.
5786 * inssel.brg: Fix a warning.
5788 2007-09-03 Martin Baulig <martin@ximian.com>
5790 * debug-debugger.c: `MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE'
5791 now takes the `main_method' as argument.
5793 2007-09-02 Zoltan Varga <vargaz@gmail.com>
5795 * cpu-sparc.md (endfilter): Add missing src1:i argument.
5797 2007-08-30 Jonathan Chambers <joncham@gmail.com>
5799 * driver.c: include the cil-coff.h header on Windows.
5801 Code is contributed under MIT/X11 license.
5803 Thu Aug 30 16:17:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
5805 * mini.c, driver.c: don't include the cil-coff.h header.
5807 Thu Aug 30 14:50:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
5809 * mini.c: flag places that needs fixes fo soft-float support.
5811 Wed Aug 29 18:26:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
5813 * mini.h, inssel-float.brg: fix soft-float constant loads on big
5814 endian systems (partially from Dean Jenkins, bug #81924).
5816 2007-08-28 Mark Probst <mark.probst@gmail.com>
5818 * mini.c (check_linkdemand): Remove embedded reference object in
5819 call to LinkDemandSecurityException.
5820 (mono_jit_compile_method_inner): Call LinkDemandSecurityException
5821 with an IntPtr instead of a reference object.
5823 2007-08-28 Zoltan Varga <vargaz@gmail.com>
5825 * mini.c (handle_initobj): Handle alignment properly.
5827 * inssel.brg (mini_emit_memset): Ditto.
5829 * inssel.brg (mini_emit_memcpy): Ditto.
5831 * inssel-sparc.brg: Ditto.
5833 * mini.h mini.c inssel-*.brg: Pass alignment information to OP_MEMCPY/MEMSET.
5835 2007-08-26 Zoltan Varga <vargaz@gmail.com>
5837 * mini-exceptions.c (mono_handle_exception_internal): Skip the first frame for
5838 exceptions raised in unmanaged code. Fixes part of #82594.
5840 2007-08-24 Mark Probst <mark.probst@gmail.com>
5842 * mini.c (mono_method_to_ir), declsec.c
5843 (mono_declsec_linkdemand_aptc): Fixed custom attr leaks.
5845 2007-08-22 Martin Baulig <martin@ximian.com>
5848 (MonoDebuggerThreadInfo): New typedef.
5849 (mono_debugger_thread_table): New global variable.
5850 (mono_debugger_thread_created): New public function.
5851 (mono_debugger_thread_cleanup): New public function.
5855 - removed `get_current_thread' and `lookup_assembly'.
5856 - removed `data_table'.
5857 - added `thread_table'.
5860 (mono_thread_start_cb): Call mono_debugger_thread_created().
5861 (mono_thread_attach_cb): Likewise.
5862 (mini_thread_cleanup): Call mono_debugger_thread_cleanup().
5863 (mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
5866 * driver.c (mono_main): Move mono_debug_init() up, before calling
5867 mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.
5869 Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
5871 * mini-x86.c, inssel-x86.brg: group multiple stack adjustments
5872 together when passing several arguments of type double (gives a small
5873 speedup and saves a few bytes of generated code).
5875 2007-08-20 Jb Evain <jbevain@novell.com>
5877 * mini.c (mono_method_to_ir): fix leak on InvalidProgramException.
5879 2007-08-20 Jb Evain <jbevain@novell.com>
5881 * mini.c (mono_method_to_ir): throw MethodAccessException
5882 and FieldAccessException instead of InvalidProgramException.
5884 2007-08-20 Mark Probst <mark.probst@gmail.com>
5886 * mini.c: CoreCLR security checks.
5888 * mini.h: Removed MonoSecurityMode (moved to
5889 metadata/security-manager.h) and mono_security_mode global var
5890 (replaced by set/get functions in security-manager.h).
5892 * driver.c: Added "core-clr-test" security mode for testing. Used
5893 set-function for setting security mode.
5895 2007-08-17 Mark Probst <mark.probst@gmail.com>
5897 * mini.c: MonoJitInfo's are freed hazardously now. Statistics for
5898 the new jit_info_table.
5900 * driver.c: Test code for the new jit_info_table (enabled by the
5901 define MONO_JIT_INFO_TABLE_TEST).
5903 2007-08-14 Zoltan Varga <vargaz@gmail.com>
5905 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
5906 detection of call <REG> instruction sequence. Fixes build on freebsd.
5908 2007-08-13 Zoltan Varga <vargaz@gmail.com>
5910 * mini-exceptions.c: Fix a warning.
5912 2007-08-11 Zoltan Varga <vargaz@gmail.com>
5914 * exceptions-amd64.c (mono_arch_handle_altstack_exception): Enable the new
5915 stack overflow handling code on amd64 too.
5917 * mini-exceptions.c (mono_setup_altstack): Make this use
5918 mono_thread_get_stack_bounds ().
5920 * mini-x86.h: Disable sigaltstack on solaris x86.
5922 2007-08-10 Zoltan Varga <vargaz@gmail.com>
5924 * mini-exceptions.c (mono_setup_altstack): Enable this to work on solaris x86.
5926 2007-08-10 Geoff Norton <gnorton@customerdna.com>
5928 * tramp-x86.c: Remove some unneeded alignment changes on Apple. Fixes #82387.
5930 2007-08-08 Zoltan Varga <vargaz@gmail.com>
5932 * mini-exceptions.c (mono_print_thread_dump): Enable this on amd64 too.
5934 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Fix a warning.
5936 2007-08-03 Neale Ferguson <neale@sinenomine.net>
5938 * mini-s390.c (add_general): Adjust offset calculation to take into account of rounding up
5941 Thu Aug 2 17:36:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
5943 * mini-ppc.c: avoid an invalid encoding of unsigned right shift by 0
5944 to be emitted (bug #82281).
5946 2007-08-01 Martin Baulig <martin@ximian.com>
5948 Merged the `debugger-dublin' branch.
5950 * debug-debugger.h (MonoDebuggerInfo):
5951 Removed the `old_*' compatibility entries.
5952 Added `debugger_version' and `data_table'.
5953 Renamed `get_method_addr_or_bpt' -> `insert_breakpoint'.
5954 Renamed `remove_method_breakpoint' -> `remove_breakpoint'.
5957 (MiniDebugMethodBreakpointInfo): Add `address_list'.
5958 (mono_debugger_check_breakpoints): Take a `MonoDebugMethodAddress *'
5959 instead of a `gconstpointer'.
5960 (mono_debugger_insert_method_breakpoint): Return a
5961 `MonoDebugMethodAddressList *'.
5963 2007-06-28 Martin Baulig <martin@ximian.com>
5965 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
5967 2007-08-01 Zoltan Varga <vargaz@gmail.com>
5969 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Avoid using
5970 __builtin_frame_address () since it is broken on older gcc versions.
5972 Tue Jul 31 17:34:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
5974 * mini.c, mini.h, mini-exceptions.c: added a bit of documentation
5975 on the stack overflow handling and made the managed stack overflows
5976 catchable in most cases using soft guard pages.
5977 * exceptions-x86.c: added code to restore the protection in the soft
5978 guard pages at the end of exception handling.
5980 2007-07-31 Zoltan Varga <vargaz@gmail.com>
5982 * mini.c (SIG_HANDLER_SIGNATURE): Fix a warning.
5984 Mon Jul 30 17:43:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
5986 * exceptions-ppc.c, mini-ppc.h: arch-specific stack overflow
5989 Mon Jul 30 17:38:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
5991 * mini-alpha.h, mini-ia64.h, mini-sparc.h: disable the altstack
5992 signal handling support until it has been ported to the new mechanism.
5993 * mini.c: fixed stack overflow detection and use the new
5994 architecture code to handle signals on the altstack.
5996 Mon Jul 30 17:33:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
5998 * exceptions-amd64.c, mini-amd64.h: amd64 code to handle
5999 stack overflows on the alt stack.
6001 Mon Jul 30 17:29:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
6003 * exceptions-x86.c, mini-x86.h, mini.h: new code to handle
6004 stack overflows on the alt stack.
6006 Mon Jul 30 11:50:06 CEST 2007 Paolo Molaro <lupus@ximian.com>
6008 * exceptions-ppc.c: cleanup preparing for altstack support.
6010 Mon Jul 30 11:31:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
6012 * exceptions-arm.c: cleanup preparing for altstack support.
6014 2007-07-27 Mark Probst <mark.probst@gmail.com>
6016 * mini.c (print_jit_stats): Output hazard pointer stats.
6018 2007-07-26 Mark Probst <mark.probst@gmail.com>
6020 * driver.c, mini.c: Replaced security mode flags with a single
6023 Thu Jul 26 20:12:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
6025 * mini.c, mini-exceptions.c: cleanup the sigaltstack code.
6027 2007-07-25 Mark Probst <mark.probst@gmail.com>
6029 * mini.c, mini.h, driver.c (mono_main): Added command-line flag
6030 (which doesn't do anything yet) for activating Core CLR
6031 (Silverlight) security.
6033 Tue Jul 24 21:16:17 CEST 2007 Paolo Molaro <lupus@ximian.com>
6035 * mini-codegen.c: work around a possible gcc bug on arm.
6037 Tue Jul 24 17:20:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
6039 * driver.c, mini-x86.h, mini-amd64.h: print a nice error
6040 message for platforms that don't support AOT compilation.
6042 Mon Jul 23 10:29:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
6044 * mini.h, mini.c, driver.c: temporary smcs hack.
6046 Mon Jul 23 09:29:34 CEST 2007 Paolo Molaro <lupus@ximian.com>
6048 * mini-arm.h, mini-arm.c: arm EABI fixes.
6050 2007-07-22 Zoltan Varga <vargaz@gmail.com>
6052 * exceptions-x86.c (mono_arch_find_jit_info): Handle the lmf->method == NULL
6055 * tramp-x86.c (mono_arch_create_trampoline_code): Only set lmf->method for
6056 trampolines taking a method argument.
6058 * mini-x86.h (MonoLMF): Add an 'esp' field plus comments.
6060 * mini-x86.c (mono_arch_emit_prolog): Update after changes to the LMF structure.
6061 * tramp-x86.c (mono_arch_create_trampoline_code): Ditto.
6063 * exceptions-x86.c (mono_arch_get_jit_info): Properly clean up the stack after
6064 JIT compilation throws an exception. Fixes #82050.
6066 2007-07-19 Mark Probst <mark.probst@gmail.com>
6068 * mini.c: Removed the MonoLoaderErrorKind enum and replaced it
6069 with the MONO_EXCEPTION_ defines.
6071 2007-07-17 Zoltan Varga <vargaz@gmail.com>
6073 * mini-amd64.c (mono_arch_find_imt_method): Handle mov reg,IMM64 case. Fixes
6076 * mini-amd64.c (mono_arch_find_imt_method): Add some debug code to help find out
6077 the cause of an assertion.
6079 Mon Jul 16 19:31:21 CEST 2007 Paolo Molaro <lupus@ximian.com>
6081 * mini.c, jit-icalls.c: mono_get_inflated_method() is obsolete,
6084 2007-07-15 Zoltan Varga <vargaz@gmail.com>
6086 * mini-amd64.c (mono_arch_build_imt_thunk): Remove the non-32bit MonoMethod
6087 assert. Should fix #82103.
6089 2007-07-14 Zoltan Varga <vargaz@gmail.com>
6091 * mini-exceptions.c (mono_jit_walk_stack_from_ctx): Use MONO_CONTEXT_GET_SP ()
6092 here too. Fixes #82095.
6094 * mini-amd64.c (mono_arch_build_imt_thunk): Add support for non-32bit MonoMethod
6097 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a couple asserts.
6099 * mini-amd64.h: Enable IMT for amd64.
6101 * mini-amd64.c (mono_arch_build_imt_thunk): Optimize IMT thunk size.
6103 2007-07-12 Zoltan Varga <vargaz@gmail.com>
6105 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for IMT call sequences.
6107 2007-07-12 Mark Probst <mark.probst@gmail.com>
6109 * mini.c (check_linkdemand, mono_method_to_ir): Abort compilation
6110 as soon as check_linkdemand sets an exception_type.
6112 Thu Jul 12 12:18:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
6114 * mini-x86.c: fixed offsets for IMT call sequence.
6115 * mini-x86.h: enable IMT again.
6117 2007-07-11 Zoltan Varga <vargaz@gmail.com>
6119 * trace.c (mono_trace_enter_method): Decode MonoType too.
6121 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Handle signed displacements too.
6123 * mini.h mini-x86.h mini-trampolines.c: Change the signature of mono_arch_find_imt_method () to pass the calling code address too.
6125 * mini-amd64.c: Add preliminary IMT implementation.
6127 Wed Jul 11 18:21:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
6129 * mini-x86.c: adjusted mono_arch_get_vcall_slot_addr () to
6130 understand the new IMT-base interface invocation (thanks to
6131 Daniel Nauck for the report and the remote debugging session).
6133 Wed Jul 11 14:54:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
6135 * mini-x86.c: size and speed optimizations for the IMT bsearch.
6137 2007-07-11 Zoltan Varga <vargaz@gmail.com>
6139 * Makefile.am (aotcheck): Make this actually use the AOTed code.
6141 Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
6143 * mini-trampolines.c: implement AOT IMT support.
6144 * mini-x86.h: enable IMT support for wider testing.
6146 2007-07-10 Zoltan Varga <vargaz@gmail.com>
6148 * inssel.brg (emit_imt_argument): Add aot support here.
6150 * aot-runtime.c (decode_patch_info): Fix reading of MONO_PATCH_INFO_METHOD.
6152 Tue Jul 10 17:50:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
6154 * mini-x86.c, mini-x86.h, tramp-x86.c: x86 arch-specific changes
6155 of the IMT implementation, partially from massi, with my
6156 implementation of the bsearch sequence. Disabled by default until
6157 the AOT code is implemented.
6159 2007-07-10 Zoltan Varga <vargaz@gmail.com>
6161 * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
6163 * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
6165 Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
6167 * inssel.brg, mini.c, mini.h, mini-trampolines.c:
6168 arch-independent IMT JIT code from Massimiliano
6169 Mantione (massi@ximian.com) with small cleanups from me.
6171 Tue Jul 10 13:07:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
6173 * Makefile.am: fix svn invocation to get the svn revision to be
6174 independent of the local language (build fix).
6176 2007-07-09 Mark Probst <mark.probst@gmail.com>
6178 * mini.c (inline_method): Reset cfg->exception_type if the
6179 inlining is aborted. Fixes: 82049.
6181 Mon Jul 9 17:26:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
6183 * mini.c: remove assert from exception handling code when exception_ptr
6186 2007-07-05 Zoltan Varga <vargaz@gmail.com>
6188 * mini.c (mono_codegen): Add an assert.
6190 * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method
6191 enter and leave code.
6192 * mini-amd64.c (mono_arch_emit_prolog): Likewise.
6194 Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
6196 * mini-ppc.c: fixed memory corruption for localloc(0)
6199 2007-07-05 Zoltan Varga <vargaz@gmail.com>
6201 * mini.c: Fix warnings.
6203 Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
6205 * optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
6206 to emit better double->int conversions.
6208 Tue Jul 3 19:42:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
6210 * mini.c: the provided Min/Max optimizations are valid for unisgned
6213 2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
6215 * 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
6217 2007-06-28 Miguel de Icaza <miguel@novell.com>
6219 * mini.c (mono_running_on_valgrind): Add support for reporting the
6220 method and its boundaries to valgrind.
6222 2007-06-28 Martin Baulig <martin@ximian.com>
6224 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
6226 2007-06-25 Zoltan Varga <vargaz@gmail.com>
6228 * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
6230 * generic.2.cs: Add new test case.
6232 2007-06-25 Martin Baulig <martin@ximian.com>
6234 Merged the `debugger-dublin' branch.
6237 (mono_debugger_insert_method_breakpoint): New public method.
6238 (mono_debugger_remove_method_breakpoint): Likewise.
6239 (mono_debugger_check_breakpoints): New static method.
6240 (mono_debug_close_method): Call mono_debugger_check_breakpoints().
6242 * debug-debugger.h (MonoDebuggerInfo):
6243 Renamed (to keep backward compatibility in the vtable):
6244 `insert_breakpoint' -> `old_insert_breakpoint'.
6245 `remove_breakpoint' -> `old_remove_breakpoint'.
6246 `create_string' -> `old_create_string'.
6247 `lookup_class' -> `old_lookup_class'.
6248 `lookup_type' -> removed; changed into a dummy field.
6249 `lookup_assembly' -> `old_lookup_assembly'.
6250 Added (same functionality, but different signature):
6251 `create_string', `lookup_class', `lookup_assembly'
6253 `get_method_addr_or_bpt', `remove_method_breakpoint',
6254 `runtime_class_init'.
6256 * debug-debugger.c: Merged the `debugger-dublin' branch.
6258 2007-06-23 Zoltan Varga <vargaz@gmail.com>
6260 * mini-amd64.c (peephole_pass_1): Optimize away moves at the beginning of the bb as
6262 (peephole_pass): Likewise.
6264 Fri Jun 22 09:17:08 CEST 2007 Paolo Molaro <lupus@ximian.com>
6266 * driver.c: hopefully make setaffinity work also for ancient
6269 2007-06-22 Atsushi Enomoto <atsushi@ximian.com>
6271 * driver.c : win32 build fix.
6273 Thu Jun 21 19:24:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
6275 * driver.c: check for the MONO_NO_SMP env var and bind to a single
6276 processor if it is set.
6278 2007-06-21 Martin Baulig <martin@ximian.com>
6280 * debug-mini.h: New file.
6283 (mono_debugger_insert_breakpoint_full): Moved here from
6284 ../metadata/mono-debug-debugger.c.
6285 (mono_debugger_remove_breakpoint): Likewise.
6286 (mono_debugger_breakpoint_callback): Likewise.
6288 2007-06-15 Raja R Harinath <rharinath@novell.com>
6290 * jit-icalls.c (mono_helper_compile_generic_method): Update to
6291 changes in MonoGenericClass.
6293 2007-06-14 Zoltan Varga <vargaz@gmail.com>
6295 * mini-codegen.c (mono_opcode_to_type): Fix ia64 build.
6297 2007-06-14 Raja R Harinath <rharinath@novell.com>
6299 * jit-icalls.c (mono_helper_compile_generic_method): Update to
6300 removal of MonoGenericMethod.
6302 Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
6304 * mini-exceptions.c: hooks for the exception events profiling API.
6306 2007-06-14 Randolph Chung <tausq@debian.org>
6308 * Makefile.ma: Add hppa target.
6309 * mini-arch.h: Include mini-hppa.h
6310 * cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
6311 mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
6312 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6314 2007-06-14 Randolph Chung <tausq@debian.org>
6316 * inssel.brg: Add rules for "chained" compare-branch operations so that
6317 a single compare op can affect multiple branches. Adjust cost for
6318 OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
6319 * inssel-long32.brg: Update rules to use compare-branch macros. Adjust
6320 cost for some rules so that they can more easily be overridden by
6321 per-arch rules (with fixes from lupus).
6322 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6324 2007-06-13 Randolph Chung <tausq@debian.org>
6326 * mini-ops.h: Reorder branch ops so that they match the order of the
6327 corresponding CEE_* ops. The code expects them this way.
6328 Add new ops for HPPA target.
6329 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6331 2007-06-13 Randolph Chung <tausq@debian.org>
6333 * mini-exceptions.c: Handle cases where the stack grows towards
6335 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6337 Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
6339 * jit-icalls.c, mini.h, mini.c: added virtual generic invoke
6341 * driver.c: explain where a non-matching corlib is found.
6343 2007-06-13 Mark Probst <mark.probst@gmail.com>
6345 * mini.c (print_jit_stats): Output dynamic code allocation stats.
6347 2007-06-10 Sanghyeon Seo <sanxiyn@gmail.com>
6349 * mini-exceptions.c: Generate a method profile leave event during
6350 an exception to ensure that the profiler gets notified.
6352 2007-06-07 Zoltan Varga <vargaz@gmail.com>
6354 * mini-amd64.c (peephole_pass): Merge some small changes from the linear-ir
6357 * cpu-amd64.md: Add long_and/or/xor opcodes.
6359 2007-06-06 Wade Berrier <wberrier@novell.com>
6361 * cpu-s390x.md (shr_imm): Correct the length of shr_imm instruction.
6362 (./class/lib/monolite/mcs.exe:25498): WARNING **: wrong maximal instruction
6363 length of instruction shr_imm (expected 8, got 10)
6365 2007-06-06 Zoltan Varga <vargaz@gmail.com>
6367 * mini-ia64.c (mono_arch_output_basic_block): Really fix the build.
6369 2007-06-06 Mark Probst <mark.probst@gmail.com>
6371 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
6372 MonoInternalHashTable again (fixed bug in the internal hash table
6375 2007-06-06 Mark Probst <mark.probst@gmail.com>
6377 * mini.c, driver.c: Reverted the MonoInternalHashTable changes.
6378 Have to figure out what makes it crash the SWF regression.
6380 2007-06-05 Zoltan Varga <vargaz@gmail.com>
6382 * mini-ia64.c (mono_arch_lowering_pass): Fix ia64 build.
6384 Tue Jun 5 17:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
6386 * mini.c: optimize out the type check when storing null in a
6389 2007-06-04 Mark Probst <mark.probst@gmail.com>
6391 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
6392 MonoInternalHashTable.
6394 Mon Jun 4 11:29:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
6396 * inssel.brg, mini.c, mini-ops.h: optimized Math.Mini/Max
6397 signed integer methods.
6399 2007-06-02 Zoltan Varga <vargaz@gmail.com>
6401 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case
6402 permanently since the current approach doesn't work.
6404 2007-06-02 Zoltan Varga <vargaz@gmail.com>
6406 * inssel.brg (stmt): Only call delegate->invoke_impl if
6407 MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined.
6409 2007-06-01 Zoltan Varga <vargaz@gmail.com>
6411 * mini-amd64.c (mono_arch_output_basic_block): Unify div/rem opcodes and handle
6412 the sreg2==rdx case.
6414 * mini-amd64.c cpu-amd64.md: Correct length of r4const instruction and take into
6415 account if it contains a rex prefix.
6416 (peephole_pass): Handle OP_FMOVE as well.
6418 2007-06-01 Zoltan Varga <vargaz@gmail.com>
6420 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case for now
6421 as it causes regressions.
6423 2007-05-31 Zoltan Varga <vargaz@gmail.com>
6425 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement support for the
6426 static case as well.
6428 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.
6430 * mini-x86.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
6431 (mono_arch_get_this_arg_from_call): Ditto.
6433 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Removed.
6435 * inssel.brg (mini_emit_virtual_call): Call delegate->Invoke through the delegate's
6438 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
6439 (mono_arch_get_this_arg_from_call): Ditto.
6441 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Removed.
6443 * mini-trampolines.c (mono_delegate_trampoline): Complete rewrite. On first call,
6444 try to create optimized invoke code and use that for further invocations.
6445 Otherwise, use the original mono_marshal_get_delegate_invoke () implementation.
6447 * mini-x86.h mini-ia64.h: Remove MONO_ARCH_HAS_CREATE_DELEGATE_TRAMPOLINE for now.
6449 2007-05-29 Rodrigo Kumpera <kumpera@gmail.com>
6451 * inssel.brg (mini_emit_virtual_call): Statically dispatch virtual calls to
6452 sealed classes or methods.
6453 *devirtualization.cs: tests for the new optimization
6455 2007-05-29 Zoltan Varga <vargaz@gmail.com>
6457 * liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
6458 by the update_volatile () function.
6460 2007-05-27 Zoltan Varga <vargaz@gmail.com>
6462 * driver.c (mono_main): Call g_thread_init () early since newer glib versions
6465 * abcremoval.c (mono_perform_abc_removal): Avoid using alloca.
6467 2007-05-24 Jonathan Chambers <joncham@gmail.com>
6469 * mini.c: Add configure checks for header files.
6470 * mini-x86.c: Add configure checks for header files.
6471 * trace.c: Add configure checks for header files.
6472 * aot-runtime.c: Add configure checks for header files.
6473 * aot-compiler.c: Add configure checks for header files.
6474 * driver.c: Add configure checks for header files.
6475 * mini-codegen.c: Add configure checks for header files.
6477 Code is contributed under MIT/X11 license.
6479 2007-05-22 Zoltan Varga <vargaz@gmail.com>
6481 * mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
6482 icompare_imm -128 + op_iclt. Fixes #81703.
6484 2007-05-19 Zoltan Varga <vargaz@gmail.com>
6486 * mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
6488 2007-05-15 Massimiliano Mantione <massi@ximian.com>
6490 * inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
6491 inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
6492 so that all isinst checks now use "interface_bitmap".
6494 2007-05-15 Zoltan Varga <vargaz@gmail.com>
6496 * cpu-amd64.md (jmp): Fix a warning.
6498 * inssel.brg (CEE_SWITCH): Hopefully fix #80738.
6500 * basic.cs: Add new regression test.
6502 * basic.cs: Remove test which is now in basic-long.cs.
6504 * mini-ia64.c (mono_arch_output_basic_block): Sign extend in CEE_CONV_I8/CEE_CONV_I.
6506 * basic-long.cs: Add new test.
6508 2007-05-13 Zoltan Varga <vargaz@gmail.com>
6510 * mini-sparc.c (mono_spillvar_offset_float): Fix sparc build.
6512 2007-05-12 Zoltan Varga <vargaz@gmail.com>
6514 * cpu-x86.md minix-86.c: Add a peephole_pass_1 () as on amd64.
6516 * mini-x86.c (mono_arch_output_basic_block): Use mono_opcode_to_cond () in a few
6519 * mini-x86.c (mono_arch_emit_exceptions): Decrease the size of the exception
6520 throwing code a bit.
6522 * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Decrease the size of
6523 the exception throwing code a bit.
6525 * mini-x86.c (get_call_info): Allocate result from a mempool.
6527 2007-05-11 Zoltan Varga <vargaz@gmail.com>
6529 * aot-compiler.c (find_typespec_for_class): Fix the assert.
6531 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
6533 * mini.h (MonoCompile): Add 'token_info_hash' field.
6535 * mini.c: Save token->method associations during compilation so the AOT
6536 compiler can use it.
6538 * aot-compiler.c aot-runtime.c: Add support for compiling non-generic methods
6539 which reference generic classes and methods.
6541 2007-05-10 Zoltan Varga <vargaz@gmail.com>
6543 * mini.h mini-<ARCH>.h: Get rid of MONO_ARCH_HAS_XP_LOCAL_REGALLOC.
6545 * aot-compiler.c (compile_method): Fix a typo in a comment.
6547 * aot-runtime.c (decode_cached_class_info): Skip generic types.
6549 * aot-compiler.c: Add minimal support for AOTing generic code by skipping
6552 * mini.c (mono_method_to_ir): Disable AOT when calling helper_compile_generic_method.
6554 2007-05-09 Zoltan Varga <vargaz@gmail.com>
6556 * mini.h (MonoCompile): Add 'args' field.
6558 * mini.c (mono_compile_create_vars): Store variables representing the arguments
6561 * mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
6563 2007-05-08 Zoltan Varga <vargaz@gmail.com>
6565 * mini.c (mono_compile_get_interface_var): Remove this unused function.
6567 * mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
6569 * mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
6570 opcodes for some opcodes.
6572 * mini.h *.brg *.c: Use the new opcodes.
6574 2007-05-08 Massimiliano Mantione <massi@ximian.com>
6576 * mini.h: Bumped aot revision.
6578 * inssel.brg: modified code generation of type checks for interfaces
6579 to use the new "MonoClass.interface_bitmap" instead of the old
6580 "MonoClass.interface_offsets".
6582 2007-04-30 Zoltan Varga <vargaz@gmail.com>
6584 * cpu-amd64.md (jmp): Increase the maximum size of the jmp opcode to 128.
6586 2007-04-29 Zoltan Varga <vargaz@gmail.com>
6588 * abcremoval.c (summarize_integer_value): Handle OP_LCONV_TO_I4 to fix abcrem on
6591 2007-04-27 Neale Ferguson <neale@sinenomine.net>
6593 * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
6595 2007-04-27 Wade Berrier <wberrier@novell.com>
6597 * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in
6598 mini.h) to fix build.
6600 2007-04-26 Zoltan Varga <vargaz@gmail.com>
6602 * mini-amd64.c (peephole_pass_1): Fix and reenable this pass.
6604 * mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
6605 causes the corlib unit tests to fail.
6607 2007-04-25 Zoltan Varga <vargaz@gmail.com>
6609 * mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.
6611 * mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.
6613 * mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional
6614 opcodes to the comparison relations.
6616 * mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional
6617 opcodes to their types.
6619 * mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.
6621 * mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache
6622 it in cfg->arch.cinfo.
6624 * local-propagation.c (mono_local_cprop_bb): Fix a warning.
6626 * mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in
6627 cfg->cil_offset_to_bb.
6629 2007-04-24 Zoltan Varga <vargaz@gmail.com>
6631 * liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
6632 created becase of initlocals.
6634 2007-04-23 Zoltan Varga <vargaz@gmail.com>
6636 * mini-alpha.c cpu-alpha.md: More alpha port work from
6637 Sergey Tikhonov <tsv@solvo.ru>.
6639 2007-04-21 Andreas Faerber <andreas.faerber@web.de>
6641 * Makefile.am (BUILT_SOURCES): Fix for automake 1.6.x. Fixes #81417.
6643 2007-04-19 Zoltan Varga <vargaz@gmail.com>
6645 * cpu-s390.md (break): Correct the length of break instruction.
6647 Thu Apr 19 16:28:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
6649 * mini.c: fix a couple of soft-float issues and comments.
6651 2007-04-15 Miguel de Icaza <miguel@novell.com>
6653 * trace.c (is_filenamechar): - is also a filename char.
6655 2007-04-15 Neale Ferguson <neale@sinenomine.net>
6657 * mini-s390.c: Correct checking for enum type in return value processing.
6659 2007-04-14 Raja R Harinath <rharinath@novell.com>
6661 * Makefile.am (BUILT_SOURCES): Add 'version.h'.
6662 (version.h): Makefile is in the build directory.
6664 2007-04-06 Andreas Faerber <andreas.faerber@web.de>
6666 * mini-amd64.h: fix for assertion failure on Solaris/amd64
6668 2007-04-11 Martin Baulig <martin@ximian.com>
6670 * mini.c (can_access_member): Fix handling of generic classes;
6673 2007-04-10 Zoltan Varga <vargaz@gmail.com>
6675 * aot-runtime.c (mono_aot_plt_resolve): Fix disabling of AOT. Fixes #81316.
6677 2007-04-05 Zoltan Varga <vargaz@gmail.com>
6679 * aot-runtime.c: Fix disabling of AOT. Fixes #81316.
6681 Fri Mar 23 20:25:31 CET 2007 Paolo Molaro <lupus@ximian.com>
6683 * mini-codegen.c: make sure the right spill amount is
6684 used for fp or integer registers (fixes the float_sub_spill() on ppc).
6686 Fri Mar 23 19:43:35 CET 2007 Paolo Molaro <lupus@ximian.com>
6688 * mini-ppc.c: fixes for the fp_branch_nan test.
6690 2007-03-23 Zoltan Varga <vargaz@gmail.com>
6692 * basic.cs: Comment out new test which still fails on ia64.
6694 Fri Mar 23 15:54:23 CET 2007 Paolo Molaro <lupus@ximian.com>
6696 * mini.c: immediate shifted or fix (mono_metadata_user_string assert).
6698 Fri Mar 23 12:53:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6700 * mini-ppc.c, mini-ppc.h: struct passing ABI fix (bug #77968).
6702 2007-03-22 Zoltan Varga <vargaz@gmail.com>
6704 * cfold.c (FOLD_BINOP): Cast the result to gint32 to prevent overflow problems
6705 on 64 bit machines. Fixes part of #80738.
6707 * basic.cs: Add regression test.
6709 2007-03-17 Zoltan Varga <vargaz@gmail.com>
6711 * inssel.brg basic.cs: Revert previous change to fix build.
6713 * inssel.brg (SWITCH): Clean out the upper word of the switch value on 64 bit
6716 * inssel.brg (SWITCH): Use an integer comparison. Fixes #80738.
6718 * basic.cs: Add new regression test.
6720 2007-03-17 Zoltan Varga <vargaz@gmail.com>
6722 * mini-ia64.c (mono_arch_emit_prolog): Fix an assert when a function has too
6725 2007-03-16 Neale Ferguson <neale@sinenomine.net>
6727 * cpu-s390x.md: Correct length of break instruction.
6729 2007-03-16 Neale Ferguson <neale@sinenomine.net>
6731 * mini-s390x.c, cpu-s390x.md: Fix #80507 for s390x.
6732 * mini-s390.c, cpu-s390.md: Fix #80507 for s390.
6734 2007-03-15 Jonathan Chambers <joncham@gmail.com>
6736 * *.c: Begin WIN64 port.
6737 * mini.c: Use correct register in profiler.
6738 * mini-amd64.c: No inline assembly on Win64.
6739 * mini-amd64.h: Implement MONO_INIT_CONTEXT_FROM_FUNC for Win64.
6740 Only define MONO_ARCH_USE_SIGACTION on non-windows platforms.
6741 * exceptions-amd64.c: Only need gregs_from_ucontext if MONO_ARCH_USE_SIGACTION
6742 is defined. Implement mono_arch_sigctx_to_monoctx, mono_arch_monoctx_to_sigctx, and
6743 mono_arch_ip_from_context for Win64.
6745 Contributed under MIT/X11 license.
6747 2007-03-15 Zoltan Varga <vargaz@gmail.com>
6749 * exceptions-amd64.c (seh_handler): Ditto.
6751 * exceptions-x86.c (seh_handler): Fix a memory leak.
6753 Thu Mar 15 13:47:59 CET 2007 Paolo Molaro <lupus@ximian.com>
6755 * mini-arm.c, mini-mips.c, mini-ppc.c, mini-s390.c,
6756 mini-s390x.c: fixed peephole optimizations to deal
6757 correctly with 1 and 2 byte reload avoidance.
6759 Thu Mar 15 10:17:54 CET 2007 Paolo Molaro <lupus@ximian.com>
6761 * cpu-s390.md, cpu-s390x.md: update localloc length.
6763 Wed Mar 14 21:00:19 CET 2007 Paolo Molaro <lupus@ximian.com>
6765 * cpu-g4.md: added missing descriptions.
6767 2007-03-14 Miguel de Icaza <miguel@novell.com>
6769 * Makefile.am: Add support so the tail tests are not executed on
6770 PowerPC as that is a known limitation of the PowerPC port.
6772 2007-03-13 Jonathan Chambers <joncham@gmail.com>
6774 * runmdesc.bat: Move to msvc directory.
6776 2007-03-13 Jonathan Chambers <joncham@gmail.com>
6778 * runmdesc.bat: Run executable that was produced by the current
6779 target and sent via an argument.
6781 2007-03-11 Zoltan Varga <vargaz@gmail.com>
6783 * mini.c (mono_method_to_ir): Fix box+brtrue optimization. Fixes
6786 * generics.2.cs: Add regression test.
6788 2007-03-09 Wade berrier <wberrier@novell.com>
6790 * mini-ppc.h: Undo typo of MONO_CONTEXT_SET_SP (ppc doesn't define this symbol)
6792 2007-03-09 Zoltan Varga <vargaz@gmail.com>
6794 * aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
6795 AOT code depends on this.
6797 Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
6799 * mini.c: more precise tracking of types in the eval stack
6800 (part of fix for bug #81044).
6802 2007-03-07 Zoltan Varga <vargaz@gmail.com>
6804 * aot-runtime.c (mono_aot_get_class_from_name): Add a cache.
6806 * aot-compiler.c (encode_patch): Remove an obsolete comment.
6808 2007-03-06 Zoltan Varga <vargaz@gmail.com>
6810 * mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.
6812 * mini.c (mono_method_to_ir): Add a workaround for bug #80733.
6814 2007-02-22 Zoltan Varga <vargaz@gmail.com>
6816 * mini.c (type_from_op): Convert CEE_CONV_U to OP_LCONV_TO_U when the argument is
6817 a pointer on 64 bit systems. Fixes #80190.
6819 * iltests.il: Add new regression test.
6821 Tue Feb 20 11:33:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6823 * mini.c: inline a constant for Environment.IsRunningOnWindows.
6825 2007-02-19 Geoff Norton <gnorton@customerdna.com>
6827 * trace.c: Remove an erroneous alignemnt check when tracing.
6828 Fixes --trace on OSX86.
6830 Wed Feb 14 19:45:56 CET 2007 Paolo Molaro <lupus@ximian.com>
6832 * mini-$(arch).h: initialize SP in context for all the archs.
6834 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
6836 * mini-x86.h: Initialize SP in MONO_INIT_CONTEXT_FROM_FUNC. Fix CAS
6837 regressions in the thread tests.
6839 2007-02-14 Zoltan Varga <vargaz@gmail.com>
6841 * *-alpha.*: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>:
6842 - fixed implementation of LOCALLOC opcode
6843 - implemented non-un compare for floats
6845 - implementation of FDIV and CKFINITE opcodes
6846 - fixes for latest mono updates
6847 - additional arch opcodes
6849 Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
6851 * Makefile.am: simplify and merge rules for cross-compilation.
6853 2007-02-07 Massimiliano Mantione <massi@ximian.com>
6855 * local-propagation.c: Actually *apply* the fix for bug 80591...
6857 Tue Feb 6 19:03:19 CET 2007 Paolo Molaro <lupus@ximian.com>
6859 * mini-exceptions.c: backuot part of the last change
6860 (fixes cas tests on amd64 related to GetExecutingAssembly ()).
6862 2007-02-06 Massimiliano Mantione <massi@ximian.com>
6863 * inssel.brg: Fix bug 59286.
6866 Tue Feb 6 12:23:50 CET 2007 Paolo Molaro <lupus@ximian.com>
6868 * mini-exceptions.c: patch from Zoltan to correctly check for
6869 stack boundaries (using the stack register, not the frame register),
6870 fixes bugs #80724, #79717.
6872 2007-02-03 Zoltan Varga <vargaz@gmail.com>
6874 * mini-ia64.c inssel-sparc.brg mini-sparc.c cpu-sparc.md: Get rid of OP_SETREG/
6875 OP_SETREGIMM, use OP_MOVE/OP_ICONST instead.
6877 * mini-amd64.c (mono_arch_output_basic_block): Fix ATOMIC_EXCHANGE in the
6878 presence of frame pointer elimination.
6880 2007-02-01 Geoff Norton <gnorton@customerdna.com>
6882 * mini-x86.h: NetBSD UCONTEX_REG defines.
6884 2007-02-01 Zoltan Varga <vargaz@gmail.com>
6886 * inssel-amd64.brg: Fix amd64 build.
6888 Thu Feb 1 14:02:09 CET 2007 Paolo Molaro <lupus@ximian.com>
6890 * mini.h: remove extern to workaround what looks likes gcc bug 26905
6893 2007-01-31 Zoltan Varga <vargaz@gmail.com>
6895 * mini-codegen.c (mono_is_regsize_var): New helper function usable by the back
6898 * mini-<ARCH>.c: Use mono_is_regsize_var ().
6900 2007-01-30 Mark Mason <mason@broadcom.com>
6902 * exceptions-mips.c: Lots of exception handling fixes, LMFs now work, some cleanups.
6903 * mini-mips.h: Add LMF magic numbers, and fix context set/get macros.
6904 * mini-mips.c: Cleanups, LMF handling now works, optimize store of zero, implement localloc
6905 beginning support for CEE_JMP [not quite working yet]
6906 * tramp-mips.c: LMF handling now works
6908 2007-01-30 Zoltan Varga <vargaz@gmail.com>
6910 * mini-amd64.c (peephole_pass): Optimize code common in initlocals blocks.
6912 * mini.h (NULLIFY_INS): New macro.
6914 Tue Jan 30 16:33:33 CET 2007 Paolo Molaro <lupus@ximian.com>
6916 * mini.c: statistical profiler fix for windows, patch
6917 from Tor Lillqvist (tml@novell.com).
6919 2007-01-30 Massimiliano Mantione <massi@ximian.com>
6920 * local-propagation.c: Fix bug 80591.
6922 Mon Jan 29 12:14:34 CET 2007 Paolo Molaro <lupus@ximian.com>
6924 * Makefile.am: put back the --export-dynamic option as with
6925 the previous gmodule flags (thanks to Robert Jordan).
6927 2007-01-28 Zoltan Varga <vargaz@gmail.com>
6929 * mini-sparc.c (peephole_pass): Fix #80622 for sparc as well.
6931 mini.h *.c: Allocate fp vregs from the same pool as the int vregs. Use this to
6932 simplify and speed up the local register allocator. Also rename some fields
6933 like iassign->vassign.
6935 * regalloc.c: Remove some functions which are no longer used since their
6936 inlined version is in mini-codegen.c.
6938 * mini-codegen.c: Rename mono_regstate2_ functions to mono_regstate_.
6940 * basic.cs objects.cs iltests.il: Merge tests from the linear IL branch.
6942 2007-01-27 Zoltan Varga <vargaz@gmail.com>
6944 * mini-amd64.c (peephole_pass): Remove optimizations which omit a
6945 narrowing. Fixes #80622.
6947 * iltests.il: Add new regresssion test.
6949 Fri Jan 26 18:31:45 CET 2007 Paolo Molaro <lupus@ximian.com>
6951 * mini.h, mini-trampolines.c, aliasing.c, mini-codegen.c,
6952 debug-debugger.c, debug-debugger.h: warning fixes.
6953 * driver.c: updated copyright year and made it fit in one line.
6955 Fri Jan 26 12:48:39 CET 2007 Paolo Molaro <lupus@ximian.com>
6957 * aot-runtime.c: updated to use mono-dl instead of gmodule.
6959 2007-01-25 Zoltan Varga <vargaz@gmail.com>
6961 * mini-x86.c (mono_arch_output_basic_block): Fix #80507 for x86.
6963 * mini-amd64.c (mono_arch_output_basic_block): Fix #80507 for amd64.
6965 * iltests.il: Add new test for bug #80507.
6967 Wed Jan 24 19:10:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6969 * mini-arm.h: use soft-float also on vfp for now.
6971 Wed Jan 24 14:54:40 CET 2007 Paolo Molaro <lupus@ximian.com>
6973 * mini.c: fix some more soft-float issues.
6975 2007-01-24 Zoltan Varga <vargaz@gmail.com>
6977 * mini-sparc.h (MONO_ARCH_FRAME_ALIGNMENT): Fix sparc build.
6979 2007-01-24 Massimiliano Mantione <massi@ximian.com>
6980 * mini-arch.h, , inssel-amd64.brg, mini-x86.c, inssel-x86.brg,
6981 mini-ia64.c, mini-sparc.c, mini-alpha.c: Introduced
6982 MONO_ARCH_LOCALLOC_ALIGNMEENT to fix bug 80498.
6984 Wed Jan 24 12:04:39 GMT 2007 Paolo Molaro <lupus@ximian.com>
6986 * mini-arm.c: typo fix.
6988 2007-01-23 Neale Ferguson <neale@sinenomine.net>
6990 * mini-s390x.c: Use lgb instructions for I1 type variables instead of lb.
6992 2007-01-21 Zoltan Varga <vargaz@gmail.com>
6994 * mini.c (mono_allocate_stack_slots_full): Allocate memory from the cfg mempool.
6995 Share stack slots for scalar types. Avoid expensive g_list_free () calls.
6997 * mini-x86.c (mono_arch_allocate_vars): Don't free the result of allocate_stack_slots_full.
6999 * mini-amd64.c mini-ia64.c mini-alpha.c: Ditto.
7001 * mini.h (MonoJitStats): Add a new JIT statistics: locals_stack_size.
7003 * inssel.brg: Fix a warning.
7005 * mini.h (MonoBasicBlock): Make bb->dominated a GSList.
7007 * abcremoval.c ssa.c ssapre.c: Update after this change.
7009 * dominators.c (compute_dominators): Allocate bb->dominated from the cfg mempool.
7011 * dominators.c (df_set): Use mono_bitset_union_fast.
7013 Sat Jan 20 16:59:01 CET 2007 Paolo Molaro <lupus@ximian.com>
7015 * mini.h, genmdesc.c, genmdesc.pl, mini-${arch}.c, cprop.c,
7016 mini-codegen.c: reduce relocations and memory usage for the cpu
7019 2007-01-20 Zoltan Varga <vargaz@gmail.com>
7021 * mini-codegen.c (mono_regstate2_alloc_int): Optimize this using bsfq on amd64.
7023 * genmdesc.c genmdesc.pl mini.h: Remove some unused fields from the mdesc tables
7024 to reduce their size.
7026 2007-01-19 Mark Mason <mason@broadcom.com>
7028 * exceptions-mips.c: fix mono_arch_ip_from_context(), increase exception debug support.
7029 * mini-mips.c: more configuration macros, support long conditional branches, additional
7030 asserts, fix epilog instrumentation.
7031 * mini-mips.h: use standard stack walk
7032 * cpu-mips.md: increase size of div, rem and conditional branches
7034 Fri Jan 19 17:23:32 CET 2007 Paolo Molaro <lupus@ximian.com>
7036 * mini.h, mini-codegen.c, mini-$(arch).h: claenup references
7039 2007-01-19 Zoltan Varga <vargaz@gmail.com>
7041 * aot-compiler.c (encode_klass_info): Allow classes of the form <Type>[][].
7042 (compile_method): Ditto.
7044 * aot-runtime.c (decode_klass_info): Ditto.
7046 * mini.c (mono_method_to_ir): Call mono_get_got_var () in a place where it is
7047 needed by the code generated by inssel.brg. Also fix a warning.
7049 Thu Jan 18 17:55:22 CET 2007 Paolo Molaro <lupus@ximian.com>
7051 * mini.c: deal with enums that become genericinsts by
7052 being nested in a generic class (bug #79956).
7054 Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
7056 * mini.c: match the generic definition to check for
7057 private access with generic types (bug #78431).
7059 Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
7061 * genmdesc.pl, Makefile.am: perl implementation of genmdesc,
7062 to make life easier for people cross-compiling that insist on not
7065 2007-01-17 Mark Mason <mason@broadcom.com>
7067 * inssel-long.brg: patch to deal with mips missing flags
7068 * inssel-long32-mips.brg: implement overflow checks
7069 * insset-mips.brg: implement overflow checks
7070 * mini-mips.h: implement conditional exception handling
7071 * mini-mips.c: add mips_emit_exc_by_name(), implement conditional exception handling.
7072 Remove unused code, minor cleanups.
7073 * exceptions-mips.c: minor cleanups
7074 * mini-ops.h: add mips conditional exception ops
7075 * cpu-mips.md: add mips conditional exception ops
7078 Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
7080 * inssel.brg: patch from Mark Mason <mason@broadcom.com>
7081 to deal with mips missing of flags.
7083 Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
7085 * exceptions-ppc.c: execute fault handlers.
7087 Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
7089 * mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.
7091 Tue Jan 16 13:14:31 CET 2007 Paolo Molaro <lupus@ximian.com>
7093 * mini.c: handle also floating point values in initialize_array.
7095 Tue Jan 16 12:42:40 CET 2007 Paolo Molaro <lupus@ximian.com>
7097 * mini.c, aot-runtime.c, aot-compiler.c: enable aot compilation of
7098 array initialization and make it conditional on the intrins option.
7100 Tue Jan 16 11:28:45 CET 2007 Paolo Molaro <lupus@ximian.com>
7102 * mini.h, patch-info.h, Makefile.am, aot-compiler.c: reduce
7103 relocations and put the patch info names close to the enum definition.
7105 2007-01-15 Mark Mason <mason@broadcom.com>
7107 * basic.cs, exceptions.cs: break up large tests to increase debugability.
7109 Mon Jan 15 18:57:14 CET 2007 Paolo Molaro <lupus@ximian.com>
7111 * mini.c: optimized RuntimeHelpers::InitializeArray () calls.
7113 2007-01-12 Raja R Harinath <rharinath@novell.com>
7115 * mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
7117 Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
7119 * Makefile.am: distribute the mips sources.
7121 Wed Jan 10 19:49:33 CET 2007 Paolo Molaro <lupus@ximian.com>
7123 * mini-codegen.h: handle bug #80489 here, by excluding ecx
7126 Wed Jan 10 19:08:05 CET 2007 Paolo Molaro <lupus@ximian.com>
7128 * cpu-x86.md: back out for now as this triggers other regressions.
7130 Wed Jan 10 18:33:16 CET 2007 Paolo Molaro <lupus@ximian.com>
7132 * cpu-x86.md: force src1 and dest regpair for long shift instructions
7133 to eax:edx, so ecx can't get allocated to them (bug #80489).
7135 Tue Jan 9 12:36:11 CET 2007 Paolo Molaro <lupus@ximian.com>
7137 * mini.c, mini-exceptions.c: enabled running fault handlers
7140 2007-01-03 Miguel de Icaza <miguel@novell.com>
7142 * driver.c: If nothing fail, do not use the string "failed",
7143 because it makes it very annoying to view test result logs on the
7146 2006-12-30 Miguel de Icaza <miguel@novell.com>
7148 * debug-debugger.c (mono_debugger_main): Rename "main" to
7149 "main_method" to prevent a warning.
7151 Remove a warning for unused field.
7153 2006-12-28 Martin Baulig <martin@ximian.com>
7156 (MONO_DEBUGGER__debugger_info): Add `get_lmf_addr'.
7158 2006-12-22 Martin Baulig <martin@ximian.com>
7160 * mdb-debug-info32.s, mdb-debug-info64.s: New files.
7161 Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
7162 seperate `.mdb_debug_info' section, so we can access it from the
7163 debugger even if the binary is stripped.
7165 * debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
7166 from the `.mdb_debug_info' here to prevent the linker from
7167 removing that section.
7169 * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
7172 2006-12-19 Robert Jordan <robertj@gmx.net>
7174 * mini-x86: enable the code to return small structures in
7175 registers for FreeBSD as well. Fixes bug #80278.
7176 * aot-runtime.c: Include sys/wait.h for WEXITSTATUS/WIFEXITED.
7178 Mon Dec 18 19:47:17 CET 2006 Paolo Molaro <lupus@ximian.com>
7180 * mini-x86.c: align the stack when calling the profiler
7181 function instrumenting the prolog (on OSX).
7183 Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
7185 * mini.c: emit a break opcode where Debugger.Break () is called.
7187 2006-12-13 Miguel de Icaza <miguel@novell.com>
7189 * mini.c (mono_method_to_ir): Provide useful information on this
7190 assert, to prevent others from debugging like I did.
7192 Tue Dec 12 17:01:38 CET 2006 Paolo Molaro <lupus@ximian.com>
7194 * mini.c: enable code which was incorrectly commented
7197 Tue Dec 12 16:28:15 CET 2006 Paolo Molaro <lupus@ximian.com>
7199 * mini-x86.c: enable on OSX, too, the code to return small
7200 structures in registers.
7202 Mon Dec 11 19:22:35 CET 2006 Paolo Molaro <lupus@ximian.com>
7204 * mini-x86.c: remove the use of the dynamic code manager here, too.
7206 Mon Dec 11 19:08:33 CET 2006 Paolo Molaro <lupus@ximian.com>
7208 * mini.h, debug-debugger.c, tramp-*.c: fixed
7209 mono_debugger_create_notification_function() to use
7210 mono_global_codeman_reserve () instead of a dynamic code manager.
7212 Tue Dec 5 17:54:50 CET 2006 Paolo Molaro <lupus@ximian.com>
7214 * mini.c, jit-icalls.h, jit-icalls.c: remove the
7215 ves_array_element_address() jit icall and use a generated
7216 managed method instead (which is about 4 times faster for a rank 3
7219 2006-11-29 Mark Mason <mason@broadcom.com>
7221 * basic-calls.cs: additional tests for passing
7222 structures as function arguments.
7224 2006-11-29 Mark Mason <mason@broadcom.com>
7226 * mini-mips.h: disable custom exception handling
7227 * mini-mips.c: throw/rethrow should use jalr to call
7228 exception stubs. Fixed bug with passing structures
7229 by value. More support for tracing floating point
7232 Wed Nov 29 20:28:17 CET 2006 Paolo Molaro <lupus@ximian.com>
7234 * mini.c: fixed typo in the soft-float ldind.r4 handling
7237 Wed Nov 29 11:33:03 CET 2006 Paolo Molaro <lupus@ximian.com>
7239 * mini.c, mini.h, driver.c: added --runtime command line
7240 option to select a different runtime than the autodetected one.
7241 * jit.h: added API for embedders to initialize with a specific
7244 Tue Nov 28 21:24:55 CET 2006 Paolo Molaro <lupus@ximian.com>
7246 * mini.c: handle also boxing of r4 values (bug #80024).
7248 Tue Nov 28 19:45:44 CET 2006 Paolo Molaro <lupus@ximian.com>
7250 * mini-ppc.c: force indirect calls until we reserve
7251 enough address space for all the generated code.
7253 Tue Nov 28 20:04:34 GMT 2006 Paolo Molaro <lupus@ximian.com>
7255 * exceptions-arm.c: workaround bugs in the libc definition
7258 Mon Nov 27 15:13:41 CET 2006 Paolo Molaro <lupus@ximian.com>
7260 * inssel.brg: fixes from me and Mark Mason.
7262 2006-11-23 Dick Porter <dick@ximian.com>
7264 * wapihandles.c (mini_wapi_seminfo): No need to adjust the counter
7265 semaphore display now we've fixed the initial value
7267 Wed Nov 22 11:04:37 CET 2006 Paolo Molaro <lupus@ximian.com>
7269 * inssel.brg: partially revert the last change to fix the build.
7271 2006-11-21 Mark Mason <mason@broadcom.com>
7273 * inssel.brg: Add and use compare-and-branch macros to support
7274 architectures that do not have condition code registers (ie. MIPS).
7275 * *-mips.{c,brg,md}: Fix copyright statements
7277 2006-11-20 Mark Mason <mason@broadcom.com>
7279 * Makefile.am: remove mini-codegen.c from list of MIPS sources
7280 * mini.c: Allow GET_CONTEXT to be specified by the arch port
7281 * mini.h: Added declaration for mono_print_ins()
7282 * mini-codegen.c: added ins_spec initializer for MIPS
7283 * mini-codegen.c (mono_call_inst_add_outarg_reg): added asserts for
7284 vreg to be virtual and hreg to be non-virtual.
7285 * mini-codegen.c (mono_spillvar_offset): assert if MIPS - spilling
7286 is not yet working/implemented correctly.
7287 * mini-codegen.c (print_ins): rename to mono_print_ins(), make
7288 non-static, fixup calls to print_ins() from other parts in the file.
7290 2006-11-20 Mark Mason <mason@broadcom.com>
7292 * basic-calls.cs: added tests for passing structures as arguments
7295 Mon Nov 20 19:40:11 CET 2006 Paolo Molaro <lupus@ximian.com>
7297 * inssel-long32.brg: optimize signed division by power of two.
7299 Mon Nov 20 17:37:58 CET 2006 Paolo Molaro <lupus@ximian.com>
7301 * mini-arm.c: added support for interworking with thumb code
7302 (mono must be still be built using the ARM instruction encoding).
7304 2006-11-19 Miguel de Icaza <miguel@novell.com>
7306 * mini.c (type_from_op): Separate the conditions for OP_EQ as the
7307 verifier has different rules for it. Fixes a few verifier issues
7310 * mini-exceptions.c (mono_handle_native_sigsegv): Put the message
7311 at the end, so people know what happened.
7313 Thu Nov 16 14:07:18 CET 2006 Paolo Molaro <lupus@ximian.com>
7315 * brach-opts.c: in optimize_exception_target() make sure we
7316 are in a catch clause (fixes bug #79871).
7318 Thu Nov 16 12:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
7320 * jit-icalls.c, jit-icalls.h, mini-arm.c, mini.c:
7321 more soft-float support fixes.
7323 Wed Nov 15 18:45:47 GMT 2006 Paolo Molaro <lupus@ximian.com>
7325 * mini-arm.c, inssel-arm.brg: ABI fix for longs and doubles
7326 that are passed half on the stack and half in registers.
7328 Wed Nov 15 17:00:27 CET 2006 Paolo Molaro <lupus@ximian.com>
7330 * mini-ops.h, mini-arch.h, helpers.c, Makefile.am:
7331 more mips integration work from Mark E Mason
7332 <mark.e.mason@broadcom.com>.
7334 Wed Nov 15 16:34:03 CET 2006 Paolo Molaro <lupus@ximian.com>
7336 * exceptions-mips.c, inssel-mips.brg, mini-mips.h,
7337 cpu-mips.md, inssel-long32-mips.brg, mini-mips.c,
7338 tramp-mips.c: added sources for the mips port, not
7339 integrated in the build yet. Contributed by
7340 Mark E Mason <mark.e.mason@broadcom.com>.
7342 2006-11-14 Neale Ferguson <neale@sinenomine.net>
7344 * mini-s390[x].c (is_regsize_var): Support PTR/FNPTR too.
7346 Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
7348 * Makefile.am, inssel-float.brg, inssel-softfloat.brg:
7349 put the soft-float rules in its own file since it seems to
7350 break s390 compilation.
7352 Mon Nov 13 15:54:38 CET 2006 Paolo Molaro <lupus@ximian.com>
7354 * mini-arm.c: fixed wrnings.
7356 Fri Nov 10 19:18:32 CET 2006 Paolo Molaro <lupus@ximian.com>
7358 * mini-arm.c, mini-arm.h, cpu-arm.md, inssel-float.brg,
7359 inssel-arm.brg: ARM support for soft-float.
7361 Fri Nov 10 18:38:15 CET 2006 Paolo Molaro <lupus@ximian.com>
7363 * mini.c, jit-icalls.c, jit-icalls.h: added first cut at handling
7364 loads and stores of 32 bit fp values.
7366 2006-11-10 Zoltan Varga <vargaz@gmail.com>
7368 * mini-sparc.c (is_regsize_var): Support PTR/FNPTR too.
7370 * tramp-sparc.c (mono_arch_patch_callsite): Fix this function so it actually
7371 works. Fixes #79852 and #79463.
7373 Thu Nov 9 16:56:13 CET 2006 Paolo Molaro <lupus@ximian.com>
7375 * mini.c, mini-codegen.c, jit-icalls.c, jit-icalls.h:
7376 more soft-float support WIP and fixes.
7378 Wed Nov 8 16:40:02 CET 2006 Paolo Molaro <lupus@ximian.com>
7380 * mini-arm.c: some VFP updates.
7382 Tue Nov 7 19:45:51 CET 2006 Paolo Molaro <lupus@ximian.com>
7384 * mini-exceptions.c: 0 is a valid local var offset in some
7385 architectures, don't assert (bug #78508).
7387 Tue Nov 7 18:17:52 GMT 2006 Paolo Molaro <lupus@ximian.com>
7389 * exceptions-arm.c: fixed off by one error in stack walk code.
7391 Tue Nov 7 11:27:26 CET 2006 Paolo Molaro <lupus@ximian.com>
7393 * mini.h, mini.c: more precise tracking of type load exceptions.
7395 2006-11-03 Robert Jordan <robertj@gmx.net>
7397 * Makefile.am: [WIN32] Add monow.exe target.
7398 * driver.c: [WIN32] Don't detach the console when debugging.
7401 2006-10-30 Miguel de Icaza <miguel@novell.com>
7403 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Eliminate warning.
7405 2006-10-23 Zoltan Varga <vargaz@gmail.com>
7407 * aot-compiler.c (emit_method_info): Add a case missed earlier.
7409 * driver.c (mini_regression): Fix --regression with AOT.
7411 * aot-compiler.c (emit_method_info): Fix AOT on amd64.
7413 2006-10-17 Zoltan Varga <vargaz@gmail.com>
7415 * mini.c (GET_CONTEXT): Correct the definition of this for sparc/linux.
7417 * mini-sparc.h: Don't use sigaction on sparc/linux.
7419 * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of places.
7421 * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
7423 * mini-exceptions.c: Add proper include files for getpid ().
7425 2006-10-16 Zoltan Varga <vargaz@gmail.com>
7427 * aot-runtime.c (mono_aot_get_method): Change this to return the native code
7428 address instead of a MonoJitInfo* to avoid decoding the exception info for the
7431 * aot-runtime.c aot-compiler.c: Use uint16 instead of uint32 entries in the
7432 name cache to reduce its size.
7434 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
7436 2006-10-15 Zoltan Varga <vargaz@gmail.com>
7438 * mini-x86.c: Save/restore the current LMF structure more efficiently using
7439 the mono_lmf TLS variable.
7441 * exceptions-x86.c (mono_arch_find_jit_info): Only access lmf->method in
7442 trampoline lmf frames.
7444 * mini-sparc.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Define this on sparc as well.
7446 2006-10-14 Zoltan Varga <vargaz@gmail.com>
7448 * mini-amd64.c: Save/restore the current LMF structure more efficiently using
7449 the mono_lmf TLS variable.
7451 * mini-exceptions.c: Access the LMF structure through accessors.
7453 * mini.c: Allow the backends the option for storing the lmf in a dedicated TLS
7454 variable instead of in jit_tls->lmf.
7456 * mini-x86.c mini-amd64.c: Update after lmf->lmf_addr name change.
7458 * exceptions-amd64.c (mono_arch_find_jit_info): Only access lmf->method in
7459 trampoline lmf frames.
7461 * mini-amd64.c (mono_arch_emit_prolog): Do not set lmf->method as it is not needed.
7463 2006-10-12 Zoltan Varga <vargaz@gmail.com>
7465 * mini.c trace.c mini-x86.c: Revert these too.
7467 * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
7470 Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
7472 * genmdesc.c: removed now dead code.
7474 2006-10-09 Robert Jordan <robertj@gmx.net>
7476 * mini.c: Disable the CrashReporter on MacOS X; Fixes #74869
7478 Mon Oct 9 17:06:41 CEST 2006 Paolo Molaro <lupus@ximian.com>
7480 * mini.h: do not leave gaps in the opcode values.
7482 Mon Oct 9 16:08:51 CEST 2006 Paolo Molaro <lupus@ximian.com>
7484 * jit-icalls.h: flag functions as internal here, too.
7486 Mon Oct 9 15:58:18 CEST 2006 Paolo Molaro <lupus@ximian.com>
7488 * mini.h, aliasing.h, declsec.h, regalloc.h, trace.h: mark internal
7489 functions with the internal attribute.
7491 Mon Oct 9 15:52:45 CEST 2006 Paolo Molaro <lupus@ximian.com>
7493 * aot-compiler.c: fclose the file descriptor in the profile read loop.
7495 Fri Oct 6 16:01:38 CEST 2006 Paolo Molaro <lupus@ximian.com>
7497 * mini.c, jit-icalls.c, inssel-float.brg: beginnings of support
7500 2006-10-05 Zoltan Varga <vargaz@gmail.com>
7502 * mini-x86.c (emit_load_volatile_arguments): New function to handle arguments of
7503 tail calls as on other platforms.
7505 * mini.c (mono_method_to_ir): Fix a few tailcall problems. Fixes #79557.
7507 * iltests.il: Add a few tailcall tests.
7509 Tue Oct 3 16:33:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
7511 * driver.c: fix loop for old compilers (bug #79521).
7513 2006-10-02 Zoltan Varga <vargaz@gmail.com>
7515 * mini-exceptions.c (ves_icall_get_trace): Remove debug printf.
7517 * aot-runtime.c (mono_aot_get_class_from_name): Avoid a memory allocation.
7519 * aot-compiler.c: Add a new option 'metadata-only' to only emit the cached
7520 metadata without any code.
7522 * mini-exceptions.c (mono_handle_native_sigsegv): Add some code to print out
7523 more precise debugging information using gdb.
7525 2006-09-30 Zoltan Varga <vargaz@gmail.com>
7527 * inssel-ia64.brg: Make the helper methods static.
7529 Thu Sep 28 16:40:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
7531 * inssel-x86.brg: make the helper methods static.
7533 Thu Sep 28 16:31:32 CEST 2006 Paolo Molaro <lupus@ximian.com>
7535 * inssel-amd64.brg, mini-amd64.c: small cleanup, use inst_call.
7537 Thu Sep 28 15:36:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
7539 * mini.c: updates for monoburg changes.
7540 * inssel.brg: make a few helper functions static as they should.
7542 2006-09-27 Zoltan Varga <vargaz@gmail.com>
7544 * Makefile.am: Move mini-codegen.c to common_sources.
7546 Wed Sep 27 15:07:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
7548 * mini.h: instroduce inst_call in MonoInst for use in OUTARG
7550 * Makefile.am, cpu-g4.md, inssel-ppc.brg, mini-codegen.c, mini-ppc.c,
7551 mini-ppc.h: port to use the common local register allocator.
7553 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7555 * mini.h: Remove the comment too then.
7557 Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
7559 * mini.h: put back backend.data which is to be used shortly and
7560 doesn't increase the size of MonoInst. If any 64 bit arch aligned
7561 pointers on 4 byte boundaries it'd have much bigger issues running
7562 and you can ifdef it out anyway.
7564 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7566 * mini.h (MonoInst): Remove backend.data field since it is unused and increases
7567 MonoInst size by 4 bytes on 64 bit machines.
7569 Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
7571 * *.{c,h,brg}: long due removal of the unused field in MonoInst and
7572 replacement with more meaningful field names. Arch maintainers, please
7573 check the assigned names are good enough for your arch.
7575 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7577 * cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the
7578 OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
7580 Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
7582 * mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
7583 relocations and memory requirements, put the optimization flags
7584 definitions in their own file.
7586 2006-09-24 Zoltan Varga <vargaz@gmail.com>
7588 * jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
7590 * mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
7592 2006-09-22 Zoltan Varga <vargaz@gmail.com>
7594 * mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
7596 Thu Sep 21 19:06:09 CEST 2006 Paolo Molaro <lupus@ximian.com>
7598 * inssel.brg: use the correct function to get the size of an item
7599 in an array, given an element class.
7600 * aot-compiler.c: do not access class->class_size directly.
7602 Thu Sep 21 12:10:56 CEST 2006 Paolo Molaro <lupus@ximian.com>
7604 * mini.h, debug-mini.c: added a debugging function to print
7605 info about local variables and arguments in a jitted method.
7607 2006-09-20 Zoltan Varga <vargaz@gmail.com>
7609 * mini-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
7611 * exceptions-ia64.c: Fix some problems reported by Bill Seurer <seurer@us.ibm.com>.
7613 2006-09-19 Zoltan Varga <vargaz@gmail.com>
7615 * mini-ia64.c (mono_arch_call_opcode): Avoid using the same loop index in the
7616 inner and outer loops when passing vtypes.
7618 Tue Sep 19 17:53:40 CEST 2006 Paolo Molaro <lupus@ximian.com>
7620 * mini-ppc.c: take into account the cpu errata for cache flushing
7621 which caused some random errors (bug #79381).
7623 2006-09-19 Zoltan Varga <vargaz@gmail.com>
7625 * mini-amd64.c (mono_arch_emit_exceptions): Emit the call to
7626 mono_arch_throw_corlib_exception using emit_call () too. Fixes #79271.
7628 2006-09-17 Zoltan Varga <vargaz@gmail.com>
7630 * aot-runtime.c (load_aot_module): Return immeditely if the AOT module was already
7633 * exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
7636 * mini-amd64.c (emit_call): Avoid near calls on freebsd.
7637 (mono_arch_patch_code): Remove the unused handling of MONO_PATCH_INFO_CLASS_INIT.
7639 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix check for 32 bitness of
7642 2006-09-13 Zoltan Varga <vargaz@gmail.com>
7644 * aot-runtime.c (load_aot_module_from_cache): Fix PPC build.
7646 2006-09-12 Zoltan Varga <vargaz@gmail.com>
7648 * mini.c (UNVERIFIED): Add a 'break-on-unverified' MONO_DEBUG option so this
7649 macro does not have to be changed during debugging.
7651 * 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>.
7653 * cpu-pentium.md: Rename this to cpu-x86.md for consistency with other platforms.
7655 * Makefile.am mini-x86.c mini-codegen.c: Rename pentium_desc to x86_desc.
7657 * mini.c (mini_get_ldelema_ins): Allow ldelema2d optimization if
7658 MONO_ARCH_NO_EMULATE_MUL is defined.
7660 * mini-ia64.h (MONO_ARCH_CALLEE_FREGS): Reserve f33 for use by instructions.
7662 * mini-ia64.h: Define MONO_ARCH_NO_EMULATE_MUL.
7664 * mini-ia64.c: Implement CEE_MUL based on gcc emitted code.
7666 * mini-ia64.c (mono_arch_lowering_pass): Optimize store_membase_imm with offset==0.
7668 2006-09-11 Zoltan Varga <vargaz@gmail.com>
7670 * mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
7671 stuff to mini-exceptions.c where it is used.
7673 * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate altstack
7674 setup code, the real one is in mini-exceptions.c.
7676 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies on the
7677 layout of ucontext_t to helper functions in exceptions-amd64.c, as on x86. Add
7678 some changes from the freebsd ports tree.
7680 * mini-amd64.h exceptions-amd64.c: Fix the amd64 build. Get rid of the SC_
7683 * mini-amd64.h: Freebsd has MAP_ANON instead of MAP_ANONYMOUS.
7685 Mon Sep 11 13:18:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
7687 * mini.c: on Linux, check for /proc to be mounted
7688 (bug# 79351, novell bug#201204).
7690 Mon Sep 11 13:10:12 CEST 2006 Paolo Molaro <lupus@ximian.com>
7692 * mini.c: handle cases where pthread_attr_getstack() behaves
7693 incorrectly (bug #78096).
7695 Mon Sep 11 11:31:10 BST 2006 Paolo Molaro <lupus@ximian.com>
7697 * mini-arm.c: support larger stack frames (bug #79272).
7699 2006-09-08 Zoltan Varga <vargaz@gmail.com>
7701 * aot-runtime.c (mono_aot_get_class_from_name): Remove a debug printf.
7703 * aot-compiler.c: Add a hash table to the AOT file mapping class names to typedef
7706 * aot-runtime.c (mono_aot_get_class_from_name): New function used by
7707 mono_class_from_name () to find a class from its name.
7709 * mini.c (mini_init): Register mono_aot_get_class_from_name () with the runtime.
7711 2006-09-07 Zoltan Varga <vargaz@gmail.com>
7713 * mini-amd64.c (emit_call): Avoid strstr () call if possible.
7715 2006-09-05 Kornél Pál <kornelpal@gmail.com>
7717 * Makefile.am: Renamed mono-1.dll to mono.dll. (-avoid-version)
7719 2006-09-04 Zoltan Varga <vargaz@gmail.com>
7721 * mini.c (mono_icall_get_wrapper): Fix a race condition on initializing
7722 callinfo->trampoline.
7724 * mini-amd64.c (emit_call): Special case calls to the vararg array icalls. Hopefully
7726 (mono_arch_patch_code): Add some debug code to help track down similar failures in the
7729 2006-09-03 Zoltan Varga <vargaz@gmail.com>
7731 * aot-runtime.c (mono_aot_plt_resolve): Add an assert.
7733 2006-09-02 Zoltan Varga <vargaz@gmail.com>
7735 * tramp-x86.c (mono_arch_create_specific_trampoline): Don't increase
7736 stats.method_trampolines, it is already done by the generic trampoline code.
7738 * tramp-amd64.c (mono_arch_create_specific_trampoline): Ditto.
7740 2006-09-01 Zoltan Varga <vargaz@gmail.com>
7742 * mini.c: Remove some references to mono_compile_aot, and use cfg->compile_aot instead.
7744 * aot-runtime.c: Add some tweaks to the MONO_AOT_CACHE functionality.
7746 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix a FIXME.
7748 * mini.c (print_jit_stats): Print mscorlib mempool size too.
7750 * mini.c (print_jit_stats): Print new stats.
7752 * *-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
7754 2006-08-31 Zoltan Varga <vargaz@gmail.com>
7756 * mini.c (mini_get_ldelema_ins): Fix verifier error when calling
7757 Address on two dimensional arrays. Fixes #78729.
7759 * mini.h (MonoCompile): Add a 'skip_visibility' field.
7761 * mini.c (method_to_ir): Disable visibility checks if skip_visibility is set on
7764 * mini-amd64.c (mono_arch_emit_exceptions): Fix assertion introduced by the last change.
7766 * mini.c (mono_runtime_cleanup_handlers): Clean up signal handlers on unix. Fixes
7769 * mini.c (handle_array_new): Applied patch from "briaeros007". Fix
7771 (mini_get_ldelema_ins): Ditto.
7773 2006-08-30 Zoltan Varga <vargaz@gmail.com>
7775 * mini-amd64.c (mono_arch_emit_exceptions): Align fp constants to 16 bytes.
7776 (mono_arch_output_basic_block): Avoid unaligned accesses in FNEG implementation.
7779 2006-08-29 Neale Ferguson <neale@sinenomine.net>
7781 * mini-s390.c, mini-s390x.c: Fix VARARG case processing with 0 arguments. Add
7782 mono_arch_get_patch_offset as a dummy entry point to allow successful link.
7784 * exceptions-s390x.c: Cosmetic change.
7786 * tramp-s390.c: Fix warning.
7788 * cpu-s390.md: Correct length of mul_imm.
7790 Wed Aug 23 19:24:00 CEST 2006 Paolo Molaro <lupus@ximian.com>
7792 * aot-compiler.c: added binary writer with ELF backend
7793 implementation (only on Linux/x86 for now).
7795 2006-08-18 Zoltan Varga <vargaz@gmail.com>
7797 * Makefile.am: Don't run net 2.0 AOT tests.
7799 * aot-compiler.c (compile_method): Skip methods with tail calls as well.
7800 (mono_compile_assembly): Skip net 2.0 assemblies as well.
7802 * aot-runtime.c (load_patch_info): Fix an uninitialized memory error.
7804 Fri Aug 18 19:38:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
7806 * aot-compiler.c: simplified and refactored the asm-writing code
7807 to allow different backends.
7809 2006-08-18 Zoltan Varga <vargaz@gmail.com>
7811 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
7813 * aot-compiler.c aot-runtime.c: Reorg the GOT slot allocation code a
7814 little. Share patches of type TYPE_FROM_HANDLE as well.
7816 * mini.c (mono_patch_info_equal): New helper function.
7817 (mono_patch_info_hash): Ditto.
7819 * aot-compiler.c (emit_method_code): Fix s390 build.
7821 * mini.c (mono_allocate_stack_slots_full): Fix yet another place where byref
7822 is not handled because it is stored as a flag and not as a type ctor. Fixes
7825 2006-08-17 Zoltan Varga <vargaz@gmail.com>
7827 * aot-compiler.c: Fix computation of GOT slot statistics.
7829 * aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
7830 Also remove support for not PIC AOT.
7832 * mini.h: Bump AOT file format version.
7834 * objects.cs: Add a test for #78990.
7836 * mini-x86.c (mono_arch_output_basic_block): Applied patch from Peter Dettman
7837 (peter.dettman@iinet.net.au). Fixes #79087.
7839 * basic-long.cs: Add a test for the above.
7841 2006-08-16 Zoltan Varga <vargaz@gmail.com>
7843 * aot-compiler.c (get_got_offset): Add a cache for GOT entries, not yet used.
7845 * aot-compiler.c (get_plt_index): Add a cache for wrappers too. Simplify the
7848 2006-08-15 Zoltan Varga <vargaz@gmail.com>
7850 * mini.c (mini_init): Fix registration of idiv/imul opcodes which can throw
7853 2006-08-10 Jonathan Chambers <joncham@gmail.com>
7855 * mini.c: Don't verify COM proxy invoke calls
7858 2006-08-10 Dick Porter <dick@ximian.com>
7860 * wapihandles.c (mini_wapi_seminfo): More info, to help track down
7861 which process is holding semaphores locked.
7863 2006-08-08 Zoltan Varga <vargaz@gmail.com>
7865 * mini-ia64.c mini-amd64.c: Fix #79027.
7867 * mini-sparc.c (mono_arch_call_opcode): Fix the previous patch.
7869 * mini-sparc.c (mono_arch_call_opcode): Fix #79027.
7871 * mini-x86.c (mono_arch_call_opcode): Handle the case where there are no
7872 implicit arguments in a vararg call. Fixes #79027.
7874 2006-08-07 Zoltan Varga <vargaz@freemail.hu>
7876 * mini.c (mono_get_element_address_signature): Use CDECL calling convention on windows. Fixes #78969.
7877 (mono_get_array_new_va_signature): Ditto.
7879 2006-08-05 Zoltan Varga <vargaz@gmail.com>
7881 * aot-runtime.c: Call init_plt lazily.
7883 * inssel-long.brg: Fix unsigned long->int conversion.
7885 * aot-runtime.c (init_plt): Remove a redundant make_writable () call.
7887 * aot-compiler.c aot-runtime.c: Reorganize the file structure in the amd64 case so
7888 that most data is now in the .rss/.data section.
7890 2006-08-04 Zoltan Varga <vargaz@gmail.com>
7892 * aot-compiler.c: Correct the computation of the 'direct-calls' statistic.
7894 * aot-compiler.c: Print the number of methods without GOT slots as a statistics.
7896 * aot-compiler.c aot-runtime.c tramp-amd64.c: Resurrect amd64 AOT support.
7898 * tramp-amd64.c (mono_arch_patch_callsite): Fix a warning.
7900 * jit-icalls.c (mono_helper_compile_generic_method): Unbox vtypes since this is a
7901 virtual call. Fixes #79010.
7903 * mini.c (mono_method_to_ir): Pass an additional out arg to compile_generic_method
7904 and use the result as the this argument in the real call.
7906 * generics.2.cs: Add a new test for #79010.
7908 2006-08-03 Zoltan Varga <vargaz@gmail.com>
7910 * mini-x86.c: Fix a warning.
7912 * aot-compiler.c: Add a bunch of statistics.
7914 * mini.c (inline_method): Disable inlining in out-of-line bblocks.
7916 2006-08-02 Zoltan Varga <vargaz@gmail.com>
7918 * mini-arch.h Makefile.am mini-ops.h mini-codegen.c: More alpha updates.
7920 2006-08-01 Zoltan Varga <vargaz@gmail.com>
7922 * 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>.
7924 2006-07-13 Miguel de Icaza <miguel@novell.com>
7926 * mini.c (mono_method_to_ir): Obtain the original method in the
7927 CIL stream and use this to perform validation.
7931 2006-07-19 Zoltan Varga <vargaz@gmail.com>
7933 * mini-x86.c (mono_arch_get_argument_info): Fix a warning.
7934 (mono_arch_call_opcode): Ditto.
7936 * mini.c (mono_method_to_ir): Clear ins_flag at the end of CEE_CALL. Fixes
7939 * mini.c (mono_patch_info_dup_mp): New helper function.
7941 * aot-compiler.c (compile_method): Fix some of the memory allocated during
7942 compilation. Fixes #78827.
7944 2006-07-18 Kornél Pál <kornelpal@gmail.com>
7946 * declsec.c: Use original security informations for
7947 MONO_WRAPPER_MANAGED_TO_MANAGED.
7949 2006-07-15 Jonathan Chambers <joncham@gmail.com>
7951 * mini.c: Allow Com Interop methods/classes and
7952 don't verify COM wrapper calls
7955 2006-07-13 Zoltan Varga <vargaz@gmail.com>
7957 * inssel-long32.brg: Fix long->i4 checked conversion.
7959 * exceptions.cs: Add a test for the above.
7961 2006-07-08 Zoltan Varga <vargaz@gmail.com>
7963 * mini-exceptions.c (mono_setup_altstack): Fix a memory leak.
7965 * mini.c: Applied patch from Joachim Ante (joe@otee.dk). Fix some shutdown
7968 * helpers.c (mono_disassemble_code): Avoid using fixed temporary files. Fixes
7971 2006-07-03 Zoltan Varga <vargaz@gmail.com>
7973 * mini.c: Fix solaris/x86 exception handling.
7975 * Makefile.am: Get rid of $(ICU_LIBS).
7977 2006-07-02 Zoltan Varga <vargaz@gmail.com>
7979 * mini-exceptions.c: Fix handling of unhandled SIGSEGV exceptions on ia64.
7980 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Use MONO_INIT_CONTEXT_FROM_CURRENT.
7981 (ves_icall_System_Security_SecurityFrame_GetSecurityFrame): Ditto.
7983 * mini-ia64.h (MONO_CONTEXT_SET_FUNC): New macro.
7985 * mini-exceptions.c (mono_handle_native_sigsegv): Prevent infinite loops if
7986 this function causes a SIGSEGV.
7988 2006-06-22 Zoltan Varga <vargaz@gmail.com>
7990 * mini.c: Remove unused solaris/x86 includes.
7992 2006-06-21 Zoltan Varga <vargaz@gmail.com>
7994 * jit.h: Add G_BEGIN_DECLS/G_END_DECLS.
7996 2006-06-20 Jb Evain <jbevain@gmail.com>
7998 * cpu-g4.md: fix max length of start_handler instruction.
8000 2006-06-20 Massimiliano Mantione <massi@ximian.com>
8001 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78656.
8003 2006-06-16 Massimiliano Mantione <massi@ximian.com>
8004 * ssa.c: Fixed bug 78653 for SSA based deadce.
8005 * mini.h: added MONO_INST_DEFINITION_HAS_SIDE_EFFECTS flag go
8006 MonoInst.flags, used in SSA based deadce.
8007 * aliasing.c: Fixed bug 78653 for "fastpath" deadce.
8008 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78653.
8010 Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
8012 * tramp-ppc.c: don't use malloc () for trampoline code, sometimes
8013 it can end up using non executable memory on ppc64 systems
8014 running ppc32 userspace (fix from Johannes Berg).
8016 2006-06-14 Dick Porter <dick@ximian.com>
8018 * wapihandles.c: Fix a bunch of signed/unsigned warnings from gcc
8021 2006-06-13 Massimiliano Mantione <massi@ximian.com>
8022 * mini.c: Made so that inline is locally disabled if it would
8023 trigger a .cctor, because too many apps depend on this behavior
8024 (which seems to be also the one of the MS CLR).
8026 2006-06-13 Zoltan Varga <vargaz@gmail.com>
8028 * mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
8029 No idea why this worked before.
8031 * branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
8032 which branch to outer exception clauses since they could skip the
8033 inner finally clauses. Fixes #78633.
8035 * exceptions.cs: Add a test for the above.
8037 * mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
8040 * iltests.il: Add a test for the above.
8042 2006-06-12 Zoltan Varga <vargaz@gmail.com>
8044 * mini.c (remove_block_if_useless): Do not remove the bblock immediately
8045 after the end of a try bblock, to prevent asserts in mini_method_compile ().
8047 * iltests.il: Add a test for the above.
8049 2006-06-10 Zoltan Varga <vargaz@gmail.com>
8051 * mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.
8053 * mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
8054 methods as instrinsics.
8056 2006-06-09 Wade Berrier <wberrier@novell.com>
8058 * Makefile.am: Fix sources list for svn rename so that make dist succeeds
8059 (simple-cee-ops.h ssapre-mini-ops.h)
8061 2006-06-09 Neale Ferguson <neale@sinenomine.net>
8063 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
8064 * mini-s390x.c, mini-s390.c: Correct ATOMIC operations (incorrect register for CS
8066 * mini-s390x.h, mini-s390.h: Simplify MCONTEXT_GET_BP.
8067 * cpu-s390x.md: Fix max. length values for a couple of instructions.
8069 2006-06-09 Jonathan Chambers <jonathan.chambers@ansys.com>
8071 * mini-exceptions.c: Minor fix for building mono in Visual Studio.
8073 2006-06-08 Massimiliano Mantione <massi@ximian.com>
8075 * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
8076 * simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
8077 * ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
8078 * simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
8079 * local-propagation.c: In mono_cprop_invalidate_values use a whitelist
8080 of opcodes, so that bug 78549 should not happen again.
8081 * ssapre.c: Updated to use the renamed files.
8083 2006-06-08 Zoltan Varga <vargaz@gmail.com>
8085 * mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move
8086 in OP_ATOMIC_EXCHANGE_I4.
8088 2006-06-07 Wade Berrier <wberrier@novell.com>
8090 * tramp-s390.c: Fix s390 build (add missing pointer declarations
8091 in mono_debugger_create_notification_function)
8093 2006-06-06 Zoltan Varga <vargaz@gmail.com>
8095 * mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.
8097 * mini.c (type_from_stack_type): Disable some changes which do not
8100 * driver.c: Reenable opts.
8102 * mini.h (MonoStackSlot): New structure to keep track of the verification state
8103 of the evaluation stack.
8105 * mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
8106 evaluation stack trace at entry to the bblock.
8108 * mini.c (merge_stacks): New function to perform verification of stack merges.
8109 Turned off by default.
8111 * mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
8114 2006-06-06 Massimiliano Mantione <massi@ximian.com>
8116 * local-propagation.c: Fixed bug 78549.
8118 2006-06-04 Zoltan Varga <vargaz@gmail.com>
8120 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.
8122 2006-06-02 Miguel de Icaza <miguel@novell.com>
8124 * tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
8125 tramp-arm.c, tramp-ia64.c
8126 (mono_debugger_create_notification_function): Update signature to
8127 new signature and use new protocol for creating the notification
8130 Should fix the build.
8132 2006-06-02 Geoff Norton <gnorton@customerdna.com>
8134 * exceptions-ppc.c (mono_jit_walk_stack)
8135 (ves_icall_get_frame_info): Fix the build
8137 2006-06-02 Zoltan Varga <vargaz@gmail.com>
8139 * mini.c (mono_set_defaults): Fix the handling of -O=-all.
8141 2006-05-31 Raja R Harinath <rharinath@novell.com>
8143 * il2tests.2.il: New file for generics CIL tests. Add test for
8145 * Makefile.am: Update.
8148 * mini.c (mono_method_to_ir): Don't apply box+brtrue optimization
8151 2006-05-30 Massimiliano Mantione <massi@ximian.com>
8153 * aliasing.c: Fixed bug 78311.
8155 2006-05-29 Martin Baulig <martin@ximian.com>
8157 * mini-exceptions.c (mono_find_jit_info): When computing the
8158 native offset, check whether we're actually inside the method's
8159 code; call mono_debug_print_stack_frame() to format the frame.
8160 (ves_icall_System_Exception_get_trace): Call
8161 mono_debug_print_stack_frame() to format the stack frame.
8162 (ves_icall_get_trace): Update to the new debugging API.
8163 (mono_jit_walk_stack_from_ctx): Likewise.
8164 (ves_icall_get_frame_info): Likewise.
8166 * mini.c (get_method_from_ip): Use the new debugging API.
8167 (mono_print_method_from_ip): Likewise.
8170 (mono_jit_walk_stack): Use the new debugging API.
8171 (ves_icall_get_frame_info): Likewise.
8173 2006-05-27 Zoltan Varga <vargaz@gmail.com>
8175 * mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
8177 2006-05-25 Massimiliano Mantione <massi@ximian.com>
8179 * mini.c: Added "limitator" to inline for debugging.
8181 2006-05-24 Martin Baulig <martin@ximian.com>
8183 * debug-debugger.c (mono_debugger_init): Create a private,
8184 malloc()-based code manager for the notification function and
8185 intentionally leak it on exit. This fixes the crash-on-exit race
8189 (mono_debugger_create_notification_function): Added
8190 `MonoCodeManager *' argument.
8193 (mono_debugger_create_notification_function): Added
8194 `MonoCodeManager *' argument.
8196 2006-05-23 Massimiliano Mantione <massi@ximian.com>
8198 * aliasing.c: Fixed 64 bit issue.
8199 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
8200 default since all known bugs are fixed (one more time!).
8202 Tue May 23 13:47:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
8204 * mini.c: write barrier support.
8206 2006-05-23 Martin Baulig <martin@ximian.com>
8208 * debug-debugger.c: Revert Paolo's change. Add comment and #error
8209 check at the top of the file.
8211 Sun May 21 12:22:29 CEST 2006 Paolo Molaro <lupus@ximian.com>
8213 * debug-debugger.c: fix the build. Again. Hopefully Martin will stop
8214 reverting changes without reason and without changelog entries.
8216 2006-05-18 Zoltan Varga <vargaz@gmail.com>
8218 * mini-sparc.c (mono_arch_output_basic_block): Add support for large stack offets
8219 to a few opcodes. Fixes #78439.
8221 * mini-sparc.c: Rename mono_sparch_break () to mono_arch_break () to improve
8222 consistency with other archs.
8224 * mini-ia64.c (mono_arch_emit_prolog): Remove debug stuff left in by mistake.
8226 Wed May 17 18:07:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
8228 * debug-debugger.c: fix the build.
8230 2006-05-17 Martin Baulig <martin@ximian.com>
8233 (debugger_thread_vtable): Moved here from ../metadata/threads.c.
8234 (debugger_init_threads): Formerly known as mono_debugger_init_threads().
8235 (debugger_finalize_threads): Formaly known as mono_debugger_finalize_threads().
8236 (debugger_attach): Call GC_mono_debugger_add_all_threads().
8238 2006-05-11 Zoltan Varga <vargaz@gmail.com>
8240 * mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.
8242 2006-05-10 Zoltan Varga <vargaz@gmail.com>
8244 * mini-x86.c (mono_arch_instrument_epilog): Fix handling of
8245 MONO_TYPE_GENERICINST.
8247 * mini-amd64.c (mono_arch_instrument_epilog): Fix handling of
8248 MONO_TYPE_GENERICINST.
8250 2006-05-09 Zoltan Varga <vargaz@gmail.com>
8252 * mini-x86.c (mono_arch_get_vcall_slot_addr): Add a missing call sequence. Fixes
8255 2006-05-08 Zoltan Varga <vargaz@gmail.com>
8257 * mini.c (mono_create_jump_trampoline): Allocate MonoJitInfo from the domain
8259 (mono_jit_free_method): Remove the method from jump_trampoline_hash as well.
8261 2006-05-06 Zoltan Varga <vargaz@gmail.com>
8263 * mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
8264 mono_trace_cleanup ().
8266 * iltests.il: Fix problem with the newly added test.
8268 * mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
8269 due to register constraints, free up the previous hreg. Fixes #78314.
8271 * iltests.il: Add new test for #78314.
8273 * mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
8274 Interlocked.Add. Fixes #78312.
8276 * mini-amd64.c (mono_arch_get_inst_for_method): Ditto.
8278 2006-05-05 Zoltan Varga <vargaz@gmail.com>
8280 * inssel.brg (mini_emit_virtual_call): Fix a warning.
8282 2006-05-05 Martin Baulig <martin@ximian.com>
8284 * debug-mini.c (mono_debug_open_block): New method.
8287 (mono_arch_output_basic_block): Call mono_debug_open_block() at
8288 the beginning of each basic block.
8291 (mono_arch_output_basic_block): Call mono_debug_open_block() at
8292 the beginning of each basic block.
8294 2006-05-04 Massimiliano Mantione <massi@ximian.com>
8296 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
8297 default until I understand why they break the build on amd64.
8299 2006-05-04 Zoltan Varga <vargaz@gmail.com>
8301 * mini.c (mini_cleanup): Call mono_cleanup ().
8303 * mini.c (UNVERIFIED): New macro to make it easier to track down verification
8306 2006-05-04 Massimiliano Mantione <massi@ximian.com>
8308 * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
8309 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
8310 default since all known bugs are fixed, and I cannot reproduce bug
8311 77944... I'm asking Matt Hargett to test again after this commit.
8313 2006-04-28 Massimiliano Mantione <massi@ximian.com>
8315 * mini-codegen.c: Fixed typo that thrashed inline.
8317 2006-04-28 Zoltan Varga <vargaz@gmail.com>
8319 * dominators.c (compute_dominators): Avoid using a worklist since
8320 it is not correct in some cases. Instead, iterate over all bblocks as
8321 in the original paper. Fixes --compile-all -O=all System.Xml.dll.
8323 2006-04-28 Miguel de Icaza <miguel@novell.com>
8325 * mini.c (mono_jit_compile_method_inner): Use
8326 mono_prepare_exception_from_error that resets the value
8329 2006-04-27 Miguel de Icaza <miguel@novell.com>
8331 * mini.c: Move the mini_loader_error_to_exception to metadata.
8333 2006-04-27 Massimiliano Mantione <massi@ximian.com>
8335 * aliasing.c: Fixed bug 78210.
8337 2006-04-27 Massimiliano Mantione <massi@ximian.com>
8339 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
8340 default until all their problems (or the ones they trigger) are fixed.
8342 2006-04-26 Zoltan Varga <vargaz@gmail.com>
8344 * aot-runtime.c (mono_aot_get_method_from_token_inner): Fix the previous patch.
8346 * aot-runtime.c (mono_aot_get_method_from_token_inner): Mark the method
8347 as loaded only after resolving patches since that could invoke the same method.
8349 * aot-runtime.c (mono_aot_plt_resolve): Fix ppc etc. builds.
8351 * aot-compiler.c: Refactor mono_aot_compile_aot () into a bunch of smaller
8354 * aot-runtime.c (init_plt): Use a normal trampoline to transfer code to the
8357 * aot-compiler.c (emit_plt): Pass the plt offset in %eax instead of on the
8360 * mini-trampolines.c (mono_aot_plt_trampoline): New trampoline to handle calls
8361 made from AOT code through the PLT table.
8363 * mini-x86.h mini-amd64.h: Define MONO_ARCH_AOT_PLT_OFFSET_REG to the register
8364 holding the plt offset when a call is made to the aot plt trampoline.
8366 2006-04-25 Zoltan Varga <vargaz@gmail.com>
8368 * aot-runtime.c aot-compiler.c cpu-amd64.md mini-amd64.c: Update parts of the
8371 * Makefile.am (common_sources): Fix build breakage.
8373 * aot-runtime.c aot-compiler.c: Reorganize the AOT code yet again: Make all
8374 calls through a jump table similar to the ELF PLT table. Avoid indirect calls for
8375 intra-assembly calls if possible.
8377 * tramp-*.c: Add new functions for patching/nullifying PLT entries.
8379 * mini-trampolines.c: Handle PLT entries.
8381 * mini.c: Avoid creating a GOT var for calls.
8383 * jit-icalls.c (helper_ldstr_mscorlib): New helper function for loading strings
8386 * jit-icalls.c (helper_newobj_mscorlib): New helper function to create objects
8389 * mini.c (mono_method_to_ir): Use the new helper functions in throw bblocks in
8392 * mini.h: Bump AOT file format version.
8394 * mini.c (get_basic_blocks): Fix the calculation of bb->out_of_line so it
8397 2006-04-25 Martin Baulig <martin@ximian.com>
8399 * driver.c: Disable copyprop, consprop and inline when running
8400 inside the debugger.
8402 2006-04-25 Martin Baulig <martin@ximian.com>
8404 * debug-debugger.h (MonoDebuggerInfo): Replaced `get_thread_id'
8405 with `get_current_thread' and added `detach'.
8406 (MonoDebuggerMetadataInfo): Added `thread_size',
8407 `thread_tid_offset', `thread_stack_ptr_offset' and
8408 `thread_end_stack_offset'.
8410 2006-04-25 Zoltan Varga <vargaz@gmail.com>
8412 * aot.c Makefile.am: Split aot.c into two new files aot-compiler.c and
8415 * inssel.brg (mini_emit_load_intf_reg_vtable): Use a new kind of AOT constant
8416 ADJUSTED_IID to avoid the need for adjusting the IID at runtime.
8418 * mini.h (MonoJumpInfoType): Add MONO_PATCH_INFO_ADJUSTED_IID.
8420 * mini.c (mono_resolve_patch_target): Handle ADJUSTED_IID.
8422 * aot.c: Add support for ADJUSTED_IID.
8424 2006-04-24 Zoltan Varga <vargaz@gmail.com>
8426 * aot.c (emit_method_order): Don't align method_order_end.
8428 * inssel.brg (stmt): Fix interface calls in AOT code which got broken by
8429 the interface ID changes.
8431 2006-04-21 Dick Porter <dick@ximian.com>
8433 * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
8434 cleaning up a thread. Fixes the new part of bug 77470.
8436 2006-04-20 Geoff Norton <gnorton@customerdna.com>
8438 * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
8441 2006-04-19 Zoltan Varga <vargaz@gmail.com>
8443 * mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.
8445 * mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
8446 SIGSEGV. Fixes #78072.
8448 * mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
8449 unregister our SIGABRT handler.
8451 2006-04-19 Massimiliano Mantione <massi@ximian.com>
8453 * mini.c: Disabled inline where it can alter the call stack in a
8454 way visible from managed code.
8455 * driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
8458 2006-04-16 Zoltan Varga <vargaz@gmail.com>
8460 * mini-amd64.c (mono_arch_emit_prolog): Attach the thread to the runtime as it is done
8461 on other platforms. Fixes #78089.
8463 2006-04-13 Martin Baulig <martin@ximian.com>
8465 * driver.c: Also check a `MONO_INSIDE_MDB' environment variable to
8466 determine whether we're inside the debugger.
8469 (MonoDebuggerMetadataInfo): Added all offsets from `MonoDefaults'.
8471 2006-04-12 Zoltan Varga <vargaz@gmail.com>
8473 * mini.c (mono_method_to_ir): Handle multiple LEAVE statements inside a single
8474 handler clauses. Fixes #78024.
8476 * mini-sparc.c (mono_arch_output_basic_block): Handle large offsets
8477 in the CALL_MEMBASE opcodes. Fixes #78088.
8478 (mono_arch_get_vcall_slot_addr): Ditto.
8480 2006-04-10 Martin Baulig <martin@ximian.com>
8482 * debug-debugger.c: The thread handling code has now been moved
8483 into ../metadata/threads.c.
8485 2006-04-10 Zoltan Varga <vargaz@gmail.com>
8487 * driver.c (mono_main): Fix --with-gc=none build.
8489 * mini-codegen.c (mono_spillvar_offset): Improve alignment.
8490 (mono_spillvar_offset_float): Ditto.
8491 (mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
8492 hreg, not when its !global, since on ia64, there is a third category: stacked
8495 Mon Apr 10 14:39:49 CEST 2006 Paolo Molaro <lupus@ximian.com>
8497 * mini.c: set MonoInst->klass for load field address and a few other
8500 2006-04-10 Zoltan Varga <vargaz@gmail.com>
8502 * helpers.c (mono_disassemble_code): Emit debug info on amd64 as well.
8504 2006-04-07 Zoltan Varga <vargaz@gmail.com>
8506 * dominators.c (compute_dominators): Fix yet another bug which surfaced after
8507 the branch opt changes.
8509 2006-04-06 Dick Porter <dick@ximian.com>
8511 * wapihandles.c (mini_wapi_semdel): Fix parameters in semctl () call.
8513 * wapihandles.c (mini_wapi_seminfo):
8514 * driver.c (mono_main): Add semaphore info option
8516 2006-04-05 Zoltan Varga <vargaz@gmail.com>
8518 * dominators.c (compute_dominators): Fix a bug which surfaced after the recent
8519 branch optimization changes. Fixes #78009.
8521 Wed Apr 5 16:40:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
8523 * mini.c: ignore accessibility of methods in managed->native wrappers.
8525 2006-04-04 Zoltan Varga <vargaz@gmail.com>
8527 * mini.c (mini_cleanup): Call print_jit_stats () earlier since it accesses metadata.
8529 * mini.c (mini_cleanup): Free 'emul_opcode_map' as well.
8531 2006-04-03 Zoltan Varga <vargaz@gmail.com>
8533 * mini.c: Modify the branch optimizations to preserve the invariant that
8534 the entries inside the in_bb and out_bb arrays are unique.
8535 (mono_unlink_bblock): Avoid creation of new arrays.
8537 2006-04-02 Zoltan Varga <vargaz@gmail.com>
8539 * mini.c (mono_unlink_bblock): Fix regression caused by previous
8542 2006-04-01 Zoltan Varga <vargaz@gmail.com>
8544 * mini.c (optimize_branches): Remove the "optimizations" in
8545 the cbranch1/cbranch2 -> branch cases which were causing several
8546 problems in the past. Fixes #77986.
8548 2006-03-31 Chris Toshok <toshok@ximian.com>
8550 * driver.c (DEFAULT_OPTIMIZATIONS): back out the new set of
8551 default optimizations :(
8553 2006-03-31 Zoltan Varga <vargaz@gmail.com>
8555 * inssel-x86.brg mini-codegen.c mini.c: Merge some changes/fixes from linear-il
8558 2006-03-31 Massimiliano Mantione <massi@ximian.com>
8560 * local-propagation.c: Added comments to structs and removed
8561 "Mono" prefixes from local tree mover types.
8563 2006-03-30 Zoltan Varga <vargaz@gmail.com>
8565 * Makefile.am (arch_sources): Define this for each architecture so
8566 libmono_la_SOURCES is defined in one place.
8568 Wed Mar 29 20:51:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
8570 * driver.c, wapihandles.c, Makefile.am: integrate the io-layer utils
8573 Wed Mar 29 17:16:57 CEST 2006 Paolo Molaro <lupus@ximian.com>
8575 * driver.c: print the GC name supplied by configure.
8577 2006-03-29 Massimiliano Mantione <massi@ximian.com>
8579 * local-propagation.c: Added tree mover, and moved here all the
8580 local propagation code from mini.c
8581 * mini.c: Added support for treeprop, and moved all the local
8582 propagation code to local-propagation.c
8583 * mini.h: Added support for treeprop
8584 * driver.c: Added support for treeprop, enabled consprop, copyprop,
8585 treeprop, inline and deadce by default
8586 * Makefile.am: Added local-propagation.c
8588 2006-03-25 Zoltan Varga <vargaz@gmail.com>
8590 * exceptions-sparc.c: Applied patch from David S. Miller <davem@sunset.davemloft.net>: Implement correct support for sparc/linux.
8592 Fri Mar 24 20:07:19 CET 2006 Paolo Molaro <lupus@ximian.com>
8594 * debug-debugger.c: make it compile without the Boehm GC.
8596 Wed Mar 22 18:25:18 CET 2006 Paolo Molaro <lupus@ximian.com>
8598 * mini.c: fixed issue with mismatch when an icall is registered
8599 with multiple names but same address.
8601 Tue Mar 21 15:59:57 CET 2006 Paolo Molaro <lupus@ximian.com>
8603 * declsec.c, mini-exceptions.c: use write barrier to set reference
8604 fields of managed objects.
8606 2006-03-19 Zoltan Varga <vargaz@gmail.com>
8608 * mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
8609 (can_access_internals): Fix a warning.
8611 * mini.c (print_method_from_ip): Rename this to
8612 mono_print_method_from_ip so it gets exported.
8614 * trace.c: Deal with strings inside StringBuilder's containing garbage
8615 and fix memory leaks. Fixes #77848.
8617 2006-03-19 Zoltan Varga <vargaz@gmail.com>
8619 * mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
8622 2006-03-16 Neale Ferguson <neale@sinenomine.net>
8624 * mini-s390.c: Remove OP_X86_TEST_NULL.
8626 Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
8628 * mini.c: use the correct GetHashCode() for the moving collector.
8630 2006-03-16 Massimiliano Mantione <massi@ximian.com>
8632 * liveness.c: Regalloc spill cost tuning.
8634 2006-03-15 Neale Ferguson <neale@sinenomine.net>
8636 * mini-s390x.h: Correct S390_LONG macro.
8638 * mini-s390x.c: Cleanup unused code.
8640 2006-03-15 Zoltan Varga <vargaz@gmail.com>
8642 * jit-icalls.h: New file.
8644 * Makefile.am mini.c jit-icalls.c: Use a proper include file for the jit
8645 icalls and include that instead of including jit-icalls.c.
8647 * mini-ppc.c (mono_arch_output_basic_block): Remove references to
8650 Tue Mar 14 20:23:53 CET 2006 Paolo Molaro <lupus@ximian.com>
8652 * mini.c: when checking for member accessibility, also check for
8653 friend assemblies and for explicit interface implementations.
8655 2006-03-14 Zoltan Varga <vargaz@gmail.com>
8657 * mini-codegen.c (mono_local_regalloc): Remove incorrect g_free () calls.
8659 * cpu-arm.md cpu-g4.md: Remove x86_ opcodes.
8661 * mini-x86.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
8662 common cases are done first.
8664 * mini-ops.h: Only define platform specific opcodes on the given platform.
8666 * mini.h regalloc.h mini-codegen.c: Merge optimizations from the linear-il
8669 2006-03-14 Martin Baulig <martin@ximian.com>
8671 Revert Paolo's change from r57348:
8673 * mini.h: don't use gboolean for bitfields.
8674 * mini.c: verifier changes for fields and methods accessibility.
8676 2006-03-13 Neale Ferguson <neale@sinenomine.net>
8678 * mini-s390.h, mini-s390x.h: Fix calls to mono_call_inst_add_outarg_reg.
8680 * mini-s390x.c: Fix conv_r_un.
8682 * cpu-s390, cpu-s390x.md: Fix lengths.
8684 Sun Mar 12 17:31:22 CET 2006 Paolo Molaro <lupus@ximian.com>
8686 * mini.c: nested types have access to all the nesting
8687 levels, not just the enclosing types.
8689 Sun Mar 12 16:23:11 CET 2006 Paolo Molaro <lupus@ximian.com>
8691 * mini.c: added a few more verification checks.
8693 2006-03-12 Zoltan Varga <vargaz@gmail.com>
8695 * liveness.c: Merge optimizations from the linear-il branch.
8697 2006-03-11 Zoltan Varga <vargaz@gmail.com>
8699 * mini-ia64.c (emit_call): Add a comment.
8701 * tramp-ia64.c (mono_arch_patch_callsite): Handle indirect calls as well.
8703 * tramp-ia64.c: Fix some warnings.
8705 Sat Mar 11 20:15:59 CET 2006 Paolo Molaro <lupus@ximian.com>
8707 * mini.h: don't use gboolean for bitfields.
8708 * mini.c: verifier changes for fields and methods accessibility.
8710 2006-03-11 Zoltan Varga <vargaz@gmail.com>
8712 * mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
8713 lazy icall wrapper changes.
8715 * dominators.c: Replace all the dominator algorithms with faster
8716 ones from the linear-il branch.
8718 * inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
8721 * mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
8722 common cases are done first.
8724 * mini-amd64.c: Fix some warnings.
8726 * mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
8729 * mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
8732 * mini.h: Add a missing prototype.
8734 2006-03-10 Zoltan Varga <vargaz@gmail.com>
8736 * mini.c: Compile icall wrappers lazily.
8738 * mini-codegen.c: Use printf instead of g_print since its much faster.
8740 * mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
8743 * mini.c (optimize_branches): Cache the negative result from
8744 remove_block_if_useless ().
8746 * mini.c (optimize_branches): Avoid restarting the iteration after each change.
8747 Also fix some bblock linking issues.
8749 * helpers.c (mono_disassemble_code): Reduce the size of the temporary
8752 * mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.
8754 * mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
8755 accessed fields first, for better cache behavior.
8757 Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
8759 * mini.c: speedup IList<T> array accesses.
8761 2006-03-09 Zoltan Varga <vargaz@gmail.com>
8763 * mini.c (mono_method_to_ir): Handle large methods overflowing the
8764 inline_costs counter. Fixes #77190.
8766 2006-03-06 Zoltan Varga <vargaz@gmail.com>
8768 * mini-exceptions.c: Call mono_trace_is_enabled () before printing
8769 trace messages. Fixes #77706.
8771 2006-03-04 Martin Baulig <martin@ximian.com>
8773 * tramp-amd64.c, tramp-x86.c
8774 (mono_debugger_create_notification_function): Use
8775 mono_global_codeman_reserve() to allocate a buffer at runtime and
8778 * debug-debugger.h (MonoDebuggerInfo): Added `initialize'.
8780 * debug-debugger.c (mono_debugger_init): Dynamically allocate the
8781 notification function at runtime and then call `initialize' in the
8782 `MONO_DEBUGGER__debugger_info' vtable.
8784 2006-03-04 Zoltan Varga <vargaz@gmail.com>
8786 * iltests.il: Fix a visibility problem.
8788 Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
8790 * driver.c, mini.c: add hooks for the counters API.
8792 Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
8794 * driver.c: show disabled options.
8796 Wed Mar 1 12:18:51 CET 2006 Paolo Molaro <lupus@ximian.com>
8798 * linear-scan.c: always use cost-driven selection.
8800 2006-02-28 Raja R Harinath <rharinath@novell.com>
8802 * jit-icalls.c (helper_compile_generic_method): Revert change from
8805 Mon Feb 27 18:58:19 GMT 2006 Paolo Molaro <lupus@ximian.com>
8807 * cpu-arm.md, mini-arm.c: implemented MemoryBarrier.
8809 Sat Feb 25 17:39:21 CET 2006 Paolo Molaro <lupus@ximian.com>
8811 * inssel.brg: style fixes, mostly to force the updated monoburg
8812 to run for people using svn.
8814 Sat Feb 25 17:07:42 CET 2006 Paolo Molaro <lupus@ximian.com>
8816 * mini.c: match monoburg changes.
8818 Sat Feb 25 16:04:33 CET 2006 Paolo Molaro <lupus@ximian.com>
8820 * mini.h, mini.c, abcremoval.c, aliasing.c, liveness.c,
8821 ssapre.c, graph.c, ssa.c: put the mono_burg_arity[]
8822 declaration in the header file.
8824 Sat Feb 25 14:19:31 CET 2006 Paolo Molaro <lupus@ximian.com>
8826 * helpers.c: reduce relocations and mem usage.
8828 Sat Feb 25 11:58:16 CET 2006 Paolo Molaro <lupus@ximian.com>
8830 * mini.h, mini-codegen.c: disable logging features if
8831 requested by configure.
8833 Sat Feb 25 11:54:49 CET 2006 Paolo Molaro <lupus@ximian.com>
8835 * mini.c: tiny verifier changes.
8837 Fri Feb 24 18:17:52 CET 2006 Paolo Molaro <lupus@ximian.com>
8839 * mini-ops.h, inssel-x86.brg, tramp-x86.c, mini-x86.c,
8840 cpu-pentium.md: stack alignment changes for osx/x86,
8841 partially from Geoff Norton <gnorton@customerdna.com>.
8843 2006-02-24 Raja R Harinath <harinath@gmail.com>
8845 * jit-icalls.c (helper_compile_generic_method): Update to changes
8846 in metadata/class.c.
8848 2006-02-24 Zoltan Varga <vargaz@gmail.com>
8850 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a missing check.
8852 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for
8853 interface calls with large offsets.
8855 2006-02-23 Raja R Harinath <rharinath@novell.com>
8857 * jit-icalls.c (helper_compile_generic_method): Document the
8858 special-case we depend on so that we can inflate the method twice
8859 with the same context with no bad side-effects.
8861 Thu Feb 23 13:45:46 CET 2006 Paolo Molaro <lupus@ximian.com>
8863 * mini-x86.c, mini-amd64.c: fix for case when xen support
8866 Wed Feb 22 19:38:40 CET 2006 Paolo Molaro <lupus@ximian.com>
8868 * mini-x86.c, mini-amd64.c: generate code to access tls items
8869 in a faster way for Xen systems.
8871 Wed Feb 22 10:31:25 CET 2006 Paolo Molaro <lupus@ximian.com>
8873 * exceptions-x86.c, mini-x86.h, driver.c, mini-codegen.c:
8874 updates and compilation fixes for the OSX/x86 port, mostly from
8875 Geoff Norton <gnorton@customerdna.com>.
8877 Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
8879 * inssel.brg: faster interface call implementation
8880 to sync with the interface_offsets MonoVTable changes.
8882 Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
8884 * mini.c: more verification checks.
8886 Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
8888 * mini.c: added a few more verification checks.
8890 2006-02-17 Neale Ferguson <neale@sinenomine.net>
8892 * mini-s390x.c, mini-s390x.h: Check for presence of long displacement
8893 facility on the processor and use it if available.
8895 Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
8897 * driver.c, aot.c, mini.c: throw exception if the IL code is
8898 invalid or unverifiable.
8900 2006-02-17 Raja R Harinath <rharinath@novell.com>
8902 * generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
8905 2006-02-16 Zoltan Varga <vargaz@gmail.com>
8907 * generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
8909 Wed Feb 15 16:23:17 CET 2006 Paolo Molaro <lupus@ximian.com>
8911 * mini-s390x.c, mini-s390.c, mini.c, mini-amd64.c, mini-arm.c,
8912 mini-ia64.c, mini-sparc.c, mini-x86.c, mini-ppc.c: fixed
8913 handling of instantiated generic valuetypes.
8915 2006-02-11 Zoltan Varga <vargaz@gmail.com>
8917 * mini-exceptions.c mini-x86.h mini-x86.c: Get rid of
8918 MONO_INIT_CONTEXT_FROM_CALLER, and use MONO_INIT_CONTEXT_FROM_FUNC
8921 * generics.2.cs: Revert the nullable reftypes tests.
8923 2006-02-10 Zoltan Varga <vargaz@gmail.com>
8925 * mini-exceptions.c (MONO_INIT_CONTEXT_FROM_CALLER): Avoid
8926 using __builtin_frame_address (1) as it doesn't work in the presence
8927 of optimizations. Hopefully fixes #77273.
8929 * Makefile.am generics.cs generics.2.cs: Revert the generics.2.cs
8930 -> generics.cs change as it doesn't work with some automake versions.
8932 Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
8934 * mini.c: handle systems that sue a different way to
8935 retrieve the stack address of the current thread.
8937 2006-02-09 Zoltan Varga <vargaz@gmail.com>
8939 * Makefile.am generics.2.cs: Rename this to generics.cs and handle
8940 it specially in the makefile.
8942 * generics.2.cs: Add tests for nullable reference types.
8944 Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
8946 * mini.c: always handle the case when mono_jit_init()
8947 is called in a thread different from the main thread,
8948 confusing libgc (bug #77309).
8950 Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
8952 * mini-ppc.c: fix handling of exceptions in large methods (bug #74932).
8954 Fri Feb 3 18:51:35 CET 2006 Paolo Molaro <lupus@ximian.com>
8956 * mini.c: change optimize_branches () to use a single loop
8957 and introduce a new optimization to simplify some range checks.
8959 2006-02-03 Martin Baulig <martin@ximian.com>
8961 * debug-debugger.c (debugger_thread_manager_thread_created): Removed
8962 and merged with debugger_thread_manager_add_thread().
8963 (mono_debugger_main): Call debugger_thread_manager_add_thread() to
8964 inform the debugger about the main thread.
8966 2006-02-03 Zoltan Varga <vargaz@gmail.com>
8968 * basic.cs: Add test for div.un/rem.un constant folding.
8970 2006-02-03 Neale Ferguson <neale@sinenomine.net>
8972 * cpu-s390x.md: correct int_xor_imm length
8974 2006-02-03 Zoltan Varga <vargaz@gmail.com>
8976 * generics.2.cs: New test for #77442.
8978 * jit-icalls.c (helper_compile_generic_method): Check for null. Fixes
8981 2006-02-02 Martin Baulig <martin@ximian.com>
8983 * tramp-x86.c, tramp-amd64.c: It's now safe to #include
8984 <mono/metadata/mono-debug-debugger.h>
8986 * debug-mini.c: Don't #define _IN_THE_MONO_DEBUGGER.
8988 2006-02-02 Martin Baulig <martin@ximian.com>
8990 * debug-debugger.h: New header file for debug-debugger.c.
8992 * debug-debugger.c: Big API cleanup; don't run the managed Main()
8993 function is a separate thread anymore; add support for attaching.
8995 2006-02-01 Zoltan Varga <vargaz@gmail.com>
8997 * tramp-x86.c: Fix a warning.
8999 2006-01-31 Zoltan Varga <vargaz@gmail.com>
9001 * mini-amd64.c (mono_arch_compute_omit_fp): Avoid hitting an assertion
9002 on very large methods.
9004 * aot.c (load_patch_info): Fix a warning.
9006 Mon Jan 30 12:51:10 CET 2006 Paolo Molaro <lupus@ximian.com>
9008 * cpu-pentium.md, mini-x86.c, inssel.brg, inssel-x86.brg,
9009 mini-ops.h: alu membase optimizations.
9011 Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
9013 * mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
9014 to speedup StringBuilder.
9016 2006-01-27 Zoltan Varga <vargaz@gmail.com>
9018 * dominators.c (mono_compute_natural_loops): Fix detection of
9019 loop body start blocks.
9021 * mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
9023 2006-01-26 Zoltan Varga <vargaz@gmail.com>
9025 * mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
9028 2006-01-25 Massimiliano Mantione <massi@ximian.com>
9030 * aliasing.c: Fixed aliasing issue on 64 bit archs.
9032 2006-01-25 Martin Baulig <martin@ximian.com>
9034 * debug-debugger.c: Moved the `MonoDebuggerManager' and
9035 `MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
9036 started to cleanup this file a little bit.
9038 Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
9040 * mini.c: optimize a codepath frequently happening in generics code.
9042 2006-01-23 Martin Baulig <martin@ximian.com>
9044 * Makefile.am: Only compile debug-debugger.c on supported platforms.
9046 * debug-debugger.c: Kill the IO_LAYER() hack and use the io-layer
9049 * driver.c: debug-debugger.c is only available if
9050 `MONO_DEBUGGER_SUPPORTED' is defined.
9052 2006-01-23 Martin Baulig <martin@ximian.com>
9054 * debug-debugger.c: Only enable this on platforms where the Mono
9055 Debugger is working (x86 and x86_64).
9057 2006-01-21 Martin Baulig <martin@ximian.com>
9059 The Mono Debugger is now using the normal `mono' instead of the
9060 `mono-debugger-mini-wrapper' when executing managed code.
9062 * debug-debugger.c: New file; previously known as
9063 debugger/wrapper/wrapper.c.
9065 * debug-mini.c (mono_init_debugger): Removed.
9067 * driver.c (mono_main): Added new `--inside-mdb' command line
9068 argument which is used when running inside the debugger.
9070 2006-01-20 Zoltan Varga <vargaz@gmail.com>
9072 * liveness.c (mono_analyze_liveness): Remove some unused data
9075 2006-01-17 Zoltan Varga <vargaz@gmail.com>
9077 * mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
9079 2006-01-16 Zoltan Varga <vargaz@gmail.com>
9081 * mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
9082 depends on implementation details of monobitset.
9084 * mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
9087 2006-01-15 Zoltan Varga <vargaz@gmail.com>
9089 * liveness.c: Update after monobitset changes.
9091 2006-01-14 Zoltan Varga <vargaz@gmail.com>
9093 * mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
9095 2006-01-11 Neale Ferguson <neale@sinenomine.net>
9097 * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
9099 * mini-s390x.c: Remove warning messages.
9101 2006-01-11 Ben Maurer <bmaurer@andrew.cmu.edu>
9103 * mini.c: pass the jitinfo to mono_profiler_method_end_jit.
9105 2006-01-10 Zoltan Varga <vargaz@gmail.com>
9107 * generics.2.cs: Add ldelem/stelem_any test.
9109 2006-01-10 Neale Ferguson <neale@sinenomine.net>
9111 * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
9113 2006-01-07 Zoltan Varga <vargaz@gmail.com>
9115 * inssel-long.brg: Fix int->long ovf conversion rules. Fixes #77172.
9117 2006-01-06 Zoltan Varga <vargaz@gmail.com>
9119 * generics.2.cs: Reenable vtype tests.
9121 * inssel-x86.brg: Remove an icorrect valuetype rule.
9123 2006-01-06 Neale Ferguson <neale@sinenomine.net>
9125 * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
9126 initial support for OP_ABS.
9128 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9130 * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
9132 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9134 * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
9135 conversion and implement LADD/LSUB.
9137 * exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
9140 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9142 * mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.
9144 * exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
9147 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9149 * mini-s390x.c, mini-s390x.h, mini-s390.c, mini-s390.h: Fix lmf handling when
9150 localloc is encountered. Fixes crash in test-183.cs when using gmcs
9151 (stack walk problem).
9153 2006-01-04 Zoltan Varga <vargaz@gmail.com>
9155 * aot.c (mono_aot_load_method): Fix a warning.
9157 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9159 * mini-s390x.h, exceptions-s390x.c, inssel-s390x.brg: Fix compiler warnings
9161 2006-01-03 Zoltan Varga <vargaz@gmail.com>
9163 * iltests.il: Add test for #77148.
9165 * mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
9168 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9170 * mini-s390x.c, inssel-s390x.brg: Remove debug statements
9172 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9174 * mini-s390x.c, mini-s390x.h, exceptions-s390x.c, tramp-s390x.c, inssel-s390x.brg,
9175 cpu-s390x.md, mini-codegen.c, Makefile.am: add 64-bit s390 support to JIT.
9177 * basic-long.cs: Add lconv-to-r4/r8 tests.
9179 2006-01-03 Zoltan Varga <vargaz@gmail.com>
9181 * mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.
9183 * mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
9184 here as on other archs.
9186 2005-12-29 Neale Ferguson <neale@sinenomine.net>
9188 * mini-s390.c (mono_arch_get_inst_for_method): Add memory_barrier support.
9190 2005-12-29 Neale Ferguson <neale@sinenomine.net>
9192 * inssel-s390.brg: Correct register assignment; Rework L[ADD|SUB]_OVF[_UN] for s390.
9194 * cpu-s390.md: Fix lengths of a couple of long instructions; Add memory_barrier.
9196 * mini-s390.c: Fix long add/sub overflow instructions; Fix displacement handling in
9197 instrument_prolog; Add memory_barrier instruction.
9199 2005-12-26 Zoltan Varga <vargaz@gmail.com>
9201 * exceptions-x86.c mini-x86.h: Fix solaris/x86 exception handling.
9203 2005-12-23 Zoltan Varga <vargaz@gmail.com>
9205 * tramp-ia64.c (mono_arch_get_unbox_trampoline): Flush icache.
9207 * aliasing.c inssel.brg: Fix warnings.
9209 * inssel-ia64.brg (OP_MEMSET): Fix an optimization which previously
9210 could skip initialization of some parts of memory.
9212 * mini.c mini-ia64.c: Fix warnings.
9214 * inssel-sparc.brg: Add an implementation of lneg which actually works.
9216 2005-12-22 Zoltan Varga <vargaz@gmail.com>
9218 * aliasing.c (mono_build_aliasing_information): Add a workaround for
9219 a crash seen on sparc.
9221 * mini-sparc.c: Add implementation of Thread.MemoryBarrier.
9223 * cpu-sparc.md: Add memory_barrier opcode. Remove unused opcodes.
9225 2005-12-21 Neale Ferguson <neale@sinenomine.net>
9227 * mini-ops.h: Add s390_backchain instruction
9229 * inssel-s390.brg: Use backchaining instruction for LOADARG/STKARG operations.
9231 * cpu-s390.md: Add s390_backchain instruction
9233 * mini-s390.c: Significant ABI changes
9235 * mini-s390.h: Cater for zero length structures
9237 2005-12-20 Neale Ferguson <neale@sinenomine.net>
9239 * mini-s390.c: ABI fixes
9241 * inssel-s390.brg: Remove debug statements
9243 * cpu-s390.md: Fix length of ATOMIC_xx operations
9245 2005-12-19 Zoltan Varga <vargaz@gmail.com>
9247 * basic-float.cs: Add float<->long conversion tests.
9249 2005-12-16 Neale Ferguson <neale@sinenomine.net>
9251 * mini-s390.c: Fix LOCALLOC processing.
9253 * tramp-s390.c (s390_magic_trampoline): Fix base calculation.
9255 2005-12-15 Zoltan Varga <vargaz@gmail.com>
9257 * iltests.il: Add tests for some opcodes not covered by the other
9260 2005-12-15 Neale Ferguson <neale@sinenomine.net>
9262 * mini-s390.c: Fix ADDCC/SBB bug revealed by test_0_ulong_regress; Correct
9263 register loading for Tail processing; Correct trace output.
9265 * inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.
9267 * cpu-s390.md: Correct size of jmp instruction.
9269 2005-12-13 Neale Ferguson <neale@sinenomine.net>
9271 * mini-s390.c (mono_arch_emit_prolog): Remove some debugging bits.
9273 2005-12-13 Neale Ferguson <neale@sinenomine.net>
9275 * inssel-s390.brg tramp-s390.c cpu-s390.md mini-s390.c mini-s390.h:
9276 Bring s390 up to current level.
9278 2005-12-12 Zltan Varga <vargaz@gmail.com>
9280 * generics.2.cs: Disable the newly added tests as they do not work yet.
9282 * generics.2.cs: Add valuetype tests.
9284 2005-12-09 Zoltan Varga <vargaz@gmail.com>
9286 * basic-long.cs: Add i4->u8 test.
9288 * objects.cs: Add tests for JIT intrinsic.
9290 * mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
9291 optimizations lost by a mistake.
9293 2005-12-07 Zoltan Varga <vargaz@gmail.com>
9295 * basic-long.cs: Remove a test moved to objects.cs.
9297 * arrays.cs: Add more array tests.
9299 2005-12-06 Zoltan Varga <vargaz@gmail.com>
9301 * arrays.cs: Add new tests for multi-dimensional arrays.
9303 2005-12-06 Raja R Harinath <rharinath@novell.com>
9305 * Makefile.am (test_sources2): Add generics.2.cs.
9306 (EXTRA_DIST): Add test_sources2.
9308 2005-12-05 Ben Maurer <bmaurer@ximian.com>
9310 Support for boxing and unboxing nullable types as well as the
9311 isinst operation on nullables, per the CLI ammendment.
9313 * inssel.brg (CEE_ISINST): Special case for nullable
9315 * mini.c (handle_unbox_nullable): new method
9316 (handle_box): Special case for nullable types
9317 (mono_method_to_ir): Call handle_unbox_nullable in correct
9320 * generics.2.cs: New test suite
9322 * Makefile.am: Support for regression tests with generics.
9324 2005-12-03 Zoltan Varga <vargaz@gmail.com>
9326 * mini-amd64.c (emit_load_volatile_arguments): Add loading of arguments
9327 allocated to registers. Fixes #76800.
9329 Thu Dec 1 12:59:40 EST 2005 Paolo Molaro <lupus@ximian.com>
9331 * mini-ppc.c, inssel-ppc.brg: fix ABI issue (pinvoke3.cs).
9333 2005-11-30 Zoltan Varga <vargaz@gmail.com>
9335 * exceptions.cs: Disable test_0_long_cast () test, since it fails on a lot
9338 2005-11-29 Zoltan Varga <vargaz@gmail.com>
9340 * objects.cs basic-calls.cs: Move a test depending on valuetypes to
9343 * inssel-long32.brg (CEE_CONV_I8): Remove unused labels.
9345 * inssel-long32.brg (CEE_CONV_I8): Convert this to a branchless version.
9346 Tue Nov 29 05:41:34 EST 2005 Paolo Molaro <lupus@ximian.com>
9348 * mini-ppc.c, cpu-g4.md: ensure a fp register is converted to
9349 single precision before storing to a single precision location.
9351 2005-11-28 Raja R Harinath <rharinath@novell.com>
9353 * Makefile.am (ILASM): Use profile-dependent location of ilasm.
9355 2005-11-27 Zoltan Varga <vargaz@gmail.com>
9357 * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
9360 * basic.cs: Remove test_0_byte_compares test which was moved to
9361 objects.cs a long time ago.
9363 2005-11-22 Massimiliano Mantione <massi@ximian.com>
9365 * aliasing.c: Fixed aliasing issue on 64 bit archs.
9367 2005-11-20 Zoltan Varga <vargaz@gmail.com>
9369 * mini-ia64.c exceptions-ia64.c: Simplify the way filters/finally
9370 handlers are called.
9372 * mini-ia64.c (mono_arch_emit_exceptions): Optimize size of exception
9375 * mini-ia64.c: Add support for the throw->branch exception
9378 * driver.c (DEFAULT_OPTIMIZATIONS): Add MONO_OPT_EXCEPTION.
9380 2005-11-18 Massimiliano Mantione <massi@ximian.com>
9382 * mini.c: Enabled "fastpath" deadce :-)
9384 2005-11-18 Massimiliano Mantione <massi@ximian.com>
9386 * mini.c: Added "fastpath" deadce (deadce without SSA), and a simple
9387 alias analysis pass to support it.
9390 * liveness.c: Likewise (liveness computation can use aliasing
9391 information to be more accurate).
9392 * driver.c: Added an "ssa" option go tell the JIT to use SSA, and
9393 moreover made so that "--compile-all" uses the given optimization
9394 flags and not the default ones.
9395 * aliasing.c: Alias analysis (new file).
9396 * aliasing.h: Likewise.
9397 * Makefile.am: added "aliasing.c" and "aliasing.h".
9399 2005-11-17 Zoltan Varga <vargaz@gmail.com>
9401 * mini-ops.h: Add missing OP_I opcodes so it is in synch with the
9404 2005-11-13 Zoltan Varga <vargaz@gmail.com>
9406 * mini-exceptions.c (mono_handle_exception_internal): Remove the
9407 fp >= end_of_stack exit condition, as it is not needed, and it might
9408 become true for fp eliminated frames.
9410 2005-11-11 Zoltan Varga <vargaz@gmail.com>
9412 * mini-x86.c (mono_arch_emit_epilog): Use G_STRUCT_OFFSET instead of hard
9415 Tue Nov 8 11:28:20 GMT 2005 Paolo Molaro <lupus@ximian.com>
9417 * mini-arm.c: fixed alignment of doubles/longs to match
9418 the C ABI (bug #76635).
9420 Mon Nov 7 16:13:21 CET 2005 Paolo Molaro <lupus@ximian.com>
9422 * aot.c: fix compilation with --enable-minimal=aot.
9424 Fri Nov 4 12:34:15 GMT 2005 Paolo Molaro <lupus@ximian.com>
9426 * mini-arm.c: fixed compatibility with the new
9427 floating point emulator package for compares.
9429 2005-11-03 Atsushi Enomoto <atsushi@ximian.com?
9431 * mini.c : reverted sig->pinvoke changes (r51396-51397).
9433 2005-11-01 Zoltan Varga <vargaz@freemail.hu>
9435 * mini-exceptions.c (print_stack_frame): Output to stderr.
9436 (mono_handle_native_sigsegv): Ditto.
9438 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
9440 * mini-amd64.c (mono_arch_output_basic_block): Remove unused
9441 OP_LCONV_TO_OVF_I implementation.
9443 * mini-amd64.c: Add support for the throw->branch exception
9446 * branch-opts.c (mono_branch_optimize_exception_target): Allow the case
9447 when the catch clause catches a more general exception, i.e. Object.
9449 2005-10-30 Zoltan Varga <vargaz@gmail.com>
9451 * cpu-ia64.md: Remove unused opcodes.
9453 * mini.c (GET_CONTEXT): Simplify this somewhat by removing arch
9454 specific defines for architectures defining USE_SIGACTION.
9456 * mini-ia64.c: Fix some warnings.
9458 * exceptions-ia64.c (mono_arch_ip_from_context): Fix this, the previous
9459 version seemed to skip a frame.
9461 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
9463 * mini.c: Clean up the usage of sig->pinvoke flag. Now
9464 only calls which are made to native code use this flag.
9466 2005-10-29 Zoltan Varga <vargaz@freemail.hu>
9468 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for
9469 varargs methods as well.
9471 * mini-amd64.c exceptions-amd64.c: Allow fp elimination in methods
9472 which have save_lmf set. Reorganize methods prologs a bit.
9474 * mini-amd64.c (mono_arch_compute_omit_fp): Move the check for the
9475 debugger to the proper place.
9477 2005-10-29 Martin Baulig <martin@ximian.com>
9479 * mini-amd64.c (debug_omit_fp): Temporarily disable fp elimination
9480 when running inside the debugger until the debugger has support
9483 2005-10-26 Zoltan Varga <vargaz@gmail.com>
9485 * mini.h: Fix a warning.
9487 2005-10-24 Miguel de Icaza <miguel@novell.com>
9489 * mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
9490 we expose publicly, this returns the string.
9492 2005-10-22 Zoltan Varga <vargaz@freemail.hu>
9494 * exceptions-amd64.c (mono_arch_find_jit_info): Fix some corner cases
9495 with fp elimination.
9497 2005-10-21 Zoltan Varga <vargaz@gmail.com>
9499 * mini-exceptions.c (mono_handle_native_sigsegv): Try to print a
9500 native stacktrace using the glibc 'backtrace' function if available.
9502 2005-10-20 Zoltan Varga <vargaz@gmail.com>
9504 * mini.h (MonoDebugOptions): Remove 'abort_on_sigsegv' option.
9506 * mini-exceptions.c (mono_handle_native_sigsegv): New function to
9507 handle SIGSEGVs received while in native code.
9509 * mini.c (sigsegv_signal_handler): If the SIGSEGV happened in native
9510 code, call mono_handle_native_sigsegv which will abort the runtime
9511 after printing some diagnostics, instead of converting it into a
9512 confusing NullReferenceException.
9514 2005-10-18 Zoltan Varga <vargaz@gmail.com>
9516 * cpu-pentium.md: Remove unused opcodes.
9518 2005-10-18 Zoltan Varga <vargaz@freemail.hu>
9520 * mini-amd64.h (MonoLMF): Add rsp field.
9522 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Save the sp reg into
9525 2005-10-17 Zoltan Varga <vargaz@gmail.com>
9527 * mini-codegen.c (get_register_spilling): Fix some warnings.
9529 2005-10-16 Zoltan Varga <vargaz@freemail.hu>
9531 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Add support for fp
9532 elimination during exception handling. Enable fp elimination by
9535 * mini-amd64.h mini-amd64.c: Add preliminary support for frame pointer
9538 2005-10-16 Martin Baulig <martin@ximian.com>
9541 (mono_debugger_run_finally): New public method for the debugger.
9543 2005-10-10 Zoltan Varga <vargaz@gmail.com>
9545 * debug-mini.c (mono_debug_init_method): Fix warning.
9547 * mini.h branch-opts.c (mono_branch_optimize_exception_target): Make
9548 the 'exname' parameter const to fix some warnings.
9550 2005-10-09 Zoltan Varga <vargaz@freemail.hu>
9552 * mini-exceptions.c (mono_handle_exception_internal): Fix another bug
9553 introduced by the previous patch.
9555 2005-10-08 Zoltan Varga <vargaz@gmail.com>
9557 * basic-float.cs: Add test for precision of float arithmetic.
9559 * mini-ia64.c (mono_arch_output_basic_block): Convert to/from doubles
9560 when loading/storing single values from/to memory.
9562 * mini.c (mono_jit_compile_method_with_opt): Create the function
9563 pointers in the correct domain.
9565 2005-10-08 Zoltan Varga <vargaz@freemail.hu>
9567 * mini-exceptions.c (mono_handle_exception_internal): Fix bug
9568 introduced by previous patch.
9570 * mini-exceptions.c (mono_handle_exception_internal): Handle the case
9571 when out_filter_idx is NULL.
9573 * mini-exceptions.c: Don't run filter clauses twice during exception
9574 handling. Fixes #75755.
9576 2005-10-07 Zoltan Varga <vargaz@gmail.com>
9578 * aot.c: Add support for ldflda wrappers.
9580 * mini.c (mono_method_to_ir): Use ldflda wrappers for CEE_LDFLDA. Fixes
9583 Tue Oct 4 20:23:25 CEST 2005 Paolo Molaro <lupus@ximian.com>
9585 * mini.c, mini.h: do not consider exception handlers blocks when
9586 setting up interface variables.
9588 2005-10-04 Zoltan Varga <vargaz@freemail.hu>
9590 * aot.c (emit_section_change): Fix emitting of sections on win32. Fixes #76322.
9592 2005-10-03 Zoltan Varga <vargaz@gmail.com>
9594 * liveness.c (mono_analyze_liveness): Revert parts of r51051 since it
9595 causes a regression.
9597 * mini.c (mini_thread_cleanup): Fix reading of freed memory.
9599 2005-10-02 Zoltan Varga <vargaz@freemail.hu>
9601 * mini.h (OP_PCONST): Move the definition of OP_PCONST into the rest
9602 of the OP_P definitions.
9604 * TODO: Add a proposal for dealing with the CEE/OP mess.
9606 * mini-amd64.c (mono_arch_output_basic_block): Merge mul_imm
9607 optimizations from the x86 port.
9609 * cpu-amd64.md: Ditto.
9611 * basic.cs basic-long.cs: Add tests.
9613 Fri Sep 30 20:07:20 CEST 2005 Paolo Molaro <lupus@ximian.com>
9615 * Makefile.am, driver.c, mini-x86.c, mini.c, mini.h, branch-opts.c:
9616 Patrik Torstensson's implementation of my exception-handling
9617 optimization idea, when the exception object is not used
9620 Fri Sep 30 19:10:29 CEST 2005 Paolo Molaro <lupus@ximian.com>
9622 * mini-x86.c, cpu-pentium.md: Patrik Torstensson's port
9623 of the mul_imm optimizations from the old jit.
9625 Fri Sep 30 11:37:51 EDT 2005 Paolo Molaro <lupus@ximian.com>
9627 * mini.c, liveness.c: patch by Patrik Torstensson and
9628 Zoltan Varga to improve performance in methods with
9631 2005-09-30 Zoltan Varga <vargaz@gmail.com>
9633 * driver.c: Remove 'Globalization' entry from --version.
9635 2005-09-28 Zoltan Varga <vargaz@gmail.com>
9637 * mini.c (mono_jit_compile_method_inner): Do not load AOT code when
9638 there is a profiler interested in JIT events.
9640 * aot.c: Load profile files produced by the AOT profiling module, and
9641 reorder methods based on the profiling info. Add a 'method_order' table
9642 to the AOT file to make mono_aot_find_jit_info work with the reordered
9645 * mini.h: Bump AOT file version info.
9647 Wed Sep 28 17:12:48 CEST 2005 Paolo Molaro <lupus@ximian.com>
9649 * mini-arm.h: work around what looks like a gcc bug when optimizations
9652 2005-09-28 Raja R Harinath <rharinath@novell.com>
9654 * Makefile.am (AM_CFLAGS): Don't use += to append inside
9655 conditionals. Use ...
9656 (PLATFORM_CFLAGS, ARCH_CFLAGS): ... these.
9658 2005-09-27 Zoltan Varga <vargaz@freemail.hu>
9660 * mini-amd64.c (mono_arch_call_opcode): Use mono_class_value_size ()
9661 to determine the amount of memory to copy when passing valuetypes.
9663 * inssel-amd64.brg: Remove PUSH(LDIND4) rules since they convert an
9664 4 byte load into a 8 byte load. Fix aligning of size in OP_OUTARG_VT.
9666 2005-09-27 Zoltan Varga <vargaz@gmail.com>
9668 * mini.h mini.c aot.c: Add infrastructure to collect pagefault
9669 information about aot.
9671 2005-09-27 Ben Maurer <bmaurer@ximian.com>
9673 * *.c: Replace the use of {Enter,Leave}CriticalSection with
9674 macros. This will allow a deadlock debugger to easily be plugged
9677 Tue Sep 27 09:32:11 EDT 2005 Paolo Molaro <lupus@ximian.com>
9679 * mini-ppc.c, cpu-g4.md: added memory barrier instruction.
9681 2005-09-27 Raja R Harinath <rharinath@novell.com>
9683 * Makefile.am (AM_CFLAGS): Rename from INCLUDES.
9684 (AM_CFLAGS) [PLATFORM_WIN32): Append to it, don't set it.
9685 (AM_CFLAGS) [ARM]: Add arch/arm directory from the build tree.
9686 ($(arch_built)) [CROSS_COMPILING]: Error out.
9688 2005-09-26 Zoltan Varga <vargaz@gmail.com>
9690 * aot.c: Add support for the no_special_static flag for classes.
9692 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
9694 * Reapply reverted patches.
9696 * *: Revert r50174 as well.
9698 * mini-amd64.c cpu-amd64.md inssel-amd64.brg: Revert r50170 as well.
9700 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
9702 * mini-amd64.c: Revert r50342 to see if this fixed buildbot.
9704 2005-09-23 Miguel de Icaza <miguel@novell.com>
9706 * mini.c (SIG_HANDLER_SIGNATURE): Only dereference info if it is
9707 part of the SIG_HANDLER_SIGNATURE.
9709 2005-09-23 Zoltan Varga <vargaz@gmail.com>
9711 * mini.h mini.c: Add a new MONO_DEBUG option to collect metadata pagefault
9714 * mini-x86.c (mono_arch_call_opcode): Fix vararg calling convention
9715 introduced by previous patch.
9717 2005-09-21 Zoltan Varga <vargaz@gmail.com>
9719 * tramp-x86.c (mono_arch_create_trampoline_code): Restore caller
9720 saved registers too.
9722 * mini-x86.c (mono_arch_allocate_vars): Rewrite this so it works based
9723 upon the information returned by get_call_info ().
9725 * mini-x86.c (add_float): Fix stack size calculation.
9726 (mono_arch_call_opcode): Rewrite this so it works based up the
9727 information returned by get_call_info ().
9728 (mono_arch_get_this_vret_args): Ditto.
9730 2005-09-21 Zoltan Varga <vargaz@freemail.hu>
9732 * mini-amd64.c (mono_arch_emit_this_vret_args): Use the information
9733 in cinfo to determine the registers which need to be used.
9735 2005-09-20 Miguel de Icaza <miguel@novell.com>
9737 * driver.c (mono_main): Add --server and --desktop flags.
9739 2005-09-16 Zoltan Varga <vargaz@gmail.com>
9741 * mini-ia64.h: Make register masks 64 bit. Don't treat argument
9742 registers as global registers.
9744 * inssel-ia64.brg (stmt): Remove OP_OUTARG_REG () rules which are no
9745 longer needed with the new register allocator.
9747 * mini-ia64.c: Use OP_MOVE instead of OP_SETREG for reg-reg moves.
9749 * cpu-ia64.md: Remove unused opcodes.
9751 * regalloc.c mini-codegen.c: Make register masks 64 bit on ia64.
9753 2005-09-16 Zoltan Varga <vargaz@freemail.hu>
9755 * cpu-amd64.md: Remove unused opcodes.
9757 * inssel-amd64.brg: Remove OP_OUTARG_REG () rules which are no longer
9758 needed with the new register allocator.
9760 * inssel-amd64.brg mini-amd64.c: Use OP_MOVE instead of OP_SETREG for
9763 2005-09-16 Raja R Harinath <rharinath@novell.com>
9765 * Makefile.am (check-local): Don't invoke semdel-wrapper.
9767 2005-09-16 Martin Baulig <martin@ximian.com>
9769 * exceptions-amd64.c
9770 (throw_exception): Don't call mono_debugger_throw_exception() if
9771 we're a rethrow - see the FIXME in the code.
9773 2005-09-15 Geoff Norton <gnorton@customerdna.com>
9775 * mini.c (mono_init_exceptions): This only works on some architectures.
9777 2005-09-15 Zoltan Varga <vargaz@gmail.com>
9779 * mini.c (mono_method_to_ir): Add OP_LMUL imm -> OP_LMUL_IMM conversion
9782 * inssel-long.brg mini-ia64.c: Add OP_LMUL_IMM rules.
9784 * mini-ia64.h mini-ia64.c: Remove the altstack support code which is
9785 now in mini-exceptions.c.
9787 2005-09-15 Zoltan Varga <vargaz@freemail.hu>
9789 * mini-amd64.h mini-am64.c: Remove the altstack support code which is
9790 now in mini-exceptions.c.
9792 2005-09-15 Zoltan Varga <vargaz@gmail.com>
9794 * exceptions-x86.c: Applied patch from Patrik Torstensson
9795 <patrik.torstensson@gmail.com>. Add stack overflow handling support for win32.
9797 * mini-exceptions.c mini-x86.c mini.c: Move the altstack setup/teardown
9798 code into mini-exceptions.c. Add some assertions to it.
9800 2005-09-12 Zoltan Varga <vargaz@gmail.com>
9802 * aot.c (emit_section_change): Applied patch from "The Software Team"
9803 (<software@solmersa.com>). Fix as errors on windows.
9805 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
9807 * tramp-amd64.c (mono_arch_create_trampoline_code): Fix saving of
9808 method info into the LMF.
9810 2005-09-11 Zoltan Varga <vargaz@gmail.com>
9812 * mini-ia64.c: Add proper unwind info for method epilogs.
9814 * exceptions-ia64.c: Add some code to help debugging.
9816 * mini-ia64.c mini-ia64.h: Add sigaltstack support.
9818 * mini-exceptions.c: Fix warning.
9820 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
9822 * mini.c: Really fix build.
9824 * mini-x86.c mini-amd64.c: Fix build.
9826 2005-09-11 Zoltan Varga <vargaz@gmail.com>
9828 * mini-ia64.c inssel-ia64.brg: Add InterlockedExchange instrinsics.
9830 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Implement
9831 some Interlocked methods as intrinsics.
9833 * mini.c (mini_get_inst_for_method): Call arch_get_inst_for_method
9834 for Thread methods as well.
9836 * mini-ops.h: Add OP_MEMORY_BARRIER opcode.
9838 * inssel.brg: Add rule for OP_MEMORY_BARRIER.
9840 * mini-ia64.c mini-x86.c mini-amd64.c
9841 cpu-ia64.md cpu-pentium.md cpu-amd64.md: Add implementation of
9844 * mini.c (mono_init_exceptions): Fix build breakage.
9846 2005-09-10 Zoltan Varga <vargaz@gmail.com>
9848 * mini-ia64.c exceptions-ia64.c tramp-ia64.c: Remove 'manual' emitting
9849 of instructions. Use the new ia64_unw_op macros for emitting unwind
9852 * mini.c (mono_init_exceptions): Initialize exception handling
9853 related trampolines at startup.
9855 Fri Sep 9 19:30:37 BST 2005 Paolo Molaro <lupus@ximian.com>
9857 * cpu-arm.md, mini-arm.c: fix for dynamic code (Gtk# apps).
9859 2005-09-09 Zoltan Varga <vargaz@gmail.com>
9861 * mini.c: Handle type loading errors gracefully during compilation and
9862 throw the appropriate exception.
9864 Fri Sep 9 09:49:14 CEST 2005 Paolo Molaro <lupus@ximian.com>
9866 * ldscript.mono, Makefile.am: use anonymous versions in the ldscript
9867 for the mono binary.
9869 2005-09-09 Martin Baulig <martin@ximian.com>
9871 * mini.c (mono_method_to_ir): Comment out the G_BREAKPOINT()'s for
9874 Thu Sep 8 14:53:45 BST 2005 Paolo Molaro <lupus@ximian.com>
9876 * mini-arm.h: use emulation for conv.r.un for the release.
9878 Thu Sep 8 11:28:45 BST 2005 Paolo Molaro <lupus@ximian.com>
9880 * mini-arm.c, objects.cs: more fixes and tests for them.
9882 Wed Sep 7 17:14:26 BST 2005 Paolo Molaro <lupus@ximian.com>
9884 * mini-arm.c: align structures to at least 4 bytes to be able
9885 to keep our current optimized memcpy.
9887 Tue Sep 6 22:51:08 BST 2005 Paolo Molaro <lupus@ximian.com>
9889 * mini-arm.c, cpu-arm.md, inssel-arm.brg: bugfixes.
9891 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9893 * mini.c: ignore SIGPIPE.
9895 2005-09-04 Zoltan Varga <vargaz@gmail.com>
9897 * mini-ia64.c (mono_arch_lowering_pass): Convert 'and_imm 255' to zext1.
9899 * mini-ia64.h mini-ia64.c: Add some minor optimizations.
9901 2005-09-02 Zoltan Varga <vargaz@gmail.com>
9903 * mini.h: Add prototype for mono_allocate_stack_slots_full.
9905 Thu Sep 1 21:05:26 BST 2005 Paolo Molaro <lupus@ximian.com>
9907 * exceptions-arm.c, mini.c, mini-arm.c, mini-arm.h:
9908 exception handling support.
9909 * mini-arm.c, mini-arm.h: bigendian fixes (partially from a
9910 patch by Brian Koropoff <briank@marakicorp.com>).
9912 Thu Sep 1 10:22:44 EDT 2005 Paolo Molaro <lupus@ximian.com>
9914 * mini.c: revert another 'optimization' which breaks when
9915 items on the eval stack need to be saved at a basic block end
9918 Wed Aug 31 17:29:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
9920 * jit-icalls.c: for arrays, ensure we always provide
9923 2005-08-30 Zoltan Varga <vargaz@gmail.com>
9925 * mini.c (mono_allocate_stack_slots_full): Fix ia64 build.
9927 * mini.c (mini_get_inst_for_method): Special case Object:.ctor as well.
9929 2005-08-29 Zoltan Varga <vargaz@gmail.com>
9931 * mini-ia64.h mini-ia64.c: Implement frame pointer elimination. Keep
9932 arguments in their original register.
9934 2005-08-28 Zoltan Varga <vargaz@gmail.com>
9936 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Optimize
9939 * mini.c (mono_method_to_ir): Disable the MUL->MUL_IMM optimization
9940 when ssapre is enabled.
9942 * inssel-long.brg: Fix bug in previous patch.
9944 * mini-ia64.c mini-ia64.h mini.c inssel-long.brg: Optimize
9945 multiplication by a constant.
9947 2005-08-27 Zoltan Varga <vargaz@gmail.com>
9949 * mini-ia64.c (mono_arch_setup_jit_tls_data): Add support for intel
9952 * tramp-ia64.c (mono_arch_create_trampoline_code): Use st8.spill for
9955 Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
9957 * inssel-arm.brg: apply changes tested by Brian Koropoff
9958 <briank@marakicorp.com>.
9960 2005-08-25 Zoltan Varga <vargaz@gmail.com>
9962 * mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.
9964 2005-08-24 Zoltan Varga <vargaz@gmail.com>
9966 * mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
9967 to the same register if dreg is just a base register.
9968 (print_ins): Improve printing of membase opcodes.
9970 * inssel-x86.brg: Add optimized ldind(reg) rules.
9972 * mini-x86.c cpu-pentium.md: Changes required to support the new rules.
9974 Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
9976 * mini.c: when running under valgrind, set the stack bottom for
9977 the GC at the actual approximate stack for the app (fixes running
9978 mono with valgrind).
9980 Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
9982 * mini.c: do no break at the first valuetype to init found
9985 Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
9987 * cpu-arm.md, mini-arm.c: more fixes and LMF support.
9989 Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
9991 * cpu-g4.md: fixed instruction length exposed by the nemerle compiler.
9993 2005-08-23 Zoltan Varga <vargaz@freemail.hu>
9995 * inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.
9997 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
9999 * inssel-x86.brg: Fix assert in patch_delegate_trampoline.
10001 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
10004 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
10007 * mini.c (optimize_branches): Don't quit after 1000 iterations on large
10010 Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
10012 * tramp-arm.c: allocate less memory for the trampoline and fix typo.
10014 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
10016 * mini.c (mono_method_to_ir): Remove instructions inserted after a branch
10017 in the tail recursion optimization.
10019 * mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as
10020 debug info into the assembly file.
10022 * iltests.il: Add test for filter regions.
10024 * mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
10025 initial stack of filter regions. Fixes #75755.
10027 Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
10029 * mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
10030 stack requirements.
10032 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
10034 * mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
10035 the check for an already compiled method on non-ia64 platforms.
10036 (mono_create_jump_trampoline): Store the MonoJitInfo structure into the
10039 * mini-x86.h tramp-x86.c: Add support for delegate trampolines.
10041 * inssel-x86.brg: Add some optimized call rules.
10043 2005-08-21 Zoltan Varga <vargaz@freemail.hu>
10045 * mini.c (mono_create_delegate_trampoline): Do not return an already compiled
10048 * mini.h mini-trampolines.c: Pass the trampoline argument to
10049 mono_arch_patch_delegate_trampoline.
10051 * mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.
10053 * mini-trampolines.c: Fix build.
10055 * mini-amd64.h: Add delegate trampolines.
10057 * mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.
10059 * inssel-amd64.brg: Add optimized call rules.
10061 * mini-ia64.c tramp-ia64.c: Improve instruction scheduling.
10063 * inssel-ia64.brg: Add optimized ldind(reg) rules.
10065 2005-08-20 Zoltan Varga <vargaz@freemail.hu>
10067 * mini.c (mono_create_class_init_trampoline): Fix bug caused by last
10070 * mini-ia64.c: Remove LMF fixmes.
10072 * mini-ia64.h: Remove most fields from LMF.
10074 * inssel-ia64.brg (stmt): Fix unaligned access errors.
10076 * mini-trampolines.c: Add support for IA64 function descriptors.
10078 * mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
10079 for IA64 function descriptors.
10081 Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
10083 * tramp-arm.c: patch the vtable for virtual calls. Added
10084 support code to register/unregister the LMF.
10085 * mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
10088 2005-08-19 Dick Porter <dick@ximian.com>
10090 * mini.c: Use a gsize to store the thread ID, so it can hold a 64
10091 bit value if needed.
10093 2005-08-19 Zoltan Varga <vargaz@freemail.hu>
10095 * mini.c (mini_get_method): Move handling of wrapper data here.
10097 * mini.c (mono_method_to_ir): Add support for dynamic methods.
10099 * mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
10102 * mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so
10103 bblock->code does not remain empty.
10105 2005-08-17 Zoltan Varga <vargaz@freemail.hu>
10107 * arrays.cs: Add regression test for #75832.
10109 * inssel-amd64.brg cpu-amd64.md mini-amd64.c: Fix LDELEMA optimization
10110 rules. Fixes #75832.
10112 * mini-ia64.c tramp-ia64.c exceptions-ia64.c: Implement improved
10113 instruction scheduling.
10115 2005-08-12 Zoltan Varga <vargaz@freemail.hu>
10117 * mini-exceptions.c (ves_icall_get_frame_info): Fix IA64 build.
10119 2005-08-11 Zoltan Varga <vargaz@freemail.hu>
10121 * mini-exceptions.c mini-x86.h: Move VC stuff into macros in mini-x86.h.
10123 * mini-codegen.c: Fix VC build.
10125 * cpu-pentium.md: Increase length of atomic_exhange_i4.
10127 2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10129 * mini.h: fix signature for mono_register_opcode_emulation.
10131 2005-08-09 Zoltan Varga <vargaz@freemail.hu>
10133 * mini.c: Get rid of most of the helper_sig_... constants using
10134 mono_create_icall_signature ().
10136 2005-08-08 Zoltan Varga <vargaz@freemail.hu>
10138 * jit-icalls.c (helper_ldstr): New helper function.
10140 * mini.c (get_basic_blocks): Set out_of_line for bblocks containing a throw.
10142 * mini.c (mono_method_to_ir): If an LDSTR instruction is in a bblock with a
10143 throw, load the string using a helper call instead of creating a string object.
10145 * aot.c: Update after LDSTR changes.
10147 * mini.h: Bump AOT file version.
10149 * aot.c: Save class size info into the AOT file. Print more statistics during
10152 * mini.h: Bump AOT file version.
10154 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
10155 ordering of disasm cases. Fixes #74957.
10157 Thu Aug 4 19:47:24 BST 2005 Paolo Molaro <lupus@ximian.com>
10159 * mini-ops.h, mini-arch.h, inssel.brg, mini.c, mini.h,
10160 jit-icalls.c, mini-codegen.c, Makefile.am: changes in
10161 the generic code needed for the ARM port.
10163 Thu Aug 4 19:42:54 BST 2005 Paolo Molaro <lupus@ximian.com>
10165 * exceptions-arm.c, tramp-arm.c, mini-arm.c, mini-arm.h, cpu-arm.md,
10166 inssel-arm.brg: more ARM features and fixes.
10168 Mon Aug 1 18:37:38 BST 2005 Paolo Molaro <lupus@ximian.com>
10170 * tramp-arm.c, mini-arm.c, cpu-arm.md, inssel-arm.brg: more
10171 ARM port work in progress.
10173 2005-07-30 Zoltan Varga <vargaz@freemail.hu>
10175 * mini-ia64.c (mono_arch_call_opcode): Ongoing IA64 work.
10177 * mini-exceptions.c mini-ia64.h: Ongoing IA64 work.
10179 * mini-ia64.c (ia64_emit_bundle): Ongoing IA64 work.
10181 * inssel.brg (mini_emit_memset): Add support for unaligned access.
10183 * *-ia64.*: Ongoing IA64 work.
10185 * mini-ia64.c exceptions-ia64.c: Ongoing IA64 work.
10187 2005-07-28 Zoltan Varga <vargaz@freemail.hu>
10189 * TODO: Remove out-of-data todo stuff.
10191 * mini.h mini.c (mono_create_jit_trampoline_from_token): Remove some
10194 * aot.c: Save/load MonoCachedClassInfo->has_nested_classes.
10196 * mini.h: Bump corlib version.
10198 2005-07-27 Martin Baulig <martin@ximian.com>
10201 (create_copy_ins): Added `const unsigned char *ip' argument; set
10202 `copy->cil_code' from it.
10204 2005-07-27 Martin Baulig <martin@ximian.com>
10206 * mini-exceptions.c (mono_handle_exception): Don't call
10207 mono_debugger_handle_exception() for filters.
10209 2005-07-27 Zoltan Varga <vargaz@freemail.hu>
10211 * mini-trampolines.c (mono_aot_trampoline): Handle AppDomain:InvokeInDomain
10214 2005-07-26 Martin Baulig <martin@ximian.com>
10216 Committing a patch from Michal Moskal <michal.moskal@gmail.com>.
10218 * mini.c (mono_method_to_ir): In `CEE_CALLI', only use
10219 helper_compile_generic_method() if the method is actually virtual
10222 2005-07-26 Martin Baulig <martin@ximian.com>
10225 (trampoline_code): Renamed to `mono_trampoline_code' and made it
10226 public; this is now accessed directly by the debugger.
10227 (mono_generic_trampoline_code): Removed.
10230 (mono_debug_init_method): Also add interncalls and wrappers.
10232 2005-07-23 Zoltan Varga <vargaz@freemail.hu>
10234 * mini-ia64.c mini-ia64.h: Add support for tracing/profiling.
10236 2005-07-22 Zoltan Varga <vargaz@freemail.hu>
10238 * aot.c (mono_aot_get_method_from_token): Fix a potential crash here.
10240 2005-07-21 Zoltan Varga <vargaz@freemail.hu>
10242 * aot.c (load_patch_info): Fix handling of stfld_remote wrapper.
10244 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
10246 * mini-amd64.c (mono_arch_setup_jit_tls_data): Use the nice way of
10247 getting TLS offsets on AMD64 too.
10249 2005-07-20 Kornél Pál <kornelpal@hotmail.com>
10251 * driver.c: Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32
10253 Wed Jul 20 18:05:19 BST 2005 Paolo Molaro <lupus@ximian.com>
10255 * exceptions-arm.c, mini-arm.c, tramp-arm.c, cpu-arm.md,
10256 inssel-arm.brg, mini-arm.h: ARM port work in progress.
10258 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
10260 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix build.
10262 * mini.h mini.c mini-*.h tramp-*.c: Move more cross platform trampoline code
10265 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Call
10266 mono_sparc_is_virtual_call ().
10268 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix warning.
10270 * tramp-sparc.c (mono_arch_create_trampoline_code): Fix order of
10271 trampoline parameters.
10273 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix signature.
10275 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Rename this
10276 to mono_arch_get_vcall_slot_addr.
10278 * Makefile.am tramp-sparc.c: Update the sparc port to use the generic
10281 * *-sparc.*: Merge the mini-xp-regalloc branch for sparc.
10283 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
10285 * mini-ia64.h mini-ia64.c: Finish pinvoke support.
10287 2005-07-19 Martin Baulig <martin@ximian.com>
10289 * exceptions-amd64.c (throw_exception): Call
10290 mono_debugger_throw_exception() here like we're doing it on i386.
10292 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
10294 * mini-ia64.c: Add optimized TLS access support.
10296 2005-07-18 Zoltan Varga <vargaz@freemail.hu>
10298 * mini-exceptions.c: Ongoing IA64 work.
10300 * mini-ia64.c inssel-long.brg: Ongoing IA64 work.
10302 * mini.c: Use the default optimization set when embedding. Fixes
10305 2005-07-11 Zoltan Varga <vargaz@freemail.hu>
10307 * tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts
10308 of trampolines to a separate file.
10310 * mini-trampolines.c: New file.
10312 * mini.h tramp-x86.c: Move arch independent parts of trampolines to a
10315 * tramp-x86.c: Reorganize the trampoline code to be similar to the
10318 * mini-codegen.c: Fix cygwin build.
10320 2005-07-10 Zoltan Varga <vargaz@freemail.hu>
10322 * mini.c: Add some minor changes needed by the IA64 port.
10324 * *-ia64.*: Ongoing IA64 work.
10326 2005-07-09 Zoltan Varga <vargaz@freemail.hu>
10328 * tramp-amd64.c mini-amd64.c: Update after latest AOT changes. Split
10329 trampolines into arch-independent and arch-dependent parts.
10331 * mini-amd64.c (mono_arch_lowering_pass): Fix store_membase_imm -> store_membase_reg rule.
10333 2005-07-08 Zoltan Varga <vargaz@freemail.hu>
10335 * cpu-amd64.md: Merge the xp-regalloc-branch for amd64.
10337 * mini-ops.h mini-amd64.h mini-amd64.c inssel-amd64.brg Makefile.am: Merge
10338 the xp-regalloc-branch for amd64.
10340 * mini-x86.h mini-x86.c cpu-pentium.md Makefile.am: Merge the
10341 xp-regalloc-branch for x86.
10343 2005-07-07 Zoltan Varga <vargaz@freemail.hu>
10345 * inssel.brg (OP_THROW_OR_NULL): Allways rethrow the abort exception.
10347 2005-07-06 Martin Baulig <martin@ximian.com>
10350 (mono_jit_compile_method_inner): Call mono_get_inflated_method().
10351 (mono_jit_runtime_invoke): Likewise.
10353 2005-07-05 Zoltan Varga <vargaz@freemail.hu>
10355 * aot.c (mono_compile_assembly): Allocate the GOT in the .bss segment
10358 * aot.c: Add new mono_aot_get_method_from_token () function to load AOT methods
10359 without loading their metadata. Reorganize the file format so exception handling+
10360 debug info is kept separate from normal method info. Create MonoJitInfo
10361 structures for methods lazily.
10363 * tramp-x86.c (x86_aot_trampoline): Use the new from_token method to avoid
10365 (x86_class_init_trampoline): Patch AOT class init trampolines too.
10367 * mini.c (mini_init): Install the new mono_aot_find_jit_info hook.
10369 * mini.c (mono_method_to_ir): Reduce the number of class init trampoline calls
10372 * mini.h: Bump AOT file version.
10374 2005-07-04 Zoltan Varga <vargaz@freemail.hu>
10376 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
10378 2005-07-01 Raja R Harinath <rharinath@novell.com>
10380 * Makefile.am (check-local): Call semdel-wrapper.
10382 2005-06-29 Zoltan Varga <vargaz@freemail.hu>
10384 * mini-x86.c: Revert the last change as it seems to break the build..
10386 2005-06-28 Zoltan Varga <vargaz@freemail.hu>
10388 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
10390 * mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.
10392 2005-06-27 Ben Maurer <bmaurer@ximian.com>
10394 * mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
10395 outside of the macro, so strange stuff doesn't happen with gcc4
10396 (NEW_AOTCONST_TOKEN): Likewise.
10398 2005-06-28 Martin Baulig <martin@ximian.com>
10400 * mini.c (mini_class_is_system_array): New static method; use this
10401 instead of `klass->parent == mono_defaults.array_class' everywhere
10402 since this also works for the new generic array class.
10404 2005-06-26 Ben Maurer <bmaurer@ximian.com>
10406 * inssel.brg: Remove warnings.
10408 2005-06-24 Zoltan Varga <vargaz@freemail.hu>
10410 * mini-ia64.c: Ongoing IA64 work.
10412 * basic-float.cs: Add float->i1 conversion test.
10414 * iltests.il: Add conv.u4 test.
10416 2005-06-23 Zoltan Varga <vargaz@freemail.hu>
10418 * inssel-long.brg: Fix bug caused by last change.
10420 2005-06-23 Geoff Norton <gnorton@customerdna.com>
10422 * mini-x86.h: Add __APPLE__ to the SC_* redefines with the other
10423 BSDs. Allows the x86 JIT to work on OSX86
10425 2005-06-22 Zoltan Varga <vargaz@freemail.hu>
10427 * inssel-long.brg: Use OP_LSHR_UN_IMM instead of OP_SHR_UN_IMM in
10430 * mini-ia64.c: Ongoing IA64 work.
10432 2005-06-19 Zoltan Varga <vargaz@freemail.hu>
10434 * mini-ia64.c: Ongoing IA64 work.
10436 * driver.c: Clean up jit_code_hash as well when using --regression.
10438 * inssel-long.brg: Fix long->i4/u4 conversion rules.
10440 * basic-long.cs: Add tests for long->u4 conversion.
10442 2005-06-18 Ben Maurer <bmaurer@ximian.com>
10444 * mini.c: Take mono_get_domainvar out of macros. This makes sure
10445 that we do not depend on undefined C behavior: the order stuff
10446 gets evaluated within an expression. Fixes mono when compiled on
10449 2005-06-18 Zoltan Varga <vargaz@freemail.hu>
10451 * *-ia64.*: Ongoing IA64 work.
10453 * aot.c: Lower memory usage while loading AOT methods.
10455 * tramp-x86.c: Avoid allocating+freeing MonoJitInfo structures.
10457 * mini.h: Bump AOT file format version.
10459 2005-06-17 Zoltan Varga <vargaz@freemail.hu>
10461 * mini.c (mono_method_to_ir): Allow STACK_PTR as input to SWITCH.
10463 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
10465 * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
10466 not on callee assembly). Fixed some comments.
10468 2005-06-16 Zoltan Varga <vargaz@freemail.hu>
10470 * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
10471 it gets proper disassembly.
10472 (emit_method_info): Remove some dead code.
10474 * mini.c (mini_method_compile): Allways allocate the GOT var in
10475 mono_method_to_ir for emulating opcodes.
10477 2005-06-13 Zoltan Varga <vargaz@freemail.hu>
10479 * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
10480 before freeing the code memory. Fixes #74990.
10482 * objects.cs: Add regression test for #74992.
10484 * liveness.c: Extend live ranges of arguments to the beginning of the
10485 method. Fixes #74992.
10487 * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
10488 so it points into the faulting instruction.
10490 2005-06-12 Zoltan Varga <vargaz@freemail.hu>
10492 * jit-icalls.c (mono_imul_ovf): Add exception handling.
10494 * *-ia64.*: Ongoing IA64 work.
10496 * mini.c (mini_init): Fix signature of mono_delegate_ctor.
10498 2005-06-11 Zoltan Varga <vargaz@freemail.hu>
10500 * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
10502 * *-ia64.*: Ongoing IA64 work.
10504 2005-06-10 Zoltan Varga <vargaz@freemail.hu>
10506 * basic-long.cs: Add tests for add/sub.ovf.
10508 * basic.cs: Add tests for sub.ovf.
10510 * *-ia64.*: Ongoing IA64 work.
10512 2005-06-09 Zoltan Varga <vargaz@freemail.hu>
10514 * *-ia64.*: Ongoing IA64 work.
10516 * basic.cs: Add conv.ovf.i4.un test.
10518 2005-06-09 Massimiliano Mantione <massi@ximian.com>
10520 * mini.c: (remove_block_if_useless) Fixed bug 75061.
10522 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10524 * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
10526 2005-06-07 Zoltan Varga <vargaz@freemail.hu>
10528 * *-ia64.*: Ongoing IA64 work.
10530 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10533 * mini.c: added the ability to toggle trace on/off using SIGUSR2.
10535 2005-06-04 Zoltan Varga <vargaz@freemail.hu>
10537 * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
10539 2005-06-03 Zoltan Varga <vargaz@freemail.hu>
10541 * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
10543 * mini-amd64.c (amd64_patch): Add an assert to check that the destination
10544 of a call is callable by a near call.
10546 2005-05-31 Zoltan Varga <vargaz@freemail.hu>
10548 * mini-ia64.c: Ongoing IA64 work.
10550 2005-05-29 Zoltan Varga <vargaz@freemail.hu>
10552 * genmdesc.c: Make the generated array non-static.
10554 * inssel-long.brg: Fix LSHR_IMM rule.
10556 * *-ia64.*: Ongoing IA64 work.
10558 * *-ia64.*: Ongoing IA64 work.
10560 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
10562 * *-ia64.*: Ongoing IA64 work.
10564 * *-ia64.*: Ongoing IA64 work.
10566 * mini-ia64.c: Ongoing IA64 work.
10568 * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
10570 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
10572 * objects.cs basic-calls.cs: Move some tests to objects.cs.
10574 * objects.cs basic-long.cs: Move some tests to objects.cs.
10576 2005-05-26 Zoltan Varga <vargaz@freemail.hu>
10578 * *-ia64.*: Ongoing IA64 work.
10580 * iltests.il: Add a new test.
10582 * mini.c (mono_method_to_ir): Initialize valuetypes when created using
10583 newobj. Fixes #75042.
10585 2005-05-22 Zoltan Varga <vargaz@freemail.hu>
10587 * *-ia64.*: Ongoing IA64 work.
10589 * *-ia64.*: Ongoing IA64 work.
10591 * *-ia64.*: Ongoing IA64 work.
10593 * basic.cs objects.cs: Move tests accessing static variables as well.
10595 * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
10597 2005-05-21 Zoltan Varga <vargaz@freemail.hu>
10599 * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
10601 * driver.c: Always print failed tests.
10603 * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
10606 * *ia64*: Ongoing IA64 work.
10608 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
10610 * basic.cs: Add tests for add.ovf. Fix warnings.
10612 2005-05-18 Miguel de Icaza <miguel@novell.com>
10614 * driver.c (mono_main): Avoid crash if no argument is passed to
10615 --break; Do not use g_error, but f_printf. And fix all other
10616 ocurrences of the same crash.
10618 2005-05-17 Zoltan Varga <vargaz@freemail.hu>
10620 * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
10621 and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
10624 2005-05-14 Zoltan Varga <vargaz@freemail.hu>
10626 * *-ia64.*: Add beginnings of IA64 backend.
10628 * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.
10630 2005-05-13 Zoltan Varga <vargaz@freemail.hu>
10632 * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
10635 * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
10637 * mini-amd64.c: Fix a warning.
10639 2005-05-10 Zoltan Varga <vargaz@freemail.hu>
10641 * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
10642 in float_neg. Fixes #74897.
10644 * mini-amd64.c (emit_call): Fix another near call bug.
10646 2005-05-06 Sebastien Pouliot <sebastien@ximian.com>
10648 * declsec.c: Keep the appdomain information in the structure. Added a
10649 missing "return FALSE" for Unmanaged if FullTrust is set (or else the
10650 value gets overwritten).
10651 * declsec.h: Set the default MonoArray for the the stack to 6. Added
10652 an MonoAppDomain member to MonoSecurityFrame.
10653 * mini-exceptions.c: Do not use a glist to keep GC allocated objects
10654 used in the stack walk. Now use a MonoArray which grow (double) when
10657 2005-05-05 Lluis Sanchez Gual <lluis@novell.com>
10659 * mini.c: Re-enabled runtime cleanup, since running threads should
10660 now properly stop when exiting.
10662 2005-05-05 Zoltan Varga <vargaz@freemail.hu>
10664 * mini-codegen.c: New file contaning the arch-independent local
10665 register allocator. Not used by any architectures yet.
10667 * mini.h linear-scan.c: Merge some changes from the
10668 mini-xp-local-regalloc branch.
10670 2005-04-28 Zoltan Varga <vargaz@freemail.hu>
10672 * mini-amd64.c (emit_call): Fix calls to native functions when the
10673 runtime is compiled as a shared library. Fixes #74756.
10675 * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
10676 on a literal field. Fixes #74751.
10678 2005-04-25 Raja R Harinath <rharinath@novell.com>
10680 * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
10682 2005-04-23 Zoltan Varga <vargaz@freemail.hu>
10684 * objects.cs: Add missing null casting test.
10686 2005-04-22 Zoltan Varga <vargaz@freemail.hu>
10688 * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
10689 in wrapper methods. Also rename 'address' variable to 'offset'.
10691 2005-04-20 Zoltan Varga <vargaz@freemail.hu>
10693 * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
10696 * Makefile.am (MCS): Use -unsafe instead of --unsafe.
10698 * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
10701 Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
10703 * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
10705 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
10707 * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
10708 just the last bytes.
10710 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
10712 * aot.c (mono_compile_assembly): Fix warning.
10714 * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
10715 by the _MSC_VER stuff.
10717 2005-04-16 Zoltan Varga <vargaz@freemail.hu>
10719 * inssel-long.brg: Fix #74588.
10721 * cpu-amd64.md: Fix #74591.
10723 * iltests.il: Add new regression tests.
10725 2005-04-13 Zoltan Varga <vargaz@freemail.hu>
10727 * trace.c (mono_trace_enter_method): Print enums as an int, not as a
10730 2005-04-11 Zoltan Varga <vargaz@freemail.hu>
10732 * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
10734 * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches
10735 from Bill Middleton <flashdict@gmail.com>.
10737 2005-04-10 Zoltan Varga <vargaz@freemail.hu>
10739 * arrays.cs: Add new regression test. Fix warnings.
10741 2005-04-09 Zoltan Varga <vargaz@freemail.hu>
10743 * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
10744 and leakage in CKFINITE.
10746 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
10747 this to a null op since it is called on amd64 too.
10749 * exceptions-amd64.c (get_throw_trampoline): Align stack.
10751 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
10752 body since this is not used on amd64.
10754 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
10756 * mini-amd64.c: Remove obsolete fixmes.
10758 * mini.c (print_method_from_ip): Fix debugging support.
10760 2005-2-1 Massimiliano Mantione <massi@ximian.com>
10762 * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
10763 so that expressions that don't give much gain are not reduced.
10764 * ssapre.h: Likewise.
10766 2005-04-04 Zoltan Varga <vargaz@freemail.hu>
10768 * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
10770 * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
10772 * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
10774 2005-04-01 Zoltan Varga <vargaz@freemail.hu>
10776 * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
10778 * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
10780 2005-03-31 Zoltan Varga <vargaz@freemail.hu>
10782 * mini-x86.c: If sigaltstack support is enabled, perform win32 style
10785 * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
10787 * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
10789 * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
10791 * mini-x86.h mini-x86.c exceptions-x86.c: Add support for
10792 MONO_ARCH_USE_SIGACTION. Fixes #74252.
10794 * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
10796 * mini-x86.c: Fix up stack overflow handling.
10798 * exceptions.cs: Add new regression test.
10800 2005-03-30 Zoltan Varga <vargaz@freemail.hu>
10802 * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
10803 mono_jit_thread_attach.
10805 * mini.c (mono_method_to_ir): Verify called method is not abstract.
10807 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
10809 * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
10810 avoid calling constructors using callvirt.
10812 * inssel.brg: Fix #74073.
10814 2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
10816 * aot.c, mini.h: Added mono-compiler.h header to allow/ease
10817 compilation with non-GCC compilers.
10818 * mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
10819 possible using VS.NET. Adapted from the work of J Lothian (for VC6).
10821 Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
10823 * inssel.brg, arrays.cs: fix long standing 64 bit issue in access to
10824 klass->interface_offsets (will likely fix bug#74073).
10826 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
10828 * mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.
10830 2005-03-28 Zoltan Varga <vargaz@freemail.hu>
10832 * mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
10833 to amd64_div_reg_size ().
10835 * mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.
10837 2005-03-27 Zoltan Varga <vargaz@freemail.hu>
10839 * cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.
10841 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
10843 * driver.c: Turn off automatic command line globbing under windows. Fixes #73763.
10845 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
10847 * mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.
10849 * mini.c (mono_precompile_assembly): Load and precompile referenced
10850 assemblies as well. Fixes #74015.
10852 2005-03-23 Zoltan Varga <vargaz@freemail.hu>
10854 * cpu-amd64.md (sin): Fix up maximum lengths of some opcodes.
10856 2005-03-23 Sebastien Pouliot <sebastien@ximian.com>
10858 * declsec.c: Skip linkdemand checks for intra-corlib calls. This skips
10859 a lot of checks and (anyway) permissions cannot work until corlib is
10862 Wed Mar 23 14:29:49 CET 2005 Paolo Molaro <lupus@ximian.com>
10864 * mini-ppc.c: fixed ABI issue on sysv/ppc.
10866 Tue Mar 22 19:03:17 CET 2005 Paolo Molaro <lupus@ximian.com>
10868 * tramp-ppc.c, exceptions-ppc.c: added missing icache flush
10869 calls (fixes bug#72824).
10871 Tue Mar 22 16:28:48 CET 2005 Paolo Molaro <lupus@ximian.com>
10873 * mini.c: fix tail recursion elimination (see test in bug#73936).
10875 2005-03-21 Zoltan Varga <vargaz@freemail.hu>
10877 * mini-amd64.c (mono_arch_output_basic_block): Add inline versions of
10878 some fp functions in sse2 mode.
10880 2005-03-20 Zoltan Varga <vargaz@freemail.hu>
10882 * mini-x86.c (emit_tls_get): Move tls handling into a separate helper function.
10884 2005-03-19 Zoltan Varga <vargaz@freemail.hu>
10886 * mini.h mini.c: Add mono_get_jit_tls_key ().
10888 * mini-x86.c: Enable fast TLS support on windows.
10890 2005-03-17 Sebastien Pouliot <sebastien@ximian.com>
10892 * declsec.c: Renamed aptc to allowpartiallytrustedcallers.
10893 * mini.c: Check for p/invoke method when generating code. If a
10894 p/invoke method, or it's class, isn't decorated with [Suppress
10895 UnmanagedCodeSecurity] then generate code to call System.Security.
10896 UnmanagedDemand (only if the security manager is active).
10898 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
10900 * tramp-amd64.c (create_specific_trampoline): Revert parts of the
10901 last change as it seems to cause strange crashes.
10903 Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <lupus@ximian.com>
10905 * *.c: handle unsafe function pointers where needed.
10907 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
10909 * mini.c (mono_jit_free_method): Remove the fixme too.
10911 2005-03-15 Miguel de Icaza <miguel@novell.com>
10913 * mini.c: As discussed, make the code actually free the delegate
10914 thunk now, to enable the debugging of delegate problems, use
10915 MONO_DEBUG=1 when running Mono.
10917 This takes also care of parts of the leaks as seen by Joe.
10919 2005-03-15 Zoltan Varga <vargaz@freemail.hu>
10921 * mini-amd64.c (mono_arch_setup_jit_tls_data): Enable
10922 thread_tls_offset calculation.
10924 2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
10926 * declsec.c: Reworked linkdemand checks for icall. The previous code
10927 was using the declaration code (untrusted) and didn't work as expected
10928 with the CLR 2.0. We're now more compatible with 2.0 than 1.x for this
10931 2005-03-13 Zoltan Varga <vargaz@freemail.hu>
10933 * iltests.il: Add new localloc test.
10935 * mini-amd64.c: Handle large stack allocations the same way as on
10936 windows if stack overflow handling is working.
10938 * mini-amd64.c: Allocate the signal stack using mmap.
10940 * mini.c (sigsegv_signal_handler): Fix reading of context.
10942 * mini-exceptions.c: Fix up stack overflow handling.
10944 * mini-amd64.h mini-amd64.c: Fix up stack overflow handling.
10946 * tramp-amd64.c (create_specific_trampoline): Optimize trampoline size.
10948 * exceptions-amd64.c (mono_amd64_exceptions_init): Remove this.
10950 * mini.h mini.c tramp-*.c: Move common trampoline code to mini.c.
10952 * mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Get rid of the
10953 tramp_init functions as they are no longer needed.
10955 2005-03-12 Zoltan Varga <vargaz@freemail.hu>
10957 * tramp-amd64.c (mono_amd64_tramp_init): Fix typo.
10959 * tramp-amd64.c (mono_amd64_tramp_init): Init AOT trampoline as well.
10961 * mini-amd64.h mini-amd64.c (mono_amd64_exceptions_init): Remove this.
10963 * mini.c mini-*.h: Remove OUT_OF_LINE_BBLOCK defines since all arches
10966 * mini-ops.h: Add OP_LMUL_IMM.
10968 * mini.c jit-icalls.cmini-amd64.h mini-amd64.c cpu-amd64.md: Implement
10969 long mul/div opcodes as intrinsic.
10971 * mini-amd64.c (emit_call): Handle the case when the callee might be
10974 2005-03-11 Zoltan Varga <vargaz@freemail.hu>
10976 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be
10979 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Fix ordering of cases.
10981 * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
10983 2005-03-09 Ben Maurer <bmaurer@ximian.com>
10985 * mini.c (mono_codegen): Don't leak here, to help people running
10988 2005-03-08 Zoltan Varga <vargaz@freemail.hu>
10990 * mini-amd64.c (mono_arch_output_basic_block): Fix int->float
10991 conversions in sse2 mode.
10993 * basic-float.cs: Add regression test.
10995 * mini-amd64.c: Reenable sse2.
10997 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
10999 * mini-amd64.c: Disable sse2 until some regressions are fixed.
11001 2005-03-07 Joerg Rosenkranz <joergr@voelcker.com>
11003 * driver.c: Copyright text should include 2005.
11005 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
11007 * cpu-amd64.md (load_membase): Fix more max lengths.
11009 2005-03-06 Zoltan Varga <vargaz@freemail.hu>
11011 * cpu-amd64.md (load_membase): Fix max length.
11013 * mini-ops.h: Add OP_F<xx>_MEMBASE opcodes.
11015 * inssel.brg: Add MONO_EMIT_BIALU_MEMBASE macro.
11017 * cpu-amd64.md inssel-amd64.brg mini-amd64.h mini-amd64.brg: Finish SSE2
11018 support and enable it by default. Also add OP_F<xxx>_MEMBASE opcodes.
11020 * basic-float.cs: Add rounding regression test.
11022 * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
11024 2005-03-04 Neale Ferguson <NealeFerguson@earthlink.net>
11026 * inssel-s390.brg, mini-s390.c: Add support for passing/returning small
11027 structures in registers for pinvoke wrappers.
11029 2005-03-04 Zoltan Varga <vargaz@freemail.hu>
11031 * mini-exceptions.c (ves_icall_get_trace): Return wrapper info as well.
11033 2005-03-03 Zoltan Varga <vargaz@freemail.hu>
11035 * mini.h mini.c mini-x86.c: Pass the domain of the native->managed
11036 wrapper to mono_jit_thread_attach.
11038 * mini.c (mini_jit_thread_attach): New jit icall.
11040 * mini-x86.c (mono_arch_emit_prolog): Attach to the VM in
11041 native->managed wrappers.
11043 * exceptions.cs: Add new regression test.
11045 * mini.c (optimize_branches): Check regions in the cbranch to throw
11046 block case as well. Fixes #73242.
11048 Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
11050 * mini.c: thread safety fixes.
11052 2005-02-27 Zoltan Varga <vargaz@freemail.hu>
11054 * tramp-amd64.c (amd64_magic_trampoline): Disable the method_ptr
11055 patching stuff, since delegates use jump trampolines so there is
11058 * tramp-amd64.c (create_trampoline_code): Pass NULL as 'code' in
11061 * tramp-amd64.c: Fix build.
11063 * mini-x86.c tramp-x86.c: Moved get_vtable_slot_addr into mini-x86.c and rename
11064 it to mono_arch_.... Add get_delegate_method_ptr implementation for x86.
11066 * mini-amd64.h mini.h mini-amd64.c tramp-amd64.c (mono_amd64_get_vcall_slot_addr):
11067 Rename this to mono_arch....
11068 (mono_amd64_get_delegate_method_ptr_addr): Ditto.
11070 * mini-amd64.c (mono_amd64_get_delegate_method_ptr_addr): New helper function.
11072 * mini-amd64.c (emit_call): If both the caller and the callee is
11073 guaranteed to have 32 bit addresses, emit a normal call.
11075 * tramp-amd64.c: Adapt to changes in mini-amd64.c.
11077 * tramp-amd64.c (amd64_magic_trampoline): Remove patching of trampolines.
11078 * tramp-amd64.c (amd64_magic_trampoline): Add support for patching the
11079 method_ptr inside delegates.
11081 2005-02-26 Zoltan Varga <vargaz@freemail.hu>
11083 * mini.c (mono_jit_free_method): Free the method info even if the native code is
11084 invalidated. Fixes #73001.
11086 * mini.c: Add a proper icall wrapper for mono_delegate_ctor.
11088 * mini-x86.c: Only use stdcall for pinvokes on windows.
11090 Thu Feb 24 15:22:30 CET 2005 Paolo Molaro <lupus@ximian.com>
11092 * mini.c, mini.h: make mono_lmf_addr a fast-access thread var.
11093 * mini-x86.c: remove unreliable __thread var offset detection,
11094 use the correct accessors and enable by default.
11096 2005-02-23 Zoltan Varga <vargaz@freemail.hu>
11098 * mini.c (mono_jit_free_method): Fix memory leak.
11100 2005-02-22 Zoltan Varga <vargaz@freemail.hu>
11102 * mini.c (mono_method_to_ir): Allocate a GOT var for THROW and RETHROW.
11104 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
11106 * cpu-amd64.md: Fix lengths of atomic opcodes.
11108 Mon Feb 21 16:52:20 CET 2005 Paolo Molaro <lupus@ximian.com>
11110 * driver.c: try to not imply using ICU is any good.
11112 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
11114 * mini-amd64.c (mono_arch_get_inst_for_method): Implement more
11115 functions as inline ops.
11117 * mini-ops.h inssel-amd64.brg cpu-amd64.md mini-amd64.c: Implement
11118 some Interlocked functions as inline ops.
11120 * mini.c (move_basic_block_to_end): Fix bug in last patch.
11122 * mini.h (MonoBasicBlock): Reorganize fields a bit.
11124 * mini-ops.h inssel.brg: Add OP_NOT_REACHED.
11126 * mini.c: Add support for OP_NOT_TAKEN.
11128 * mini-amd64.h mini-amd64.c: Add support for passing/returning small
11129 structures in registers for pinvoke wrappers.
11131 * mini-amd64.c: Fix warnings.
11133 2005-02-19 Zoltan Varga <vargaz@freemail.hu>
11135 * mini.h (MonoCompile): Add 'ret_var_is_local' field.
11137 * mini.h mini.c (mono_arch_create_vars): Add new arch specific hook.
11139 * mini.c (NEW_RETLOADA): If the ret variable is a local, use its
11140 address instead of loading the address from it.
11142 * mini-x86.c: Add support for returning small structs in registers
11143 on Win32. Fixes part of #70864.
11145 2005-02-18 Zoltan Varga <vargaz@freemail.hu>
11147 * trace.c (get_token): Improve error checking.
11149 2005-02-17 Zoltan Varga <vargaz@freemail.hu>
11151 * jit-icalls.c (mono_ldvirtfn): Explicitly check for a NULL obj here.
11153 2005-02-17 Sebastien Pouliot <sebastien@ximian.com>
11155 * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
11156 it can be reused for MonoClass.
11157 * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
11160 2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
11162 * mini.c: Fixed 2 cases where I sent a MonoMethod to managed code
11163 instead of a MonoReflectionMethod. The method information wasn't used
11164 when displaying SecurityException details (but will be now).
11166 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
11168 * Makefile.am : windows build fix.
11170 2005-02-14 Zoltan Varga <vargaz@freemail.hu>
11172 * iltests.il: Add new regression test.
11174 * mini.c (mono_method_to_ir): Allocate a GOT var in CEE_NEWOBJ. Fixes
11177 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
11179 * mini.c: Moved linkdemand check into helper function check_linkdemand
11180 to allow reuse for all intructions (CALL, CALLVIRT, NEWOBJ, JMP,
11183 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
11185 * declsec.c: Added statistics counter for different kinds of
11187 * mini.h: Added CAS statistic counters to MonoJitStats. Removed unused
11188 (and commented) declaration.
11189 * mini.c: Added statistics counter for security Demand code
11190 generation. Added display of security statistics.
11192 2005-02-13 Zoltan Varga <vargaz@freemail.hu>
11194 * declsec.c (mono_declsec_linkdemand_aptc): Applied patch from Robert Jordan (robertj@gmx.net).
11195 Fix compilation errors under gcc-2.95.
11197 2005-02-12 Ben Maurer <bmaurer@ximian.com>
11199 * mini.c, driver.c: Use the new jit trampoline hashtable
11201 Fri Feb 11 18:47:11 CET 2005 Paolo Molaro <lupus@ximian.com>
11203 * mini.c, jit-icalls.c: use the managed implementation of memcpy, too.
11205 2005-02-11 Martin Baulig <martin@ximian.com>
11207 * debug-mini.c (mono_debug_close_method): Free the line number array.
11209 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
11211 * aot.c: Break up large methods into smaller ones. Share GOT slots for
11214 * mini.h: Bump AOT file format version.
11216 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
11218 * declsec.c: Added LinkDemand support and it's special cases for ECMA,
11220 * declsec.h: Added macros to get/set lazyly initialized security
11221 informations about assemblies. Added new enum for different type of
11222 possible LinkDemand violation. Added function to check LinkDemands.
11223 * mini.h: Added a field to MonoCompile to hold any security violation
11224 detected when JITting a method (so it can be thrown later).
11225 * mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL
11226 and CEE_CALLVIRT. Added code to throw exception at the end of
11227 mini_method_compile (note: the exception is unhandled right now).
11229 Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
11231 * mini.c, jit-icalls.c: use the managed implementation of
11232 memset for initobj and memset, to avoid managed <-> unmanaged
11235 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
11237 * inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
11238 optimization if it would need a GOT var.
11240 * basic.cs: Add tests for constant propagation and switch statements.
11242 * ssa.c: Fix out-of-range constant propagation and switch statements.
11244 2005-02-09 <vargaz@freemail.hu>
11246 * inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.
11248 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
11250 * cpu-amd64.md (load_membase): Fix max length of load_membase.
11252 Tue Feb 8 18:21:11 CET 2005 Paolo Molaro <lupus@ximian.com>
11254 * mini.c: update to new signature of mono_class_get_allocation_ftn().
11256 2005-02-06 Neale Ferguson <NealeFerguson@earthlink.net>
11258 * cpu-s390.md, mini-s390.c: Correct bug with register usage on certain
11259 arithmetic operations.
11261 Sun Feb 6 07:10:12 EST 2005 Paolo Molaro <lupus@ximian.com>
11263 * mini-ppc.c: add a workaround for broken user code that
11264 DllImports vararg functions with non-vararg signatures.
11266 2005-02-05 Zoltan Varga <vargaz@freemail.hu>
11268 * mini.c (mono_jit_compile_method_inner): Add detection and a
11269 meaningfull error message for assemblies written in Managed C++.
11271 * tramp-amd64.c mini-amd64.h: Add support for
11272 create_trampoline_from_token ().
11274 * aot.c mini-x86.c abcremoval.c: Applied patch from
11275 Robert Jordan (robertj@gmx.net). Fix compilation errors under gcc-2.95.
11277 2005-02-04 Zoltan Varga <vargaz@freemail.hu>
11279 * mini.h mini.c mini-x86.h tramp-x86.c: Add a new kind of trampoline
11280 which takes a MonoImage/token as parameter instead of a MonoMethod.
11282 * aot.c: Use the new trampoline for initializing vtables.
11284 * aot.c: Add support for ldfld/stfld_remote wrappers.
11286 * mini-ops.h cpu-pentium.md inssel-x86.brg mini-x86.c: Add optimized
11287 rules for compare <MEM>, IMM.
11289 * mini.h (MONO_AOT_FILE_VERSION): Bump it.
11291 * aot.c: Handle inherited finalizers correctly.
11293 2005-02-03 Zoltan Varga <vargaz@freemail.hu>
11295 * inssel.brg (stmt): Add a missing _setup_... ().
11297 * aot.c: Save some parts of the class state to the AOT file and use it
11298 to recompute that state when a class is initialized.
11300 * mini.c: Install AOT hooks into the runtime.
11302 * mini.h: Bump AOT file format version.
11304 * mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
11307 * iltests.il: Add new test.
11309 Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
11311 * mini.c: fix typo.
11313 Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
11315 * mini.c: setup the statistical profiler in the thread attach
11316 callback to cope with the new single thread code.
11318 Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
11320 * mini-ppc.c: ensure we have enough room for the profiler
11321 calls (fixed bug#72084).
11323 2005-02-02 Zoltan Varga <vargaz@freemail.hu>
11325 * aot.c: Get rid of the MonoAotMethod structure and the hashtable holding
11328 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11330 * driver.c: Re-enabled SSAPRE (two commits, I was just dumb).
11332 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11334 * ssapre.c: Fixed an issue with down safety (this allows IronPython
11335 to succesfully execute parrotbench).
11336 * ssapre.h: Likewise.
11338 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11340 * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
11341 variable for stores to method arguments (fixes a SSAPRE issue).
11343 Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
11345 * mini.c: handle value types in dup, fixes gen-112.cs.
11347 Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
11349 * mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
11350 sequence for calls in dynamic methods to avoid thunks.
11352 Tue Feb 1 11:44:01 CET 2005 Paolo Molaro <lupus@ximian.com>
11354 * mini.c: correctly remove dynamic methods from the hashtable.
11356 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11358 * driver.c: Disabled SSAPRE until fix the bug that appears
11359 in IronPython's parrotbench.
11361 2005-01-31 Zoltan Varga <vargaz@freemail.hu>
11363 * aot.c (mono_compile_assembly): Get rid of Skip (other) messages.
11365 * mini.c (mono_method_to_ir): Revert the previous change.
11367 * mini.c (mono_method_to_ir): Do not inline ldfld and stfld wrappers
11368 when AOT compiling.
11370 * tramp-x86.c (x86_magic_trampoline): Avoid calls to
11371 mono_jit_info_table_find () etc. when running under valgrind.
11373 * inssel.brg: Fix warnings.
11375 * mini-exceptions.c: Fix warnings.
11377 2005-01-31 Martin Baulig <martin@ximian.com>
11379 * driver.c (compile_all_methods_thread_main): Don't try to compile
11380 generic methods or anything which has type parameters.
11382 2005-01-30 Zoltan Varga <vargaz@freemail.hu>
11384 * aot.c: Avoid costly calls to mono_method_full_name in tracing code and fix memory leaks.
11386 * TestDriver.cs: Add --verbose flags.
11388 * graph.c ssa.c: Fix 64 bit warnings.
11390 * abcremoval.h ssapre.h abcremoval.c ssapre.c mini.c tramp-amd64.c
11391 trace.c mini-exceptions.c linear-scan.c inssel-amd64.brg inssel.brg:
11392 Fix 64 bit warnings.
11394 * mini-amd64.c (mono_arch_output_basic_block): Fix uninitialized
11395 variable not spotted by gcc.
11397 * mini-amd64.c inssel-amd64.brg: Applied patch from
11398 Willibald Krenn <Willibald.Krenn@gmx.at>. Clean up usage of
11399 X86_COMPARE_MEMBASE opcodes.
11401 * exceptions-amd64.c (mono_arch_find_jit_info): Fix AMD64 build.
11403 2005-01-29 Ben Maurer <bmaurer@ximian.com>
11405 * *: MonoMethod->signature might be NULL now. You *MUST* use
11406 mono_method_signature.
11408 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
11410 * driver.c (compile_all_methods_thread_main): Compile the methods
11411 without invoking cctors.
11413 Fri Jan 28 18:28:26 CET 2005 Paolo Molaro <lupus@ximian.com>
11415 * mini.c: remove ben's "optimizations" to dup+stloc (bug #71905).
11416 * basic-calls.cs: test for the above.
11418 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
11420 * mini.c mini-exceptions.c aot.c exceptions-*.c: Update after
11421 MonoJitInfo changes.
11423 2005-01-27 Zoltan Varga <vargaz@freemail.hu>
11425 * mini-exceptions.c (mono_handle_exception): Compute the stack trace
11426 eagerly if it contains dynamic methods.
11428 * mini-exceptions.c (ves_icall_System_Exception_get_trace): New icall.
11430 * mini-exceptions.c (mono_handle_exception): Avoid computing the stack
11431 trace, it is now computed by an icall from trace_ips.
11433 * mini-exceptions.c: Fix a warning.
11435 Thu Jan 27 13:38:34 CET 2005 Paolo Molaro <lupus@ximian.com>
11437 * mini-exceptions.c: don't bother getting stack trace info if
11438 it's not going to be used.
11440 2005-01-27 Raja R Harinath <rharinath@novell.com>
11442 * Makefile.am (common_sources): Add ssapre-cee-ops.h and
11445 2005-01-26 Zoltan Varga <vargaz@freemail.hu>
11447 * mini.c (remove_block_if_useless): Only print debug stuff with -v -v.
11449 * aot.c: Avoid calling mono_method_get_header () if not needed.
11451 * mini.h: Bump AOT file format version.
11453 * mini.c (mono_emit_native_call): Allocate a GOT var here.
11455 * mini.c (mono_print_tree): Print more info for calls.
11457 2005-01-26 Sebastien Pouliot <sebastien@ximian.com>
11459 * declsec.h: Remove warning by adding missing include for marshal.h
11461 2005-01-26 Martin Baulig <martin@ximian.com>
11463 * mini.c (mono_method_to_ir): In CEE_UNBOX_ANY, don't increase
11466 2005-01-25 Zoltan Varga <vargaz@freemail.hu>
11468 * mini-amd64.c (mono_arch_call_opcode): Add missing MONO_SSA_LOAD/STORE
11471 * ssa.c (mono_ssa_compute): Fix crashes when using AOT.
11473 * aot.c (mono_compile_assembly): Fix a warning.
11475 2005-01-25 Sebastien Pouliot <sebastien@ximian.com>
11477 * declsec.c: Look for security attributes on the original MonoMethod
11478 (and not the wrapped one). This fix permissions on icalls.
11480 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
11482 * mini-amd64.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
11484 * mini.c (mono_allocate_stack_slots): Add a fixme.
11486 * mini-x86.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
11488 Sun Jan 23 16:16:48 CET 2005 Paolo Molaro <lupus@ximian.com>
11490 * inssel.brg: optimize casts of sealed types (more
11491 optimizations waiting for fixes in remoting).
11493 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
11495 * inssel.brg (stmt): Add another dummy rule.
11497 * driver.c: Fix warnings.
11499 * driver.c (mono_main): If running under valgrind, instruct glib to use
11500 the system allocation functions so valgrind can track the memory
11501 allocated by the g_... functions.
11503 * inssel.brg (stmt): Add DUMMY rule for OP_DUMMY_STORE.
11505 * mini-ops.h: Add OP_DUMMY_STORE opcode.
11507 * mini.h (MONO_BBLOCK_IS_IN_REGION): New helper macro.
11509 * liveness.c: Handle OP_DUMMY_STORE. Enable register allocation for
11510 variables in try regions.
11512 * mini.c (mini_method_compile): Don't disable optimizations on large
11513 methods when AOT compiling.
11515 * mini.c (mono_allocate_stack_slots): New arch independent method to
11516 allocate stack slots. Not yet used.
11518 2005-01-22 Ben Maurer <bmaurer@ximian.com>
11520 * debug-mini.c (mono_debug_close_method): Plug some leaks.
11522 Sat Jan 22 13:41:51 EST 2005 Paolo Molaro <lupus@ximian.com>
11524 * mini-ppc.c: make the branch info relative as the code
11525 buffer can be reallocated.
11527 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>
11529 * aot.c: Allow decoding of the new MONO_PATCH_INFO_DECLSEC.
11530 * driver.c: Removed the AOT/security restriction. Now initialize the
11531 security manager (in metadata) if --security is used.
11532 * mini.c|h: Add the MONO_PATCH_INFO_DECLSEC code to use the index,
11533 rather than the pointer to declarative security, when AOT is used.
11535 Sat Jan 22 09:35:19 EST 2005 Paolo Molaro <lupus@ximian.com>
11537 * mini.h, mini-ppc.h, mini-ppc.c: updated to use out of line
11538 basic blocks, reduced intrinsic exception throwing code size.
11540 2005-01-22 Miguel de Icaza <miguel@ximian.com>
11542 * driver.c (mini_usage): Reorder the usage screen.
11544 2005-01-21 Zoltan Varga <vargaz@freemail.hu>
11546 * mini.c (mono_resolve_patch_target): Fix warning.
11548 2005-01-20 Zoltan Varga <vargaz@freemail.hu>
11550 * mini-x86.c (mono_arch_local_regalloc): Fix bug introduced by
11553 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
11555 * mini-amd64.c (mono_arch_local_regalloc): Revert last patch as it
11556 breaks the amd64 build.
11558 * mini-x86.c (mono_arch_local_regalloc): Fix bug in div/rem
11559 register allocation. Fixes #71454.
11561 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
11563 * arrays.cs: Add new regression test.
11565 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11567 * ssapre.c: Turned usage of snprintf to GString.
11568 * ssapre.h: disabled MONO_APPLY_SSAPRE_TO_SINGLE_METHOD
11569 (I left it on by mistake in my previous commit).
11571 Thu Jan 20 12:00:45 CET 2005 Paolo Molaro <lupus@ximian.com>
11573 * mini.c, cfold.c, basic-calls.cs: preserve side effects
11574 on cond branch optimization (fixes bug# 71515).
11576 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11578 * abcremoval.c: Fixed bug 71062.
11579 * abcremoval.h: Likewise.
11581 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11583 * mini.c: Added a new functionality to optimize_branches, the removal
11584 of useless basic blocks, and fixed some problem in the removal of
11585 critical edges; some utility functions added for both purposes.
11586 * ssapre.c: Added complex expression support, and fixed bug 70637.
11587 * ssapre.h: Likewise.
11588 * ssapre-cee-ops.h: Added file with list of "CEE_*" opcodes
11590 * ssapre-mini-ops.h: Likewise, but for "OP_*" opcodes.
11591 * driver.c: Re-enabled SSAPRE.
11593 2005-01-19 Martin Baulig <martin@ximian.com>
11595 * mini.c (mono_method_to_ir): Call mono_get_inflated_method() on
11596 the result of mono_get_method_constrained().
11598 2005-01-18 Neale Ferguson <NealeFerguson@earthlink.net>
11600 * exceptions-s390.c tramp-s390.c: Allocate code using the global code
11603 2005-01-18 Geoff Norton <gnorton@customerdna.com>
11605 * jit-icalls.c (mono_llmult_ovf): Fix other overflow conditions to
11606 be detected. Fixes #59296.
11608 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
11610 * mini-amd64.c (mono_arch_output_basic_block): Remove some assertions
11611 which can happen. Fixes #71361.
11613 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
11615 * exceptions-sparc.c tramp-sparc.c: Allocate code using the global code
11618 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
11620 * mini.c (mono_create_jump_trampoline): Revert last change as it causes
11621 appdomain-unload.exe to fail.
11623 * mini.c: Fix some memory leaks.
11625 Mon Jan 17 16:16:23 CET 2005 Paolo Molaro <lupus@ximian.com>
11627 * inssel.brg: handle the new size of rank, idepth, max_interface_id.
11628 Fixed bug and sped up some codepaths.
11630 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
11632 * mini.c: Fix some memory leaks.
11634 * exceptions.cs basic-long.cs: Add test for checked ulong->int
11637 * inssel-long.brg: Implement long_conv_to_ovf_i4_un. Fixes #71319.
11639 * inssel-long.brg: Fix conv.ovf.i8 when run on an int32. Fixes
11642 * iltests.il: Add regression test for #71320.
11644 2005-01-16 Zoltan Varga <vargaz@freemail.hu>
11646 * mini.c (mono_codegen): Fix installation of profiler hooks.
11648 * mini-sparc.c mini-amd64.c: Don't allocate stack space for dead vars.
11650 Sun Jan 16 12:19:35 CET 2005 Paolo Molaro <lupus@ximian.com>
11652 * mini.h, mini.c, cfold.c: optimize access to enum
11653 readonly fields, too. Eval conditional branches if possible
11654 to perform unreachable code removal in more cases.
11656 2005-01-15 Zoltan Varga <vargaz@freemail.hu>
11658 * tramp-amd64.c exceptions-amd64.c: Use the new global code manager.
11660 * mini.c (mono_global_codeman_reserve): New function to allocate code memory from a global
11663 * tramp-x86.c mini-x86.c exceptions-x86.c: Allocate all code memory so mono works with
11664 WinXP DEP. Fixes #71244.
11666 2005-01-14 Zoltan Varga <vargaz@freemail.hu>
11668 * inssel.brg: Allways convert CEE_CONV_OVF_I4 to a move on 64 bit platforms. Fixes #71236.
11670 2005-01-13 Zoltan Varga <vargaz@freemail.hu>
11672 * mini-x86.c (mono_arch_output_basic_block): Fix OP_ATOMIC_ADD_NEW_I4.
11674 2005-01-11 Zoltan Varga <vargaz@freemail.hu>
11676 * mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo
11679 * mini.h: Bump AOT version.
11681 * mini.h (MonoCompile): Change exvar to a hash table.
11683 * mini.c: Allocate a separate exvar for each handler block.
11685 * mini.c: Get rid of the computation of filter_lengths, its not needed.
11687 * mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
11688 ex var with the pending exception and only throw if the two are equal.
11691 * exceptions.cs: Add tests for rethrow and nested catch clauses.
11693 * mini-x86.c: Fix warnings.
11695 * Makefile.am (common_sources): Move mini-exceptions.c here as it is
11696 used by all the ports now.
11698 * aot.c: Add write-symbols and save-temps options.
11700 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
11702 * mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.
11704 Mon Jan 10 16:11:16 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
11706 * mini-ops.h, inssel-s390.brg, cpu-s390.md: Support OP_ATOMIC__xxx
11709 * tramp-s390.c: Check vtable slot belongs to the domain.
11711 * mini-exceptions.c, exceptions-s390.c: Standardize exception handling
11712 as per other platforms.
11714 * mini-s390.c, mini-s390.h: Enable out-of-line bblock support.
11716 Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
11718 * driver.c: we don't run the Main() code in a subthread anymore.
11720 Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
11722 * mini.c: added experimental rtc support in the statistical
11723 profiler: if the user has the permission, more accurate statistics
11724 are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
11725 The MONO_RTC value must be restricted to what the linux rtc allows:
11726 power of two from 64 to 8192 Hz.
11728 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
11730 * mini-x86.c (mono_arch_emit_exceptions): Fix #71121.
11732 Mon Jan 10 05:20:49 EST 2005 Paolo Molaro <lupus@ximian.com>
11734 * mini-ppc.c: better icache flush for smp.
11736 2005-01-09 Zoltan Varga <vargaz@freemail.hu>
11738 * mini-amd64.c (emit_move_return_value): Fix memory leak.
11740 * mini-x86.c (get_call_info): Add the get_call_info () code from the
11741 amd64 port, not yet used.
11743 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
11745 * mini.c (mono_method_to_ir): Disable inlining of ldfld wrappers with
11748 2005-01-07 Sebastien Pouliot <sebastien@ximian.com>
11750 * driver.c: Added --security option to activate the security manager.
11751 Right now this will allow code generation for declarative demands and
11752 is disabled when AOT is specified.
11753 * mini.c: Add code generation for declarative security demands.
11754 * mini.h: Add mono_use_security_manager as an extern gboolean.
11756 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
11758 * aot.c (mono_compile_assembly): Speed up compilation a bit by
11759 emitting more dense assembly code.
11761 * mini-sparc.c mini-sparc.h exceptions-sparc.c: Enable optimized corlib
11762 exception throwing stuff.
11764 2005-01-06 Zoltan Varga <vargaz@freemail.hu>
11766 * mini-sparc.c (mono_arch_emit_exceptions): Fix typo in previous patch. Remove
11769 * mini-amd64.c (mono_arch_emit_exceptions): Remove duplicate epilog stuff
11770 left in by mistake.
11772 * driver.c (EXCLUDED_FROM_ALL): Disable SSAPRE until bug #70637 is
11775 * mini-sparc.h mini-sparc.c: Enable out-of-line bblock support.
11777 * tramp-*.c: Only patch vtable slots if the object is in the current
11778 domain. Fixes appdomain-unload.exe.
11780 * mini-amd64.c mini-amd64.h: Enable out-of-line bblock support.
11782 * mini-amd64.c (mono_arch_local_regalloc): Port regalloc fix from
11785 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
11787 * mini.c (reverse_branch_op): New helper function.
11789 * mini.c (optimize_branches): Run the new optimization only on
11790 platforms which support it. Also reverse all kinds of branches.
11792 * mini.h (MonoBasicBlock): Add 'out_of_line' field.
11794 * mini.c (mono_method_to_ir): Set 'out_of_line' for bblocks which have
11797 * mini.c (optimize_branches): Reverse not-equals branches if the false
11798 bblock is a throw. This happens a lot of time with argument checking in
11801 * mini.c (mono_codegen): Add support for placing basic blocks after
11802 the function epilogue.
11804 * mini-x86.c mini-x86.h: Add support for placing basic blocks after the
11807 2005-01-05 Miguel de Icaza <miguel@ximian.com>
11809 * mini.c (setup_stat_profiler): Only set this up if the platform
11810 supports ITIMER_PROF.
11812 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
11814 * mini-x86.c (mono_arch_local_regalloc): Fix a bug introduced by the
11817 * inssel.brg: Fix a warning.
11819 Wed Jan 5 16:40:18 CET 2005 Paolo Molaro <lupus@ximian.com>
11821 * mini.c: added support for statistical profiler
11822 (run with: --profile=default:stat).
11824 2005-01-04 Zoltan Varga <vargaz@freemail.hu>
11826 * mini-x86.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Enable this on x86.
11828 * mini-x86.c cpu-pentium.md: More fixes for usage of global registers.
11830 * mini-amd64.c (mono_arch_local_regalloc): Port some regalloc fixes
11831 related to global registers from the amd64 port.
11833 2005-01-03 Zoltan Varga <vargaz@freemail.hu>
11835 * mini.c (mono_method_to_ir): Handle MONO_CLASSCONST.
11837 * mini-amd64.c (mono_arch_local_regalloc): Fix some regalloc problems
11838 with global registers.
11839 (mono_arch_output_basic_block): Fix SWITCH in the AOT case.
11841 * aot.c (emit_method_code): Fix the 'method emitted as' messages.
11843 2004-12-31 Zoltan Varga <vargaz@freemail.hu>
11845 * debug-mini.c (encode_value): Fix off-by-one.
11847 * aot.c (encode_value): Likewise.
11849 * mini.c (mono_method_to_ir): Disable AOT for methods containing LDPTR.
11851 2004-12-30 Zoltan Varga <vargaz@freemail.hu>
11853 * mini.c linear-scan.c: Add a workaround for the mcs crash when using
11856 * aot.c (mono_aot_load_method): Free up patch info if no longer needed.
11858 * aot.c (emit_method_info): Increase size of temp buffer.
11860 * mini-x86.c cpu-pentium.md mini.c: Load fp constants differently in
11863 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
11865 * aot.c (emit_method_info): Fix build.
11867 * aot.c: Further rework of the AOT file format to reduce the size of
11868 the method info data.
11870 * mini.h: Bump AOT file format version.
11872 2004-12-27 Martin Baulig <martin@ximian.com>
11874 * mini.c (mini_get_method): New static method; call
11875 mono_get_method_full() and mono_get_inflated_method().
11876 (mono_method_to_ir): Use mini_get_method() instead of
11877 mono_get_method_full().
11879 2004-12-26 Patrik Torstensson <patrik.torstensson@gmail.com>
11881 * mini-x86.c (atomic ops): fixed bug interlocked bug #70784.
11883 2004-12-25 Zoltan Varga <vargaz@freemail.hu>
11885 * inssel.brg (ldind_to_load_membase): Handle CEE_LDIND_I8.
11887 * inssel-amd64.brg: Add some optimization rules.
11889 2004-12-24 Ben Maurer <bmaurer@ximian.com>
11891 * aot.c: Remove the use of MonoGHashTable and other GC stuff. The
11892 standard not GC'd stuff is fine.
11894 2004-12-24 Zoltan Varga <vargaz@freemail.hu>
11896 * aot.c: Rework the AOT file format to get rid of most of the global
11897 symbols. This reduces the size of the mscorlib.dll.so by 1MB.
11899 * mini.h: Bump AOT file format version.
11901 2004-12-23 Zoltan Varga <vargaz@freemail.hu>
11903 * mini.h: Bump AOT file format version.
11905 * aot.c (mono_aot_is_got_entry): New function to determine if an
11906 address is inside a GOT.
11908 * aot.c mini-x86.c tramp-x86.c: Make all patches use the GOT.
11910 * cpu-pentium.md: Increase the maximum size of some instructions which
11911 might involve a got access.
11913 * mini.c (get_method_from_ip): Another debug helper function.
11915 * mini.c: Call mono_get_got_var () in a couple places. Handle the case
11916 when got var accesses are created during the decompose phase.
11918 * mini-sparc.c: Change mono_compile_aot to cfg->compile_aot.
11920 * mini.h mini.c mini-x86.c aot.c mini-sparc.c: Add a 'compile_corlib'
11921 argument mini_compile_method and to MonoCompile, and use this to
11922 determine whenever a given method is compiled for AOT. This allows the
11923 other methods compiled during AOT compilation to be free of AOT stuff,
11924 so the backends does not need to add special support for them by
11925 creating a fake GOT etc.
11927 * mini-x86.c (mono_arch_patch_code): Remove fake got stuff as it is no
11930 2004-12-21 Ben Maurer <bmaurer@ximian.com>
11932 * mini.c (mono_method_to_ir): It turns out that some of the
11933 x-appdomain wrappers are lax with types, so just ignore this for
11936 * inssel.brg (OP_CHECK_ARRAY_TYPE): Optimize this by only looking
11937 at the vtable->klass. If it is non-shared code we can just use the
11940 Tue Dec 21 17:43:06 CET 2004 Paolo Molaro <lupus@ximian.com>
11942 * mini-ppc.c: access MonoDomain from tls, too.
11944 2004-12-21 Sebastien Pouliot <sebastien@ximian.com>
11946 * declsec.c: Removed unused variable (and related warning ;-)
11948 2004-12-21 Ben Maurer <bmaurer@ximian.com>
11950 * iltests.il: New test for LDELEMA on an array of ref types.
11952 * mini.c (CEE_LDELEMA): We need to emit OP_CHECK_ARRAY_TYPE for
11953 all ldelema's on reftypes.
11954 (check_call_signature): Remove the OP_CHECK_ARRAY_TYPE from here,
11955 it was the wrong place to put it.
11957 * mini-x86.c (mono_arch_output_basic_block): Just use ecx as the
11958 register to pop to make this cleaner, at the request of Paolo.
11960 2004-12-20 Ben Maurer <bmaurer@ximian.com>
11962 * mini-ops.h (OP_GETHASHCODE): New op.
11964 * inssel.brg (OP_GETHASHCODE): Emit code for the new opcode
11966 * mini.c (mini_get_inst_for_method): Create the intrinsic hash
11969 For a microbenchmark, this reduces the cost of Hashtable.get_Item
11972 * mini-x86.c (mono_arch_output_basic_block): Rather than
11980 The first is 3 bytes while the second is 1. This saves 36 kb on
11981 mscorlib, quite a big saving. When bootstraping mcs, I was able to
11982 see a small boost because of icache locality.
11984 * cfold.c (FOLD_BINOPCOMM): Kill add foo, 0
11986 Mon Dec 20 12:19:40 EST 2004 Paolo Molaro <lupus@ximian.com>
11988 * Makefile.am, mini-ppc.h, mini-exceptions.c, exceptions-ppc.c:
11989 started code sharing with the generic code.
11991 Mon Dec 20 11:08:06 EST 2004 Paolo Molaro <lupus@ximian.com>
11993 * mini-ppc.c, cpu-g4.md: added code for direct access to
11996 Mon Dec 20 10:58:28 EST 2004 Paolo Molaro <lupus@ximian.com>
11998 * mini-ops.h, inssel-x86.brg, cpu-amd64.md, inssel.brg, inssel-amd64.brg,
11999 mini-amd64.c, mini-x86.c, cpu-pentium.md: renamed OP_X86_TLS_GET
12002 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
12004 * declsec.c|h: Added functions to cache the declarative stack modifiers
12005 in MonoJitInfo and to create a security frame from a MonoJitInfo
12007 * mini.c: Initialize jinfo->cas_inited to FALSE when MonoJitInfo is
12008 created. Register internal calls for System.Security.SecurityFrame::
12009 _GetSecurityFrame and _GetSecurityStack.
12010 * mini.h: Added definition for new icalls (in mini-exceptions.c) and
12011 the definitions for the new stack walk/callback mechanism.
12012 * mini-exceptions.c: Added internal call GetSecurityFrame (to get the
12013 first security frame for LinkDemands and InheritanceDemands) and
12014 GetSecurityStack for Demands. Both use the new mono_walk_stack code
12016 * mini-x86.h, mini-amd64.h, mini-sparc.h: Architecture specific stack
12017 walk initialization (lupus).
12019 2004-12-20 Ben Maurer <bmaurer@ximian.com>
12021 * mini.c (mono_method_to_ir): In CEE_DUP, handle the dup / stloc
12023 (handle_loaded_temps): Do not create a temporary variable for
12024 things that we know are temps. They will never be modified.
12025 (mono_spill_call): Set MONO_INST_IS_TEMP
12026 (mono_emulate_opcode): ditto
12028 (mono_method_to_ir.CEE_DUP): ditto
12030 2004-12-19 Ben Maurer <bmaurer@ximian.com>
12032 * mini.c (type_to_eval_stack_type): Make this handle the void type
12033 (mono_emit_call_args): set the call->type with type_to_eval_stack_type
12034 (emit_tree): use ip_in_bb to special case some common idioms
12035 Update all callers to pass in the IP.
12036 (mono_method_to_ir): Make CEE_CALL* do the above as well.
12038 This gives us a nice 2% speedup in mcs bootstrap.
12040 * mini-x86.c (peephole_pass): Peephole pass to make
12049 * mini.c (ip_in_bb): new method.
12050 (mono_method_to_ir): use this method rather than doing the hash
12053 * linear-scan.c (mono_linear_scan): When expiring actives, you
12054 don't need to keep around variables that expire on this
12055 instruction. This makes it so that:
12058 store (ebx add (ebx, 1))
12062 2004-12-19 Zoltan Varga <vargaz@freemail.hu>
12064 * mini.c (mono_method_to_ir): Optimize the common ldobj+stloc
12065 combination to avoid doing two copies. Fix up problems with previous
12068 * mini.c: Fix 64 bit warnings.
12070 * mini-x86.c (INST_IGNORES_CFLAGS): Add OP_STOREI4_MEMBASE_REG.
12072 2004-12-17 Zoltan Varga <vargaz@freemail.hu>
12074 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Port exception handling
12075 changes from the x86 code.
12077 * mini.h: Add prototype for mono_arch_get_throw_corlib_exception ().
12079 2004-12-16 Zoltan Varga <vargaz@freemail.hu>
12081 * mini-x86.c (mono_arch_emit_epilog): Optimize the corlib exception
12082 throwing code to reduce its size, unify the AOT and non-aot code and
12083 get rid of relocations in the AOT case.
12085 * mini-x86.h mini.c exceptions-x86.c
12086 (mono_arch_get_throw_corlib_exception): New arch specific function to
12087 raise corlib exceptions which doesn't require relocations in the
12090 * aot.c (emit_method): Handle PATCH_INFO_NONE as well.
12092 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
12094 * mini.c (mono_emit_method_call): Only allocate the got var when it is
12097 * mini-x86.c (mono_arch_patch_code): Add missing PATCH_INFO_METHOD_REL
12100 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12102 * mini-x86.c, cpu-pentium.md, inssel-x86.brg: Fixed bug
12103 with add function when used from Inc/dec atomic
12104 functions. Re-enabled optimization on x86.
12105 * mini-ops.h: renamed atomic_add functions to
12106 allow _add to match the Interlocked::Add and
12107 _add_next to match Interlocked::Inc/Dec.
12109 2004-12-15 Massimiliano Mantione <massi@ximian.com>
12111 * mini.c: Fixed a subtle bug in mono_method_to_ir, about the
12112 linking of BBs to the end BB, and enabled SSAPRE also with
12113 consprop and copyprop (which was prevented by that bug).
12115 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12117 * mini-x86.c: disabling the Interlocked optimizing code.
12119 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
12121 * aot.c (load_aot_module): Move reading of got_addr after the AOT
12122 file version check.
12124 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12126 * mini-x86.c, inssel-x86.brg, cpu-pentium.md: removed _imm
12127 interlocked optimization due lack of support on x86, rewrote
12128 exchange to take into account that base may be in eax.
12130 xsp works again; activated Interlocked optimizing code.
12132 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
12134 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
12136 2004-12-13 Zoltan Varga <vargaz@freemail.hu>
12138 * mini-ops.h: Add new opcodes.
12140 * mini.h: Add new patch types. Add got_var to MonoCompile.
12142 * mini.h mini-x86.c mini-amd64.c aot.c: Rename
12143 mono_arch_get_aot_patch_offset () to mono_arch_get_patch_offset () and
12144 make it work with all kinds of patchable code.
12146 * inssel.brg inssel-x86.brg: Add new rules dealing with computing the
12147 address of the GOT, and referencing entries in the GOT.
12149 * mini.c: Add code to load the GOT address if needed by an opcode.
12151 * aot.c mini-x86.h mini-x86.c cpu-pentium.md: Add support for position
12152 independent AOT code on the x86 using an elf-style Global Offset Table.
12154 2004-12-14 Raja R Harinath <rharinath@novell.com>
12156 * Makefile.am (RUNTIME): Set MONO_SHARED_DIR.
12158 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12160 * mini-x86.c: disabling the Interlocked optimizing code. It segfaults
12163 2004-12-13 Patrik Torstensson <patrik.torstensson@gmail.com>
12165 * mini-x86.c,mini-ops.h,inssel-x86.brg,cpu-pentium.md: Implementation
12166 of Interlocked:Increment/Decrement/Add as inline ops.
12167 (mini-x86.c (mono_arch_get_inst_for_method and mono_arch_output_basic_block))
12169 2004-12-12 Geoff Norton <gnorton@customerdna.com>
12171 * exceptions-ppc.c: Reorder code so gcc3.4 can compile it
12172 * mini-ppc.c: Unify mono_arch_patch_code with changes in r37636.
12174 2004-12-12 Duncan Mak <duncan@ximian.com>
12176 * mini-ppc.c (mono_arch_patch_code): Hopefully made this build
12177 again. `patch_info->table_size' is no longer valid after Zoltan's
12180 2004-12-12 Martin Baulig <martin@ximian.com>
12182 * mini.c (mono_method_to_ir): Only call mono_debug_init_method()
12183 if we are the "real" method, ie. not an inlined method inside it.
12185 2004-12-11 Ben Maurer <bmaurer@ximian.com>
12187 * mini.c (CEE_LDSFLD): Make sure that the vtable has been init'd
12188 before we look in the special fields table. This fixes
12189 ../tests/thread-static-init.cs.
12191 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12193 * mini.c: return immediately after setting OP_ARRAY_RANK or CEE_LDLEN
12194 for Array get_Rank and get_Length. Fixes bug #70465.
12196 2004-12-11 Zoltan Varga <vargaz@freemail.hu>
12198 * mini.h mini.c aot.c: Put the bblock table for a SWITCH patch into a
12199 separate structure to reduce the size of MonoJumpInfo.
12201 Fri Dec 10 18:09:22 CET 2004 Paolo Molaro <lupus@ximian.com>
12203 * mini.c, mini.h, aot.c, driver.c: allow disabling the aot code.
12205 2004-12-10 Patrik Torstensson <patrik.torstensson@gmail.com>
12207 * mini.c (mini_get_inst_for_method): Changed to allow ports
12208 to return a MonoInst instead of opcode
12209 (renamed mini_get_opcode_for_method to better reflect the new functionality)
12211 * mini-[x86|s390|s390x|ppc|sparc].c (mono_arch_get_inst_for_method):
12212 Allow ports to return a created MonoInst instead of op-code, will enable
12214 (renamed mini_get_opcode_for_method to better reflected the functionality)
12216 2004-12-09 Zoltan Varga <vargaz@freemail.hu>
12218 * mini.c (NEW_AOTCONST): Share some code between the different NEW_AOTCONST macros.
12220 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
12222 * mini.c jit-icalls.c: Pass generic_context to mono_ldtoken_wrapper.
12225 2004-12-08 Martin Baulig <martin@ximian.com>
12227 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use `fsig->signature'
12228 if we're a CEE_CONSTRAINED call. Fixes gen-118.cs.
12230 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
12232 * mini-sparc.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_<X>
12235 * exceptions.cs: Disable some tests which depend on properties of x86 fp
12238 2004-12-08 Raja R Harinath <rharinath@novell.com>
12240 * Makefile.am (CLEANFILES): Add *.exe, *.dll.
12242 2004-12-07 Zoltan Varga <vargaz@freemail.hu>
12244 * mini-sparc.c (mono_arch_output_basic_block): Fix LOCALLOC_IMM
12245 bug introduced by the previous patch.
12247 Tue Dec 7 11:44:39 CET 2004 Paolo Molaro <lupus@ximian.com>
12249 * mini-ppc.c, objectc.cs: handle large structs passed by value
12250 (fixes bug #69972).
12252 Tue Dec 7 10:43:31 CET 2004 Paolo Molaro <lupus@ximian.com>
12254 * mini-ppc.c: OP_ARGLIST implementation from
12255 Geoff Norton <gnorton@customerdna.com>.
12257 Tue Dec 7 10:14:25 CET 2004 Paolo Molaro <lupus@ximian.com>
12259 * inssel-x86.brg, inssel-ppc.brg: fix reference to register
12260 in stmt: OP_OUTARG_VT (reg) (should fix bug #69785).
12262 Tue Dec 7 10:06:39 CET 2004 Paolo Molaro <lupus@ximian.com>
12264 * exceptions-ppc.c: avoid calling ppc_patch in exception trampolines.
12266 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12268 * inssel-s390.brgi, mini-ops.h, mini-s390.c : Add stubs for support of tls offset
12271 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
12273 * mini-sparc.c: Zero out localled-ed memory.
12275 * iltests.il: Add tests for zeroing out localloc-ed memory.
12277 2004-12-04 Martin Baulig <martin@ximian.com>
12279 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
12280 mono_method_get_signature_full().
12282 2004-12-03 Massimiliano Mantione <massi@ximian.com>
12284 * mini.c: Added removal of critical edges (prerequisite for SSAPRE),
12285 and some utility functions (always for SSAPRE), integrated SSAPRE.
12286 * mini.h: Likewise.
12287 * driver.c: Added ssapre option.
12288 * ssa.c: Small fix on OP_ARG handling.
12289 * ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
12290 * Makefile.am: Likewise.
12292 2004-12-02 Zoltan Varga <vargaz@freemail.hu>
12294 * tramp-x86.c (mono_arch_create_jit_trampoline): Remove code which is
12295 now in the xp code.
12297 * mini.c (mini_init): Register mono_thread_force_interruption_checkpoint
12300 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12302 * inssel-s390.brg : Add OP_OUTARG_VT (OP_REFANYTYPE (reg)) rule.
12304 * cpu-s390.md : Increase instruction length of oparglist.
12306 * mini-s390.c : Implement vararg and TYPEDEBYREF support.
12308 2004-11-30 Martin Baulig <martin@ximian.com>
12310 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, added support for
12311 virtual generic methods. We call a special helper_compile_generic_method()
12312 icall to retrieve the method from the vtable, inflate and compile
12313 it and then do a CEE_CALLI. Thanks a lot to Paolo for this idea.
12315 * jit-icalls.c (helper_compile_generic_method): New JIT icall.
12317 2004-11-30 Zoltan Varga <vargaz@freemail.hu>
12319 * mini-sparc.c: Fix up vararg corner cases. Fixes #70019.
12321 2004-11-29 Zoltan Varga <vargaz@freemail.hu>
12323 * cpu-sparc.md mini-sparc.c (long_conv_to_ovf_i): Fill missing delay slot.
12326 2004-11-27 Ben Maurer <bmaurer@ximian.com>
12328 * inssel.brg (CEE_SWITCH): The AOT stuff Zoltan added is only for
12329 platforms with PIC aot.
12331 2004-11-28 Martin Baulig <martin@ximian.com>
12333 * mini.c (mono_method_to_ir): In CEE_DUP, added handle_stobj().
12336 2004-11-28 Martin Baulig <martin@ximian.com>
12338 * mini-x86.c (mono_arch_call_opcode): Use the original type, not
12339 the result of mono_type_get_underlying_type() to check whether
12342 2004-11-26 Martin Baulig <martin@ximian.com>
12345 (mono_method_to_ir): Use `!method->signature->has_type_parameters'
12348 2004-11-26 Zoltan Varga <vargaz@freemail.hu>
12350 * mini-amd64.c (mono_arch_emit_this_vret_args): Handle this and vret
12351 the same way as the other arguments so they won't get clobbered.
12353 * mini-amd64.c (mono_arch_output_basic_block): Avoid doing virtual
12354 calls through R11 since it is clobbered by the trampoline code.
12356 2004-11-26 Raja R Harinath <rharinath@novell.com>
12358 * Makefile.am: Consistently use $(RUNTIME) rather than ./mono to
12359 pick up in-tree mscorlib.dll.
12361 2004-11-25 Zoltan Varga <vargaz@freemail.hu>
12363 * aot.c: Rename MonoAOTModule->cleanup to out_of_date.
12365 * mini-amd64.c aot.c: Switch to PIC relative AOT code. References to
12366 runtime data/code are now stored in a table similar to the GOT in ELF.
12367 This allows the code itself to be position independent.
12369 * aot.c: Fix loading of referenced assemblies after the lazy assembly
12372 * aot.c: Attach ELF type (object/function) directives to all global
12375 * tramp-amd64.c (amd64_magic_trampoline): Patch RIP relative calls too.
12377 * inssel.brg (SWITCH): Emit an AOT_CONST in the aot case.
12379 * mini-amd64.h: Turn on PIC AOT code.
12381 * mini.h (mono_arch_get_aot_patch_offset): New arch specific function
12382 returning the offset within an OP_AOTCONST instruction where the GOT
12383 offset needs to be added.
12385 * mini.h: Bump AOT file format version.
12387 2004-11-25 Martin Baulig <martin@ximian.com>
12389 * mini.c (mono_method_to_ir): In CEE_CALL, don't allow calling any
12390 uninflated generic methods.
12392 2004-11-25 Martin Baulig <martin@ximian.com>
12394 * mini.c (mono_method_to_ir): Don't allow any uninflated generic methods.
12396 2004-11-24 Martin Baulig <martin@ximian.com>
12398 * minit.c (type_to_eval_stack_type): Set `inst->klass' to the
12399 original klass (this only applies for generic instances).
12401 2004-11-24 Martin Baulig <martin@ximian.com>
12403 * mini.c (mono_method_to_ir): Use `STACK_OBJ' instead of
12404 `ldind_type [CEE_LDIND_REF]' (which would be beyond the end of
12407 2004-11-24 Zoltan Varga <vargaz@freemail.hu>
12409 * mini.c (mono_method_to_ir): Disable inlining for methods containing
12410 localloc. Fixes #69678.
12412 * iltests.il (test_0_localloc_inline): Add regression test for #69678.
12414 2004-11-23 Zoltan Varga <vargaz@freemail.hu>
12416 * mini-amd64.c (mono_arch_output_basic_block): Set %al to the number of
12417 used SSE registers on pinvoke calls. Fixes #69774.
12419 2004-11-23 Geoff Norton <gnorton@customerdna.com>
12421 * inssel-ppc.brg, mini-ppc.c: Use mono_class_from_mono_type instead of
12422 vt->inst_vtype->data.klass. This fixes generic structs and bug #69766
12424 2004-11-23 Raja R Harinath <rharinath@novell.com>
12426 * Makefile.am (MCS,ILASM): Don't refer to runtime/ directory.
12427 Refer directly to the mcs/ tree.
12429 2004-11-19 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12431 * mini-s390.c, tramp-s390.c, mini-s390.h: Add LMF processing for trampolines.
12432 Check if a trampoline for a synchronized method is required.
12434 Fri Nov 19 17:34:21 CET 2004 Paolo Molaro <lupus@ximian.com>
12436 * mini-ppc.c, cpu-g4.md: set to zero the memory allocated
12437 with localloc if needed. Throe arithmetric exception in
12438 div an rem if needed. Implement ovf checks in OP_LCONV_TO_OVF_I.
12439 Adapted from a patch by Geoff Norton <gnorton@customerdna.com>.
12441 2004-11-19 Geoff Norton <gnorton@customerdna.com>
12443 * mini-ppc.c: Call mono_type_get_underlying_type to unwrap generic
12444 types before switching on type. Fixes #69622.
12446 2004-11-19 Raja R Harinath <rharinath@novell.com>
12448 * Makefile.am (check-local): New. Integrate into 'make check'.
12449 (MCS,RUNTIME): Define using in-tree mono and mcs.
12451 (%.exe): Use $(ILASM).
12453 Fri Nov 19 14:54:07 CET 2004 Paolo Molaro <lupus@ximian.com>
12455 * mini-ppc.c: adjust initial prolog size (bug #69691).
12457 2004-11-18 Zoltan Varga <vargaz@freemail.hu>
12459 * cpu-pentium.md (localloc): Increase max instruction len. Fixes
12462 2004-11-17 Raja R Harinath <rharinath@novell.com>
12464 * Makefile.am (clean-local): Rename from 'clean'.
12466 2004-11-15 Nelae Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12468 * mini.c, mini-x86.c, mini-amd64.c, exceptions-s390.c: Add siginfo_t parameter
12469 to mono_arch_is_int_overflow.
12470 * exceptions-s390.c: Add mono_arch_is_int_overflow routine to discern between
12473 2004-11-15 Sebastien Pouliot <sebastien@ximian.com>
12475 * declsec.c|h: New files to support declarative security attributes.
12476 Added function to check if a method has (applicable) security.
12477 * mini.c|h: Add check for declarative security attributes in
12478 mono_method_check_inlining.
12479 * Makefile.am: Added declsec.c and declsec.h to the build.
12481 Mon Nov 15 11:53:46 CET 2004 Paolo Molaro <lupus@ximian.com>
12483 * mini.c, mini.h: update to keep dynamic code info per-domain.
12485 2004-11-12 Zoltan Varga <vargaz@freemail.hu>
12487 * mini.c mini-*.h: Get rid of MONO_ARCH_HAVE_RETHROW since all architectures support it now.
12488 (mini_init): Get rid of it from here too.
12490 Thu Nov 11 20:17:17 CET 2004 Paolo Molaro <lupus@ximian.com>
12492 * mini-ppc.c, mini-ppc,h, cpu-g5.md, exceptions-ppc.c:
12493 implemented OP_RETHROW (patch by Geoff Norton
12494 <gnorton@customerdna.com>).
12496 2004-11-10 Geoff Norton <gnorton@customerdna.com>
12498 * tramp-ppc.c (ppc_magic_trampoline): Don't trampoline methods
12499 between appdomains. Fixes appdomain-unload on PPC.
12501 2004-10-26 Lluis Sanchez Gual <lluis@novell.com>
12503 * exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12504 mini-exceptions.c: handle the new wrapper types.
12505 * mini.c: The CEE_ISINST and CEE_CASTCLASS opcodes now take the
12506 token value as a MonoClass* when compiling a wrapper.
12507 mono_jit_create_remoting_trampoline now takes an additional
12508 MonoRemotingTarget parameter.
12510 2004-11-10 Martin Baulig <martin@localhost>
12512 * mini.c (mono_method_to_ir): Use `generic_container->context'
12513 rather than creating a new one.
12515 2004-11-09 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12517 * exceptions-s390.c, mini-s390, cpu-s390.md: Add support for OP_RETHROW.
12519 * inssel-390.md, mini-s390.c: Correct register allocation for globals.
12521 2004-11-09 Zoltan Varga <vargaz@freemail.hu>
12523 * aot.c (mono_aot_init): Add MONO_AOT_CACHE env variable to turn on
12524 the experimental aot cache stuff.
12526 Tue Nov 9 17:30:20 CET 2004 Paolo Molaro <lupus@ximian.com>
12528 * aot.c, mini.c, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12529 mini-exceptions.c: update to exception clause structure changes.
12531 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
12533 * exceptions-x86.c (throw_exception): Fix warnings.
12535 * mini-x86.h mini-x86.c cpu-pentium.md exceptions-x86.c: Add support
12538 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
12540 * exceptions-sparc.c (get_throw_exception): Really fix this.
12542 2004-11-07 Ben Maurer <bmaurer@ximian.com>
12544 * tramp-*.c: we no longer support icalls without wrappers, so
12545 a bit of code can be removed here
12547 2004-11-07 Zoltan Varga <vargaz@freemail.hu>
12549 * exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
12552 * cpu-sparc.md: Add op_rethrow.
12554 * exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.
12556 * mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.
12558 * mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
12559 * mini-ops.h: Add OP_RETHROW.
12561 * mini.c inssel.brg: Distinguish between THROW and RETHROW.
12563 * cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.
12565 2004-11-05 Geoff Norton <gnorton@customerdna.com>
12567 * helpers.c: Change otool arguments from -V -v -t to -v -t on Darwin
12568 Makes the output much easier to read
12570 2004-11-05 Ben Maurer <bmaurer@ximian.com>
12572 * ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
12573 prevents another huge leak when compiling with ssa. Secondly, the
12574 performance of doing this rather than freeing the lists is much
12575 better. GList does a lock every time you allocate a list link,
12576 so that it can use a memory pool. So, it is better to just use
12577 a memory pool of our own.
12579 * ssa.c, linear-scan.c: replace g_list_remove_link with
12580 g_list_delete. The remove one does not free the GList, so we were
12581 leaking memory. On -O=all --compile-all with corlib, this cut down
12582 3 MB of allocations.
12584 2004-11-05 Zoltan Varga <vargaz@freemail.hu>
12586 * tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.
12588 * tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.
12590 * mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
12591 into a new function mono_create_jit_trampoline ().
12593 2004-11-02 Zoltan Varga <vargaz@freemail.hu>
12595 * trace.c (get_spec): Allow tracing of classes without a namespace.
12597 2004-11-02 Sebastien Pouliot <sebastien@ximian.com>
12599 * mini.c: Fix pointer overwrite in mini_method_compile.
12601 2004-11-2 Geoff Norton <gnorton@customerdna.com>
12603 * inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
12604 The darwin ABI needs some special handling for 1 and 2 byte structs
12605 Lets use lbz/lhz instead of lwz everywhere.
12606 * mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
12607 for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
12608 Use stb/sth for the former, and put the latter always on stack instead of in
12609 argument registers.
12611 2004-10-30 Zoltan Varga <vargaz@freemail.hu>
12613 * trace.c (is_filenamechar): Add '_'.
12615 2004-10-29 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12617 * mini-s390.c: Fix prolog length to allow for large trace requirements.
12619 * exceptions-s390.c: Remove dwarf unwinding stuff that was unused.
12621 2004-10-29 Zoltan Varga <vargaz@freemail.hu>
12623 * Makefile.am (libgc_libs): Do some automake magic so libmono/mono
12624 depends on libmonogc. Fixes #68805.
12626 2004-10-26 Miguel de Icaza <miguel@ximian.com>
12628 * mini.c (mono_jit_free_method): Provide extra information for
12629 this error. Currently this leaks, but will be turned into a
12630 developer option in the future.
12632 2004-10-26 Zoltan Varga <vargaz@freemail.hu>
12634 * driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
12636 2004-10-25 Zoltan Varga <vargaz@freemail.hu>
12638 * aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
12639 boundary. Fixes reading of PATCH_INFO_R4 and R8.
12640 (mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
12642 2004-10-24 Zoltan Varga <vargaz@freemail.hu>
12644 * mini-amd64.c (mono_arch_patch_code): Fix patching of class init
12645 trampolines for AOT code.
12647 2004-10-22 <vargaz@freemail.hu>
12649 * aot.c (mono_compile_assembly): Disable AOT for methods containing calls to methods of
12650 constructed types. Fixes #68136.
12652 2004-10-21 Martin Baulig <martin@ximian.com>
12654 * exceptions-x86.c (throw_exception): Call mono_debugger_throw_exception();
12655 if it returns true, unwind the stack to the call instruction.
12657 2004-10-21 <vargaz@freemail.hu>
12659 * aot.c: Reorganize the AOT file format to avoid relocations. Fix warnings.
12661 * mini.h: Bump AOT version number.
12663 * objects.cs: Add another test for unbox trampolines.
12665 * tramp-amd64.c (amd64_magic_trampoline): Disable patching of trampolines for
12668 2004-10-20 <vargaz@freemail.hu>
12670 * driver.c: Add SHARED to the set of optimizations tested.
12672 * tramp-amd64.c (amd64_magic_trampoline): Patch trampoline code as well.
12674 * mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
12675 used by CEE_NEWARR.
12677 * ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
12679 2004-10-20 Martin Baulig <martin@ximian.com>
12681 * mini-exceptions.c (mono_handle_exception): Call
12682 mono_debugger_handle_exception() to tell the debugger about
12683 catch/finally clauses.
12685 2004-10-18 Zoltan Varga <vargaz@freemail.hu>
12687 * exceptions-amd64.c (mono_arch_find_jit_info): Pop arguments of the stack.
12689 * mini-amd64.c (mono_amd64_get_vcall_slot_addr): Handle extended registers. Fixes
12692 2004-10-15 Geoff Norton <gnorton@customerdna.com>
12694 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
12695 methods as their native size, fixed bug #57543, #57545.
12696 * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
12697 This saves a temporary register and mullw call down into 1 (minor perf
12698 increase for cases like sum = sum * 5; This use to translate into:
12701 It now translates to
12704 2004-10-15 Zoltan Varga <vargaz@freemail.hu>
12706 * trace.c (mono_trace_eval): Use mono_method_desc_full_match. Fixes
12709 2004-10-11 Martin Baulig <martin@ximian.com>
12711 * mini.c (mono_method_to_ir): If we're a generic method, get the
12712 MonoGenericContainer from our MonoMethodNormal and create a
12713 MonoGenericContext from it.
12715 2004-10-08 Zoltan Varga <vargaz@freemail.hu>
12717 * inssel-long32.brg (OP_LCONV_TO_OVF_I2): Fix CONV_I1 -> CONV_I2.
12719 * basic-long.cs: Add test for checked i8->i2 cast.
12721 Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
12723 * inssel-ppc.brg: added a couple of speedup rules.
12725 2004-10-05 Zoltan Varga <vargaz@freemail.hu>
12727 * Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
12728 to speed up rebuilds.
12730 2004-10-04 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12732 * mini-s390.c: Minor fix to OP_OR_IMM.
12734 2004-10-03 Zoltan Varga <vargaz@freemail.hu>
12736 * tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
12737 better. Fixes appdomain-unload.exe on sparc.
12739 2004-10-02 Massimiliano Mantione <massi@ximian.com>
12741 * ssa.c: Fixed casts to unsigned where the value was of 64 bits in
12742 simulate_long_compare, patch by will@exomi.com (Ville-Pertti Keinonen),
12745 2004-10-02 Zoltan Varga <vargaz@freemail.hu>
12747 * jit-icalls.c: Handle a nonexisting trunc function more correctly.
12749 2004-09-30 Lluis Sanchez Gual <lluis@novell.com>
12751 * mini.c: Always generate a field read/write wrapper for members
12752 of the class MarshalByRefObject since the actual instance could
12755 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
12757 * mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
12759 2004-09-28 Zoltan Varga <vargaz@freemail.hu>
12761 * driver.c mini.h trace.c: Move the setting of the main assembly into
12762 a separate function called mono_trace_set_assembly () and call it after
12763 actually loading the main assembly. Fixes #66872.
12765 2004-09-25 Zoltan Varga <vargaz@freemail.hu>
12767 * mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
12768 using the code manager.
12770 2004-09-24 Zoltan Varga <vargaz@freemail.hu>
12772 * tramp-amd64.c mini-amd64.h: Add support for MONO_ARCH_HAVE_INVALIDATE_METHOD.
12774 2004-09-23 Zoltan Varga <vargaz@freemail.hu>
12776 * cpu-amd64.md: Fix bug in previous patch.
12778 * cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
12781 Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
12783 * mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12784 mini-exceptions.c: updates for changed stack walk interface.
12786 2004-09-21 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12788 * mini-s390.c, cpu-s390.md: Minor changes to OP_ARGLIST handling
12790 2004-09-17 Zoltan Varga <vargaz@freemail.hu>
12792 * mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.
12794 2004-09-13 Zoltan Varga <vargaz@freemail.hu>
12796 * driver.c (mini_regression_list): Do not call mono_assembly_close
12797 since assemblies can't be unloaded.
12799 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
12801 * cpu-amd64.md: Fix more instruction lengths.
12803 * cpu-amd64.md: Fix lengths of some instructions.
12805 2004-09-11 Ben Maurer <bmaurer@users.sourceforge.net>
12807 * inssel.brg: Make the array ldelema check aot friendly.
12809 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
12811 * mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.
12813 * cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.
12815 2004-09-10 Zoltan Varga <vargaz@freemail.hu>
12817 * mini-x86.c: Fix build.
12819 * mini-sparc.c mini-x86.c mini-amd64.c: Use the new
12820 mono_type_get_underlying_type () helper function to simplify code.
12822 2004-09-09 Martin Baulig <martin@ximian.com>
12824 * mini-amd64.c: Don't access `type->data.klass' directly, call
12825 mono_class_from_mono_type() instead since the type may be a
12828 2004-09-09 Martin Baulig <martin@ximian.com>
12830 * mini-amd64.c (get_call_info): Fix support for generic instances.
12831 (add_valuetype): Use mono_class_from_mono_type() to get the class
12832 since we can be a generic instance.
12834 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <lupus@ximian.com>
12836 * mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.
12838 2004-09-07 Ben Maurer <bmaurer@users.sourceforge.net>
12840 * liveness.c: reset spill costs on each scan: bug 62107
12842 2004-09-07 Bernie Solomon <bernard@ugsolutions.com>
12844 * exceptions-sparc.c (mono_arch_find_jit_info): remove
12845 unnecessary line that doesn't compile
12847 2004-09-07 Zoltan Varga <vargaz@freemail.hu>
12849 * mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
12850 trampolines, make them call an error function so people can fix their
12853 2004-09-06 Martin Baulig <martin@ximian.com>
12855 * mini.c (mono_method_to_ir): When initializing locals, handle a
12856 generic instances like a valuetype if it's a valuetype and like a
12857 class if it's a class.
12859 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
12861 * exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
12862 stack. Fixes #64674.
12864 * exceptions.cs: Add test for unwinding of call arguments.
12866 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <lupus@ximian.com>
12868 * mini-*.c, mini-ops.h, inssel-long32.brg: introduced
12869 OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
12870 set the carry/borrow flag). The sparc and s390 implementations
12871 can now use optimized versions (and simplify the code). ppc bugfixes.
12873 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
12875 * exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.
12877 2004-09-05 Zoltan Varga <vargaz@freemail.hu>
12879 * inssel-amd64.brg: Remove leftover 32 bit rule.
12881 * mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.
12883 2004-09-04 Zoltan Varga <vargaz@freemail.hu>
12885 * mini-exceptions.c (mono_find_jit_info): Refactor common code from
12886 mono_arch_find_jit_info functions into a new function. Fix a memory
12889 * exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
12892 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
12894 * exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
12897 * exceptions.cs: Add array size tests.
12899 * mini.c: Allocate a separate icall wrapper for each arity of
12900 mono_array_new_va. Fixes #59509.
12902 * exceptions.cs: Add testcase for 64578.
12904 * inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.
12906 * trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.
12908 2004-09-02 Martin Baulig <martin@ximian.com>
12910 * mini.c (mono_method_to_ir): When initializing the locals, call
12911 handle_initobj() on the generic instance itself, not its
12914 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
12916 * mini.h (MonoJitDynamicMethodInfo): New structure, extension of
12917 MonoJitInfo for dynamic methods.
12919 * mini.c: Rename trampoline_hash_mutex to jit_mutex.
12921 * mini.c: Add support for freeing JIT data for dynamic methods.
12923 2004-09-01 Martin Baulig <martin@ximian.com>
12925 * mini-x86.c (is_regsize_var): Added support for generic
12927 (mono_arch_emit_prolog): Make this compile again, use
12928 `x86_push_imm_template (code)'.
12930 2004-08-30 Ben Maurer <bmaurer@users.sourceforge.net>
12932 * mini-x86.c: make all push_imm instructions that get
12933 patched always emit the long form
12935 2004-08-30 Zoltan Varga <vargaz@freemail.hu>
12937 * mini.c (mono_create_jump_trampoline): Store the jump trampolines
12938 in a per-domain hash.
12940 * mini-amd64.c (merge_argument_class_from_type): Handle generic
12943 2004-08-29 Zoltan Varga <vargaz@freemail.hu>
12945 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
12948 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
12951 * mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
12952 Beginnings of SSE2 support.
12954 * exceptions.cs: Add more tests for checked int<->uint casts.
12956 2004-08-28 Martin Baulig <martin@ximian.com>
12958 * mini-x86.c (mono_arch_instrument_epilog): Added support for
12962 (mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
12963 Handle generic instances recursively.
12965 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
12967 * iltests.il: test for conv.u8 on a constant
12969 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
12971 * inssel-long32.brg: c&p rules for LCONV_x4 (membase) and
12972 LCONV_x4 (shrun_32 (membase)).
12974 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
12976 * inssel-x86.brg: c&p rules for push/setret of long
12978 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
12980 * inssel-x86.brg: c&p rules for compare (base, regvar) and
12981 compare (regvar, base)
12983 * inssel-x86.brg: more burg love
12985 * inssel.brg: more cleanup
12987 * inssel-x86.brg, inssel-long32.brg: burg cleanup.
12989 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
12991 * basic-long.cs, basic-calls.cs: new tests for optimization.
12993 2004-08-26 Zoltan Varga <vargaz@freemail.hu>
12995 * mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
12998 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
13000 * mini-amd64.c (read_tls_offset_from_method): Add another case.
13002 2004-08-25 Bernie Solomon <bernard@ugsolutions.com>
13004 * inssel.brg (mini_emit_memcpy): use
13005 NO_UNALIGNED_ACCESS to disable memcpy optimization
13007 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
13009 * mini-amd64.c: Handle generic types in various places.
13011 * mini.c (mono_method_to_ir): Handle generic types in init locals.
13013 2004-08-24 Zoltan Varga <vargaz@freemail.hu>
13015 * mini.c (handle_box): Fix warning.
13017 * mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.
13019 * mini-amd64.h: Enable the emit_state optimization.
13021 * mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.
13023 * mini-amd64.c: Add some new 64 bit peephole opts.
13025 * inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.
13027 * cpu-amd64.md: sreg1 of div instructions must be %rax.
13029 * mini-amd64.c: Register allocator fixes.
13031 * mini.c: Add an optimization to emit_state to avoid allocation of new
13032 registers on some platforms.
13034 2004-08-23 Zoltan Varga <vargaz@freemail.hu>
13036 * inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.
13038 * mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
13039 allocation. Fixes #63085.
13041 * basic-long.cs: Add new regression test.
13043 * mini-amd64.c: Register allocator improvements.
13045 2004-08-21 Zoltan Varga <vargaz@freemail.hu>
13047 * mini-amd64.c (read_tls_offset_from_method): Add another code
13050 * tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
13051 instruction sequence for nullifying class init trampolines.
13053 * objects.cs: Add new regalloc test.
13055 * mini-amd64.c inssel-amd64.brg: Optimize parameter passing.
13057 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
13059 * mini-amd64.c (mono_arch_call_opcode): Refactor this a little.
13061 * mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
13064 * driver.c: Fix profiling after TLS changes.
13066 * driver.c (mono_main): Set mono_stats.enabled if needed.
13068 * mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
13071 2004-08-20 Ben Maurer <bmaurer@users.sourceforge.net>
13073 * mini-x86.c: use a 1 op rather than a 2 op tls access
13074 instruction -> faster.
13076 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
13078 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
13081 2004-08-19 Bernie Solomon <bernard@ugsolutions.com>
13083 * exceptions-sparc.c (throw_exception): fix typo
13085 2004-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
13087 * mini-x86.c, cpu-pentium.md, inssel-x86.brg:
13088 set tree->dreg correctly with tls. Allow any
13089 register to be used.
13091 * mini-x86.c (read_tls_offset_from_method): add new code
13092 generation pattern seen with GCC.
13095 Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
13097 * mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
13098 exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
13099 exceptions-sparc.c: fix some performance issues in exception
13100 handling and setting of the stack trace for exceptions that were
13103 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
13105 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
13108 * mini-amd64.c (mono_arch_is_int_overflow): Handle all possible
13111 2004-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
13113 This patch inlines tls access, when possible.
13115 * mini.h: new arch functions for TLS intrinsics.
13116 All platforms updated with a stub.
13118 * mini.c: use the new intrinsics
13120 * mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
13121 arch specific intrinsic for tls variables
13123 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
13125 * Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
13128 2004-08-17 Ben Maurer <bmaurer@users.sourceforge.net>
13130 * mini.c: thread local allocation
13132 2004-08-16 Zoltan Varga <vargaz@freemail.hu>
13134 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.
13136 * Makefile.am: Link against the static version of libmonogc.
13138 * Makefile.am: Link the static versions of the convenience libraries
13139 into the mono executable.
13141 * mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.
13143 2004-08-15 Zoltan Varga <vargaz@freemail.hu>
13145 * mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
13146 on integer overflow.
13148 * mini-amd64.c: Reorganize function call code.
13150 * mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.
13152 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13154 * inssel-x86.brg: use xor eax,eax.
13156 * basic.cs: new tests
13158 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13160 * mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
13161 in exception throwing code.
13163 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13165 * inssel-x86.brg: use xor esi,esi.
13167 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13169 * driver.c (mono_main): Call mono_trace_parse_options earlier so it
13170 can trace methods compiled during mini_init () too.
13172 * cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle
13175 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13177 * Makefile.am: static link on x86 (r=zoltan)
13179 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13181 * tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
13182 code since it causes some programs to fail.
13184 2004-08-12 Zoltan Varga <vargaz@freemail.hu>
13186 * mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
13188 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
13190 * mini.c: ovfops_op_map - add STACK_OBJ case for
13192 * basic.cs: add test_0_pin_string as test
13195 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
13197 * Makefile.am: build C# if srcdir != builddir
13199 Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
13201 * dominators.c, mini.h, mini-x86.c: fix loop alignment with
13202 fall-through blocks.
13204 Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
13206 * driver.c: enable loop by default again and include abcrem in -O=all.
13208 2004-08-08 Zoltan Varga <vargaz@freemail.hu>
13210 * iltests.il: Add some localloc tests.
13212 * mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
13214 * inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
13217 * inssel-amd64.brg: Add some optimizations.
13219 * mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
13222 * Makefile.am: Statically link mono against libmono on AMD64.
13224 * mini-amd64.c inssel-amd64.brg: Optimizations.
13226 2004-08-07 Zoltan Varga <vargaz@freemail.hu>
13228 * mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.
13230 * tramp-amd64.c: Patch calling code in trampolines.
13232 2004-08-06 Zoltan Varga <vargaz@freemail.hu>
13234 * mini-amd64.c: pinvoke struct passing fixes.
13236 2004-08-05 Bernie Solomon <bernard@ugsolutions.com>
13238 * mini-sparc.c: redo change, make mono_arch_cpu_init call
13239 mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
13241 2004-08-05 Duncan Mak <duncan@ximian.com>
13243 * mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
13246 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13248 * mini-amd64.c (emit_move_return_value): Move return value for normal
13251 2004-08-05 Martin Baulig <martin@ximian.com>
13253 * mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
13254 `type->type'; just modify `type' itself when dealing with enums
13255 and generic instances.
13256 (check_call_signature): Make `simple_type' a `MonoType *'.
13258 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13260 * mini.c: Use OP_PADD to add offsets to addresses.
13262 * mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.
13264 2004-08-04 Bernie Solomon <bernard@ugsolutions.com>
13266 * mini-sparc.c (mono_arch_emit_epilog): fix check
13267 for folding last op into restore instruction
13269 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13271 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
13272 helper methods using the code manager.
13274 * exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.
13276 * mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.
13278 Tue Aug 3 23:50:00 EST 2004 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
13280 * mini-s390x.c mini-s390x.h tramp-s390x.c inssel-s390x.brg
13281 cpu-s390x.md exceptions-s390x.c Makefile.am: S/390 64-bit JIT
13283 * mini-s390.c: fix tail processing
13285 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <lupus@ximian.com>
13287 * mini-ppc.c: mul.ovf.un exception name fix.
13289 2004-08-03 Martin Baulig <martin@ximian.com>
13291 * mini-x86.c (mono_arch_call_opcode): Correctly handle generic
13292 instances; before jumping to `handle_enum', also modify `ptype'.
13294 2004-08-02 Bernie Solomon <bernard@ugsolutions.com>
13296 * cpu-sparc.md: fcall maximal length too small.
13298 2004-08-02 Zoltan Varga <vargaz@freemail.hu>
13300 * mini-amd64.c mini.h: Add initial support for passing/returning
13301 structures to/from pinvoked methods.
13303 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <lupus@ximian.com>
13305 * mini-ppc.c: reg allocator fix.
13307 2004-07-31 Zoltan Varga <vargaz@freemail.hu>
13309 * mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.
13311 * inssel.brg: Optimize memset on 64 bit machines.
13313 * mini-amd64.c: Fix some vararg cases.
13315 2004-07-30 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
13317 * mini-s390.c: Corrected macro in emit_float_to_int
13319 * s390-abi.cs: Tests to exercise the s390 ABI
13321 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13323 * exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
13326 * basic.cs: Add a test for add.ovf.un.
13328 2004-07-30 Bernie Solomon <bernard@ugsolutions.com>
13330 * mini-sparc.c: add case for OP_IDIV_UN
13332 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13334 * mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.
13336 * mini-amd64.c cpu-amd64.md: Ongoing JIT work.
13338 2004-07-30 Ben Maurer <bmaurer@ximian.com>
13340 * basic.cs: regression tests.
13342 * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
13345 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13347 * basic.cs: Add a new test.
13349 * mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling
13350 and AOT. Various fixes and optimizations.
13352 * inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.
13354 Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
13356 * mini-ppc.c: make sure temp regs are not used for global reg
13359 2004-07-29 Bernie Solomon <bernard@ugsolutions.com>
13361 * cpu-sparc.md: conv_i8 fix for 64bits
13363 * mini-sparc.c: add cases for OP_IXXX codes for 64bits
13365 2004-07-29 Ben Maurer <bmaurer@ximian.com>
13367 * cpu-pentium.md, mini-x86.c, inssel-x86.brg, mini-ops.h:
13368 add opcode for cmp BYTE PTR [eax], imm.
13370 * inssel.brg: Make memcpy and memset takes bases.
13372 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
13374 * *-amd64.*: More AMD64 work.
13376 2004-07-28 Ben Maurer <bmaurer@ximian.com>
13378 * cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:
13379 add a compare-not-equal opcode.
13381 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
13383 * mini.c: Use mono_init_from_assembly instead of mono_init.
13385 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
13387 * mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
13389 * mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
13391 * mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
13393 * inssel.brg: 64 bit fixes.
13395 * mini.h (MonoCallInst): Add some AMD64 specific data.
13397 * mini.h: Add some OP_P opcodes.
13399 2004-07-28 Ben Maurer <bmaurer@ximian.com>
13401 * basic.cs: tests for 61797 and 61740
13403 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
13405 * mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
13406 numbers in the debug info (spotted by Geoff Norton, <gnorton@customerdna.com>).
13408 2004-07-24 Zoltan Varga <vargaz@freemail.hu>
13410 * mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.
13412 * *-amd64*.*: Ongoing AMD64 work.
13414 2004-07-23 Zoltan Varga <vargaz@freemail.hu>
13416 * inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.
13418 * *-amd64*: Ongoing AMD64 work.
13420 * mini-arch.h: Add AMD64 support.
13422 * mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.
13424 * mini.h: Add new arch dependent function mono_arch_is_inst_imm.
13426 * mini-ops.h: Add new opcodes.
13428 * Makefile.am: Add AMD64 support.
13430 * inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
13431 rules into the inssel-long*.brg files.
13433 * *-amd64.*: Add beginnings of AMD64 backend.
13435 2004-07-22 Ben Maurer <bmaurer@ximian.com>
13437 * mini.c (print_dfn): commenting out the code that prints
13438 the cil. With -O=deadce, this makes -v -v crash.
13440 * cpu-pentium.md: make checkthis have a length of 2
13442 2004-04-21 Bernie Solomon <bernard@ugsolutions.com>
13444 * mini-sparc.h: fix implementations of __builtin
13445 functions for Sun compiler for V9.
13447 2004-07-16 Ben Maurer <bmaurer@ximain.com>
13449 * mini.c: use the new stelem.ref wrapper
13450 * exceptions.cs, arrays.cs: new stelem.ref tests
13452 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
13454 * mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
13455 new XSP should work with these changes).
13457 2004-07-14 Ben Maurer <bmaurer@ximain.com>
13459 * inssel-{long32,x86,}.brg: trivial optimizations.
13461 Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <lupus@ximian.com>
13463 * mini.c: load value when emitting box operation in
13466 2004-07-12 Ben Maurer <bmaurer@ximian.com>
13468 * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
13469 is one byte shorter than cmp DWORD PTR [eax], 0.
13471 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
13473 * inssel-ppc.brg: arguments on the stack are always
13474 relative to the stack pointer (spotted by Neale Ferguson).
13476 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13478 * exceptions-x86.c: delay appending the method name to the trace until
13479 after mono_jit_info_table_find is called, as this gets the real
13482 2004-07-09 Ben Maurer <bmaurer@ximian.com>
13484 * aot.c: register roots
13486 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13488 * aot.c : I could just use PLATFORM_WIN32 flag.
13490 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13492 * aot.c : Reverting the previous fix. This time it broke linux build.
13494 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13496 * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
13498 2004-07-08 Zoltan Varga <vargaz@freemail.hu>
13500 * mini.c (handle_stack_args): Remove some more debugging code.
13502 * mini.c (handle_stack_args): Remove debug output left in by mistake.
13504 * driver.c mini.h aot.c: Allow additional options to be specified with
13505 --aot and pass them to mono_compile_assembly.
13507 * aot.c: Add experimental code to AOT compile all loaded assemblies
13508 on demand and save the code into a cache in the filesystem.
13510 * aot.c: Add support for more wrapper methods.
13512 * mini.c (handle_stack_args): Handle some corner cases. Fixes
13515 * cpu-*.md: Remove removed opcodes.
13517 * mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
13518 CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
13519 related icalls to marshal.c.
13521 2004-07-06 Zoltan Varga <vargaz@freemail.hu>
13523 * mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.
13525 * Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.
13527 * inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.
13529 2004-07-06 Ben Maurer <bmaurer@ximian.com>
13530 * liveness.c: If liveness is recomputated we need to reset the information
13531 for each variable. This way, if the liveness range has been narrowed
13532 by optimizations that happened after the last computation, we can return
13535 For example, if you have
13540 // Tons of code that does not affect i
13546 i = 0 is dead code and will be removed by SSA. However, when
13547 linear scan gets to the code, i will still appear to be live
13548 throughout the entire block. This prevents good register allocation.
13550 2004-07-06 Martin Baulig <martin@ximian.com>
13552 * debug-mini.c (mono_debug_init_method): Allow
13553 MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
13554 (mono_debug_add_icall_wrapper): New method.
13556 * mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().
13558 2004-07-05 Zoltan Varga <vargaz@freemail.hu>
13560 * mini.c (optimize_branches): Fix linking of bblocks in branch->branch
13563 2004-07-03 Zoltan Varga <vargaz@freemail.hu>
13565 * aot.c (mono_aot_load_method): Fix loading of debug info.
13567 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
13569 * aot.c: Add logging support.
13571 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
13573 * mini.h: Add prototype for mono_print_method_from_ip.
13575 * mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
13577 * inssel.brg: 64 bit fixes.
13579 * inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
13582 * Makefile.am: Add SPARC64 support.
13584 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
13586 * aot.c: Fix alignment problems on 32 bit platforms.
13588 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
13590 * helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
13593 * aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
13596 * mini.h: Bump AOT file version. Some 64 bit fixes.
13598 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
13600 * inssel-sparc.brg: Add new rule to avoid register moves.
13602 * inssel.brg: Add ldind_to_load_membase helper function.
13604 2004-06-30 Ben Maurer <bmaurer@ximian.com>
13606 * mini.c: OffsetToStringData intrinsic.
13608 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
13610 * ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.
13612 * objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
13615 * mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.
13616 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
13618 * mini.c: reinstated mono_compile_get_interface_var()
13619 on x86, too, since the change breaks the Gtk# build there as well.
13621 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13623 * driver.c: remove loop from the default optimizations: it seems to
13624 interact badly with some of the other options (see bug #60613).
13626 2004-06-25 Zoltan Varga <vargaz@freemail.hu>
13628 * mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann
13629 (fld@informatik.uni-bremen.de): Add Solaris x86 support.
13631 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <lupus@ximian.com>
13633 * mini-ppc.c, cpu-g4.md: small updates to be able to compile
13634 vararg-using methods.
13636 2004-06-21 Martin Baulig <martin@ximian.com>
13638 * mini/mini-exceptions.c
13639 (mono_handle_exception): Added `gpointer original_ip' argument.
13640 After calling mono_unhandled_exception(), call
13641 mono_debugger_unhandled_exception() and if that returns true,
13642 restore the context and return.
13644 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <lupus@ximian.com>
13646 * mini-ppc.c: prefer the use of relative branches so
13647 they won't need to be patched in aot code (patch from Patrick Beard).
13649 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
13651 * aot.c: patch from Patrick Beard to make the output assembly
13652 more correct for the MacOSX assembler. Small tweak to
13653 generate sane images on Linux/PPC, too.
13655 Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13657 * mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
13658 case until bug #59509 is fixed (shows up in #60332).
13660 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
13662 * mini.c: make sure the needed wrappers are compiled, too, with
13665 Mon Jun 14 18:36:08 CEST 2004 Paolo Molaro <lupus@ximian.com>
13667 * driver.c: remove NPTL reference in --version output.
13669 Sun Jun 13 17:25:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13671 * aot.c: patch from Patrick Beard (pcbeard@mac.com) to
13672 generate valid assembly for the Mach-O assembler.
13674 Sun Jun 13 15:59:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
13676 * driver.c: don't include abcrem in the all optimization specifier
13677 since it slows down jit compilation too much for now.
13679 2004-06-12 Ben Maurer <bmaurer@users.sourceforge.net>
13681 * mini.c: use BIGMUL only if both operands have the same signage.
13682 * iltests.il: Test for bug 60056. (errors related to signage in
13687 Thu Jun 10 16:06:42 CEST 2004 Paolo Molaro <lupus@ximian.com>
13689 * mini.c, aot.c: memory leak fixes.
13691 Tue Jun 8 16:37:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
13693 * inssel-long32.brg: implemented a few missing ulong cast opcodes.
13695 Tue Jun 8 15:36:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
13697 * Makefile.am: remove the -static hack completely, it links in
13698 statically glib as well.
13700 Sat Jun 5 16:32:33 CEST 2004 Paolo Molaro <lupus@ximian.com>
13702 * iltests.il, mini.c: fixed bug#59580 in branch optimization.
13703 * exceptions.cs: make it compile with new mcs/csc.
13705 2004-06-03 Massimiliano Mantione <massi@ximian.com>
13706 * cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
13707 and added relevant test case.
13709 Mon May 31 19:41:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
13711 * mini.c revert Zoltan's fix to bug#58863 on ppc, since it causes
13712 regressions in gtk-sharp.
13714 2004-05-29 Zoltan Varga <vargaz@freemail.hu>
13716 * exceptions.cs: New regression tests.
13718 * jit-icalls.c (mono_llmult_ovf): Fix some boundary conditions.
13720 Sat May 29 10:45:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
13722 * mini.c: emit castclass/isinst in their own trees (bug #54209/59057).
13724 2004-05-28 Zoltan Varga <vargaz@freemail.hu>
13726 * mini-sparc.h (MONO_ARCH_NEED_DIV_CHECK): Define this.
13728 * cpu-sparc.md mini-sparc.c: Add overflow detection to div opcodes.
13730 2004-05-28 Patrik Torstensson <totte@hiddenpeaks.com>
13732 * mini.c (mono_jit_runtime_invoke): Init class in this
13733 method instead of trusting mono_jit_compile_method to
13734 do the work (because wrappers can be in object class)
13736 2004-05-27 Zoltan Varga <vargaz@freemail.hu>
13738 * mini-sparc.c (mono_arch_output_basic_block): Fix sub.imm.
13740 * basic-long.cs: New regression test.
13742 Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
13744 * cpu-g4.md, mini-ppc.c: fixes to long add/sub ovf opcodes
13745 and div/rem checks.
13747 Thu May 27 12:36:53 CEST 2004 Paolo Molaro <lupus@ximian.com>
13749 * Makefile.am: fix miguel's change to build mono statically against
13750 libmono (track build dependencies).
13752 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
13754 * cfold.c: Some glib versions do not have G_MININT32.
13756 2004-05-26 Massimiliano Mantione <massi@ximian.com>
13758 * mini-x86.c cpu-pentium.md Makefile.am basic-math.cs: Fixed problem
13759 with precision of tan, atan, sin and cos, and implemented related
13760 regressions tests (fixes bug 54467, but one new problem appeared and
13763 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
13765 * cfold.c (FOLD_BINOPZ): Avoid division by zero.
13767 * exceptions.cs: Add test for constant folding && division by zero.
13769 * driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
13770 since driver.c is in libmono too, so the optimization was useless.
13772 * driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
13773 variable to driver.c so the compiler can emit more efficient code to
13776 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13778 * Makefile.am: don't distribute generated inssel.[ch] files.
13780 2004-05-25 Zoltan Varga <vargaz@freemail.hu>
13782 * mini.c (mono_jit_compile_method_with_opt): Really emit icall wrappers
13783 into the default appdomain. Fixes #58707.
13785 * jit-icalls.c: Remove the broken approximation for truncl, doing
13786 no conversion is better.
13788 * mini.c (handle_stack_args): Avoid reusing variables for stack slots.
13791 Tue May 25 14:33:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
13793 * mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
13794 of the mcrxr instruction which is not available on some processors
13795 even if it's documented to be. Implement add and sub overflow correctly
13796 (still not complete for long unsigned). Speed up icalls a bit.
13798 2004-05-25 13:01 CET Patrik Torstenson <totte@hiddenpeaks.com>
13800 * mini.c (mono_jit_compile_method_with_opt): Make sure that
13801 we run .cctor in the current domain instead of target_domain.
13803 Fixes bug #58558, .cctor not being called in -O=shared.
13805 Tue May 25 12:46:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
13807 * mini-ppc.h, jit-icalls.c: added explicit checks for divide by zero.
13809 2004-05-24 Ben Maurer <bmaurer@users.sourceforge.net>
13811 * mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
13812 which can be done with an imm8, do it that way.
13813 (mono_arch_output_basic_block): ditto for a jmp
13814 (mono_arch_emit_prolog): Computate maximum offset of a label.
13816 2004-05-24 18:18 CET Patrik Torstenson <totte@hiddenpeaks.com>
13818 * mini-x86.c (mono_arch_local_regalloc): the reg allocator
13819 now tries to allocate prefered physical reg's for virtual
13820 regs. This reduces the number of emited spills/loads with
13821 20-30% on our core assemblies.
13823 Mon May 24 18:21:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
13825 * jit-icalls.c: truncl() is not needed and trunc() is
13826 the correct thing to do anyway (bug #58287).
13828 2004-05-24 Zoltan Varga <vargaz@freemail.hu>
13830 * mini-sparc.c (mono_arch_flush_icache): Call sync_instruction_memory
13833 Mon May 24 12:49:45 CEST 2004 Paolo Molaro <lupus@ximian.com>
13835 * driver.c: enable loop optimizations by default.
13837 Mon May 24 11:13:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
13839 * mini-x86.c: fix calc of max loop size when aligning loops start.
13841 2004-05-23 Zoltan Varga <vargaz@freemail.hu>
13843 * ssa.c (mono_ssa_cprop): Allocate carray dynamically instead of on
13846 2004-05-22 Zoltan Varga <vargaz@freemail.hu>
13848 * mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
13851 * basic-long.cs: Add tests for add/subtract of immediates with carry.
13853 * mini.c exceptions-x86.c: Remove MONO_USE_EXC_TABLES stuff.
13855 * mini.c (inline_method): Allways inline some wrappers even if the cost
13856 is too large. Fixes #58785.
13858 * mini.c: Add support for MARSHAL_CONV_FTN_DEL.
13860 2004-05-21 Zoltan Varga <vargaz@freemail.hu>
13862 * mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
13863 (crichton@gimp.org). Beginning of support for sparc/linux.
13865 * mini-sparc.c: Optimize retrieval of LMF address.
13867 Fri May 21 08:00:12 EDT 2004 Paolo Molaro <lupus@ximian.com>
13869 * exceptions-ppc.c: handle alloca in methods with clauses.
13871 Fri May 21 07:35:30 EDT 2004 Paolo Molaro <lupus@ximian.com>
13873 * mini-ppc.c: cleanups, off-by-one fixes, avoid recursive thunks.
13875 2004-05-20 Lluis Sanchez Gual <lluis@ximian.com>
13877 * mini.c: Delegate most of the abort signal work to
13878 mono_thread_request_interruption, which also handles Stop and Suspend
13881 2004-05-20 Zoltan Varga <vargaz@freemail.hu>
13883 * mini.c mini.h: Allow inlining of icall wrappers if the backend
13884 supports the save/restore lmf opcodes.
13886 2004-05-19 Zoltan Varga <vargaz@freemail.hu>
13888 * mini-x86.c (mono_arch_setup_jit_tls_data): Handle code generated
13889 by gcc-3.4 as well.
13891 * mini-x86.h mini-x86.c tramp-x86.c: Optimize lmf restoring code.
13893 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
13895 * mini.h mini.c (mini_method_compile): Only run abc removal pass on
13896 methods which contain array accesses.
13898 * mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
13899 boundaries. Fixes #58537.
13901 * iltests.il: Add regression test for #58537.
13903 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
13905 * mini-x86.c (mono_arch_local_regalloc): Last part of
13906 fix for bug #58633 (releasing register to early).
13908 2004-05-18 Miguel de Icaza <miguel@ximian.com>
13910 * basic-long.cs: Add new regression test.
13912 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
13914 * mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
13915 register too early on the chain.
13917 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
13919 * mini.c (create_helper_signature): Use a helper function to reduce
13920 the code which needs to be written. Also set the calling convention of
13921 icalls on windows. Fixes #57840.
13923 Tue May 18 11:05:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
13925 * mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
13926 exceptions-ppc.c: added helper function to get the instruction address
13927 from a signal handler context.
13929 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
13931 * helpers.c: use g_get_tmp_dir. Invokes happyness
13934 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
13936 * helpers.c: Add new env variable to pass args to objdump.
13937 Specifically for those of us who love -Mintel. r=miguel, gonzalo.
13939 2004-05-17 Radek Doulik <rodo@ximian.com>
13941 * Makefile.am (common_sources): added abcremoval.h so it get
13942 disted and daily mono packages on go-mono.com will build again
13944 2004-05-17 Massimiliano Mantione <massi@ximian.com>
13946 * abcremoval.c: Fixed coding style, added copyright header.
13948 * abcremoval.h: Fixed style and moved prototype to mini.h, added copyright header.
13950 * mini.h: Added prototype for abc removal main function.
13952 * build_relations_propagation_table.pl: Added copyright header.
13954 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
13956 * basic-long.cs: reg test for complex ceq_long bug.
13958 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
13960 * mini-x86.c (mono_arch_local_regalloc): Correctly free
13961 reg in long and clob case (bug #58343). Fixed/added comments.
13963 2004-05-14 Ben Maurer <bmaurer@users.sourceforge.net>
13965 * mini.c (mono_jit_runtime_invoke): Follow new convention
13966 of calling the invoke method with an function pointer.
13968 2004-05-14 Zoltan Varga <vargaz@freemail.hu>
13970 * ChangeLog: Fix author of memory leak patch.
13972 Fri May 14 15:13:06 CEST 2004 Paolo Molaro <lupus@ximian.com>
13974 * Makefile.am: fix make dist as well...
13977 2004-05-14 Massimiliano Mantione <massi@ximian.com>
13979 * cfold.c: Made so that conversions from pointer to int4 are no-ops
13980 on archs where pointers are 4 bytes long.
13982 * Makefile.am: Added abcremoval.c source file.
13984 * abcremoval.c: Added abcremoval.c.
13986 * abcremoval.h: Added abcremoval.h.
13988 * build_relations_propagation_table.pl: Added build_relations_propagation_table.pl.
13990 * inssel.brg: Enabled bounds check removal.
13992 * mini.c: Added support for abcrem optimization.
13994 * mini.h: Added abcrem optimization label.
13996 * driver.c: Added support for abcrem optimization.
13998 * propagated_relations_table.def: Added propagated_relations_table.def.
14000 Fri May 14 14:30:13 CEST 2004 Paolo Molaro <lupus@ximian.com>
14002 * mini.c, cfold.c: fix style.
14004 Fri May 14 14:28:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14006 * mini.c: handle issue with the low-level implementation of
14007 some long opcodes (bug #54209).
14009 2004-05-13 Ben Maurer <bmaurer@users.sourceforge.net>
14011 * basic.cs: test for my new cmov stuff.
14013 2004-05-13 Patrik Torstensson
14015 * mini-x86.c: added OP_X86_COMPARE_MEMBASE_IMM peephole
14016 opt and added peephole documentation.
14018 Thu May 13 11:41:49 CEST 2004 Paolo Molaro <lupus@ximian.com>
14020 * tramp-ppc.c: rewrote the generic trampoline code.
14022 2004-05-11 Patrik Torstensson
14024 * mini-x86.c: optimize long shl/shr asm code (one less branch)
14026 2004-05-11 Zoltan Varga <vargaz@freemail.hu>
14028 * basic.cs basic-long.cs objects.cs: Make these compile under MS csc.
14030 * mini.h mini.c dominators.c: Applied patch from Derek Woo
14031 (derek@eecg.toronto.edu): Fix memory leaks in loop optimizations.
14033 * mini.c: Add new icalls for AsAny marshalling.
14035 Tue May 11 16:00:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
14037 * tramp-ppc.c, mini-ppc.c: more cleanups.
14039 2004-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14041 * mini.c: no warnings.
14043 Tue May 11 13:59:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14045 * mini-ppc.c, mini.c: use mono_resolve_patch_target ().
14047 2004-05-11 Lluis Sanchez Gual <lluis@ximian.com>
14049 * mini.c: In the thread abort signal handler, if the thread is in the
14050 process of being stoped, don't throw the Abort exception, just stop the
14053 Tue May 11 12:15:24 CEST 2004 Paolo Molaro <lupus@ximian.com>
14055 * tramp-ppc.c: removed old code.
14057 Tue May 11 12:02:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14059 * mini.h, mini-ppc.c, cfold.c: export mono_is_power_of_two().
14060 do some simple speed optimizations on ppc.
14062 Mon May 10 17:21:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
14064 * mini-ppc.c, cpu-g4.md: fixes to handle large stack frames
14065 and large offsets in load/store.
14067 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
14069 * mini-x86.c (mono_arch_local_regalloc): Remove the previous fix, since
14070 it causes regressions.
14072 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
14074 * mini-sparc.c: Fix vararg support + add beginnings of sigaltstack
14077 Fri May 7 13:25:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
14079 * jit-icalls.c: remove warnings.
14080 * inssel-x86.brg, inssel.brg, mini-x86.c, cfold.c: some simple
14081 speedups for unsafe code.
14083 2004-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
14085 * inssel.brg: Optimize Stind.[ui][12]. r=zoltan.
14087 2004-05-06 Zoltan Varga <vargaz@freemail.hu>
14089 * basic-calls.cs: Add new regression test.
14091 * mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
14094 * mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
14096 * mini-x86.c (mono_arch_local_regalloc): Free new_dest register when it
14099 2004-05-06 Patrik Torstensson
14101 * mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
14102 long reg allocation in any reg (not only eax:edx) and implemented
14103 long shl/shr ops in asm instead of helpers.
14105 2004-05-05 Zoltan Varga <vargaz@freemail.hu>
14107 * mini-sparc.h: Fix warnings.
14109 * exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
14112 * mini-exceptions.c (mono_handle_exception): Call the filter in a
14113 separate statement for clarity.
14115 * mini-sparc.c: Update status.
14117 2004-05-04 Zoltan Varga <vargaz@freemail.hu>
14119 * mini-exceptions.c (ves_icall_get_frame_info): Flush register windows
14122 Mon May 3 22:58:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14124 * inssel-ppc.brg: another small pre-release workaround:
14125 we don't do overflow detection for long_sub_un.
14127 Sun May 2 20:12:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14129 * mini.c, mini-ops, inssel-long32.brg: speedup ulong >> 32
14130 (also works around a weird ppc bug: 57957).
14132 Sat May 1 16:56:10 EDT 2004 Paolo Molaro <lupus@ximian.com>
14134 * tramp-ppc.c: trampoline fixes.
14136 Fri Apr 30 15:54:26 EDT 2004 Paolo Molaro <lupus@ximian.com>
14138 * mini-ppc.c: fixed typos.
14140 Thu Apr 29 20:15:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
14142 * mini-ppc.c, exceptions-ppc.c: more code saves registers
14143 at the top of the stack. Fixed typos. Use a frame registers
14144 for all the methods with exception clauses.
14146 Thu Apr 29 18:52:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
14148 * exceptions-ppc.c: restore fp registers.
14150 Thu Apr 29 18:26:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
14152 * mini-ppc.c, exceptions-ppc.c: save the registers in reverse
14153 order from the stack top (moved the stack room to save the
14154 return value for trace after the param area). Fixed corruption
14155 in restoring registers on unwind.
14157 Thu Apr 29 16:47:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
14159 * mini-ppc.c, cpu-g4.md: fixed unisgned -> double conversion.
14161 Thu Apr 29 13:50:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14163 * exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
14164 and prolog/epilog for methods that use it. Allow
14165 enough param area room for varargs methods. Fix miguel's
14166 breakage in exception handling.
14168 Thu Apr 29 12:06:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14170 * Makefile.am: run genmdesc only on current arch.
14172 2004-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14174 * exceptions-x86.c:
14175 * mini-x86.h: fix the build on windows.
14177 2004-04-28 Zoltan Varga <vargaz@freemail.hu>
14179 * 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.
14181 * exceptions-sparc.c exceptions-ppc.c exceptions-s390.c mini-ppc.h mini-s390.h mini-sparc.h: Fix up ports after changes.
14183 * mini-exceptions.c: New file.
14185 * mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
14186 Move some parts of the x86 exception handling code to an
14187 arch-independent file so it can be shared with other ports.
14189 Tue Apr 27 12:15:59 CEST 2004 Paolo Molaro <lupus@ximian.com>
14191 * trace.c, cpu-g4.md, inssel-ppc.brg, mini-ppc.c: some fixes for FP code.
14193 2004-04-26 David Waite <mass@akuma.org>
14195 * driver.c: remove comma from end of enumeration declaration
14197 2004-04-26 Jackson Harper <jackson@ximian.com>
14199 * driver.c: parse config file before loading first assembly. This
14200 allows the user gac to be enabled/disabled.
14202 2004-04-23 Miguel de Icaza <miguel@ximian.com>
14204 * mini-ppc.c (ppc_patch): Replaced the branch code patching with a
14205 simpler mechanism: we do not care what is encoded initially
14206 (branch absolute or relative), we care about the code and its
14207 target. I kept the old code for reference for now.
14209 The new code tries first to determine if the jump is anywhere in
14210 the -/+32 absolute meg range, if it succeeds, it encodes using the
14211 absolute branch; If not, it tried to find something in the
14212 relative range, if not, it uses the handle_thunk code.
14214 Fri Apr 23 14:20:40 EDT 2004 Paolo Molaro <lupus@ximian.com>
14216 * exceptions-ppc.c: use the correct ip register on macosx.
14218 Thu Apr 22 13:23:16 EDT 2004 Paolo Molaro <lupus@ximian.com>
14220 * exceptions.c, mini.c, mini-ppc.h: adapt code to macosx.
14222 Thu Apr 22 18:08:37 CEST 2004 Paolo Molaro <lupus@ximian.com>
14224 * mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
14225 Raise exception on integer divide by zero by hand since the hw
14226 doesn't support it. Handle NaNs in FP compares.
14228 Thu Apr 22 16:10:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
14230 * exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
14231 code reducing duplication between the platforms and enabled
14232 signal exception handling (on linux for now).
14234 Wed Apr 21 12:27:48 EDT 2004 Paolo Molaro <lupus@ximian.com>
14236 * exceptions-ppc.c: more macosx support.
14238 Wed Apr 21 16:38:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14240 * mini-ppc.h, mini-ppc.c, cpu-g4.md: enable bigmul optimization.
14242 Wed Apr 21 16:20:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
14244 * mini.h, mini-ppc.c, cpu-g4.md: support for implicit exceptions.
14246 2004-04-19 Ben Maurer <bmaurer@users.sourceforge.net>
14248 * iltests.il: more tests.
14250 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
14252 * mini-*.c (mono_arch_get_allocatable_int_vars): Skip written-only
14255 Mon Apr 19 19:39:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
14257 * mini-ppc.c: some fixes to bootstrap mcs/corlib/etc.
14259 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
14261 * liveness.c: Mark variables as volatile in all basic blocks reachable
14262 from exception clauses.
14264 2004-04-18 Zoltan Varga <vargaz@freemail.hu>
14266 * exceptions.cs (test_0_rethow_stacktrace): Make this work with
14269 2004-04-18 Ben Maurer <bmaurer@users.sourceforge.net>
14271 * iltests.il, basic.cs: more tests for regalloc.
14273 2004-04-17 Ben Maurer <bmaurer@users.sourceforge.net>
14275 * iltests.il: Some tests for register allocation modifications
14278 2004-04-16 Zoltan Varga <vargaz@freemail.hu>
14280 * exceptions.cs: Add regression test for bug #56782.
14282 * exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
14283 original stack trace if an exception is rethrown. Fixes #56782. Oh,
14284 the beauty of fixing the same thing in 5 different files...
14286 2004-04-15 Zoltan Varga <vargaz@freemail.hu>
14288 * mini.c (mono_method_to_ir): Do not compute coverage for inlined
14291 2004-04-14 Zoltan Varga <vargaz@freemail.hu>
14293 * mini.c: Add support for STRWLPARRAY marshalling convention.
14295 Wed Apr 14 18:15:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
14297 * exceptions-ppc.c: missing fixes in mono_jit_walk_stack (need
14298 to init the context to setup the regs pointer).
14300 Wed Apr 14 17:59:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
14302 * exceptions-ppc.c: more exceptions work.
14304 Wed Apr 14 17:46:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14306 * mini.c: avoid reusing the same MonoInst on multiple trees: this is
14309 2004-04-13 Miguel de Icaza <miguel@ximian.com>
14311 * inssel-x86.brg (reg): Add new rules for add, sub and mul that
14312 can use the memory directly.
14314 * cpu-pentium.md: Update documentation from a post from Zoltan.
14316 add x86_add_membase, x86_sub_membase, x86_mul_membase
14318 2004-04-13 Miguel de Icaza <miguel@ximian.com>
14320 * mini-ppc.c: Remove unused definitions FLOAT_REGS and
14321 GENERAL_REGS they were also hardcoded for all PPC ports.
14323 (add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
14325 Remove hard-coded limit for floating point registers, use
14326 PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
14328 Notice that in MacOS X calling conventions you can fit a lot more
14329 floating point values in registers, so I should update the PInvoke
14330 test to excercise the passing of floating point values on the
14331 stack (currently broken).
14333 2004-04-06 Miguel de Icaza <miguel@ximian.com>
14335 * tramp-ppc.c (create_trampoline_code): Added
14336 JUMP_TRAMPOLINE_SIZE.
14337 (ppc_magic_trampoline): Follow the pattern from
14338 x86_magic_trampoline: if code is set to zero, return.
14339 (create_trampoline_code): Always pass MonoMethod to the jump
14340 trampoline, before it was passing a null.
14341 (mono_arch_create_jump_trampoline): Implement the jump stub, could
14342 share the code with mono_arch_create_jit_trampoline.
14344 * mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
14346 (mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
14349 * cpu-g4.md: Added length for jmp instruction, the worst case
14350 scenario is 92 bytes (4 mandatory bytes, potential 19 registers
14353 2004-04-08 Zoltan Varga <vargaz@freemail.hu>
14355 * aot.c (mono_compile_assembly): Add back unlink removed by mistake.
14357 2004-04-07 Zoltan Varga <vargaz@freemail.hu>
14359 * mini.c: Only set bblock->real_offset when adding a new bblock, and
14360 before each IL instruction.
14362 * mini.c (CEE_BOX): Fix warnings.
14364 2004-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14366 * mini.c: removed a few unused vars and extra whitespace.
14368 2004-04-05 Ben Maurer <bmaurer@users.sourceforge.net>
14370 * inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
14372 (MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
14374 (OP_GETCHR): use the above
14375 (CEE_LDELEMA): use the above.
14377 * inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
14378 version of the generic impl.
14379 (MONO_EMIT_BOUNDS_CHECK_IMM): the same
14380 (CEE_LDELEMA): use the above.
14382 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
14384 * inssel-long32.brg (CEE_CONV_OVF_I8): Sign extend the i4 value to i8.
14387 * iltests.il: Added new regression test for #56317.
14389 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
14391 * mini-x86.c (mono_arch_setup_jit_tls_data): Use pthread_attr_get_np
14392 under NetBSD. Fixes #56450.
14394 * liveness.c (update_gen_kill_set): Fix previous patch.
14396 2004-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14398 * mini-x86.h: SA_STACK defined as SA_ONSTACK. Fixed build under NetBSD.
14400 2004-04-02 Zoltan Varga <vargaz@freemail.hu>
14402 * mini.c (mono_method_to_ir): Avoid handle_loaded_temps in
14403 ldsfld and ldsflda.
14405 * inssel-sparc.brg: Add more optimizations.
14407 * mini-sparc.c: Replace multiply/divide with shifts if possible.
14409 2004-04-01 Martin Baulig <martin@ximian.com>
14411 * mini.c (handle_box): New static function; moved the
14412 implementation of CEE_BOX here.
14413 (mono_method_to_ir): Added `constrained_call' variable.
14414 (mono_method_to_ir:CEE_CONSTRAINED_): Set it.
14415 (mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
14416 mono_method_get_constrained() to get the method.
14418 2004-04-01 Martin Baulig <martin@ximian.com>
14420 * mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
14421 (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
14422 (mono_method_to_ir): We don't need these macros anymore since
14423 mono_class_get_full() already takes care of it.
14425 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14427 * aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
14428 use @function (as doesn't accept #function here) and check the return
14429 value of system and stop if fails.
14431 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14433 * mini.c: set the timeout to 2s when calling mono_domain_finalize.
14435 2004-03-31 Zoltan Varga <vargaz@freemail.hu>
14437 * mini-ppc.c (mono_arch_patch_code): Fix ppc build.
14439 * inssel-sparc.brg mini-sparc.c aot.c: Implement AOT support.
14441 * inssel-long32.brg (OP_LNEG): Use ADC instead of ADD here. Fixes
14444 * basic-long.cs: Add test for negation of Int64.MinValue.
14446 2004-03-30 Zoltan Varga <vargaz@freemail.hu>
14448 * mini-sparc.c: Update status.
14450 * mini-sparc.c tramp-sparc.c: Save lmf in trampolines.
14452 * exceptions-sparc.c: Fix return value in filters.
14454 * inssel-sparc.brg: Fix register allocation in some rules.
14456 2004-03-28 Martin Baulig <martin@ximian.com>
14458 * mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
14461 2004-03-28 Zoltan Varga <vargaz@freemail.hu>
14463 * mini-x86.c (mono_arch_patch_code): Fix warnings.
14465 * mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
14466 dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
14467 remove unused conv_u4 opcode.
14469 * mini-x86.c: Remove valgrind workaround since it slows down things
14470 even when mono is not run under valgrind.
14472 2004-03-26 Zoltan Varga <vargaz@freemail.hu>
14474 * mini-sparc.c: Update status.
14476 * inssel-sparc.brg: Add some optimizations.
14478 * inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
14479 future delay slot filling. Add support for varargs, tail calls and JMP.
14481 * inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
14482 CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
14484 * inssel.brg: Fix register allocation in OP_ARGLIST.
14486 * inssel.brg: Fix warnings.
14488 2004-03-25 Martin Baulig <martin@ximian.com>
14490 * mini.c (inflate_generic_field): Removed.
14491 (mini_get_method): Removed, use mono_get_method_full(),
14492 (mini_get_class): Removed, use mono_class_get_full().
14493 (mono_method_to_ir): Pass our generic context to
14494 mono_field_from_token().
14496 2004-03-25 Martin Baulig <martin@ximian.com>
14498 * mini.c (mini_get_class): Take a `MonoGenericContext *' instead
14499 of a `MonoMethod *'.
14500 (mini_get_method): Take a `MonoGenericContext *' instead
14501 of a `MonoMethod *'.
14502 (TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
14503 a new local variable called `generic_context' which holds the
14504 current `MonoGenericContext *'; use it to lookup things.
14506 2004-03-24 Martin Baulig <martin@ximian.com>
14508 * mini.c (mini_get_class): New static method; if we're inside a
14509 generic instance, inflate the class if neccessary.
14510 (mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
14512 2004-03-24 Zoltan Varga <vargaz@freemail.hu>
14514 * iltests.il: New regression test for #55976.
14516 * mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
14519 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
14521 * exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
14524 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
14526 * liveness.c: Consider SSA stores as well as loads when making vars
14529 * exceptions.cs: New regression tests for register allocation.
14531 2004-03-22 Lluis Sanchez Gual <lluis@ximian.com>
14533 * mini-ppc.c, tramp-ppc.c: Added lock for accessing the domain code manager.
14534 * mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
14535 domain lock only to protect puntual access to data structures.
14536 Added access lock for sighash, jit_icall_hash_name,
14537 jit_icall_hash_addr and domain->code_mp.
14539 2004-03-20 Zoltan Varga <vargaz@freemail.hu>
14541 * driver.c: Print SIGSEGV handling method.
14543 * mini-x86.c (mono_arch_free_jit_tls_data): Add missing ifdef.
14545 * mini.c (setup_jit_tls_data): Handle case when this is called
14546 multiple times for a thread.
14548 * mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
14549 is different from fbxx_un. Fixes #54303. Also use constants instead of
14550 magic numbers in a lot of places.
14552 2004-03-19 Zoltan Varga <vargaz@freemail.hu>
14554 * exceptions.cs: Fix cctor test when --regression is used.
14556 Thu Mar 18 19:57:56 CET 2004 Paolo Molaro <lupus@ximian.com>
14558 * mini-ppc.c, exceptions-ppc.c: basic exceptions support
14561 Thu Mar 18 19:56:19 CET 2004 Paolo Molaro <lupus@ximian.com>
14563 * inssel-ppc.brg: fixed register assignments for some rules.
14565 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
14567 * exceptions.cs: Add test for exceptions in static constructors.
14569 * mini.c (mono_jit_compile_method_with_out): Move the calling of
14570 static constructors outside the domain lock. Fixes #55720.
14572 2004-03-17 Martin Baulig <martin@ximian.com>
14574 * mini.c (get_generic_field_inst): Removed, this'll never happen.
14575 (inflate_generic_field): Take the `MonoMethod *' instead of the
14576 `MonoClass *' and added support for generic method.
14577 (mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
14578 have a `field->parent->gen_params', only inflate the field if it's
14579 an open constructed type.
14581 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
14583 * exceptions-x86.c (mono_arch_handle_exception): Allocate a new
14584 exception object instead of the preconstructed ones.
14586 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14588 * mini.c: reverted changed to sigsegv_signal_handler commited
14589 accidentally in the previous patch.
14591 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14594 (mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
14595 running --aot with an old assembly.
14597 2004-03-16 Zoltan Varga <vargaz@freemail.hu>
14599 * mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
14602 * mini-sparc.c: Add support for v9 branches with prediction.
14604 2004-03-15 Bernie Solomon <bernard@ugsolutions.com>
14606 * mini.c (mini_init): #warning is GNUC only
14608 * mini-sparc.h: implement __builtin_frame_address
14609 and __builtin_return_address for Sun C compiler
14611 2004-03-15 Zoltan Varga <vargaz@freemail.hu>
14613 * exceptions-sparc.c (mono_arch_has_unwind_info): Add missing function.
14615 2004-03-14 Zoltan Varga <vargaz@freemail.hu>
14617 * basic-calls.cs: Add test for unaligned byref long argument passing.
14619 * mini-ops.h: Add sparcv9 compare and branch instructions.
14621 * inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
14622 v9 instructions if we have a v9 cpu.
14624 * mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
14625 registers for global allocation.
14627 * exceptions-sparc.c: Fixes.
14629 2004-03-11 Zoltan Varga <vargaz@freemail.hu>
14631 * liveness.c (mono_analyze_liveness): Optimized version.
14633 * inssel-sparc.brg cpu-sparc.md: Ongoing sparc work.
14635 * mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Ongoing
14638 * basic-float.cs basic-calls.cs: New regression tests.
14640 2004-03-10 Zoltan Varga <vargaz@freemail.hu>
14642 * mini-x86.h: Define SIGSEGV_ON_ALTSTACK only if we have a working
14643 sigaltstack implementation.
14645 * mini-x86.c (mono_arch_setup_jit_tls_data): Fix previous patch.
14647 * mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
14648 stuff if SIGSEGV_ON_ALTSTACK is not defined.
14650 2004-03-09 Zoltan Varga <vargaz@freemail.hu>
14652 * mini.c: Fix warnings.
14654 * mini.c (mono_resolve_patch_target): New function which contains the
14655 arch independent part of the patching process.
14657 * mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
14658 patching code to a separate function.
14660 2004-03-09 Bernie Solomon <bernard@ugsolutions.com>
14662 * mini.c (add_signal_handler): ifdef out on Windows
14664 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
14666 * mini-sparc.h mini-sparc.c inssel-sparc.brg exceptions-sparc.c
14667 cpu-sparc.md: Add exception handling support + other fixes.
14669 * driver.c: Print --help output to stdout. Fixes #55261. Also fix
14670 typed GC detection in --version.
14672 * basic.cs exceptions.cs: New regression tests.
14674 * mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
14675 the arch specific code can store data during a compilation.
14677 * mini-ops.h: Add OP_SETFRET.
14679 * mini.c (mini_get_ldelema_ins): Instead of allways calling the same
14680 function, register a separate icall for each arity, so the icalls can
14683 * mini.c (mono_print_tree): Print negative offsets in a more readable
14686 * mini.c: Make signal handling work on sparc.
14688 * mini.c (mini_init): Add emulation for lconv_to_r8_un.
14690 * inssel-long32.brg: Fix OP_LSUB_OVF_UN rule.
14692 * jit-icalls.c: Emulate truncl by aintl on solaris.
14694 * jit-icalls.c (mono_lconv_to_r8_un): New icall emulation function.
14696 2004-03-05 Zoltan Varga <vargaz@freemail.hu>
14698 * mini.c (mini_init): fconv_to_ovf can raise exceptions.
14700 2004-03-04 Lluis Sanchez Gual <lluis@ximian.com>
14702 * mini.c: In CEE_ISINST and CEE_CASTCLASS, if the type is an interface or
14703 a MarshalByRef type, inline a method that performs the check, taking into
14704 account that the object can be a proxy. Also implemented tow new opcodes:
14705 CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
14706 * inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
14707 OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
14709 Tue Mar 2 17:23:48 CET 2004 Paolo Molaro <lupus@ximian.com>
14711 * mini-ppc.c: if a relative branch displacement is too big
14712 but it points to and area reachable with an absolute branch,
14715 Tue Mar 2 16:59:40 CET 2004 Paolo Molaro <lupus@ximian.com>
14717 * mini.c: optimize small copies in cpblk.
14719 2004-03-01 Zoltan Varga <vargaz@freemail.hu>
14721 * basic-calls.cs basic-float.cs: New regression tests.
14723 * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
14724 negative offsets from %fp. Implement localloc. Fix local register
14725 allocation. Fix the case when the this argument needs to be saved to
14726 the stack. Implement some missing opcodes.
14728 2004-02-26 Zoltan Varga <vargaz@freemail.hu>
14730 * mini.c (mini_method_compile): Reenable global regalloc in methods
14731 with exception handlers.
14733 * linear-scan.c (mono_varlist_sort): Fix warning.
14735 * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
14737 * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
14740 * liveness.c: Make all variables uses in exception clauses volatile, to
14741 prevent them from being allocated to registers. Fixes #42136.
14743 2004-02-25 Zoltan Varga <vargaz@freemail.hu>
14745 * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
14746 causes regressions.
14748 * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
14749 argument to mono_arch_regalloc_cost.
14751 * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs
14754 2004-02-24 Zoltan Varga <vargaz@freemail.hu>
14756 * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
14757 Make the cost of allocating a variable to a register arch dependent.
14759 * basic-calls.cs: Fix compilation of tests.
14761 * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
14762 helper function to cut back on the number of #ifdefs needed.
14764 * mini-ppc.c: Fix compilation.
14766 * basic-calls.cs: New regression tests.
14768 * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
14770 * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
14771 of l0 since that is callee saved.
14773 * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
14776 * mini-sparc.c: Ongoing work + flag virtual calls with a special kind
14777 of delay instruction.
14779 * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
14781 * mini.h (MonoCallInst): Add 'virtual' flag.
14783 * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
14785 2004-02-23 Zoltan Varga <vargaz@freemail.hu>
14787 * *.cs: New regression tests.
14789 * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc
14792 * mini.c (mono_runtime_install_handlers): Fix build.
14794 * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
14795 'signal_stack_size' members.
14797 * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an
14798 alternate signal stack.
14800 * exceptions-x86.c: Add stack overflow handling.
14802 * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing
14803 functions to arch independent code.
14805 * mini.c (mono_print_tree): Print more detailed info for load_membase
14808 2004-02-23 Martin Baulig <martin@ximian.com>
14810 * mini.c (mini_get_method): Set `gmethod->generic_inst'.
14812 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
14814 * mini-x86.c: fixed reg allocation for div/rem.
14816 2004-02-22 Miguel de Icaza <miguel@ximian.com>
14818 * driver.c (mono_main): Report some configuratio options on --version.
14820 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
14822 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
14823 low in the address space. Correctly flush memory in thunks where we
14824 output native code.
14826 2004-02-20 Martin Baulig <martin@ximian.com>
14828 * mini.c (mini_get_method): New static method; inflate all generic
14829 methods and methods in open generic instances.
14830 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
14831 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
14833 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
14835 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
14837 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
14839 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
14841 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
14843 * mini-sparc.c (flushi mono_arch_output_basic_block): make
14844 it compile using Sun's compiler.
14846 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
14848 * 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.
14850 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
14852 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
14854 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
14856 * mini-ppc.c: handle calls outside of the allowed range with thunks
14857 allocated using the code manager.
14858 * tramp-ppc.c: use the code manager to hold generated native code.
14859 Fixed the magic trampoline to just patch vtable entries.
14861 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
14863 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
14866 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
14868 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
14871 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
14872 if we have a working __thread implementation.
14874 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
14875 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
14877 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
14879 * mini-x86.c: Fix compilation under gcc 2.
14881 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
14883 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
14884 contains a call to the wrapped function.
14886 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
14887 OP_<CALL>_IMM opcodes, and use them under X86.
14889 * mini.c (mono_jit_find_compiled_method): Fix warning.
14891 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
14893 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
14895 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
14896 functionality to mini.c.
14898 * mini.c (mono_create_jump_trampoline): New function to create a jump
14899 trampoline. Return a compiled method instead of a trampoline if it
14900 exists. Add a cache for jump trampolines.
14902 * mini.c (mono_jit_find_compiled_method): New function to return a
14903 compiled method if it exists.
14905 * mini-x86.c: Call mono_create_jump_trampoline instead of
14906 mono_arch_create_jit_trampoline.
14908 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
14909 a jump trampoline. Fixes #52092.
14911 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
14913 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
14914 which is not up-to-date. Add check_corlib_version () instead.
14916 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
14919 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
14920 since newer valgrind versions do not need it.
14922 * mini.c (mono_jit_compile_method_with_opt): New helper function to
14923 compile a method with a given set of optimizations.
14925 * mini.c: Compile icall wrappers on-demand instead of at startup.
14927 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
14928 wrapper for an icall.
14930 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
14932 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
14935 * iltests.il: Add test for non-empty stack before switch instruction.
14937 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
14939 * mini.c: Add support for new stringbuilder marshalling conventions.
14941 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
14943 2004-02-01 Martin Baulig <martin@ximian.com>
14945 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
14946 in `ginst->mtype_argv'.
14948 2004-01-31 Miguel de Icaza <miguel@ximian.com>
14950 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
14951 facilitate grepping.
14953 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
14955 * mini.c: fixed buglet in initobj generic implementation for references.
14957 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
14959 * Makefile.am: make the version script conditional.
14960 * jit-icalls.c: handle missing truncl().
14962 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
14964 * exceptions.cs: Add more tests for double->int conversion.
14966 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
14967 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
14969 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
14971 * driver.c: make --verbose --version emit an error
14972 if the loaded corlib doesn't match the runtime version.
14974 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
14976 * mini-ppc.h: export ppc_patch().
14977 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
14978 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
14979 on par or better than on MacOSX.
14981 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
14983 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
14984 mono_lookup_pinvoke_call.
14986 * mini-x86.c: Under windows, the default pinvoke calling convention is
14987 stdcall. Fixes #52834.
14989 * mini.c (optimize_branches): Add an upper bound to the number of
14990 iterations to prevent infinite loops on strange loops. Fixes #53003.
14992 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
14994 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
14995 and ISINST. Fixes #52093.
14997 * objects.cs (test_0_vector_array_cast): New tests.
14999 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
15001 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
15002 checking in Array.Set ().
15004 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
15007 * object.cs (test_0_multi_array_cast): New regression test.
15009 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
15011 * exceptions-ppc.c: fix build on Linux/PPC.
15013 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
15015 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
15016 running under valgrind.
15017 (x86_magic_trampoline): Fix build bustage.
15019 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
15020 negative values as well. This is needed for the encoding of the line number
15021 info, since sometimes the line numbers are not in increasing order.
15023 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
15025 * cpu-pentium.md (localloc): Increase the size of the localloc
15026 instruction since it is a loop under Win32.
15028 * debug-mini.c (record_line_number): Get rid of unneccesary memory
15031 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
15033 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
15034 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
15035 Max Horn (max@quendi.de). Fix file names in comments.
15037 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
15039 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
15040 avoid stack overflow.
15041 (replace_usage): Avoid uninitialized variable warnings.
15043 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
15044 and taking the address of valuetype variables.
15046 2004-01-03 Patrik Torstensson
15048 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
15049 for other purposes than FP later on.
15051 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
15053 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
15056 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
15058 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
15060 2003-12-30 Patrik Torstensson <p@rxc.se>
15062 * mini-x86.h: Decreased number of availiable fp regs.
15063 Solves corner cases with FP spilling.
15065 2003-12-23 Patrik Torstensson <p@rxc.se>
15067 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
15068 for floating point stack tracking / spilling on x86.
15071 * basic-float.cs: added float mul overflow test.
15073 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
15075 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
15077 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
15079 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
15080 supports for cond branches that overflow the immediate
15081 overflow offset. mcs can compile simple programs.
15083 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
15085 * exceptions-ppc.c: exception handling support wip:
15086 finally handlers get run on exception.
15088 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
15090 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
15093 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
15095 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
15096 initial support for stack walking and unwinding.
15098 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
15100 * driver.c (mono_main): Make corlib-out-of-sync message more
15101 descriptive. Also remove verify_corlib call.
15103 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
15105 * mini.c: make CEE_NEWARR calls and other emulated opcodes
15106 not overlap with other call's arguments, too.
15108 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
15110 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
15111 move to arch-specific code the choice of arch-specific
15112 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
15113 * mini.c: ensure emulation calls will not interleave
15116 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
15118 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
15119 the magic trampoline stack frame is dropped before executing
15122 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
15124 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
15125 and integer to fp conversions. Added support for overflowing
15126 arguments on the stack. Reserve a couple more registers as temps.
15127 Added support for aot compilation (as output still needs to be
15130 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
15132 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
15133 Don't overwrite return register in some corner cases.
15135 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
15137 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
15138 static constructors when AOT compiling.
15140 * driver.c (mono_main): Call mono_check_corlib_version.
15142 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
15144 * cpu-g4.md, basic.cs: fixed div target register.
15146 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
15148 * mini-ppc.c, basic.cs: shl_imm fix with test.
15150 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
15152 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
15153 structures by value. Misc fixes.
15154 * objects.cs: more tests.
15156 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
15158 * mini-ppc.c: lconv.ovf.i implemented.
15160 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15163 (mini_init): don't error out if someone already called g_thread_init.
15165 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
15167 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
15168 to be any type per the spec. Fix abnormal memory usage when
15169 the same object is repeatedly thrown.
15171 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
15173 * mini.c: check for overruns in IL code.
15175 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
15177 * TODO: Add/remove some todo entries.
15179 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
15181 * driver.c (mono_main): Call mono_verify_corlib.
15183 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
15185 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
15186 This has been moved to mini.c
15187 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
15188 type being casted is marshalbyref it could be a proxy, so instead of
15189 emitting the type check code, emit a call to a runtime method that will
15190 perform the check by calling CanCastTo if needed.
15192 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
15194 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
15195 methods with large stack frames under Win32.
15197 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
15199 * Makefile.am: Distribute regression tests.
15201 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
15202 at the end instead of inserting each variable into the sorted list.
15204 * linear-scan.c (mono_varlist_sort): New helper function.
15206 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
15208 * mini.c: ensure arguments and locals are within bounds.
15210 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
15212 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
15215 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
15217 * mini.c (mono_cprop_copy_values): Fix crash.
15219 * aot.c: Set verbosity back to 0.
15221 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
15223 * regalloc.c: complete memory leak fix by Laurent Morichetti
15226 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
15228 * driver.c (main_thread_handler): Revert the previous patch.
15230 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
15233 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
15234 memory from the memory pool.
15236 * driver.c (main_thread_handler): Turn on all optimizations when
15239 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
15240 an array for better performance.
15242 * regalloc.c (mono_regstate_assign): Fix memory leak.
15244 * debug-mini.c (mono_debug_serialize_debug_info): New function to
15245 serialize the debug info.
15247 * debug-mini.c (mono_debug_add_aot_method): New function to load the
15248 debug info from the serialized representation.
15250 * aot.c: Save debug info into the generated file and load it when
15253 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
15255 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
15257 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
15258 More FP-related fixes.
15260 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
15262 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
15263 and register allocation buglet. Hello world now runs.
15265 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
15267 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
15268 * tramp-ppc.c: fixed class init trampoline.
15269 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
15271 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
15273 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
15274 mini.c: more ppc changes/fixes.
15276 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
15278 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
15279 Also optimize the case when the arguments are the same in the caller
15282 * iltests.il: Add tests for tail calls with valuetype arguments.
15284 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
15286 * mini-ppc.c: fixes for struct return type.
15288 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
15290 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
15291 mono_spillvar_offset() to arch-specific code.
15293 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
15295 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
15297 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
15299 * exceptions-x86.c: Fix stack space leaks.
15301 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
15302 registers from the lmf if the method has save_lmf set.
15304 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
15306 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
15307 of icall wrappers into InvokeInDomain, since these are now per-domain.
15309 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
15311 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
15312 make some opcode emulation and intrinsic ops enabled/disabled
15313 according to the architecture. More fixes.
15315 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
15317 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
15319 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
15321 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
15322 arch-specific handling for 'this' and struct return type to
15323 arch-specific code.
15325 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15327 * aot.c: prevent divide by zero error when reporting (it happened with
15328 Accessibility.dll).
15330 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
15332 * mini.h (inst_switch): Remove unused macro.
15334 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15337 (load_aot_module): free 'info->methods' and 'info' properly. No more
15338 "free(): invalid pointer blah" messages when you have an old aot
15341 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
15343 * jit-icalls.c, mini.c: Added support for context static fields.
15345 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
15347 * mini.c (mono_method_blittable): Methods which set LastError are not
15348 blittable either. Fixes #51108.
15350 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
15352 * mini.c: flush icache.
15353 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
15355 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
15357 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
15359 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
15361 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
15364 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
15367 * inssel.brg (CEE_MKREFANY): Fix AOT case.
15369 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
15371 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
15372 instruction when the result is discarded.
15374 * iltests.il (test_0_div_regalloc): New regression test.
15376 * arrays.cs: Fix compilation error.
15378 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
15380 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
15381 float rules to inssel-x86.brg: sane architectures with FP registers
15382 don't need to implement these rules.
15384 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
15386 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
15388 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
15390 * mini.h, inssel-long32.brg: fixed endianess issues in int64
15391 implementation of 32 bit systems.
15393 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
15395 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
15396 (Jeroen Zwartepoorte).
15398 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
15400 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
15401 the caller and the callee matches.
15403 * mini.c (mono_method_to_ir): Add comment.
15405 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
15406 signbit is missing on some platforms.
15408 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
15410 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
15412 * mini.c (setup_jit_tls_data): Call the new function.
15414 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
15416 * mini-x86.c: Add experimental support for fast access to the lmf
15417 structure under NPTL/Linux 2.6.x.
15419 2003-11-06 Martin Baulig <martin@ximian.com>
15421 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
15422 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
15425 2003-11-02 Martin Baulig <martin@ximian.com>
15427 * mini.c (inflate_generic_field): New static method.
15428 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
15429 generic instance and the field is declared in a generic type, call
15430 inflate_generic_field() to inflate it. Fixes gen-28.cs.
15432 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
15434 * mini.h mini.c (mono_method_same_domain): New function to return
15435 whenever the caller and the callee are in the same domain.
15437 * tramp-x86.c (x86_magic_trampoline): Use the new function.
15439 2003-10-30 Martin Baulig <martin@ximian.com>
15441 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
15442 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
15444 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
15445 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
15447 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
15449 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
15452 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
15453 object here, so it is in the correct appdomain etc.
15455 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
15457 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
15459 (mono_method_to_ir): Avoid freeing the type created returned from
15460 mono_type_create_from_typespec, since it is put into an internal cache
15461 by the function. Fixes pointer.exe.
15463 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
15464 trampolines for icalls and pinvokes as well. Fixes #33569.
15466 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
15468 * mini.c: Update after appdomain changes.
15470 * mini.c (mono_jit_compile_method_inner): Allways compile native
15471 method wrappers in the root domain, since there can only be one
15472 instance of them, whose address is stored in method->info.
15474 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
15476 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
15477 environment variable. Instead detect automatically whenever running
15478 under valgrind using the magic macro RUNNING_ON_VALGRIND from
15481 2003-10-16 Miguel de Icaza <miguel@ximian.com>
15483 * trace.c, trace.h: New files that implement the new trace option
15486 * driver.c: Document new --trace options.
15488 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
15491 - if (mono_jit_trace_calls)
15492 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
15494 * mini.h: prototypes.
15496 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
15498 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
15500 * mini.c inssel.brg: Implement typedefbyref opcodes.
15502 * mini.c (mono_jit_compile_method): Remove unused local variable.
15504 * mini.c (mono_jit_compile_method_inner): Ditto.
15506 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
15508 * tramp-x86.c (x86_class_init_trampoline): Fix build.
15510 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
15512 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
15514 * mini.c (mono_no_aot): Remove unused global variable.
15516 * mini.c: Thread safety fixes.
15518 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
15520 * mini.c (mono_create_class_init_trampoline): Add a lock around
15521 class_init_hash_addr.
15523 * arrays.cs (test_0_newarr_emulation): Add new regression test for
15526 * mini.c: Decompose the NEWARR instruction before decomposing its
15527 arguments. Fixes #30073.
15529 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
15531 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
15534 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
15536 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
15538 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
15540 * driver.c: Add support for compiling icall wrappers to --compile.
15542 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
15544 * inssel.brg: The empty value in class->interface_offsets is -1, not
15547 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
15549 * objects.cs: New test for 'is' operator on an array of interfaces.
15551 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
15553 * tramp-ppc.c: update trampoline code to support jumps
15554 and class initialization.
15556 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
15558 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
15560 * inssel.brg (OP_UNBOXCAST): Fix #46027.
15562 * inssel.brg (OP_UNBOX): Remove unused rule.
15564 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
15565 region instead of one for each method. Fixes #47813.
15567 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
15569 * exceptions.cs (test_0_nested_finally): New regression test for
15570 nested exception handlers.
15572 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
15574 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
15576 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
15579 * mini.c (mono_method_check_inlining): Make the inlining limit
15580 configurable by an environment variable.
15582 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
15584 * mini.h: Bump AOT file version.
15586 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
15587 token, store the image along with the token, since the token might not
15588 refer to the same image as the method containing the relocation,
15589 because of inlining.
15591 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
15593 * mini.c (mono_precompile_assemblies): New function to compile
15594 all methods in all loaded assemblies.
15596 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
15598 * regalloc.h regalloc.c (MonoRegState): Change the type of
15599 iassign and fassign to int*, since they can contain large negative
15600 values if the register is spilled. Also added some comments. Fixes
15603 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
15604 under Win32. Fixes #42964.
15606 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
15608 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
15610 * aot.c: Added support for AOT compiling methods which contain calls
15611 to wrappers. Currently, only remoting-invoke-with-check wrappers are
15614 * driver.c (compile_all_methods): Run the compilation in a thread
15615 managed by mono. Fixes #44023.
15617 * mini.c (mono_codegen): Print full method name in verbose output.
15619 * mini-x86.c (mono_arch_patch_code): Fix warning.
15621 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
15622 jumps, since the method we are jumping to might be domain-specific.
15624 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
15626 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
15628 * inssel.brg: string chars are unsigned.
15630 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
15632 * TODO: New todo item.
15634 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
15635 which calls mono_runtime_class_init and patches the call site to
15636 avoid further calls.
15637 (mono_arch_create_class_init_trampoline): New arch specific function
15638 to create a class init trampoline.
15639 (create_trampoline_code): Generalized so it can create
15640 class init trampolines as well.
15642 * mini.c (helper_sig_class_init_trampoline): New helper variable.
15643 (mono_create_class_init_trampoline): New function to create and cache
15644 class init trampolines.
15645 (mono_find_class_init_trampoline_by_addr): New function to lookup the
15646 vtable given the address of a class init trampoline. Used by the
15648 (mono_codegen): Generate a call to a trampoline instead of
15649 mono_runtime_class_init in LDSFLD[A].
15650 (mono_codegen): Add relocations for the new trampoline.
15652 * mini.h mini-x86.c aot.c: Added a new relocation type:
15653 MONO_PATCH_INFO_CLASS_INIT.
15655 * mini.h: Bump AOT version number.
15657 * aot.c: Create a copy of the loaded code instead of using the original
15658 so methods which call each other will be close in memory, improving
15661 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
15662 patch since it breaks the regression tests.
15664 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
15665 for the register saving instruction sequence since the
15666 frame_state_for function in glibc 2.3.2 don't seem to detect it.
15668 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
15670 * TODO: Fix todo item && remove another.
15672 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
15674 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
15677 * aot.c: Moved the check for MONO_LASTAOT into the initialization
15678 function of the module.
15680 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
15681 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
15682 --no-aot command line option.
15684 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
15686 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
15687 by Bernie Solomon (bernard@ugsolutions.com).
15689 * inssel.brg: Refactor the interface offset table related code into
15690 its separate functions and add support for the AOT case.
15692 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
15694 * aot.c (mono_aot_get_method_inner): Fix memory leak.
15696 * aot.c: Added mono_aot_verbose variable and made all debugging
15697 output depend on the value of this variable.
15699 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
15700 method_label and info_label.
15702 * mini.h mini-x86.c aot.c: Added a new relocation type
15703 MONO_PATCH_INFO_IID for klass->interface_id.
15705 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
15706 the MonoJitInfo structure.
15708 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
15709 a non-root appdomain in shared mode.
15711 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
15713 * aot.c: make aot loader less verbose. Remove free of unused variable.
15715 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
15717 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
15719 * .cvsignore: Added *.dll.
15721 * mini.c (mono_print_tree_nl): New function callable while debugging.
15723 * mini.c (mono_print_code): Export this.
15725 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
15728 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
15730 * mini.h (MonoCompile): Added 'jit_info' field.
15732 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
15733 the cfg structure, since it is needed by the AOT compiler.
15735 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
15737 * aot.c: A major rewrite. Changes include:
15738 - save exception tables for methods which have them.
15739 - cache failed lookups in aot_get_method () to avoid the (slow) calls
15740 to g_module_symbol.
15741 - reworked the file format so it is now much smaller and needs
15742 fewer relocation entries.
15744 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
15746 * aot.c (load_aot_module): Fix build bustage on platforms without
15749 2003-09-04 Martin Baulig <martin@ximian.com>
15751 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
15753 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
15755 * TODO: Some new optimization ideas.
15757 * aot.c: Move AOT module loading logic here from mono_assembly_open.
15759 * aot.c: Save the optimization flags used to compile the code into
15762 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
15763 support emitting domain specific code.
15765 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
15766 no longer domain neutral. It can be made domain neutral by compiling
15767 with --optimize=shared.
15769 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
15770 between appdomains.
15772 * driver.c mini.h mini.c: New --no-aot debugging option which disables
15773 loading of AOT code.
15775 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
15777 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
15778 if there is no domain neutrality information.
15780 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
15782 * aot.c (mono_compile_assembly): Emit a symbol containing the file
15783 format version into the generated library.
15785 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
15786 callee method into the caller since one of them could be shared.
15788 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
15789 system exceptions from AOT code now works.
15791 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
15792 method if it is domain neutral and the callee is not.
15794 * graph.c (cfg_emit_one_loop_level): Fix warning.
15796 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
15798 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
15801 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
15803 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
15804 is needed by code which is executed before mono_runtime_init ().
15805 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
15807 * mini.c (mono_thread_abort): Fix warning.
15808 (mono_jit_compile_method): Call static constructor in the AOT case too.
15810 * aot.c (mono_compile_assembly): Fix warning.
15812 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15814 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
15816 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
15818 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
15820 * cpu-pentium.md: Fix the length of call opcodes so they include the
15821 ESP restoring instruction. Fixes #47968.
15823 2003-08-28 Martin Baulig <martin@ximian.com>
15825 * mini-x86.c (mono_arch_call_opcode): Added support for
15826 MONO_TYPE_GENERICINST.
15828 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
15830 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
15832 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
15833 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
15835 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
15838 2003-08-26 Martin Baulig <martin@ximian.com>
15840 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
15841 when reporting an error, set this to the actual error location.
15842 (mono_method_to_ir): Report the correct error location if
15843 get_basic_blocks() returned an error.
15845 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
15847 * mini.c (mono_type_blittable): OBJECT is not blittable.
15848 (mono_method_blittable): Methods which have marshalling descriptors
15849 are not blittable either. Fixes #47842.
15851 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
15853 * driver.c mini.c: Use an environment variable instead of a global
15854 variable. Also fix the build.
15856 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
15857 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
15860 * driver.c mini.c: Added --with-valgrind option to turn off some
15861 code which prevents mono from running under valgrind.
15863 * mini.c (mono_emit_call_args): Fixed warning.
15865 * mini.c (mono_emulate_opcode): Fixed warning.
15867 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15869 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
15870 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
15871 regalloc.c, regalloc.h: specify available registers in arch-specific
15872 code and support floats in the regallocator (patch by Laurent Morichetti
15875 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
15877 * mini.c: mono_thread_current() can be called only after
15878 mono_runtime_init(): rearrange code to not call it early on.
15880 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
15882 * mini.c: allocate jump tables in the code mempools.
15884 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
15886 * mini.c, mini.h: make sure per-thread data allocated by the jit is
15889 2003-08-10 Miguel de Icaza <miguel@ximian.com>
15891 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
15892 12 to 16. This fixes bug #47453.
15895 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
15897 * mini-ppc.c: fixed indexed load and unsigned compares.
15899 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
15901 * mini.c: reenabled installation of handler for
15902 thread abort signal.
15904 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15906 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
15907 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
15908 until it's fixed and actually useful.
15910 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
15912 * inssel-long32.brg: couple more opcodes implemented.
15914 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
15916 * mini-sparc.c: Even more opcodes implemeted.
15918 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
15920 * mini-sparc.c: More opcodes implemented.
15922 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
15924 * mini-sparc.c: More opcodes implemented.
15926 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
15928 * inssel-sparc.brg: Add some needed rules. Direct
15930 * Makefile.am: Use inssel-sparc.brg
15931 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
15932 an assert happy for now.
15934 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
15936 * mini-sparc.c: Fixed compile errors.
15937 * exceptions-sparc.c: Same. We now produce a mono binary
15938 on sparc-linux. Yea.
15940 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
15942 * mini-sparc.c: Renamed registers. Also some macro cleanups.
15943 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
15944 They compile, but do not work.
15946 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
15948 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
15949 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
15950 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
15953 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15955 * mini.c: more opcodes implemented and better support for generics.
15957 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
15959 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
15960 * mini.c, mini.h: first cut at generics support: some new instructions
15961 added and changed the behaviour of some of the existing ones.
15963 2003-07-21 Miguel de Icaza <miguel@ximian.com>
15965 * mini.c: Removed definition of metadata_shared mutex here.
15967 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
15969 * mini-x86.c: make vararg calls work for instance methods.
15971 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
15973 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
15974 returns the arguments in a separte list, now.
15976 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
15978 * aot.c, mini.c: updates for array type representation changes.
15980 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
15982 * mini.c: register function to perform jit shutdown.
15984 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
15986 * mini.c: use a faster allocator if possible.
15988 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
15990 * aot.c: some cleanups and portability changes.
15992 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
15994 * mini.c: use faster allocation for CEE_BOX if possible.
15996 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
15998 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
15999 Moved inlined mempcy code to its own function so that is can be
16000 reused. Added an inline memset function as well (optimized initobj).
16001 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
16003 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
16005 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
16007 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
16009 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
16010 arch code can setup the cpu for CLR execution, if needed.
16011 We use it on x86 to set the precision of FP operations.
16013 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
16015 * mini.c: disable some optimizations if we can guess they'll cost too
16016 much for a given method.
16018 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
16020 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
16022 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
16023 * mini.h mini.c mini-x86.c: Added instruction level coverage
16024 info collection support.
16026 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16028 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
16029 is now implemented in the profiling API. Get rid of a couple of
16030 unnecessary global variables.
16032 2003-06-15 Nick Drochak <ndrochak@gol.com>
16034 * basic-long.cs: tests for negative values for bigmul, and unsigned.
16035 * cpu-g4.md: add op_bigmul and op_bigmul_un
16036 * cpu_pentium.md: add op_bigmul_un
16037 * inssel-long32.brg: add rule for unsigned bigmul
16038 * mini-ops.h: define OP_BIGMUL_UN
16039 * mini-x86.c: THE BUG: handle (un)signed properly
16040 * mini.c: choose unsigned opcode if needed.
16041 This set of patches fixes bug #44291
16043 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
16045 * mini.c (optimize_branches): improved to handle all kinds of
16046 conditional branches.
16048 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
16050 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
16051 don't raise exceptions.
16053 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
16055 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
16056 to arch-specific files.
16058 2003-06-09 Martin Baulig <martin@ximian.com>
16060 * Makefile.am (libs): Added $(LIBGC_LIBS).
16062 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
16064 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
16065 and OP_ATAN (fixes bug#44293).
16067 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
16069 * Makefile.am, mini-x86.c: rename cpu description array to
16070 pentium_desc, since some compilers define the 'pentium' preprocessor
16073 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
16075 * mini.c (mini_select_instructions): add explicit branch if the
16076 following block is not the false target of a conditional branch -
16077 we need this with any optimization that reorder or remove bblocks
16079 * mini.c (optimize_branches): bug fixes
16081 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
16083 * mini.c (mono_method_to_ir): inline static readonly fields
16085 * ssa.c (fold_tree): start cfold support for long (very simple
16088 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
16090 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
16092 * inssel.brg: fixed memcpy (bug #44219).
16094 2003-06-05 Dick Porter <dick@ximian.com>
16096 * driver.c: Set the glib log levels to not abort if g_message
16099 g_set_prgname() has to happen before mini_init() so that the
16100 process handle gets the info.
16102 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16104 * driver.c: add intrins to the default optimizations to get wider
16107 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
16109 * mini.h: some large basic blocks will overflow a 16-bit
16110 integers for symbolic registers.
16112 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
16114 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
16115 (mono_arch_output_basic_block): fix bug 43499
16117 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
16119 * mini.c: kill duplicated definition of mono_debug_format.
16121 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
16123 * mini-x86.c, arrays.cs: fixed register allocation bug.
16125 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
16127 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
16129 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
16131 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16134 (print_method_from_ip): also print source location information if
16137 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
16139 * mini.c (mono_find_block_region): bug fix in region code
16140 (mini_method_compile): enable removing unreachable code again, but
16141 only in methods without exception clauses.
16143 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
16145 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
16146 Implemented arglist opcode and handling of TypedReference type.
16147 Fixed x86 call convention when a structure is returned.
16148 Minimal support for calling static vararg methods.
16150 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
16152 * mini.c (mini_method_compile): always remove unreachable code,
16153 because the code in them may be inconsistent (access to dead
16154 variables for example).
16156 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
16158 * driver.c, debug-mini.c: warning fixes.
16160 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
16162 * Makefile.am, jit.h, mini.h: install header for embedding mono.
16164 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
16166 * mini.c: thread-static fields are registered in mono_class_vtable(),
16167 so ensure the function is called before checking for them.
16169 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
16171 * mini.c (optimize_branches): fix for bug 43586
16173 * jit-icalls.c (mono_llmult_ovf): added an additional check for
16174 overflow (fixes Bug #43639)
16176 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16178 * mini.c, objects.cs: allow the use of stobj for primitive types.
16180 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16182 * mini.c: be less strict about argument checking until we support
16183 running the verifier.
16185 2003-05-27 Nick Drochak <ndrochak@gol.com>
16187 * basic-long.cs: tests for (ulong)int * (ulong)int also
16188 * mini.c: use the same trick for (ulong)int * (ulong)int
16190 2003-05-27 Nick Drochak <ndrochak@gol.com>
16192 * basic-long.cs: add regression test for (long)int * (long)int
16193 * cpu-pentium.md: add op_bigmul specification
16194 * inssel-long32.brg: add OP_BIGMUL rule
16195 * mini-ops.h: add OP_BIGMUL
16196 * mini-x86.c: register allocator: handle case where src1 needs to be
16198 * mini.c: substitute special BIGMUL opcode in the tree for
16199 (long)int * (long)int
16201 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
16203 * jit-icalls.c: call the type ctor on field access if needed.
16205 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
16207 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
16208 to a method (including results of ldelema, bug#43207).
16210 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
16212 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
16213 colors to show exception handler blocks.
16215 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
16216 (fix for pinvoke7.cs).
16218 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16220 * mini.h, mini.c: ensure correct initialization order for types that
16221 require it. Prepare for lazy compilation of jit icall wrappers.
16222 Provide a name for opcode emulation to reduce unneeded mallocing.
16224 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
16226 * mini-x86.c: better register restoring code and profiling
16227 support for tail calls.
16229 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16231 * mini.h, driver.c: prepare for leaf methods optimization.
16233 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
16235 * mini.c: get targets of branches before converting a method.
16237 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
16239 * mini.c (optimize_branches): added some experimental code (disbaled)
16241 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
16243 * mini.c (optimize_branches): fix branch to branch optimization
16245 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
16247 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
16249 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
16251 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
16254 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
16256 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
16257 enable use of interface variables again.
16259 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
16260 I1 to registers because there is no simply way to sign extend 8bit
16261 quantities in caller saved registers on x86.
16263 * inssel-float.brg: set costs of some rules to 2 so
16264 that monobure always select the arch. specific ones if supplied,
16265 regardless of the order we pass the files to monoburg.
16267 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
16269 * mini.c, mini-x86.c: since the magic trampoline for jumps
16270 can't patch the code directly, we do it as soon as the
16271 method gets compiled.
16273 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
16275 * mini-x86.c, mini.h: introduce a new patching method
16276 to support CEE_JMP and tail calls.
16277 * mini.c: obey tail.call. Don't precompile methods target
16279 * tramp-x86.c: new trampoline code to handle methods
16280 reached through a jump.
16282 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
16284 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
16285 bit values to registers
16287 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
16289 * mini.c (mono_compile_get_interface_var): share interface
16290 variables if possible.
16292 2003-05-16 Martin Baulig <martin@ximian.com>
16294 * debug-mini.c (mono_init_debugger): New function to initialize
16295 the debugger. This is not in the debugger since it needs to
16296 access some of mini's internals.
16298 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
16300 * mini.c (mono_method_to_ir): inlining fixes/cleanups
16302 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
16304 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
16305 for value type handling.
16307 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
16309 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
16310 (mono_method_check_inlining): enable inlining of all kinds of wrappers
16312 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
16314 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
16315 the constructor through a proxy.
16317 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
16319 * jit-icalls.c, inssel.brg: fixes to array element address
16322 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
16324 * mini-x86.c (is_regsize_var): allocate pointer to registers
16326 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
16328 * driver.c: fixed typo, added intrins to the set of optimizations
16329 tested with regressions.
16331 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
16333 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
16334 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
16337 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
16339 * inssel.brg: remove some common pop instructions without side effects
16341 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
16343 * inssel-x86.brg: fixed thinko in int to double conversions.
16345 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
16347 * mini.c, jit-icalls.c: added runtime thread-static variable support.
16349 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
16351 * inssel-long32.brg: two more missing instructions.
16353 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
16355 * mini.c (mono_emit_call_args): set the cil_code for all arguments
16356 if not already set.
16358 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
16360 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
16363 * basic-float.cs: Added tests for negative zero.
16365 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
16367 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
16368 a couple of missing operations for long casts, with test cases.
16370 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16372 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
16374 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
16376 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
16377 code size estimation.
16379 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
16381 * mini.c (mono_jit_create_remoting_trampoline): make it work with
16382 abstract methods (fix bug 42542)
16384 * aot.c: add ability to handle array types
16386 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
16388 * mini.c: Call the _specific versions of the object allocation
16389 functions if possible.
16391 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
16393 * driver.c: call setlocale ().
16395 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
16397 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
16400 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
16402 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
16404 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
16405 wrappers (fix bug 42122)
16407 2003-05-04 Martin Baulig <martin@ximian.com>
16409 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
16411 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
16412 s/mini_set_defaults/mono_set_defaults/g.
16414 2003-05-04 Martin Baulig <martin@ximian.com>
16416 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
16418 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
16420 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
16421 (reported by Don Roberts).
16423 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
16425 * mini.c: temporarily work around two bugs for this release.
16427 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16429 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
16430 that contains -export-dynamic and it makes using the ld script
16432 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
16434 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
16436 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
16439 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
16441 * mini.c: make sure leave calls all the needed finally blocks,
16442 even when the target jumps out of multiple exception clauses.
16444 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
16446 * ldscript, Makefile.am: add linker script to reduce the number of
16447 exported symbols (should also fix the issues with libwine defining
16448 some of the same symbols in io-layer).
16450 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
16452 * driver.c (mini_main): Avoid assertion when no file name is given on
16455 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
16457 * driver.c: added --version/-V command line option.
16458 Added the inline optimization in the regression tests.
16460 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
16462 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
16463 to the type in the method signature (fixes bug#42134).
16465 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
16467 * mini.c: when inlining, check this is not null only when needed (bug #42135).
16469 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
16471 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
16473 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16475 * driver.c: fixed bug #42100.
16477 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
16479 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
16481 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
16483 * mini.c: moved most of the code required to do inlining to its own
16484 function so it can be reused. Inline also ctors if appropriate.
16486 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
16488 * Makefile.am: Link with -export-dynamic so shared libs loaded by
16489 the runtime can call mono API functions.
16491 2003-04-27 Martin Baulig <martin@ximian.com>
16493 * debug-mini.c (mono_debug_init_method): Added
16494 `guint32 breakpoint_id' argument; if the method has a breakpoint,
16495 send a notification to the debugger.
16497 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
16498 running in the Mono Debugger, just pass the breakpoint number to
16499 mono_debug_init_method().
16501 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
16503 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
16505 * mini.c: allow some more unsafe compares.
16507 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
16509 * mini-x86.c, Makefile.am: make distcheck works (partially from
16510 a patch by Richard Lee <r.h.lee@attbi.com>).
16511 * regset.c, regset.h: removed, they are unused.
16513 2003-04-25 Dick Porter <dick@ximian.com>
16515 * driver.c: Usage reports the name as 'mono' not 'mini'
16516 * exceptions-x86.c: Build and run on freebsd
16518 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
16520 * Makefile.am: install the program with the 'mono' name and
16521 the library as libmono instead of mini and libmini.
16523 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
16525 * driver.c: provide the APIs for the embedding interface of the old jit.
16527 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
16529 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
16531 2003-04-23 Martin Baulig <martin@ximian.com>
16533 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
16535 * driver.c: Added `--debug' command line argument to enable
16538 2003-04-23 Martin Baulig <martin@ximian.com>
16540 * debug.[ch]: Removed. The code is now in
16541 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
16543 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
16546 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
16548 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
16550 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16553 (mini_cleanup): moved mono_runtime_cleanup call after the call to
16554 mono_domain_finalize.
16555 (mini_method_compile): use mono_method_profile* if the the option is
16558 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
16560 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
16561 methods with their wrapper.
16563 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
16564 methods with their wrapper.
16566 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
16569 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
16572 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
16575 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
16577 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
16579 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
16581 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
16582 of the mempool. This is slightly faster and uses less memory
16584 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
16586 * mini.c: avoid O(n) allocation for variables.
16588 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
16590 * mini.c: handle items on the stack after inlining methods.
16592 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
16594 * mini.c: make the method->opcode optimization dependent
16595 on MONO_OPT_INSTRINS and do it lazily.
16597 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
16599 * driver.c: print overall results at the end of regression run.
16601 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
16603 * inssel.brg: don't overwrite symbolic registers.
16605 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
16607 * inssel-x86.brg: fix conversion from long to float.
16609 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
16611 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
16613 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
16615 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
16617 * driver.c: Added --print-vtable option as in the old JIT.
16619 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
16621 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
16623 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
16625 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
16627 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
16629 * mini.c regalloc.c regalloc.h: Fix memory leak.
16631 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
16633 * aot.c (mono_aot_get_method): register all used strings
16635 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
16637 * mini.c: always intern strings references with ldstr at compile time.
16639 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
16641 * Makefile.am: add BUILT_SOURCES.
16643 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
16645 * driver.c: give a better error message when the assembly to execute
16646 doesn't have an entry point.
16648 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
16650 * Makefile.am: added hack for automake
16652 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
16655 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
16657 22003-04-07 Martin Baulig <martin@ximian.com>
16659 * Makefile.am: Added Makefile.am.
16661 * debugger-main.c: Removed, this is now in the debugger where it
16664 * mini.pc.in: Call this package `mini' for the moment.