1 2008-10-27 Rodrigo Kumpera <rkumpera@novell.com>
3 * basic-simd.cs: Test for packing with signed saturation.
5 2008-10-28 Zoltan Varga <vargaz@gmail.com>
7 * aot-compiler.c (add_generic_instances): Add all methods of generic instances
8 found in the TYPESPEC table.
10 2008-10-26 Zoltan Varga <vargaz@gmail.com>
12 * aot-runtime.c (mono_aot_get_method): Log not found methods for extra methods
15 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
17 * mini.c (mono_method_to_ir): For MONO_PATCH_INFO_RVA, save field the token
18 instead of the RVA, since the RVA can be changed by tools like the cil
21 * method-to-ir.c (mono_method_to_ir2): Ditto.
23 * debug-mini.c (serialize_variable): Handle ADDRESS_MODE_DEAD.
24 (deserialize_variable): Ditto.
26 2008-10-25 Martin Baulig <martin@ximian.com>
28 * debug-mini.c (write_variable): Use
29 `MONO_DEBUG_VAR_ADDRESS_MODE_DEAD' for dead variables.
31 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
33 * cpu-x86.md: Add unsigned variants of packd and packw.
37 * mini-x86.h: Emit the right instruction for packd and packw.
38 Add unsigned variants of packd and packw.
40 * simd-intrinsics.c: Packd and packw were used in place of their
41 unsigned variants. Change that.
42 Add intrinsics for (Signed)PackWithSignedSaturation.
44 * simd-methods.h: Add (Signed)PackWithSignedSaturation.
46 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
48 * simd-intrinsics.c (vector4i_intrinsics): New table of intrinsic type.
50 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
52 * mini-ops.h: Remove dword packed add/sub with saturation ops.
54 * cpu-x86.md: Remove dword packed add/sub with saturation ops.
56 * simd-intrinsics.c (vector4ui_intrinsics): Remove methods without
59 * simd-intrinsics.c (vector8s_intrinsics): Fix ordering.
61 2008-10-24 Mark Probst <mark.probst@gmail.com>
63 * method-to-ir.c, mini.c: Special casing for the synchronized
64 wrapper for the ldtoken+GetTypeFromHandle case.
66 2008-10-24 Zoltan Varga <vargaz@gmail.com>
68 * mini.c (mono_replace_ins): Move this to branch-opts.c.
70 * mini.c (mono_replace_ins): Propagate has_array_access flag to the newly
71 created/split bblocks.
73 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
75 * mini-ops.h: Add packed signed mul high.
79 * mini-x86.c (mono_arch_output_basic_block): Same.
81 * simd-methods.h: Add PackWithUnsignedSaturation and ShiftRightLogic.
83 * simd-intrinsics.c (vector8s_intrinsics): New table of intrinsic type.
85 2008-10-24 Rodrigo Kumpera <rkumpera@novell.com>
87 * basic-simd.cs: Tests for Vector16sb.
89 2008-10-24 Zoltan Varga <vargaz@gmail.com>
91 * inssel.brg (stmt): Fix OP_HARD_NOP rule.
93 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
95 * mini-ops.h: Add packed signed min, max and compare greater.
99 * mini-x86.c (mono_arch_output_basic_block): Same. Add packed add/sub with
102 * simd-methods.h: Add CompareGreaterThan.
104 * simd-methods.h: Remove CompareEquals.
106 * simd-intrinsics.c: Add new TODO entry and some cosmetic changes.
108 * simd-intrinsics.c (vector16sb_intrinsics): New table of intrinsic type.
110 * simd-intrinsics.c (vector4f_intrinsics): Rename CompareEquals to
113 2008-10-23 Rodrigo Kumpera <rkumpera@novell.com>
115 * basic-simd.cs: Fix tests due to change in the API.
117 2008-10-21 Zoltan Varga <vargaz@gmail.com>
119 * mini.c method-to-ir.c: Use mono_field_get_name () for accessing field->name.
121 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
123 * basic-simd.cs: Fix name change in Vector4f::CompareEqual.
125 * simd-intrinsics.c (simd_intrinsic_emit_store_aligned): Don't use
126 inst_offset as this has invalid values for LDADDR.
128 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
130 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
132 * simd-intrinsics.c (vector4ui_intrinsics): Add SignedPackWithUnsignedSaturation.
134 2008-10-21 Zoltan Varga <vargaz@gmail.com>
136 * method-to-ir.c (initialize_array_data): Use mono_field_get_data ()
137 for accessing field->data.
139 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
141 * basic-simd.cs: Test for SignedPackWithUnsignedSaturation.
143 2008-10-21 Rodrigo Kumpera <rkumpera@novell.com>
145 * simd-methods.h: Add SignedPackWithUnsignedSaturation.
147 * simd-intrinsics.c (vector8us_intrinsics): Add SignedPackWithUnsignedSaturation.
149 2008-10-21 Zoltan Varga <vargaz@gmail.com>
151 * dominators.c (mono_compute_natural_loops): Allocate GList enties
152 from the cfg mempool.
154 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
156 * basic-simd.cs: Tests for new methods in Vector8us.
158 2008-10-20 Rodrigo Kumpera <rkumpera@novell.com>
160 * mini-ops.h: Add multiply and store high.
164 * mini-x86.c (mono_arch_output_basic_block): Same.
166 * simd-methods.h: Same.
168 * simd-intrinsics.c (vector8us_intrinsics): Add MultiplyStoreHigh
171 2008-10-19 Zoltan Varga <vargaz@gmail.com>
173 * method-to-ir.c (mono_emit_method_call_full): Remove a needless call to
174 mono_class_setup_vtable ().
176 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Use
177 mono_class_get_vtable_entry () for accessing klass->vtable.
179 * aot-runtime.c (load_method): Avoid a crash when using MONO_LOG_LEVEL.
181 * aot-compiler.c (add_generic_instances): Avoid a crash if a class is not
184 * method-to-ir.c (mono_save_token_info): Don't save references made from
187 * aot-compiler.c (add_generic_instances): Add static rgctx wrappers for cctors
188 of generic instances.
190 * aot-runtime.c (find_extra_method): Search in all loaded AOT images.
192 2008-10-19 Mark Probst <mark.probst@gmail.com>
194 * cpu-ppc.md, mini-ppc.c: The length of the code generated for
195 OP_JMP depends on the method signature. Calculate it properly.
197 2008-10-19 Zoltan Varga <vargaz@gmail.com>
199 * aot-runtime.c (mono_aot_find_jit_info): Handle extra methods which are
202 * aot-compiler.c (emit_and_reloc_code): Allow direct calling of generic
204 (emit_extra_methods): Add another table mapping method indexes to
205 offsets in the extra_method_info table.
207 * mini.h: Bump AOT file format version.
209 * aot-runtime.c: Merge most of the code from mono_aot_get_method
210 and mono_aot_get_method_from_token () into one function.
212 2008-10-19 Mark Probst <mark.probst@gmail.com>
214 * mini-ppc.c (emit_load_volatile_arguments): Inner loop needs a
217 2008-10-18 Zoltan Varga <vargaz@gmail.com>
219 * aot-compiler.c aot-runtime.c: Fix the hash function used for the extra
222 * method-to-ir.c (mono_method_to_ir2): Change a !compile_aot assert to
225 * mini.c (mono_patch_info_equal): Compare the generic context as well.
227 * mini.h: Bump aot file format version.
229 * aot-compiler.c aot-runtime.c: Generalize the wrapper handling code so the
230 AOT file can contain native code for methods which are not in the METHOD
231 table. Generate code for non-sharable generic instances of generic methods
232 found in the METHODSPEC table.
234 * method-to-ir.c (mono_method_to_ir2): Remove the aot restriction when
235 encoding generic type handles.
237 * ir-emit.h (NEW_AOTCONST_TOKEN): Add a generic_context argument.
238 (NEW_TYPE_FROM_HANDLE_CONST): Add a generic_context argument.
240 * ir-emit.h: Rewrite the EMIT_NEW_XXXCONST macros to use the NEW_XXXCONST
241 macros + MONO_ADD_INS.
243 * mini.c (mono_jump_info_token_new2): New function which takes a generic
246 * mini.h (MonoJumpInfoToken): Include fields for a generic context.
248 * mini.h: Bump aot file format version.
250 * aot-compiler.c aot-runtime.c: Update after changes to MonoJumpInfoToken.
252 2008-10-17 Mark Probst <mark.probst@gmail.com>
254 * mini-x86.h, mini-x86.c, exceptions-x86.c: Align stack on all
255 platforms, with definable stack alignment value. Set to 16 now
258 * mini.c, mini.h, driver.c: Command line option for disabling
261 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
263 * basic-simd.cs: Tests for new methods in Vector4ui.
265 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
267 * mini-ops.h: Add packed int shuffle.
271 * mini-x86.c (mono_arch_output_basic_block): Same.
273 * simd-intrinsics.c (vector4ui_intrinsics): Add compare equal,
274 extract mask, max, min, shuffle.
276 * simd-intrinsics.c (vector8us_intrinsics): Add max and min.
278 2008-10-17 Rodrigo Kumpera <rkumpera@novell.com>
280 * basic-simd.cs: Tests for new methods in Vector8us.
282 2008-10-17 Mark Probst <mark.probst@gmail.com>
284 * method-to-ir.c (mono_method_to_ir2): "refanytype" produces a
285 RuntimeTypeHandle, not a TypedReference.
287 Fri Oct 17 14:40:50 CEST 2008 Paolo Molaro <lupus@ximian.com>
289 * simd-intrinsics.c: remove relocations.
291 2008-10-17 Zoltan Varga <vargaz@gmail.com>
293 * mini-amd64.c (mono_arch_output_basic_block): Port the IREM_IMM
294 optimizations from the x86 backend.
296 Fri Oct 17 12:00:51 CEST 2008 Paolo Molaro <lupus@ximian.com>
298 * simd-methods.h, simd-intrinsics.c: debloat method names and
299 prepare for no relocations.
301 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
303 * mini-ops.h: Add packed min/equal and sum of absolute differences.
307 * mini-x86.c (mono_arch_output_basic_block): Same.
309 * simd-intrinsics.c (vector16b_intrinsics): Add average, compare equal,
310 extract mask, max, min and sum of absolute differences.
312 * simd-intrinsics.c: Increase SIMD_INTRINSIC_NAME_MAX due to new huge
315 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
317 * basic-simd.cs: Test for the other mono_simd_simplify_indirection bug.
318 Renamed one test for consistency.
320 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
322 * simd-intrinsics.c (mono_simd_simplify_indirection): Apply the previous
323 fix to the code that deal with other blocks.
325 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
327 * basic-simd.cs: Test for the mono_simd_simplify_indirection bug.
329 2008-10-16 Rodrigo Kumpera <rkumpera@novell.com>
331 * simd-intrinsics.c (mono_simd_simplify_indirection): Simplify the code
332 that deals with vreg interference. Explicitly check for OP_LDADDR to be
333 able to process the source reg.
335 2008-10-16 Martin Baulig <martin@ximian.com>
337 * mini-ops.h, cpu-amd64.md, cpu-x86.md: Added new `hard_nop' opcode.
339 * inssel.brg: Add `OP_HARD_NOP'.
341 * mini.h (MonoCompile): Added `keep_cil_nops' flag.
343 * mini.c (mono_method_to_ir): In `CEE_NOP': generate a
344 `OP_HARD_NOP' instruction when running inside the debugger.
346 * method-to-ir.c (mono_method_to_ir2): In `CEE_NOP': generate a
347 `OP_HARD_NOP' instruction when running inside the debugger.
349 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
351 * simd-intrinsics.c (get_simd_vreg): Using sreg1 of OP_XMOVE
352 now works. The issue with the regalloc tripping up no longer
355 * simd-intrinsics.c (load_simd_vreg): Same.
357 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
359 * basic-simd.cs: Tests for new Vector8ui methods.
361 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
363 * simd-intrinsics.c (get_simd_vreg): Simplify code and test
364 only for type. This fixes crashes where MonoInst::klass is checked
365 for ops of type != VTYPE or OBJ.
367 * simd-intrinsics.c (load_simd_vreg): Same.
369 2008-10-15 Rodrigo Kumpera <rkumpera@novell.com>
371 * mini-ops.h: Add ops for packed shuffle/max/avg and
376 * mini-x86.c (mono_arch_output_basic_block): Same.
378 * simd-intrinsics.c (vector8us_intrinsics): Add avg, shuffle and
381 * simd-intrinsics.c (simd_intrinsic_emit_extract_mask): New function
382 to emit extract mask op.
384 * simd-intrinsics.c (simd_intrinsic_emit_shuffle): Retrofic this function
385 to emit word shuffles.
387 2008-10-15 Mark Probst <mark.probst@gmail.com>
389 * mini.c (mono_allocate_stack_slots_full): Align stack frame to
390 the largest alignment needed by a variable, but at least
393 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
395 * basic-simd.cs: Tests for the fixes in the last commit.
397 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
399 * simd-intrinsics.c (get_simd_vreg): Drop the is_this_ptr, this function
400 no longer handles STACK_PTR input.
402 * simd-intrinsics.c (get_simd_vreg): Don't crash when MonoInst::klass == -1.
404 * simd-intrinsics.c (load_simd_vreg): New function that works like
405 get_simd_vreg but handles STACK_PTR input.
407 * simd-intrinsics.c (simd_intrinsic_emit_getter): Use load_simd_vreg
408 as the input can be an arbitrary pointer.
410 * simd-intrinsics.c (simd_intrinsic_emit_ctor): Try the
411 LDADDR local optimization directly otherwise use a store op.
413 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
415 * basic-simd.cs: Tests for dup low and dup high.
417 2008-10-14 Rodrigo Kumpera <rkumpera@novell.com>
419 * mini-ops.h: Add dup low and dup high ops.
423 * mini-x86.c (mono_arch_output_basic_block): Same.
425 * simd-intrinsics.c (vector4f_intrinsics): Same.
427 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
429 * basic-simd.cs: Tests for recently added functionality.
431 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
433 * mini-ops.h: Add remaining sse1 fp ops.
435 * cpu-x86.md: Add remaining sse1 fp ops.
437 * mini-x86.c (mono_arch_output_basic_block): Same.
439 * mini.h: Add enum for simd FP compare conditions.
441 * simd-intrinsics.c (vector4f_intrinsics): Add all new ops.
443 * simd-intrinsics.c (simd_intrinsic_emit_binary): Set inst_c0 to flags
444 so the backed can generate the appropriate op.
446 2008-10-13 Rodrigo Kumpera <rkumpera@novell.com>
447 This patch squeese one more byte from the SimdIntrinsc struct.
449 * mini-x86.c (mono_arch_cpu_enumerate_simd_versions: Use the version number
450 a a shift amount intead of simply or'ing it.
452 * mini.h: Change SIMD_VERSION_* values to be sequential intead of masks.
454 * simd-intrinsics.c (struct SimdIntrinsc): Squeese simd_version and simd_emit_mode into a single
455 byte so we can have an aditional flags field without increasing struct size.
457 * simd-intrinsics.c (emit_intrinsics): Use the value of simd_version as a shift amount before checking
458 against the simd_supported_versions bitmask.
460 * simd-intrinsics.c: Set SIMD_INTRINSIC_NAME_MAX to an appropriate value.
462 Mon Oct 13 10:58:10 CEST 2008 Paolo Molaro <lupus@ximian.com>
464 * mini.c: remove rawbuffer code (the only use here is unsafe because
465 it takes locks during signal handling and the kernel now provides much
466 better info in proc/pid/smaps these days).
468 2008-10-13 Zoltan Varga <vargaz@gmail.com>
470 * mini-amd64.c (mono_arch_output_basic_block): Fix the changes to
471 OP_X86_PUSH_OBJ. Fixes #434620.
473 * objects.cs: Add a test.
475 2008-10-12 Rodrigo Kumpera <rkumpera@novell.com>
477 * basic-simd.cs: Remove PackWithUnsignedSaturation tests as it turns out
478 that the packuswb/packusdw don't work with unsigned numbers for what
479 would be negative numbers in signed format.
481 * cpu-x86.md: Add doubleword forms of many ops and packing ones.
482 Fix the len of fconv_to_r8_x and xconv_r8_to_i4.
484 * mini-ops.h: Add doubleword forms of many ops and packing ones.
486 * mini-x86.c: Emit doubleword forms of many ops and packing ones.
488 * simd-intrinsics.c (SimdIntrinsc): Rename the flags field to simd_version.
490 * simd-intrinsics.c (vector4f_intrinsics): Use simd_version field for sse3 ops.
492 * simd-intrinsics.c (vector4u_intrinsics): Rename to vector4ui_intrinsics and
495 * simd-intrinsics.c (simd_version_name): New function, returns the name of the
496 version as the enum in mini.h.
498 * simd-intrinsics.c (emit_intrinsics): Instead of having a special emit mode
499 for sse3 ops, check the simd_version field if present. This way the code
500 works with all versions of sse.
502 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
504 * simd-intrinsics.c: Fixed intrinsic name typo.
506 * mini.h: Added missing simd exported function.
508 * basic-simd.cs: Added tests for Vector4ui.
509 Fixed broken test for Vector16b.
511 2008-10-10 Zoltan Varga <vargaz@gmail.com>
513 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): Increase
514 the max length to 64.
516 2008-10-10 Mark Probst <mark.probst@gmail.com>
518 * method-to-ir.c: Only do the fast virtual generic method call for
521 * mini.h, mini-trampolines.c: The new generic virtual remoting
522 trampoline handles virtual method calls via the vtable (as done by
523 the fast virtual generic method calls) to remoting proxies.
525 * mini.c (mono_jit_create_remoting_trampoline): For generic
526 methods reate a generic virtual remoting trampoline.
528 * mini-amd64.h: Enable fast virtual generic method calls again.
530 2008-10-10 Mark Probst <mark.probst@gmail.com>
532 * mini-ppc.c: Use SP (r1), not frame_reg (which might be r31) to
533 restore registers when doing tail calls.
535 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
537 * simd-intrinsics.c (emit_intrinsics): Vector4u was renamed to
540 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
542 * basic-simd.cs: Add test for Vecto16b.PackWithUnsignedSaturation.
544 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
546 * simd-intrinsics.c (emit_intrinsics): Retrofit to new type names.
548 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
550 * basic-simd.cs: Retrofit for API changes.
552 2008-10-10 Mark Probst <mark.probst@gmail.com>
554 * mini-ppc.c: Handle integer stack arguments for tail calls.
556 2008-10-10 Rodrigo Kumpera <rkumpera@novell.com>
558 * optflags-def.h: Removed sse3 optimization.
562 * mini-x86.c (mono_arch_cpu_optimizazions): Remove detection of
565 * mini-x86.c: Added mono_arch_cpu_enumerate_simd_versions.
567 * mini.h: Added enumeration with simd versions.
569 * simd-intrinsics.c (emit_intrinsics): Use the new static var
572 * simd-intrinsics.c: Added mono_simd_intrinsics_init.
574 * mini.c (mini_init): Call mono_simd_intrinsics_init.
576 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
578 * basic-simd.cs: Added tests for Vector8u and Vector16u.
580 * basic-simd.cs: Fixed test naming.
582 2008-10-09 Rodrigo Kumpera <rkumpera@novell.com>
584 * mini-ops.h: Added ops for packed and saturated math, shifts
585 and packing/unpacking.
587 * cpu-x86.md: Added descriptors for the above ops.
589 * mini-x86.c: Added code to emmit the above ops.
591 * simd-intrinsics.c: Added support for Vector16u and Vector8u.
593 2008-10-08 Zoltan Varga <vargaz@gmail.com>
595 * aot-compiler.c (compile_method): Enable AOT for generic code.
597 * ir-emit.h (NEW_DOMAINCONST): Use domainvars in AOT code as well.
599 Wed Oct 8 16:35:43 CEST 2008 Paolo Molaro <lupus@ximian.com>
601 * mini.c: add a workaround for a common screwup that ends up blamed
602 to mono (other processes blocking signal delivery).
604 2008-10-07 Zoltan Varga <vargaz@gmail.com>
606 * method-to-ir.c (mono_method_to_ir2): Clear ins_flag on all code paths
607 in the LDFLD/STFLD opcodes. Fixes #432673.
609 * iltests.il.in: Add a new test.
611 Tue Oct 7 19:59:07 CEST 2008 Paolo Molaro <lupus@ximian.com>
613 * mini-arm.c: attach the thread in unmanaged->managed transitions
614 using delegates (bug #433148).
616 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
618 * basic-simd.cs: Use new ShuffleSel constants.
620 2008-10-07 Rodrigo Kumpera <rkumpera@novell.com>
622 * driver.c (opt_sets): Added combinations of simd, sse2 and sse3.
624 * mini-x86.c (mono_arch_cpu_optimizazions): Detect sse3 and now
625 only disable simd intrinsics if no sse2 is detected.
627 * optflags-def.h: Added sse3.
629 * simd-intrinsics.c: Avoid generated sse3 intrinsics if the optimization
632 2008-10-07 Zoltan Varga <vargaz@gmail.com>
634 * aot-compiler.c (add_wrappers): Fix Delegate/MulticastDelegate classes
635 when adding delegate-invoke wrappers.
637 2008-10-07 Zoltan Varga <vargaz@gmail.com>
639 * Makefile.am: Reenable the simd tests.
641 2008-10-07 Bill Holmes <billholmes54@gmail.com>
643 * mini-amd64.c (mono_arch_emit_outarg_vt) : In the ArgValuetypeAddrInIReg case,
644 add a call to mono_call_inst_add_outarg_reg for the arg->dreg to make sure that no
645 other vreg is allocated to that hreg.
647 Contributed under MIT/X11 license.
649 2008-10-07 Zoltan Varga <vargaz@gmail.com>
651 * Makefile.am: Disable the simd tests for now as Mono.Simd is not
654 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
656 * basic-simd.cs: New test suite for SIMD intrinsics.
658 * Makefile.am: Added new tests.
660 2008-10-06 Rodrigo Kumpera <rkumpera@novell.com>
662 * cpu-x86.md: Added new instructions to handle float to int using SSE regs.
666 * mini-x86.h: Enable mono_arch_decompose_opts if simd intrinsics are enabled.
668 * mini-x86.c (mono_arch_decompose_opts): Decompose float to int conversion
669 using SSE2 aware opcodes.
671 * mini-x86.c (emit_float_to_int): Disable the SSE2 optimization if OPT_SIMD
672 is enabled, this code path is only reachable if conversion ops are emmited after
675 * mini.h: Added MonoCompile::fconv_to_r8_x_var to hold the float to int var.
677 This optimization saves 6 bytes per conversion against the old version.
679 2008-10-06 Zoltan Varga <vargaz@gmail.com>
681 * aot-compiler.c (compile_method): Don't skip methods referencing
682 generic methods without a corresponding entry in token_info_hash, since
683 encode_method_ref () can handle all generic methods now.
685 * method-to-ir.c (mono_save_token_info): Don't save the token info if a
686 generic context is set.
688 * method-to-ir.c (mono_method_to_ir2): Put back a disable_aot for
689 generic sharing of LDTOKEN.
691 2008-10-06 Mark Probst <mark.probst@gmail.com>
693 * mini-amd64.h: Temporarily disabled fast virtual generic method
694 calls because it breaks the System.Runtime.Remoting tests.
696 2008-10-06 Zoltan Varga <vargaz@gmail.com>
698 * aot-compiler.c (add_wrappers): Add delegate-invoke wrappers.
700 * method-to-ir.c (check_inline_called_method_name_limit): Return TRUE
701 so inlining actually works.
702 (check_inline_caller_method_name_limit): Ditto.
704 Mon Oct 6 11:04:38 CEST 2008 Paolo Molaro <lupus@ximian.com>
706 * mini-ppc.c: mono_arch_flush_icache () cast pointer using gsize for
707 64 bit safety (from Olaf Hering and Andreas Färber).
709 2008-10-06 Zoltan Varga <vargaz@gmail.com>
711 * mini-trampolines.c (mono_aot_trampoline): Delegate processing to
712 mono_magic_trampoline () if aot_get_method_from_token () fails. Remove
713 unused virtual call support code.
715 * aot-runtime.c (decode_method_ref): Add a 'no_aot_trampoline' out argument.
717 * aot-runtime.c (mono_aot_get_method_from_vt_slot): Return NULL for methods
718 which can't use aot trampolines.
719 (decode_patch): Don't create aot trampolines for methods which can't use
722 * aot-compiler.c (encode_method_ref): Add a marker for methods which can't
725 * mini.h: Bump AOT image format version.
727 2008-10-05 Zoltan Varga <vargaz@gmail.com>
729 * method-to-ir.c (mono_method_to_ir2): Pass cil_method instead of cmethod
730 to save_token_info () since cmethod is inflated for constrained calls.
732 * mini-<ARCH>.h mini-x86.c: Remove some unused defines.
734 2008-10-04 Andreas Färber <andreas.faerber@web.de>
736 * Makefile.am: Add build rules for ppc64.
737 This avoids the build failing at pedump with unresolved symbols
738 due to lack of arch_sources. Instead it will now fail earlier
739 due to lack of cpu-ppc64.md.
741 Contributed under MIT/X11 license.
743 2008-10-04 Mark Probst <mark.probst@gmail.com>
745 * mini-amd64.c (mono_arch_emit_call): Support stack arguments for
748 * iltests.il.in: Add test case for tail call with many arguments.
750 2008-10-03 Zoltan Varga <vargaz@gmail.com>
752 * method-to-ir.c (mono_method_to_ir2): Add an !cfg->compile_aot assert
753 to the fast virtual generic method code until the aot case is fixed.
755 2008-10-03 Mark Probst <mark.probst@gmail.com>
757 * mini-ppc.c, mini-ppc.h: Implement generic virtual method thunks.
759 2008-10-03 Mark Probst <mark.probst@gmail.com>
761 * mini-amd64.c, mini-amd64.h: Implement generic virtual method
764 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
766 * simd-intrinsics.c: Forgot to add this one.
768 * mini-codegen.c: Fix macro in case SIMD is not supported.
770 2008-10-03 Rodrigo Kumpera <rkumpera@novell.com>
772 This patch land initial JIT support for simd intrinsics.
774 * mini-x86.h: Added new define to make --enable_minimal work on x86.
776 * Makefile.am: Added simd-intrinsics.c
778 * simd-intrinsics.c: New file with simd instrinsic related
781 * cfold.c (mono_constant_fold_ins2): Fold XZERO.
783 * cpu-x86.md: Add simd related instructions.
785 * driver.c: Added MONO_OPT_SIMD to the default set of optimizations.
787 * driver.c: Added two new --regression variants.
789 * ir-emit.h (MONO_EMIT_NEW_VZERO): Emit XZERO if the type is a simd intrinsic.
791 * local-propagation.c (mono_local_cprop2): Eliminate useless XMOVE.
793 * local-propagation.c (mono_local_deadce): Use new macro MONO_IS_NON_FP_MOVE and
794 extract some complicated logic to helper functions.
796 * method-to-ir.c (mono_type_to_regmove): Handle simd intrinsics.
798 * method-to-ir.c (mini_emit_inst_for_method): Emit simd intrinsics.
800 * method-to-ir.c (mono_handle_global_vregs): If a simd intrinsic was found, apply
801 the specialized simplification pass.
803 * method-to-ir.c (mono_spill_global_vars): Use new macro.
805 * mini-codegen.c: Added SIMD constants to all regbanks arrays.
807 * mini-codegen.c: Added reg_bank_table_init to initialize the reg desc -> bank
810 * mini-codegen.c: Define a version of the reg_bank macro that uses desc_to_reg_type
811 if MONO_ARCH_NEED_SIMD_BANK is defined.
813 * mini-ops.h: Added the new simd ops.
815 * mini-x86.c: Added mono_arch_xregname.
817 * mini-x86.c (mono_arch_cpu_optimizazions): Disable MONO_OPT_SIMD if SSE3 is not detected.
819 * mini-x86.c (mono_arch_output_basic_block): Add simd related opcodes.
821 * mini-x86.h: Define simd related MONO_ARCH macros.
823 * mini.c (mono_type_to_load_membase): Handle simd intrinsics.
825 * mini.c (mono_type_to_store_membase): Handle simd intrinsics.
827 * mini.h: Added new macros MONO_IS_NON_FP_MOVE, MONO_IS_REAL_MOVE, MONO_IS_ZERO and
828 MONO_CLASS_IS_SIMD to deal with simd related IR.
830 * mini.h (MonoInst): Added spill_var to the backend union.
832 * mini.h (MonoCompile): Added uses_simd_intrinsics and iconv_raw_var.
834 * mini.h: Added forward declarations of the new simd fuctions.
836 * optflags-def.h: Added new optimization names SIMD.
838 * regalloc.c (mono_regstate_reset): Set next vreg to be the max value of the 3 reg banks.
840 * regalloc.h: Added support for working with 3 register banks.
842 * regalloc.h (MonoRegState): Added xsymbolic field if a third regbank is required.
844 * ssa2.c (mono_ssa_deadce2): Use new MONO_IS_ZERO macro.
846 Fri Oct 3 16:03:22 CEST 2008 Paolo Molaro <lupus@ximian.com>
848 * mini-exceptions.c: remove 64 bit related ifdef clutter.
850 2008-10-03 Zoltan Varga <vargaz@gmail.com>
852 * mini-exceptions.c (mono_handle_soft_stack_ovf): Unprotect two pages
853 instead of one on 64 bit systems.
855 * method-to-ir.c: Remove unused includes.
857 2008-10-02 Zoltan Varga <vargaz@gmail.com>
859 * aot-compiler.c (emit_exception_debug_info): Use jinfo->used_regs instead of
860 cfg->used_int_regs, since the two are different on arm.
862 2008-10-02 Mark Probst <mark.probst@gmail.com>
864 * method-to-ir.c, inssel.brg, mini-trampolines.c: Use
865 mono_method_get_vtable_index() to get the vtable index.
867 2008-10-02 Mark Probst <mark.probst@gmail.com>
869 * method-to-ir.c (mono_method_to_ir2): Don't create native
870 wrappers for array methods, because they're never called (and if
871 they were called they wouldn't work).
873 2008-10-02 Mark Probst <mark.probst@gmail.com>
875 * method-to-ir.c (mono_method_to_ir2): Array methods are
876 special-cased and must not be invoked indirectly via the (M)RGCTX
877 when generic sharing is turned on. Fixes #431413.
879 2008-10-01 Mark Probst <mark.probst@gmail.com>
881 * method-to-ir.c: When generic sharing is active, call
882 non-interface virtual generic methods via the standard trampoline.
884 * mini-trampolines.c: Handle virtual generic shared methods.
886 * mini.h, mini-x86.c, mini-x86.h: New argument for
887 mono_arch_build_imt_thunk() which is non-NULL for virtual generic
888 method thunks and which is the trampoline to call if the lookup
889 fails. Enable the virtual generic method thunk for x86.
891 * mini-amd64.c, mini-arm.c, mini-ia64.c, mini-sparc.c,
892 mini-ppc.c (mono_arch_build_imt_thunk): Add the additional
893 argument but assert that it's NULL, because these archs don't yet
894 implement the virtual generic method thunk. Changes in the IMT
895 thunk data structures.
897 2008-10-01 Zoltan Varga <vargaz@gmail.com>
899 * aot-compiler.c (emit_globals): Avoid invalid characters in
900 the static linking symbol.
902 * objects.cs: Add a test for the range check optimization. Fix warnings.
904 * branch-opts.c (mono_if_conversion): Add back the 'optimize range checks'
905 optimization from the current JIT.
907 * method-to-ir.c (mini_emit_inst_for_method): Decompose String.Length
908 later in decompose_array_access_opts () to allow more optimizations.
910 * method-to-ir.c (mono_handle_soft_float): Rename this to
911 mono_decompose_soft_float () for consistency.
913 * mini-ops.h: Fix arguments of OP_STRLEN.
915 * method-to-ir.c (save_cast_details): Extract the cast details saving code
916 into a separate function.
917 (reset_cast_details): Ditto.
918 (handle_unbox): Save cast details. Fixes #431254.
920 * method-to-ir.c: Remove some obsolete FIXMEs.
922 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
924 * ir-emit.h (alloc_dreg): Write a warning before crashing.
926 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
928 * mini-codegen.c: More work on macros to make them
929 ready for multiple regbanks.
931 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
933 * method-to.ir.c (mono_type_to_regmove): Remove static modifier.
935 * mini.h: Export mono_type_to_regmove. Fix signature of mono_regname_full.
937 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
939 * mini-codegen.c (mono_spillvar_offset): Proper support for
942 2008-09-30 Zoltan Varga <vargaz@gmail.com>
944 * mini-amd64.c (mono_arch_emit_epilog): Remove some duplicated code from
945 the stack overflow changes.
947 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
949 * mini-codegen.c: Make all bank macros depend on reg_bank.
951 * mini-codegen.c (mono_local_regalloc): Make free mask
952 initialization regbank aware.
954 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
956 * mini-codegen.c (mono_local_regalloc): Extract callee
957 mask selection to a function and make it regbank aware.
959 2008-09-30 Rodrigo Kumpera <rkumpera@novell.com>
961 * mini-codegen.c (mono_local_regalloc): Changed the cloberring
962 code to deal with many regbanks.
964 2008-09-30 Zoltan Varga <vargaz@gmail.com>
966 * mini-codegen.c: More fp->regbank changes.
968 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
970 * mini-codegen.c: Change asserts to use MONO_NUM_REGBANKS instead
971 of a hardcoded constant.
973 2008-09-29 Rodrigo Kumpera <rkumpera@novell.com>
975 * method-to-ir.c (type_from_stack_type): Fix typo.
977 2008-09-29 Zoltan Varga <vargaz@gmail.com>
979 * mini-ia64.c (emit_move_return_value): Convert float return values to
982 * objects.cs: Add a new test.
984 * mini-ia64.c (mono_arch_allocate_vars): Disable fp elimination for
985 VARARG methods to fix an assert later.
987 * mini-mips.h mini-mips.c mini-ops.h cpu-mips.md: Update the mips back
988 end so it at least compiles.
990 2008-09-28 Zoltan Varga <vargaz@gmail.com>
992 * method-to-ir.c (emit_optimized_ldloca_ir): Fix this.
994 2008-09-28 Rodrigo Kumpera <rkumpera@novell.com>
996 * method-to-ir.c (mono_method_to_ir2): Extract the ldloca + initobj
997 optimization to a new function (emit_optimized_ldloca_ir) and enable
998 it for both ldloca and ldloca_s.
1000 2008-09-28 Zoltan Varga <vargaz@gmail.com>
1002 * method-to-ir.c (mono_method_to_ir2): Remove an unnecessary assert in the
1003 gshared CASTCLASS code.
1005 * driver.c (mono_main): Add a workaround for shutdown crashes seen on
1006 amd64, where the libc stack unwinder encounters stack frames referring to
1007 native code in unmapped memory.
1009 * method-to-ir.c (mini_emit_check_array_type): Add support for generic
1012 * generics.cs: Add new test.
1014 2008-09-27 Zoltan Varga <vargaz@gmail.com>
1016 * mini-arm.h driver.c: Print the fp model when using --version on arm. Also,
1017 add a check that one of the ARM_FPU_ constants is defined.
1019 * mini-exceptions.c (mono_handle_soft_stack_ovf): Really fix the build.
1021 * mini-exceptions.c: Fix build on non-altstack platforms.
1023 * method-to-ir.c (mono_method_to_ir2): Fix aot support for the
1026 * ir-emit.h: Add a comment to NEW_PCONST.
1028 * mini-exceptions.c (mono_altstack_restore_prot): Fix a warning.
1030 * mini.h (MonoJitDomainInfo): Move some fields here from MonoDomain.
1032 * mini.c aot-runtime.c method-to-ir.c driver.c mini-trampolines.c: Update
1033 after the changes to MonoJitDomainInfo.
1035 2008-09-27 Mark Probst <mark.probst@gmail.com>
1037 * mini-ppc.c, tramp-ppc.c, mini-ppc.h: Implement generic code sharing.
1039 2008-09-27 Mark Probst <mark.probst@gmail.com>
1041 * mini-ppc.c: Compiler warning fixes.
1043 2008-09-27 Mark Probst <mark.probst@gmail.com>
1045 * mini-ppc.c: Special handling for 1/2 byte structs on Darwin only
1048 2008-09-27 Mark Probst <mark.probst@gmail.com>
1050 * exceptions-ppc.c, mini-ppc.h: Compile
1051 mono_arch_handle_altstack_exception() on Darwin, too.
1053 2008-09-27 Mark Probst <mark.probst@gmail.com>
1055 * method-to-ir.c (mono_emit_rgctx_method_call_full): Must also
1056 work on archs which don't have generic sharing implemented, only
1057 without the vtable_arg.
1059 2008-09-26 Mark Probst <mark.probst@gmail.com>
1061 * mini.c: Added comment explaining why delegate ctor icall
1062 wrappers are compiled.
1064 2008-09-26 Mark Probst <mark.probst@gmail.com>
1066 * mini.c: Don't produce trampolines to delegate ctor icall
1067 wrappers but compile them upfront.
1069 Fri Sep 26 17:00:46 CEST 2008 Paolo Molaro <lupus@ximian.com>
1071 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: amd64 support code for calling a
1072 runtime-set function when going back to managed code. Currently this
1073 is used to set back the protection on the soft ovf pages and/or to
1074 throw the stack overflow exception that happened in unmanaged code.
1076 Fri Sep 26 16:46:23 CEST 2008 Paolo Molaro <lupus@ximian.com>
1078 * tramp-x86.c, mini-x86.h, mini-x86.c: x86 support code for calling a
1079 runtime-set function when going back to managed code. Currently this
1080 is used to set back the protection on the soft ovf pages and/or to
1081 throw the stack overflow exception that happened in unmanaged code.
1083 Fri Sep 26 16:34:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
1085 * mini.h, mini.c, mini-trampolines.c, mini-exceptions.c: added
1086 the support code for restoring stack protection after stack overflows
1087 that happen in unmanaged code. Don't set the exec permission on the
1090 2008-09-26 Zoltan Varga <vargaz@gmail.com>
1092 * mini-trampolines.c (mono_delegate_trampoline): Add wrappers even if
1093 delegate->method_ptr is set. Fixes #428054.
1095 2008-09-25 Zoltan Varga <vargaz@gmail.com>
1097 * tests.cs: Rename to ratests.cs.
1099 * method-to-ir.c: Merge the emit_get_rgctx () calls into the
1100 emit_get_rgctx_... functions.
1102 2008-09-25 Mark Probst <mark.probst@gmail.com>
1104 * method-to-ir.c: Eliminated macro EMIT_GET_RGCTX.
1106 2008-09-25 Mark Probst <mark.probst@gmail.com>
1108 * mini-trampolines.c (mono_magic_trampoline): Unwrap wrappers
1109 before asserting that method is sharable.
1111 2008-09-25 Mark Probst <mark.probst@gmail.com>
1113 * method-to-ir.c, mini.c, jit-icalls.c: New function for checking
1114 whether method needs a static RGCTX wrapper used instead of
1117 * generic-sharing.c, mini.h: A few functions moved to
1118 metadata/generic-sharing.c.
1120 2008-09-25 Mark Probst <mark.probst@gmail.com>
1122 * method-to-ir.c, mini.c, mini-exceptions.c, mini-trampolines.c:
1123 Generic code sharing for value types, which essentially means
1124 treating value type methods like static methods. The RGCTX is
1125 passed in the same way.
1127 2008-09-25 Zoltan Varga <vargaz@gmail.com>
1129 * method-to-ir.c (mono_method_to_ir2): Avoid an assert in the NEWOBJ
1130 opcode when creating multi-dimensional arrays of open types.
1132 * generic-sharing.c (mono_method_check_context_used): Handle arrays of
1135 * generics.cs: Add a test.
1137 * mini-codegen.c: Use macros everywhere for checking floats instead of == 'f'.
1139 2008-09-24 Zoltan Varga <vargaz@gmail.com>
1141 * mini.h (MonoCompile): Add 'disable_vreg_to_lvreg' flag.
1143 * mini.c (mini_method_compile): Set it when running under the debugger.
1145 * method-to-ir.c (mono_handle_global_vregs): Disable global->local
1146 vreg optimization if the flag is set.
1148 * driver.c (mono_main): Add --attach= option to pass options to
1151 * mini.c (sigquit_signal_handler): Start the attach agent.
1153 * ssapre.c: Disable this to save space since it is not yet ported to
1156 * regalloc2.c: Disable this to save space.
1158 * mini.h (MonoJitStats): Remove unused analyze_stack_repeat.
1160 Wed Sep 24 16:01:49 CEST 2008 Paolo Molaro <lupus@ximian.com>
1162 * decompose.c, method-to-ir.c, mini-codegen.c, regalloc2.c: make
1163 the -v option useful again.
1165 2008-09-24 Zoltan Varga <vargaz@gmail.com>
1167 * mini-amd64.c (mono_arch_output_basic_block): Add support for
1170 * inssel.brg (mini_emit_castclass): Avoid the szarray!=array checks for
1171 arrays of arrays. Fixes #428406.
1173 * method-to-ir.c (mini_emit_castclass): Ditto.
1175 * objects.cs: Add new test.
1177 2008-09-23 Rodrigo Kumpera <rkumpera@novell.com>
1179 * method-to-ir.c (type_to_eval_stack_type): The code path for the new JIT
1180 was wrong at it choked against target_type_is_incompatible for byref types.
1182 2008-09-23 Zoltan Varga <vargaz@gmail.com>
1184 * mini-codegen.c: Use 'bank' macros instead of 'is_fp' macros in most
1187 Tue Sep 23 15:31:45 CEST 2008 Paolo Molaro <lupus@ximian.com>
1189 * mini-exceptions.c: update a few more exceptions-related counters.
1191 Tue Sep 23 15:28:29 CEST 2008 Paolo Molaro <lupus@ximian.com>
1193 * aot-runtime.c, method-to-ir.c, mini.c, mini-trampolines.c: use the
1194 new functions to allocate from persistent mempools.
1196 2008-09-23 Zoltan Varga <vargaz@gmail.com>
1198 * mini.h regalloc.h mini-codegen.c: Generalize the regalloc code to allow
1199 multiple register banks in the future.
1201 * mini-codegen.c (mono_local_regalloc): Fix a warning.
1203 2008-09-22 Rodrigo Kumpera <rkumpera@novell.com>
1205 * mini.c (type_to_eval_stack_type): Remove duplicated function.
1207 * method-to-ir.c (type_to_eval_stack_type): Make this version compatible with both JIT.
1209 * mini.h: Export type_to_eval_stack_type.
1211 This function was nearly duplicated in method-to-ir.c and mini.c. The difference
1212 is only ins->klass of byref types.
1214 2008-09-22 Zoltan Varga <vargaz@gmail.com>
1216 * method-to-ir.c (mini_emit_memset): Use a default alignment of 4.
1217 (mini_emit_memcpy2): Ditto.
1219 * mini-amd64.c: Fix a warning.
1221 2008-09-21 Mark Probst <mark.probst@gmail.com>
1223 * exceptions-ppc.c (mono_arch_get_call_filter): Fixed stack frame
1226 2008-09-19 Rodrigo Kumpera <rkumpera@novell.com>
1228 * method-to-ir.c: Extract stloc micro-optimization to a
1229 function and apply it to all cases.
1231 2008-09-19 Mark Probst <mark.probst@gmail.com>
1233 * method-to-ir.c: Don't fail generic code sharing in cases we
1236 2008-09-18 Mark Probst <mark.probst@gmail.com>
1238 * mini-ppc.c: Handle structs in tailcalls on Darwin.
1240 Tue Sep 16 21:07:11 CEST 2008 Paolo Molaro <lupus@ximian.com>
1242 * *.c, *.md, mini-ops.h: introduced relaxed_nop opcode for spin wait
1245 Tue Sep 16 16:39:16 CEST 2008 Paolo Molaro <lupus@ximian.com>
1247 * trace.c: make tracing more useful and correct, with per-thread
1250 2008-09-15 Mark Probst <mark.probst@gmail.com>
1252 * mini-ppc.c (mono_arch_emit_call): Convert floats to R4 when
1253 doing a method call and the argument is an R4.
1255 2008-09-14 Zoltan Varga <vargaz@gmail.com>
1257 * aot-compiler.c (add_wrappers): Do not generate runtime invoke wrappers for
1260 2008-09-13 Mark Probst <mark.probst@gmail.com>
1262 * mini-ppc.c: Convert result to single for OP_ICONV_TO_R4.
1264 2008-09-12 Zoltan Varga <vargaz@gmail.com>
1266 * mini.h (MONO_IS_JUMP_TABLE): Handle GOT_ENTRY.
1267 (MONO_JUMP_TABLE_FROM_INS): Ditto.
1269 2008-09-11 Zoltan Varga <vargaz@gmail.com>
1271 * driver.c: Add a --agent argument (not supported yet) to load managed
1272 agent assemblies before loading the main assembly, similarly to how the
1273 Java VM handles agents.
1275 2008-09-11 Mark Probst <mark.probst@gmail.com>
1277 * mini-ppc.c (mono_arch_allocate_vars): Use arch-independent
1278 function to do stack layout of local variables.
1280 2008-09-11 Mark Probst <mark.probst@gmail.com>
1282 * mini-ppc.c (calculate_sizes): Bugfix in sigcookie position
1285 2008-09-11 Zoltan Varga <vargaz@gmail.com>
1287 * method-to-ir.c ssa2.c mini.c mini-amd64.c decompose.c ssa.c abcremoval.c
1288 abcremoval2.c branch-opts.c driver.c dominators.c: Disable parts of the
1289 JIT if DISABLE_JIT is defined.
1291 * Makefile.am: Avoid compiling/linking in inssel.c if DISABLE_JIT is
1294 2008-09-10 Mark Probst <mark.probst@gmail.com>
1296 * iltests.il.in: Disable the fconv test on PPC (the result is
1297 undefined according to ECMA).
1299 2008-09-10 Mark Probst <mark.probst@gmail.com>
1301 * iltests.il.in: Enable tail call tests for PPC.
1303 * mini.h: Add variable for storing incoming valuetype argument
1304 addresses for tail calls.
1306 * mini-ppc.c: Implement valuetype arguments and return values for
1309 2008-09-09 Mark Probst <mark.probst@gmail.com>
1311 * mini-ppc.c: Partially implement tail calls (struct arguments and
1312 return values not supported).
1314 * method-to-ir.c: Enable tail calls on PPC.
1316 2008-09-08 Zoltan Varga <vargaz@gmail.com>
1318 * aot-compiler.c (emit_wrapper_info): Omit the klass name from
1319 runtime-invoke wrappers to work around the problem of them getting
1320 assigned to a random class.
1322 * aot-runtime.c (mono_aot_get_method): Ditto.
1324 2008-09-07 Zoltan Varga <vargaz@gmail.com>
1326 * mini-exceptions.c mini-mips.h mini-s390.h exceptions-mips.c: Kill
1327 the CUSTOM_EXCEPTION_HANDLING and CUSTOM_STACK_WALK defines.
1329 2008-09-07 Mark Probst <mark.probst@gmail.com>
1331 * method-to-ir.c (mono_method_to_ir2): Disable tail calls for PPC
1332 until they're implemented properly.
1334 * exceptions-ppc.c: Use arch-independent exception-handling code
1335 instead of custom one.
1337 * exceptions-ppc.c, mini-ppc.c, mini-ppc.h: Bug fixes and changes
1340 * tramp-ppc.c, mini-ppc.c: Fixed warnings.
1342 * decompose.c, aot-runtime.c, aot-compiler.c: PPC code also
1343 applies when __powerpc__ is defined.
1345 2008-09-06 Zoltan Varga <vargaz@gmail.com>
1347 * aot-runtime.c (mono_aot_get_method): Add another cache mapping wrapper
1348 methods to their code to avoid computing the full name of wrappers and
1349 doing a lookup in a string hash table.
1351 2008-09-05 Zoltan Varga <vargaz@gmail.com>
1353 * method-to-ir.c: Remove the CHECK_BBLOCK () stuff it is not needed since
1354 we identify bblocks before method_to_ir () is ran.
1356 * branch-opts.c (mono_optimize_branches): Avoid nullifying the exit bblock.
1357 Also avoid optimizing branches pointing to themselves.
1359 * mini.c (mini_method_compile): Ditto. Fixes #422947.
1361 2008-09-05 Rodrigo Kumpera <rkumpera@novell.com>
1363 * driver.c (mono_main): Enable the new verifier under core-clr and cas.
1365 2008-09-05 Zoltan Varga <vargaz@gmail.com>
1367 * tramp-arm.c (mono_arch_nullify_class_init_trampoline): Implement this.
1368 (mono_arch_patch_plt_entry): Fix the calculation of the jump_entry.
1369 (mono_arch_get_nullified_class_init_trampoline): Return 'code' instead of
1372 * aot-compiler.c (emit_plt): Fix the arm plt entries, previously they all
1373 jumped to the same entry in plt_jump_table.
1375 2008-09-02 Rodrigo Kumpera <rkumpera@novell.com>
1377 * method-to-ir.c (initialize_array_data): Handle field with RVA from
1380 2008-08-31 Zoltan Varga <vargaz@gmail.com>
1382 * method-to-ir.c (handle_isinst): Do the assignment at the beginning, so the
1383 other assignment can be if converted. Saves 1.5% on corlib size and fixes
1386 2008-08-29 Geoff Norton <gnorton@novell.com>
1388 * aot-compiler.c: The Mach/ARM compiler doesn't understand the bss
1389 segment, and doesn't properly handle .space as .text. Fixes
1392 2008-08-29 Geoff Norton <gnorton@novell.com>
1394 * mini.c: Disable the mach exception handler when running on
1397 2008-08-29 Geoff Norton <gnorton@novell.com>
1399 * aot-compiler.c: Patch from Renaldas Zioma to properly register
1400 globals on Darwin/ARM
1402 2008-08-28 Zoltan Varga <vargaz@gmail.com>
1404 * mini.c: Avoid not initializing the runtime when doing AOT compilation,
1405 since too many things depend on it. Instead, call
1406 mono_runtime_set_no_exec ().
1408 * mini.c (mono_create_tls_get): Call mono_alloc_preg (cfg) when running with
1411 * aot-compiler.c: Add an 'asm-only' AOT option.
1413 * mini.c: Avoid initializing the runtime when doing AOT compilation.
1415 * aot-compiler.c (compile_method): Disable gshared support for now as it
1418 2008-08-27 Bill Holmes <billholmes54@gmail.com>
1420 * mini-amd64.h : Fix a compiler warning.
1422 * exceptions-amd64.c (mono_arch_unwindinfo_install_unwind_info) :
1423 Changed to use a callback function to retrieve the unwind info.
1424 This avoids problems observed when code blocks were removed by
1425 unloading an app domain.
1427 * mini-amd64.c (mono_arch_cpu_optimizazions) : Removing the peephole
1428 and branch excludes for Winx64. The fix in exceptions-amd64.c allows them
1431 Contributed under MIT/X11 license.
1433 2008-08-27 Bill Holmes <billholmes54@gmail.com>
1435 * mini-amd64.c (mono_arch_output_basic_block) : Fix the OP_X86_PUSH_OBJ
1436 case to keep the stack aligned to 8.
1438 Contributed under MIT/X11 license.
1440 2008-08-26 Zoltan Varga <vargaz@gmail.com>
1442 * aot-runtime.c (mono_aot_get_method): Add a cache for wrapper names to
1443 avoid repeated linear searches.
1445 2008-08-25 Zoltan Varga <vargaz@gmail.com>
1447 * aot-compiler.c (add_wrappers): Avoid calling get_runtime_invoke with
1448 methods it can't handle.
1450 * aot-compiler.c (add_method): Avoid adding a method twice.
1451 (add_wrappers): Add runtime invoke wrappers for all methods.
1453 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline_full): New
1454 function to create an aot-compatible version of this trampoline.
1456 * aot-compiler.c aot-runtime.c: Add support for AOT rgctx fetch trampolines.
1458 2008-08-24 Zoltan Varga <vargaz@gmail.com>
1460 * aot-compiler.c (compile_method): Skip wrappers of generic icalls.
1462 * method-to-ir.c (mono_method_to_ir2): Replace an assert in UNBOX_ANY
1463 with a generic sharing failure.
1465 * aot-compiler.c (emit_klass_info): Call mono_class_get_nested_types ().
1467 * method-to-ir.c (mono_method_to_ir2): Rethrow the correct exception in
1468 CEE_RETHROW. Fixes #419634.
1470 * mini.c (mono_method_to_ir): Ditto.
1472 * exceptions.cs: Add a new test.
1474 * generic-sharing.c (mini_type_stack_size): Always pass TRUE as allow_open
1475 to mono_type_stack_size_internal () since some callers might not pass in
1478 * mini-x86.c (mono_arch_emit_prolog): Store the rgctx before calling
1479 instrument_prolog. Fixes #419878.
1481 * mini.c (mono_compile_create_var_for_vreg): Make the lvars representing
1482 doubles in soft float mode volatile.
1484 2008-08-23 Zoltan Varga <vargaz@gmail.com>
1486 * ir-emit.h (NEW_ARGSTORE): Use cfg->args and cfg->arg_types to fix the build.
1488 * method-to-ir.c (mono_save_args): Use ARGSTORE instead of TEMPSTORE
1489 to handle soft float correctly.
1491 * tramp-arm.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Implement
1494 * mini.h (struct MonoCallInst): Add dynamic_imt_arg boolean field.
1496 * exceptions-arm.c (mono_arch_find_jit_info): Set ctx->regs [ARMREG_R11]
1497 to sp, since the generics catch code requires it.
1499 * mini-arm.h (MONO_ARCH_VTABLE_REG): Use R0 for this to avoid needless
1502 * method-to-ir.c (emit_imt_argument): Pass imt_arg to
1503 mono_arch_emit_imt_argument ().
1505 * mini-<ARCH>.c (mono_arch_emit_imt_argument): Add an 'imt_arg' argument.
1507 * mini-arm.c tramp-arm.c: Generic sharing updates.
1509 2008-08-22 Zoltan Varga <vargaz@gmail.com>
1511 * mini-arm.c: Fix the arm build.
1513 * generic-sharing.c (mini_type_get_underlying_type): New helper function
1514 handling enums, generic instances and generic sharing.
1515 (mini_type_stack_size_full): Ditto.
1517 * mini-amd64.c mini-x86.c mini-arm.c: Use the new functions.
1519 * mini.h (struct): Add 'uses_rgctx_reg' and 'uses_vtable_reg' fields.
1521 * method-to-ir.c: Set the new fields when using RGCTX_REG/VTABLE_REG.
1523 * tramp-arm.c: Implement the rgctx fetch and the generic class init
1526 * mini-arm.c: Various small generic sharing changes.
1528 * tramp-x86.c (mono_arch_create_generic_class_init_trampoline): Implement
1530 (mono_arch_create_trampoline_code): Remove most of the GENERIC_CLASS_INIT
1533 * mini-trampolines.c (mono_create_generic_class_init_trampoline): New
1534 helper function to return a generic class init trampoline.
1536 * method-to-ir.c mini.c: Use it.
1538 * tramp-amd64.c (mono_arch_create_generic_class_init_trampoline): New
1539 arch-specfic function to return a generic class init trampoline.
1541 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Remove most of
1542 the GENERIC_CLASS_INIT custom code.
1544 * method-to-ir.c (mono_method_to_ir2): If RGCTX_REG is not defined, that is
1545 a fatal error, not a sharing failure.
1547 * tramp-<ARCH>.c (mono_arch_get_rgctx_lazy_fetch_offset): Removed, no longer
1550 * mini-trampolines.c (mono_rgctx_lazy_fetch_trampoline): Get the additional
1551 trampoline argument from MONO_ARCH_VTABLE_REG.
1553 * tramp-x86.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
1554 order of the arguments to the C trampoline: pass 'slot' as the trampoline
1555 argument, and pass the vtable in VTABLE_REG.
1557 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Change the
1558 order of the arguments to the C trampoline: pass 'slot' as the trampoline
1559 argument, and pass the vtable in VTABLE_REG.
1560 (mono_arch_create_trampoline_code_full): Remove some special casing for
1561 the rgctx fetch trampoline.
1563 * mini.c (mono_method_to_ir): Fix the STELEM_ANY+null value optimization.
1566 * iltests.il: Add a test for it.
1568 2008-08-21 Zoltan Varga <vargaz@gmail.com>
1570 * aot-compiler.c (compile_method): Enable AOT support for generics sharing.
1572 * method-to-ir.c (mono_method_to_ir2): Remove an aot restriction which is
1575 * mini-trampolines.c (mono_magic_trampoline): Add a sync wrapper here,
1576 use mono_jit_info_table_find () to avoid recursion.
1577 (mono_delegate_trampoline): Add a sync wrapper here.
1579 * method-to-ir.c (mono_method_to_ir2): Don't call mono_ldftn_nosyc
1582 * mini.c (mono_method_to_ir): Ditto.
1584 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Remove
1585 add_sync_wrapper argument. Don't add a sync wrapper here.
1586 (mono_create_jump_trampoline): Don't add a sync wrapper here.
1588 * jit-icalls.c (mono_ldftn_nosync): Removed, no longer needed.
1590 2008-08-20 Bill Holmes <billholmes54@gmail.com>
1592 * exceptions-amd64.c (seh_handler): For Winx64 adding missing copy
1593 of nonvolatile registers back from MonoContext to CONTEXT.
1595 Contributed under MIT/X11 license.
1597 2008-08-20 Bill Holmes <billholmes54@gmail.com>
1599 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): When shifting the
1600 arguments on Winx64 there are only 4 argument registers. For this
1601 logic to work the last argument must be pulled from the stack.
1603 Contributed under MIT/X11 license.
1605 2008-08-20 Zoltan Varga <vargaz@gmail.com>
1607 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
1609 * aot-runtime.c aot-compiler.c patch-info.h mini.c: Get rid of
1610 MONO_PATCH_INFO_WRAPPER, encode/decode wrapper methods like the others in
1611 encode/decode_method_ref ().
1613 * aot-compiler.c (encode_patch): Handle STATIC_RGCTX_INVOKE wrappers.
1615 * aot-runtime.c (decode_patch): Ditto.
1617 * mini.c (mono_resolve_patch_target): Handle RGCTX_FETCH sub-patches of type
1618 MONO_PATCH_INFO_METHOD.
1620 * aot-runtime.c (decode_exception_debug_info): Decode the contents of
1623 * aot-compiler.c (emit_exception_debug_info): Emit the contents of
1626 * method-to-ir.c (emit_imt_argument): Fix AOT+gshared support.
1628 * mini-amd64.c (add_valuetype): Use a dummy gsctx if we didn't receive
1629 one from the caller.
1631 * aot-runtime.c (decode_generic_inst): New function to decode and
1632 return a interned generic inst.
1633 (decode_klass_ref): Use it.
1634 (decode_method_ref): Ditto.
1636 * aot-compiler.c (emit_exception_debug_info): Save
1637 jinfo->has_generic_jit_info too.
1639 2008-08-19 Zoltan Varga <vargaz@gmail.com>
1641 * mini-ia64.c (mono_arch_output_basic_block): Add OP_FCONV_TO_I.
1643 * iltests.il.in: Add a test for fconv_to_i.
1645 * liveness.c: Disable the liveness2 pass for now to save space.
1647 * regalloc2.c: Include mempool-internals.h to fix warnings.
1649 * aot-compiler.c (encode_method_ref): Encode the context of generic
1652 * aot-runtime.c (decode_method_ref): Inflate generic methods using
1653 the context saved in the aot file.
1655 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
1657 * mini-x86.c (mono_arch_output_basic_block): Disable AOT for OP_JMP.
1659 * method-to-ir.c (mono_method_to_ir2): When using CEE_JMP, make arguments
1660 volatile so they won't be optimized away.
1662 2008-08-19 Rodrigo Kumpera <rkumpera@novell.com>
1668 * dominators.c: Remove duplicated functions that now are in
1669 mempool-internals.h.
1671 2008-08-19 Zoltan Varga <vargaz@gmail.com>
1673 * aot-compiler.c: Fix warnings.
1675 * aot-runtime.c (decode_klass_ref): Add support for VARs/MVARs.
1677 * aot-compiler.c (encode_klass_ref): Encode is_method too for VARs/MVARs.
1679 * method-to-ir.c (emit_get_rgctx_method): Use MONO_PATCH_INFO_METHODCONST
1682 * mini.c (mono_resolve_patch_target): Ditto.
1684 * aot-compiler.c (encode_patch): Add support for RGCTX_FETCH.
1685 (encode_klass_ref): Add support for encoding VARs/MVARs.
1687 * mini.c (mono_patch_info_dup_mp): Handle RGCTX_FETCH.
1689 * aot-runtime.c (decode_patch_info): Rename to 'decode_patch'. Split out
1690 the handling of the got entries into a separate 'decode_got_entry' function.
1691 Add support for RGCTX_FETCH.
1693 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RDI since RAX is
1694 clobbered by the trampoline code.
1696 * tramp-amd64.c mini-amd64.h: Change the VTABLE_REG to RAX since that is
1697 not clobbered by the indirect calling code.
1699 2008-08-18 Zoltan Varga <vargaz@gmail.com>
1701 * mini-x86.c (mono_arch_patch_code): Handle RGCTX_FETCH/GENERIC_CLASS_INIT
1704 2008-08-18 Rodrigo Kumpera <rkumpera@novell.com>
1706 * method-to-ir.c (mono_emit_method_call_full): Alloc the constructor
1707 signature using the compilation mempool otherwise we would leak it.
1709 2008-08-18 Zoltan Varga <vargaz@gmail.com>
1711 * method-to-ir.c (mono_method_to_ir2): Emit the generic class inits using
1712 mono_emit_abs_call ().
1714 * patch-info.h: Add GENERIC_CLASS_INIT.
1716 * mini.c (mono_resolve_patch_target): Handle GENERIC_CLASS_INIT.
1718 * mini-amd64.c (emit_call_body): Treat abs calls which have a patch info
1719 as their target as a near call.
1721 * mini.c (mono_codegen): Handle patches stored in cfg->abs_patches in the
1723 (mono_resolve_patch_target): Add support for MONO_PATCH_INFO_RGCTX_FETCH.
1725 * method-to-ir.c (mono_emit_abs_call): New helper function which emits a
1726 call to a runtime function described by a patch.
1728 * method-to-ir.c: Emit rgctx entry fetches and class init trampolines using
1729 mono_emit_abs_call, this has the advantage that the ABS handling code in
1730 mono_codegen () can handle them both, and can handle other stuff in the
1731 future without additional code.
1733 * mini.h (struct MonoJumpInfoRgctxEntry): New structure describing an rgctx
1735 (MonoCompile): Add 'abs_patches' hashtable, which contains patches describing
1738 * mini.h: Add missing bblock related prototypes.
1740 * mini.h (MonoCompile): Remove unused reverse_inst_list and
1741 reverse_inst_list_len fields.
1743 * mini.c: Refactor this file a bit by moving branch optimizations to
1746 * method-to-ir.c: Merge generic sharing changes missed earlier.
1748 * aot-compiler.c (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST.
1750 * aot-runtime.c (decode_patch_info): Refactor the code dealing with the
1751 shared patches. Process METHODCONST as a shared patch.
1753 * liveness.c (mono_analyze_liveness): Disable the liveness2 code for now
1754 as it crashes on the 2.0 mscorlib.
1756 * aot-compiler.c (is_shared_got_patch): Revert the last change as it seems
1759 * aot-compiler.c: Use is_plt_patch () in a few additional places.
1760 (is_shared_got_patch): Add MONO_PATCH_INFO_METHODCONST, which is generated
1763 * aot-compiler.c: Reorganize the got handling code to be a bit more
1766 2008-08-17 Zoltan Varga <vargaz@gmail.com>
1768 * aot-compiler.c: Make the patch_to_plt_offset hash table use
1769 mono_patch_info_equals/hash, and use it to massively simplify
1772 * mini.c (mono_patch_info_hash): Simplify this and add support for
1775 * patch-info.h: Rename RGCTX_LAZY_FETCH_TRAMPOLINE to just RGCTX_FETCH.
1777 * mini.c aot-compiler.c aot-runtime.c: Revert the LAZY_FETCH_TRAMPOLINE
1778 handling code, since an offset is not enough to identify a trampoline.
1780 * method-to-ir.c: Remove some g_assert (!cfg->compile_aot) lines.
1782 2008-08-17 Mark Probst <mark.probst@gmail.com>
1784 * mini.c (mono_op_imm_to_op): Add case for OP_IMUL_IMM.
1786 * method-to-ir.c (mono_method_to_ir2): Decompose OP_CKFINITE.
1788 * mini-ops.h: Argument and result types for OVF_CARRY ops.
1790 * decompose.c: PPC decompositions for various ops.
1792 * cpu-ppc.md, inssel-ppc.brg, mini-ppc.c: PPC changes for Linear IL.
1794 2008-08-17 Zoltan Varga <vargaz@gmail.com>
1796 * tramp-amd64.c (mono_arch_create_rgctx_lazy_fetch_trampoline): Make this
1797 call the generic trampoline code using a call, instead of a jump, to
1798 remove some special casing from the generic trampoline code.
1800 * mini.c (mono_resolve_patch_target): Handle LAZY_FETCH_TRAMPOLINE.
1801 (mono_codegen): Ditto.
1803 * aot-compiler.c aot-runtime.c: Ditto.
1805 * patch-info.h: Add MONO_PATCH_INFO_RGCTX_LAZY_FETCH_TRAMPOLINE.
1807 * mini-trampolines.c (mono_find_rgctx_lazy_fetch_trampoline_by_addr): New
1808 helper function to find the offset corresponding to a lazy fetch trampoline.
1810 * mini.h (MonoCompile): Add 'orig_method' field to hold the original method
1811 when doing generic sharing.
1813 * aot-compiler.c: Use cfg->orig_method instead of cfg->method in a lot of
1816 * mini.c (mono_create_rgctx_lazy_fetch_trampoline): Move this to
1817 mini-trampolines.c to be with the other trampoline creation functions.
1819 * method-to-ir.c (mono_emit_method_call): Remove the 'signature' argument
1820 as it is equal to method->signature in most cases, add a
1821 mono_emit_method_call_full variant which takes a signature and an imt
1824 2008-08-16 Zoltan Varga <vargaz@gmail.com>
1826 * jit-icalls.c (mono_helper_compile_generic_method): Don't pass the context
1827 to this function, since it could be computed easily from the method
1829 (mono_helper_compile_generic_method_wo_context): Removed, not needed any
1832 * method-to-ir.c mini.c: Remove references to
1833 compile_generic_method_wo_context.
1835 * method-to-ir.c (mono_method_to_ir2): Enable AOT for virtual
1836 generic method calls.
1838 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_1 for 1
1839 dimensional non-szarrays.
1841 * mini.c (mini_init): Register mono_array_new_1.
1843 * jit-icalls.c (mono_array_new_1): New jit icall.
1845 * mini-trampolines.c (mono_magic_trampoline): For jumps, patch the GOT entries
1846 pointing to the method.
1848 * aot-runtime.c (mono_aot_get_method_from_token): Register GOT slots holding
1849 method addresses belonging to METHOD_JUMP patches in the
1850 jump_target_got_slot_hash.
1851 (mono_aot_load_method): Ditto.
1853 * aot-compiler.c (compile_method): Allow AOT compilation of methods with
1854 METHOD_JUMP patches.
1856 * mini.c (mini_create_jit_domain_info): New helper function which
1857 initializes/frees domain->runtime_info.
1858 (mini_free_jit_domain_info): Ditto.
1859 (mini_init): Install the domain hook functions with the runtime.
1861 * mini.h (MonoJitDomainInfo): New structure which stores the domain specific
1862 information maintained by the JIT.
1864 * mini.c (mono_resolve_patch_target): For PATCH_INFO_METHOD_JUMP, move the
1865 insertion into jump_table_hash into mono_codegen (), also implement proper
1868 * method-to-ir.c (mono_method_to_ir2): Don't disable AOT for CEE_JMP and
1869 tail calls, it is already done by the aot code.
1871 * method-to-ir.c (mono_method_to_ir2): Handle CEE_JMP using the tail call
1874 * iltests.il.in: Make the jmp test a bit more complex.
1876 * aot-compiler.c (encode_method_ref): Handle references to normal methods of
1877 generic instances which doesn't have a token.
1879 * aot-runtime.c (decode_method_ref): Ditto.
1881 * method-to-ir.c (handle_unbox_nullable): Don't disable AOT, the aot code
1882 can handle this case now.
1883 (handle_box): Ditto.
1885 2008-08-15 Geoff Norton <gnorton@novell.com>
1887 * mini-x86.c: Fix alignment on Apple x86, and re-disable the alignment
1890 2008-08-15 Zoltan Varga <vargaz@gmail.com>
1892 * method-to-ir.c (mono_method_to_ir2): Allow AOT compilation of methods
1893 calling generic methods.
1895 * aot-compiler.c (encode_patch): Handle MONO_PATCH_INFO_METHOD_RGCTX.
1897 * aot-runtime.c (decode_patch_info): Ditto.
1899 * mini.c (mono_resolve_patch_target): Ditto.
1901 * patch-info.h: Add METHOD_RGCTX.
1903 * mini-amd64.c (mono_arch_output_basic_block): Optimize LOCALLOC_IMM.
1905 2008-08-14 Zoltan Varga <vargaz@gmail.com>
1907 * mini-amd64.c (mono_arch_emit_call): Nullify call->vret_var if returning
1908 arguments in registers.
1910 * decompose.c (mono_decompose_vtype_opts): Create a var for the vreg in
1911 OP_VCALL too, don't depend on OP_OUTARG_VTRETADDR doing it.
1913 * mini.c (mini_method_compile): Abort aot compilation for generic
1914 methods if generic sharing is disabled.
1916 * mini.c (mono_method_to_ir): Disable AOT for virtual calls requiring
1919 * method-to-ir.c (mono_method_to_ir2): Disable AOT for virtual calls
1920 requiring an mrgctx.
1922 * decompose.c (mono_decompose_vtype_opts): Emit the correct sized
1923 store instructions when converting a vcall to a normal call.
1925 * mini.c (sigprof_signal_handler): Call mono_find_jit_info instead of
1926 mono_arch_find_jit_info.
1928 2008-08-13 Zoltan Varga <vargaz@gmail.com>
1930 * method-to-ir.c (check_inline_called_method_name_limit): Optimize this to
1931 avoid calling mono_method_full_name () for every method even if the
1933 (check_inline_caller_method_name_limit): Ditto.
1935 2008-08-12 Zoltan Varga <vargaz@gmail.com>
1937 * driver.c (main_thread_handler): Allow AOT compilation of multiple
1938 assemblies in one run.
1940 * aot-compiler.c (mono_compile_assembly): Only print out a count of
1941 skipped methods if it is not 0.
1943 * Makefile.am (aotcheck): AOT compile all test assemblies in one run.
1945 2008-08-12 Bill Holmes <billholmes54@gmail.com>
1947 * mini.c (mono_codegen): Changing a preprocessor check from WIN64 to
1948 MONO_ARCH_HAVE_UNWIND_TABLE.
1950 Contributed under MIT/X11 license.
1952 2008-08-12 Bill Holmes <billholmes54@gmail.com>
1954 * mini-amd64.c (mono_arch_cpu_optimizazions): Remove peephole and branch
1955 from default optimizaton list on Winx64.
1957 * mini-amd64.c (emit_tls_get): Added Winx64 specific implementation for GetTLS.
1959 * mini-amd64.c (mono_arch_emit_prolog): Adding an offset on Winx64 to get
1960 the LMF from the MonoJitTlsData structure.
1962 * mini-amd64.c (mono_arch_setup_jit_tls_data): Added Winx64 implementation.
1964 Contributed under MIT/X11 license.
1966 2008-08-12 Zoltan Varga <vargaz@gmail.com>
1968 * mini.c (sigsegv_signal_handler): Fix the build.
1970 * mini-amd64.c (emit_call_body): Use image->aot_module instead of
1971 assembly->aot_module.
1973 * aot-runtime.c: Use image->aot_module instead of searching in the aot_modules
1974 hash table. This simplifies and speeds up a lot of code, and fixes support
1977 * mini.c (SIG_HANDLER_SIGNATURE): Avoid crashes if the thread is not registered
1980 * mini-exceptions.c: Ditto.
1982 * exceptions-*c.c (mono_arch_find_jit_info): Remove unused 'trace' and
1983 'native_offset' argument, since these are computed in the
1984 mono_find_jit_info () function.
1986 * mini-exceptions.c (mono_find_jit_info): Make this non-static, as it
1987 is used by exceptions-ppc.c.
1989 * exceptions-ppc.c: Call mono_find_jit_info () instead of
1990 mono_arch_find_jit_info ().
1992 * mini-ppc.h exceptions-ppc.c mini-mips.h mini-mips.c exceptions-mips.c
1993 mini-exceptions.c: Get rid of the CUSTOM_STACK_WALK stuff, use the
1994 generic code in mini-exceptions.c.
1996 2008-08-11 Zoltan Varga <vargaz@gmail.com>
1998 * mini-ppc.c (mono_arch_flush_register_windows): Add this for ppc.
2000 * aot-runtime.c (mono_aot_get_plt_info_offset): Fix a warning.
2002 * aot-runtime.c (mono_aot_get_method): Avoid doing all the loading inside
2003 the aot lock, to avoid deadlocks when mono_aot_get_class_from_name () is
2004 called while holding the loader lock. Fixes #415608.
2005 (mono_aot_get_method_from_token_inner): Ditto.
2007 2008-08-09 Zoltan Varga <vargaz@gmail.com>
2009 * exceptions-ppc.c (mono_jit_walk_stack): Use MONO_INIT_CONTEXT_FROM_CURRENT
2010 to reduce differences between this and the generic implementation in
2012 (ves_icall_get_frame_info): Ditto.
2014 * mini-ppc.h (MONO_INIT_CONTEXT_FROM_CURRENT): Define this for ppc too.
2016 * mini-exceptions.c (mono_exceptions_init): Remove an #ifdef which is no
2019 * exceptions-ppc.c (arch_get_call_filter): Rename this to
2020 mono_arch_get_call_filter () and make it non-static, for consistency with the
2021 other architectures.
2023 2008-08-09 Rodrigo Kumpera <rkumpera@novell.com>
2026 * local-propagation.c:
2027 * mini-x86.c: Correct the name of arch defines.
2029 2008-08-09 Zoltan Varga <vargaz@gmail.com>
2031 * method-to-ir.c (mono_op_to_op_imm_noemul): Correct name of
2032 NO_EMULATE_LONG_SHIFT_OPS define.
2034 2008-08-08 Zoltan Varga <vargaz@gmail.com>
2036 * method-to-ir.c (mono_method_to_ir2): Remove some code from CEE_MONO_LDPTR
2037 now that aot-ed icall wrappers use CEE_MONO_ICALL_ADDR.
2039 * aot-compiler.c aot-runtime.c: Add support for static aot compilation.
2040 MACH fixes. Merged from the 2.0 branch.
2042 * method-to-ir.c (mono_method_to_ir2): Handle CEE_MONO_ICALL_ADDR.
2044 * mini.c (mono_resolve_patch_target): Error out if an icall is not found.
2045 (mono_method_to_ir): Handle CEE_MONO_ICALL_ADDR.
2047 * exceptions-arm.c (mono_arch_get_throw_exception_generic): Add AOT support.
2049 * method-to-ir.c mini.c driver.c aot-compiler.c: Update after
2050 mono_marshal_get_native_wrapper () signature changes.
2052 2008-08-07 Rodrigo Kumpera <rkumpera@novell.com>
2054 * jit-icalls.c (mono_fconv_ovf_u8): Work around soft-float double to long
2055 conversion bug under arm.
2057 2008-08-06 Rodrigo Kumpera <rkumpera@novell.com>
2059 * cpu-arm.md: Increase long_conv_to_ovf_i4_2 max length to 36.
2061 * mini-arm.c (mono_arch_output_basic_block): Implement long to int conversion
2062 with overflow checking.
2064 2008-08-05 Marek Habersack <mhabersack@novell.com>
2066 * Makefile.am (GENMDESC_PRG): when cross-compiling use full path
2067 to the genmdesc.pl file
2069 2008-08-05 Zoltan Varga <vargaz@gmail.com>
2071 * ir-emit.h (EMIT_NEW_ARGSTORE): Fix the usage of param_types and
2072 arg_array in the soft-float versions of the LOAD/STORE macros.
2074 * method-to-ir.c (mono_method_to_ir2): Fix a warning in the arm switch
2077 * ir-emit.h (NEW_VARLOADA): Handle SOFT_FLOAT correctly.
2079 2008-08-02 Zoltan Varga <vargaz@gmail.com>
2081 * mini-ia64.c (add_valuetype): Only reserve half parameter slot for each member of
2082 a float HFA. Fixes #413621.
2084 2008-08-02 Gert Driesen <drieseng@users.sourceforge.net>
2086 * mini-x86.c (mono_arg_get_argument_info): Rename last occurrence of
2087 frame_size to args_size. Fixes build.
2089 2008-08-02 Zoltan Varga <vargaz@gmail.com>
2091 * mini-x86.c (mono_arch_get_argument_info): Rename frame_size to args_size,
2092 and don't align it to MONO_ARCH_FRAME_ALIGNMENT.
2094 * mini-x86.h: Change MONO_ARCH_FRAME_ALIGNMENT to 8 so doubles stored on
2095 the stack are not unaligned. Fixes #413247.
2097 Fri Aug 1 18:46:42 CEST 2008 Paolo Molaro <lupus@ximian.com>
2099 * mini.c: update jitted methods performance counters.
2101 Fri Aug 1 16:30:37 CEST 2008 Paolo Molaro <lupus@ximian.com>
2103 * mini-exceptions.c: increase the exceptions thrown performance
2104 counter in mono_handle_exception ().
2106 2008-07-29 Zoltan Varga <vargaz@gmail.com>
2108 * aot-runtime.c: Use MonoImage's as keys in the aot_modules hash so the aot
2109 can work with netmodules.
2111 2008-07-28 Geoff Norton <gnorton@novell.com>
2113 * mini-x86.h: Correct the frame alignment on OSX. Fixes the jit
2116 2008-07-28 Zoltan Varga <vargaz@gmail.com>
2118 * mini-x86.c (mono_arch_emit_call): Emi the osx stack alignment at the
2121 2008-07-28 Bill Holmes <billholmes54@gmail.com>
2123 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
2124 The float param registers and other param registers must be the
2125 same index on Windows x64.
2127 * mini-amd64.c (mono_arch_allocate_vars) : Implementing the
2128 ArgValuetypeAddrInIReg argument case. Setting the argument
2129 op to OP_VTARG_ADDR (OP_REGOFFSET)).
2131 * mini-amd64.c (mono_arch_call_opcode) : Winx64 fix. Use the size
2132 variable computed above as the copy length for arguments of storage
2133 type ArgValuetypeAddrInIReg.
2135 * mini-amd64.c (mono_arch_emit_call) : Implementing the
2136 ArgValuetypeAddrInIReg argument case. This case will rely on
2137 mono_arch_emit_outarg_vt to emit the correct code later in the process.
2139 * mini-amd64.c (mono_arch_emit_call) : On Winx64 there always needs to be
2140 a 32 byte stack allocation for all calls. We will omit the adjustment for
2141 jump and tail call instructoins as they do not follow the typical call behavior.
2143 * mini-amd64.c (mono_arch_emit_outarg_vt) : Implementing the case for
2144 ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
2145 local variable and pass the local variable by reference to the called method.
2147 * mini-amd64.c (mono_arch_emit_prolog, emit_load_volatile_arguments) :
2148 Implementing the ArgValuetypeAddrInIReg argument case. When the address
2149 of a struct is passed in a register it must be saved with the other
2150 volatile argument on the stack.
2152 * mini-amd64.c (mono_arch_emit_prolog) : Winx64 fix. When omitting the
2153 frame pointer the stack adjustment value must be saved to the unwind
2156 Contributed under MIT/X11 license.
2158 2008-07-28 Zoltan Varga <vargaz@gmail.com>
2160 * inssel-x86.brg (stmt): Add missing OP_X86_OUTARG_ALIGN_STACK rule
2161 which got lost in the merge.
2163 2008-07-27 Zoltan Varga <vargaz@gmail.com>
2165 * method-to-ir.c: Make the helper_sig variables extern to fix the ppc
2168 * mini-amd64.c (emit_call_body): Add a no_patch case missed earlier.
2170 * mini-amd64.c (emit_call_body): Avoid aligning the call instruction on
2171 icalls, since they won't be patched.
2173 * exceptions-amd64.c (mono_arch_get_restore_context_full): Use a slightly
2174 different code sequence when running under valgrind to prevent some valgrind
2177 * iltests.il.in: Add new regression test.
2179 * method-to-ir.c (mono_method_to_ir2): Fix handling of inlined methods which
2182 * method-to-ir.c (mono_method_to_ir2): Use get_vreg_to_inst () instead of
2183 accessing cfg->vreg_to_inst directly to prevent a crash in LDFLD.
2185 * iltests.il.in: Add new test.
2187 * aot-compiler.c: Fix some warnings.
2189 * decompose.c (mono_decompose_long_opts): Implement OP_ICONV_TO_OVF_I8_UN.
2192 2008-07-27 Zoltan Varga <vargaz@gmail.com>
2194 * driver.c (mono_main): Fix the --gc=none build. Fixes #412482.
2195 (mini_usage_jitdeveloper): Add a missing --wapi option.
2197 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2199 * mini-codegen.c: Simplify the is_fp macros.
2200 (free_up_ireg): Remove, use free_up_reg instead.
2201 (free_up_reg): Fix the fp case.
2203 2008-07-26 Zoltan Varga <vargaz@gmail.com>
2205 * cpu-arm.md (loadr8_membase): Increase the length of this as this is not
2208 * exceptions-x86.c: Merge some changes which seemed to have got lost
2209 in the linear-ir merge.
2211 * liveness.c: Disable the liveness2 pass on 32 bit platforms.
2213 * method-to-ir.c (mono_handle_global_vregs): Make the component vregs of a
2214 long vreg volatile even if the variable was already created.
2216 * liveness.c (update_liveness2): Avoid eliminating dead definitions of
2219 2008-07-26 Zoltan Varga <vargaz@gmail.com>
2221 * cpu-x86.md (fcall_membase): Increase the size of the fcall opcodes.
2223 * mini.c (mono_jit_compile_method_inner): Add support for
2224 MONO_EXCEPTION_BAD_IMAGE.
2226 * method-to-ir.c (mono_method_to_ir2): Avoid a crash if
2227 mini_method_get_context () returns NULL. Fixes #356531.
2229 * mini.c (mono_method_to_ir): Ditto.
2231 * method-to-ir.c (mono_method_to_ir2): Create a variable if needed when
2232 accessing a field of a valuetype in LDFLD/STFLD. Fixes #412399.
2234 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2236 * method-to-ir.c (mono_method_to_ir2): Initialize an uninitialized variable
2237 in the LDFTN implementation.
2239 2008-07-25 Mark Probst <mark.probst@gmail.com>
2241 * mini-trampolines.c (mono_magic_trampoline): When sharing generic
2242 code, patch calls to icalls, too, even if they're not in the
2243 shared generic code hash. Fixes #411962.
2245 2008-07-25 Zoltan Varga <vargaz@gmail.com>
2247 * cpu-x86.md: Increase the length of the fcall opcodes.
2249 * mini-x86.c (emit_move_return_value): Avoid some precision issues for
2250 calls returning floats.
2252 * method-to-ir.c (mono_method_to_ir2): Remove the generic sharing restrictions
2255 * method-to-ir.c (mono_method_to_ir2): Merge some LDFTN gsharing changes
2258 * method-to-ir.c (handle_delegate_ctor): Avoid putting dynamic methods
2259 into the domain->method_code_hash.
2261 * aot-compiler.c: Fix win32 build.
2263 * method-to-ir.c (EMIT_GET_RGCTX): Call EMIT_NEW_LDARG in emit_get_rgctx ().
2265 * method-to-ir.c (mono_method_to_ir2): Use mono_array_new_specific in the
2266 gshared NEWARR implementation.
2268 * cpu-sparc.md: Remove duplicate localloc_imm opcode.
2270 * ir-emit.h (NEW_ARGLOAD): Use cfg->args and cfg->arg_types so this macro
2271 can be used outside of method_to_ir.
2273 * mini.h (MonoCompile): Add arg_types field.
2275 * method-to-ir.c (inline_method): Save/Restore cfg->args and cfg->arg_types.
2277 * method-to-ir.c (mono_method_to_ir2): Set cfg->args and cfg->arg_types to
2278 the values of the local arg_array and param_types array.
2280 2008-07-24 Zoltan Varga <vargaz@gmail.com>
2282 * method-to-ir.c (mono_method_to_ir2): Allocate a GOT var for NEWOBJ, since
2283 got accesses might only get generated later when NEWOBJ is decomposed.
2285 * method-to-ir.c (handle_delegate_ctor): Add an optimization to avoid
2286 looking up the native code of the target method when a delegate is called
2289 * mini-trampolines.c (mono_delegate_trampoline): Add the other half of the
2292 * debug-debugger.c (MONO_DEBUGGER__debugger_info): Fix a warning.
2294 * aot-runtime.c aot-compiler.c: Add a new option 'no-dlsym' which makes
2295 AOT work on platforms without a working dlsym implementation.
2297 * mini.h: Bump AOT image format version.
2299 2008-07-24 Mark Probst <mark.probst@gmail.com>
2301 * mini-exceptions.c: Free a MonoType with
2302 mono_metadata_free_type() instead of g_free().
2304 * aot-runtime.c: Free a MonoType.
2306 2008-07-24 Zoltan Varga <vargaz@gmail.com>
2308 * method-to-ir.c (mono_method_to_ir2): Add a comment for the box+brtrue
2311 * mini-codegen.c (mono_local_regalloc): Remove the remaining items from the
2314 2008-07-23 Massimiliano Mantione <massi@ximian.com>
2315 * mini.c (sigprof_signal_handler): call the new "runtime initialized"
2318 2008-07-23 Zoltan Varga <vargaz@gmail.com>
2320 * method-to-ir.c (mono_method_to_ir2): Set the stack type properly for
2321 NEWOBJ calls on valuetypes.
2323 * iltests.il.in: Add new test.
2325 * mini-x86.c (mono_arch_emit_call): Use mini_type_stack_size ().
2327 2008-07-22 Zoltan Varga <vargaz@gmail.com>
2329 * mini-exceptions.c: Fix some warnings. Remove one ia64 special case as it
2330 is no longer needed.
2332 * mini-ia64.c (mono_arch_emit_prolog): In native-to-managed wrappers, widen
2333 non register sized integer arguments.
2334 (mono_arch_call_opcode): Add support for ArgInFloatRegR4.
2335 (mono_arch_emit_outarg_vt): Pass a more reasonable alignment to
2338 * method-to-ir.c (mono_method_to_ir2): Handle the ret_var_is_local case in
2341 * method-to-ir.c (ADD_WIDEN_OP): New macro to insert a widening op when
2342 two a binop with different sized arguments is emitted.
2344 * mini.c (mono_bblock_insert_after_ins): Properly link up with the next
2345 instruction in the ins==NULL case.
2347 2008-07-23 Zoltan Varga <vargaz@gmail.com>
2349 * mini-ops.h: Add OP_X86_OUTARG_ALIGN_STACK.
2351 * mini-x86.c: Fix osx build.
2353 * mini-amd64.c (mono_arch_output_basic_block): Handle varargs in the CALL_REG
2356 * method-to-ir.c (mono_spill_global_vars): Avoid fusing a load+store into the
2357 instruction for non int sized variables.
2359 * method-to-ir.c (mono_method_to_ir2): Fix an assert in the LDFLD
2362 2008-07-23 Robert Jordan <robertj@gmx.net>
2364 * method-to-ir.c: Fix MSVC build.
2366 2008-07-22 Zoltan Varga <vargaz@gmail.com>
2368 * method-to-ir.c (mono_method_to_ir2): When calling native code which returns
2369 a non int sized type, widen it to an int since newer versions of gcc seem to
2370 generate code which needs this.
2372 * ssa2.c abcremoval2.c: Fix warnings.
2374 * *: Merge the Linear IR branch.
2376 The original branch is at trunk/branches/vargaz/mini-linear-il, and
2377 the ChangeLog file there describes all the changes done over the years.
2378 Further documentation can be found at www.mono-project.com/Linear_IL.
2380 2008-07-21 Bill Holmes <billholmes54@gmail.com>
2382 * mini-amd64.c (get_call_info): Winx64 fix for passing floats.
2383 The float param registers and other param registers must be the
2384 same index on Windows x64.
2386 Contributed under MIT/X11 license.
2388 2008-07-21 Rodrigo Kumpera <rkumpera@novell.com>
2390 * mini.c: Make the previous fix GC safe.
2392 2008-07-21 Raja R Harinath <harinath@hurrynot.org>
2394 * Makefile.am (version.h): Allow a trailing '/' in the repository URL.
2396 2008-07-21 Bill Holmes <billholmes54@gmail.com>
2398 * mini-amd64.c (get_call_info): Correcting the case for MONO_TYPE_TYPEDBYREF
2399 on Winx64. This type will not be passed on the stack (ArgOnStack), but
2400 ArgValuetypeAddrInIReg instead.
2402 Contributed under MIT/X11 license.
2404 2008-07-21 Zoltan Varga <vargaz@gmail.com>
2406 * mini-codegen.c (get_register_spilling): Fix a warning.
2408 2008-07-17 Rodrigo Kumpera <rkumpera@novell.com>
2410 * mini.c: Use mono_runtime_class_init_full to avoid leaking memory
2411 for types which the initialization fails. Raises the provided exception
2412 at the right stop after cleanup.
2414 2008-07-16 Zoltan Varga <vargaz@gmail.com>
2416 * aot-compiler.c: Free most of the memory allocated during compilation.
2418 * mini.c (mini_parse_debug_options): Fix a leak.
2420 * mini.c (mini_method_compile): Don't add the method to the jit info tables
2421 during aot compilation.
2423 2008-07-14 Zoltan Varga <vargaz@gmail.com>
2425 * mini.c (mono_method_to_ir): Disable aot for code using CCASTCLASS on x86 as
2426 it has too much register pressure.
2428 2008-07-13 Zoltan Varga <vargaz@gmail.com>
2430 * inssel.brg (CEE_CASTCLASS): Remove some dead code.
2432 2008-07-12 Zoltan Varga <vargaz@gmail.com>
2434 * mini-x86.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
2437 * mini-amd64.h aot-compiler.c aot-runtime.c: Store the plt info offset inline
2438 on amd64 similar to the way it is done on arm.
2440 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
2442 * aot-runtime.c (load_aot_module): Rename 'info' to 'amodule' for
2443 consistency, normalize error messages, avoid loading aot-only modules in
2446 * driver.c (mono_main): Rename --aot-only command line option to --full-aot
2449 * aot-compiler.c aot-runtime.c tramp-arm.c: Implement aot-only support.
2451 2008-07-11 Martin Baulig <martin@ximian.com>
2454 (MonoDebuggerInfo): Add `interruption_request'.
2456 2008-07-12 Zoltan Varga <vargaz@gmail.com>
2458 * aot-compiler.c (emit_plt): Remove some dead code.
2460 * exceptions-arm.c (mono_arch_get_call_filter_full): Initialize ji.
2462 * aot-runtime.c (mono_aot_get_plt_info_offset): New helper function to
2463 return the plt info offset belonging to a given plt entry.
2465 * mini-trampolines.c (mono_aot_plt_trampoline): Use
2466 mono_aot_get_plt_info_offset.
2468 * aot-runtime.c aot-compiler.c tramp-arm.c: Change the arm plt code to be
2469 similar to the amd64 code by makeing jumps through a separate jump table
2470 instead of embedding the jump addresses into the code.
2472 2008-07-11 Zoltan Varga <vargaz@gmail.com>
2474 * mini.c (mono_method_to_ir): Disable aot for calling ldtoken in a generic
2477 2008-07-10 Martin Baulig <martin@ximian.com>
2479 * mini.c (mini_method_compile): Disable generics sharing when
2480 running in the debugger.
2482 2008-07-10 Zoltan Varga <vargaz@gmail.com>
2484 * mini.c (mono_method_to_ir): Create the got var in CEE_REFANYVAL.
2486 * inssel.brg (CEE_CASTCLASS): Avoid reusing temporary registers to prevent
2487 the local register allocator from running out of registers on x86 when
2490 2008-07-10 Bill Holmes <billholmes54@gmail.com>
2492 * inssel-long.brg For OP_LCONV_TO_OVF_I4 an int cast is needed when
2493 expressing IntMin for the VS Compiler. See Compiler Warning (level 2)
2496 Contributed under MIT/X11 license.
2498 2008-07-10 Zoltan Varga <vargaz@gmail.com>
2500 * aot-compiler.c: Get rid of whitespace in the generated assembly file to
2501 speed up the assembler.
2503 2008-07-09 Zoltan Varga <vargaz@gmail.com>
2505 * mini-arm.h tramp-arm.c exceptions-arm.c aot-compiler.c: Beginnings of aot-only
2508 * mini.c: Move the soft float handling macros a bit earlier, add
2509 NEW_TEMPSTORE_SOFT_FLOAT macro, fix warnings, add soft-float support in one
2512 * mini.h: Add prototype for mono_arch_fixup_jinfo.
2514 * mini.c (mini_init): In aot-only mode, set the root domain code manager to
2515 read-only to help catch code allocation requests.
2517 * mini.c inssel.brg aot-compiler.c: Make the use of IMT runtime configurable,
2518 and turn it off when using --aot-only or when compiling with --aot=full.
2520 * mini.c (mono_resolve_patch_target): In aot-only mode, allocate the
2521 jump table for switches from the normal domain mempool, not the code
2524 * mini-trampolines.c (get_unbox_trampoline): New function to return an
2525 unbox trampoline which handles aot-only mode too.
2527 * aot-runtime.c (mono_aot_get_unbox_trampoline): New function to lookup
2528 an AOTed unbox trampoline.
2530 * aot-compiler.c (emit_trampolines): Emit unbox trampolines.
2532 2008-07-09 Bill Holmes <billholmes54@gmail.com>
2534 * wapihandles.c: Fixing MSVC builds. Include statement changed from <> to
2537 Contributed under MIT/X11 license.
2539 2008-07-09 Bill Holmes <billholmes54@gmail.com>
2541 * mini.c (mono_codegen): Allocate space at the end of the code block and store
2542 the unwind information for the method at the end of the allocated block.
2544 * mini-amd64.h: Added declarations for the unwind routines and adding field to
2545 MonoCompileArch to hold the unwind info for SEH on Winx64
2547 * mini-amd64.c (mono_arch_emit_prolog): Calls to the unwind routines added to store
2548 frame pointer info for the method being compiled.
2550 * exceptions-amd64.c (mono_arch_get_throw_corlib_exception): Added a stack adjustment before
2551 the call to mono_exception_from_token.
2553 * exceptions-amd64.c: Added mono_arch_unwindinfo* implementations. This code is responsible
2554 storing the method prolog information in a format that the Winx64 SEH can understand. This
2555 information is stored a the end of the method block because it is all 32-bit offset based.
2557 Contributed under MIT/X11 license.
2559 2008-07-09 Zoltan Varga <vargaz@gmail.com>
2561 * mini.h: Remove duplicate definitions of the mini_wapi_ functions.
2563 * wapihandles.c: Fix warnings.
2565 * aot-runtime.c (load_aot_module): Add a missing error message in aot-only
2568 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): Avoid calling
2569 mono_jit_compile_method in aot-only mode since that calls the type
2572 * mini-trampolines.c (mono_create_delegate_trampoline): Avoid calling
2573 get_delegate_invoke_impl in aot-only mode.
2575 * mini.c (mono_global_codeman_reserve): Reenable the aot-only check.
2577 2008-07-08 Zoltan Varga <vargaz@gmail.com>
2579 * trace.c (mono_trace_enter_method): Fix printing of Type instances.
2581 * aot-compiler.c (compile_method): Disable the check for GSHARED since it
2584 * inssel-long.brg (reg): Add a rule for LCALL_REG (OP_I8CONST).
2586 * tramp-amd64.c (mono_arch_nullify_plt_entry): Read the nullified class
2587 init trampoline from the AOT file as well.
2589 * mini-amd64.c (mono_arch_register_lowlevel_calls): Register
2590 mono_amd64_throw_exception as a jit icall since it is needed by the aot-only
2593 * mini.c (mini_init): Move the call to mono_exceptions_init () after
2596 * exceptions-amd64.c: Add _full variants for the remaining exception code
2597 creation functions as well, allow emission of relocatable code, remove
2598 caching since that is now done by the caller.
2600 * mini-exceptions.c: Add _full variants for the remaining exception code
2601 creation functions as well, add aot-only support.
2603 * aot-compiler.c (compile_method): Allow calls to methods of constructed types
2604 if we can determine a proper token for them.
2605 (add_wrappers): Add a few more wrappers.
2606 (emit_method_code): Remove some dead code.
2607 (emit_trampolines): Emit exception code too.
2609 * mini.c (mono_method_to_ir): Call mono_array_new_2 if possible.
2611 * jit-icalls.c (mono_array_new_2): New jit icall, specialized version of
2612 mono_array_new_va which avoids varargs.
2614 * mini-exceptions.c (mono_exceptions_init): Fix the ppc build.
2616 * mini-trampolines.c: Call mono_create_specific_trampoline () instead of
2617 mono_arch_create_specific_trampoline () in all places.
2619 * aot-compiler.c aot-runtime.c: Refactor the trampoline emitting/loading code
2620 a bit so it can be used for other things as well.
2622 * mini-exceptions.c (mono_exceptions_init): Initialize throw_exception_by_name
2625 * exceptions-amd64.c: Rename the caching from the exception code creation
2626 functions, it is done by the caller instead.
2628 * exceptions-amd64.c: Change the signature of the exception code creation
2629 functions to allow the creation of relocatable code later.
2631 * mini-exceptions.c: Add a set of functions to query the various
2632 runtime-generated exception functions.
2634 * mini.c mini-exceptions.c: Use the newly added functions instead of the
2635 mono_arch_.. () functions.
2637 2008-07-07 Zoltan Varga <vargaz@gmail.com>
2639 * mini-trampolines.c (mono_aot_get_trampoline_code): Removed, no longer used.
2641 * aot-runtime.c aot-compiler.c: AOT the generic trampolines in aot-only mode.
2643 * mini.c (mini_get_imt_trampoline): Call mono_create_specific_trampoline ().
2644 (mini_get_vtable_trampoline): Ditto.
2646 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Create relocatable
2647 code in the AOT case by returning the code size and a list of relocations to
2650 * mini-trampolines.c (mono_create_specific_trampoline): New helper function.
2652 2008-07-07 Bill Holmes <billholmes54@gmail.com>
2654 * mini-amd64.c: On Winx64 the calling convention always requires the caller to
2657 Contributed under MIT/X11 license.
2659 2008-07-07 Zoltan Varga <vargaz@gmail.com>
2661 * aot-compiler.c (emit_exception_debug_info): Serialize the debug info first
2662 so the buffer size can be computed correctly. Fixes #404735.
2664 * debug-mini.c (mono_debug_serialize_debug_info): Lookup the debug info
2665 normally as cfg->debug_info is already freed.
2667 2008-07-06 Zoltan Varga <vargaz@gmail.com>
2669 * mini-amd64.c: For calls returning vtypes in registers, don't store
2670 the return address on the stack, instead allocate a separate local for
2673 2008-07-05 Mark Probst <mark.probst@gmail.com>
2675 * mini-trampolines.c, mini.h: Add an argument to
2676 mono_create_jit_trampoline_in_domain() for turning off the adding
2677 of the sync wrapper.
2679 * mini.c: Use the JIT trampoline without sync instead of
2680 ldftn_nosync in static RGCTX invoke wrappers so that the call can
2683 2008-07-04 Mark Probst <mark.probst@gmail.com>
2685 * driver.c: Turn on GSHARED optimization by default.
2687 2008-07-04 Zoltan Varga <vargaz@gmail.com>
2689 * mini-trampolines.c mini.c mini.h tramp-<ARCH>.c: Rename MONO_TRAMPOLINE_GENERIC
2690 to MONO_TRAMPOLINE_JIT since it better reflects what it does.
2692 * mini-trampolines.c (mono_get_aot_trampoline_code): New internal function to
2693 create a variant of the generic trampoline code callable from AOTed trampolines.
2695 * tramp-amd64.c (mono_arch_create_trampoline_code_full): Add support for generic
2696 trampoline code callable from AOTed trampolines.
2698 * aot-compiler.c aot-runtime.c: Add support for AOTing trampolines.
2700 2008-07-04 Mark Probst <mark.probst@gmail.com>
2702 * inssel.brg, mini-ops.h: New opcode for doing CHECK_THIS in a
2703 pass-through manner.
2705 * mini.c: Generic method sharing. Pass MRGCTX to generic methods
2706 and don't fail sharing for them anymore.
2708 * mini-exceptions.c: Handle exceptions in shared generic methods.
2710 * generic-sharing.c: When checking the context of a generic
2711 method, also check its class's context. Don't treat wrappers as
2714 * mini-trampolines.c: Some code factored out to
2715 metadata/generic-sharing.c. Handle the MRGCTX case.
2717 * jit-icalls.c, jit-icalls.h: ldvirtfn icall for generic sharing -
2718 we must deal with the method being of another instantiation of the
2719 class. Add static rgctx invoke wrappers to generic methods.
2721 2008-07-04 Mark Probst <mark.probst@gmail.com>
2723 * mini.c: Provide all jit infos of generic shared methods with a
2726 * mini-exceptions.c: Handle the new situation that a generic info
2727 might be available, but not info about the this/vtable/mrgctx
2730 2008-07-03 Mark Probst <mark.probst@gmail.com>
2732 * mini.c: Don't accept ldftn and ldvirtftn with uninstantiated
2735 2008-07-03 Zoltan Varga <vargaz@gmail.com>
2737 * dominators.c (check_dominance_frontier): Fix a warning.
2739 * mini.h: Add some missing prototypes.
2741 * ssa.c local-propagation.c debug-debuger.c: Fix warnings.
2743 * driver.c (mono_jit_init_version): Correct the comments since the first
2744 argument should be the name of the root domain, not a filename.
2746 * aot-runtime.c (make_writable): Error out if this is called while running
2748 (load_aot_module): Ditto.
2750 * aot-compiler.c: Really fix the computation of method indexes.
2752 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Remove the previous
2753 optimizations as this is no longer called frequently.
2755 * mini-trampolines.c (mono_create_delegate_trampoline): Precompute the invoke
2756 method and the invoke impl code and pass it to the delegate trampoline instead of
2757 just the delegate class.
2759 2008-07-02 Zoltan Varga <vargaz@gmail.com>
2761 * aot-compiler.c: Fixup the computation of method indexes.
2762 (add_wrappers): Create the base methods of the runtime invoke wrappers using
2763 the method builder infrastructure.
2765 * aot-runtime.c (decode_exception_debug_info): Don't crash if the method
2768 * mini-trampolines.c (mono_create_jit_trampoline_in_domain): In aot-only
2769 mode, load the method right away instead of creating a trampoline.
2771 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Eliminate locking.
2773 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Eliminate locking, speed up
2776 2008-07-01 Zoltan Varga <vargaz@gmail.com>
2778 * aot-runtime.c (decode_patch_info): Don't create trampolines in aot_only mode.
2779 (mono_aot_load_method): Use method_index instead of method->token.
2781 * mini.c (mono_jit_compile_method_inner): Move the aot_only check down, so it
2782 can handle icalls etc. properly.
2784 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
2786 * aot-compiler.c aot-runtime.c: Allow AOTing many wrapper types.
2788 * mini.c (mono_resolve_patch_target): Handle JIT_ICALL_ADDR.
2789 (mono_codegen): Convert calls made by JIT icall wrappers to the icalls into
2790 JIT_ICALL_ADDR patch type.
2792 * patch-info.h: Add JIT_ICALL_ADDR patch type.
2794 * mini.c (mono_method_to_ir): Allow AOTing methods which access the interruption
2796 (mono_resolve_patch_target): Handle INTERRUPTION_REQUEST_FLAG.
2798 * patch-info.h: Add INTERRUPTION_REQUEST_FLAG.
2800 2008-06-30 Zoltan Varga <vargaz@gmail.com>
2802 * mini.c: Use domain->jit_code_hash_lock for controlling access to
2803 domain->jit_code_hash.
2805 2008-06-29 Zoltan Varga <vargaz@gmail.com>
2807 * mini.c (mini_parse_debug_options): Add 'dont-free-domains' option.
2809 2008-06-27 Zoltan Varga <vargaz@gmail.com>
2811 * mini-trampolines.c (mono_delegate_trampoline): Don't pass a gsctx to
2812 get_this_arg_from_call, let it compute it when needed.
2814 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'code' argument, compute
2815 gsctx from code only when needed.
2817 * mini-trampolines.c (get_generic_context): Rename this to
2818 mono_get_generic_context_from_code (), and move it to generic-sharing.c, where
2819 it can be called by the arch backends.
2821 * mini-exceptions.c (mono_print_thread_dump): Allow the argument to be NULL.
2823 2008-06-26 Zoltan Varga <vargaz@gmail.com>
2825 * driver.c (mono_main): Add experimental --aot-only command line option.
2827 * mini.c: Error out when creating trampolines or JIT compiling if --aot-only is
2830 2008-06-26 Kornél Pál <kornelpal@gmail.com>
2832 * driver.c (DllMain): Remove mono_module_handle.
2834 Contributed under MIT/X11 license.
2836 2008-06-25 Zoltan Varga <vargaz@gmail.com>
2838 * aot-compiler.c: Add not-yet-usable 'full' option. Add some infrastructure code
2839 for emitting methods which are not in the source assembly. Detect and report
2840 failure of assembling+linking.
2842 * aot-compiler.c (emit_klass_info): Call mono_class_setup_vtable ().
2844 * aot-compiler.c: Move the contents of the has_glot_slots array to MonoCompile.
2846 2008-06-24 Rodrigo Kumpera <rkumpera@novell.com>
2848 * mini.c: Check if stats is enabled so we don't allocate memory when not needed.
2850 2008-06-24 Zoltan Varga <vargaz@gmail.com>
2852 * mini.h: Remove some obsolete prototypes.
2854 * mini.c: Avoid storing MonoMethod pointers in the JIT stats, store their string format instead.
2856 2008-06-24 Mark Probst <mark.probst@gmail.com>
2858 * mini.c (get_object_generic_inst): Variable-sized arrays are not
2859 supported by Visual Studio, so use alloca().
2861 2008-06-23 Zoltan Varga <vargaz@gmail.com>
2863 * mini-ia64.c (add_valuetype): Increase *gr too when passing a HFA to be in sync with the ABi.
2866 2008-06-23 Mark Probst <mark.probst@gmail.com>
2868 * mini.c: Fail sharing of a generic method if it contains an open
2869 catch clause (because we don't pass MRGCTXs yet).
2871 2008-06-23 Mark Probst <mark.probst@gmail.com>
2873 * mini.c: When compiling a method with generic sharing, insert the
2874 method instantiated with an all-Object generic context into the
2875 jit info table, instead of the context of the first instantiation
2876 of the method we happen to compile.
2878 2008-06-18 Martin Baulig <martin@ximian.com>
2880 * debug-debugger.h (MonoDebuggerInfo): Replaced `version' with
2881 `major_version' and `minor_version'.
2883 2008-06-17 Mark Probst <mark.probst@gmail.com>
2885 * generic-sharing.c, mini.c, mini.h, aot-runtime.c:
2886 mono_method_is_generic_sharable_impl() takes an additional
2887 argument specifying whether to treat type variables as reference
2890 2008-06-17 Mark Probst <mark.probst@gmail.com>
2892 * mini.h: Removed obsolete prototypes.
2894 2008-06-17 Mark Probst <mark.probst@gmail.com>
2896 * mini.c: Don't fail generic sharing for initobj and sizeof - we
2897 already handle them.
2899 2008-06-17 Mark Probst <mark.probst@gmail.com>
2901 * mini.h, mini-trampolines.c, tramp-alpha.c, tramp-amd64.c,
2902 tramp-arm.c, tramp-hppa.c, tramp-ia64.c, tramp-mips.c,
2903 tramp-ppc.c, tramp-s390.c, tramp-s390x.c, tramp-sparc.c,
2904 tramp-x86.c: Added a MonoGenericContext* argument to
2905 mono_arch_get_unbox_trampoline() so that it can call other
2906 functions which require it.
2908 2008-06-17 Mark Probst <mark.probst@gmail.com>
2910 * mini.h, mini-trampolines.c, mini-amd64.c, mini-x86.c,
2911 mini-alpha.c, mini-arm.c, mini-ia64.c, mini-ppc.c:
2912 mono_arch_get_this_arg_from_call() takes a
2913 MonoGenericSharingContext* as well.
2915 2008-06-17 Mark Probst <mark.probst@gmail.com>
2917 * mini.c: Factor out code for emitting unbox into emit_unbox() and
2918 implement generic sharing of unbox.
2920 2008-06-17 Mark Probst <mark.probst@gmail.com>
2922 * mini.c: Don't compute the vtable to determine whether a field is
2923 special static, because it might not work for open types.
2925 2008-06-17 Mark Probst <mark.probst@gmail.com>
2927 * mini.c: Removed the unused token_type and token_source arguments
2928 from get_runtime_generic_context_ptr().
2930 2008-06-17 Marek Habersack <mhabersack@novell.com>
2932 * mini.c (ADD_BINOP): fix the build
2934 2008-06-16 Zoltan Varga <vargaz@gmail.com>
2936 * mini.c (ADD_BINOP): When operating on a native int and an int32, insert
2939 2008-06-16 Mark Probst <mark.probst@gmail.com>
2941 * mini.h: Removed class relations enum that's not used anymore.
2943 2008-06-16 Mark Probst <mark.probst@gmail.com>
2945 * tramp-x86.c, tramp-amd64.c: Slot access code for MRGCTXs.
2947 * mini-trampolines.c: Distinguish between RGCTXs and MRGCTXs in
2948 the lazy fetch trampoline access code.
2950 2008-06-15 Zoltan Varga <vargaz@gmail.com>
2952 * mini-codegen.c (mono_local_regalloc): Add some micro optimizations.
2954 2008-06-14 Zoltan Varga <vargaz@gmail.com>
2956 * mini.c: Fix some soft-float bugs. Fixes #378735 and #398348.
2958 * mini.h (MONO_INST_LIST_ENTRY): Fix warnings on arm.
2960 * mini.c (mono_method_to_ir): Check call signature for NEWOBJ as well.
2962 2008-06-13 Zoltan Varga <vargaz@gmail.com>
2964 * mini-x86.c inssel-x86.brg cpu-x86.md: Implement unsigned min/max
2967 * mini-ops.h: Add MIN/MAX_UN opcodes.
2969 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Implement unsigned min/max
2972 * basic-math.cs: Add more min/max tests.
2974 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
2976 2008-06-13 Mark Probst <mark.probst@gmail.com>
2978 * mini.c: Small fix in the prologue of emit_castclass.
2980 2008-06-13 Zoltan Varga <vargaz@gmail.com>
2982 * inssel.brg: Remove the OP_MIN/OP_MAX rules. Fix a warning.
2984 * mini.c (mini_get_inst_for_method): Remove the Min/Max intrinsics, they
2985 do not work even for unsigned types. Fixes #400014.
2987 * basic-math.cs: Add regression tests for unsigned Min/Max.
2989 2008-06-13 Mark Probst <mark.probst@gmail.com>
2991 * mini.c: Added additional context_used argument to several
2992 functions, which will be needed for sharing generic methods. Use
2993 GET_RGCTX macro wherever appropriate. Declare only one
2994 context_used in mono_method_to_ir().
2996 2008-06-13 Mark Probst <mark.probst@gmail.com>
2998 * mini.c, generic-sharing.c: Removed generic class relations.
3000 * mini.c, tramp-amd64.c, tramp-x86.c: Additional arguments to
3001 functions due to MRGCTX changes.
3003 2008-06-13 Mark Probst <mark.probst@gmail.com>
3005 * inssel.brg, inssel-long.brg, inssel-long32.brg, mini-ops.h,
3006 graph.c, local-propagation.c, aliasing.c: New opcodes for calls
3007 with calculated IMT.
3009 * mini.c: Generic sharing of calls via generic interfaces.
3011 * jit-icalls.c, jit-icalls.h: Helper function for compiling a
3012 generic method with non-constant MonoGenericContext*. Instead,
3013 the context is taken out of the method itself.
3015 2008-06-13 Mark Probst <mark.probst@gmail.com>
3017 * mini.c: Generic sharing of ldvirtftn.
3019 2008-06-13 Mark Probst <mark.probst@gmail.com>
3021 * mini.c: Generic sharing of ldftn.
3023 2008-06-13 Mark Probst <mark.probst@gmail.com>
3025 * mini.c: Do pass VTable/RGCTX argument to static generic methods.
3027 2008-06-13 Mark Probst <mark.probst@gmail.com>
3029 * mini.c: Generic sharing of the special case of ldtoken followed
3030 by a call to GetTypeFromHandle.
3032 2008-06-13 Mark Probst <mark.probst@gmail.com>
3034 * mini.c: Generic sharing of box for nullable types.
3036 2008-06-13 Zoltan Varga <vargaz@gmail.com>
3038 * mini-s390x.c (add_stackParm): Fix computation of offsets when arguments
3039 are passed on the stack. Fixes #324807.
3041 2008-06-12 Bill Holmes <billholmes54@gmail.com>
3043 * mini-amd64.c:add_valuetype: Adding Winx64 code to fill the ArgInfo
3044 for the ArgValuetypeAddrInIReg case.
3046 * mini-amd64.c:mono_arch_allocate_vars: Adding a case for
3047 ArgValuetypeAddrInIReg to avoid asserts. Code needs to be added here.
3049 * mini-amd64.c: mono_arch_call_opcode: Adding Winx64 code for an ArgInfo of
3050 type ArgValuetypeAddrInIReg. The code emitted will copy the argument to a
3051 local variable and pass the local variable by reference to the called method.
3053 * mini-amd64.c: mono_arch_emit_prolog: Adjust the stack for calls to
3054 mono_jit_thread_attach and mono_get_lmf_addr for Winx64.
3056 Contributed under MIT/X11 license.
3058 2008-06-10 Rodrigo Kumpera <rkumpera@novell.com>
3060 * debug-mini.c (mono_debug_free_method_jit_info): Moved to metadata/mono-debug.c.
3062 * debug-mini.c (mono_debug_print_vars): Release memory after printing
3065 2008-06-10 Martin Baulig <martin@ximian.com>
3068 (mono_debug_close_method): Check whether `cfg->epilogue_begin != NULL'.
3070 2008-06-09 Kornél Pál <kornelpal@gmail.com>
3072 * main.c: Add and set argv [argc] to NULL to match C specification that fixes
3073 possible error when no arguments are passed.
3075 Contributed under MIT/X11 license.
3077 2008-06-09 Rodrigo Kumpera <rkumpera@novell.com>
3079 * mini-exceptions.c (ves_icall_get_trace): Skip source locations
3080 where the file name is NULL.
3082 2008-06-09 Zoltan Varga <vargaz@gmail.com>
3084 * mini.c: Fix s390 build.
3086 2008-06-08 Zoltan Varga <vargaz@gmail.com>
3088 * trace.c (mono_trace_parse_options): Fix warnings.
3090 * mini-amd64.c: Revert most of the last patch for now as it breaks the build.
3092 2008-06-07 Zoltan Varga <vargaz@gmail.com>
3094 * mini.c (remove_block_if_useless): Avoid printing the method name.
3096 * mini.c: Remove needless setting of ins->cil_code which is now done by
3099 * mini-amd64.c: Add some code to avoid saving callee saved registers in the
3102 * tramp-amd64.c (mono_arch_patch_callsite): Tell valgrind to discard the
3103 translated code after it has been patched.
3105 2008-06-06 Zoltan Varga <vargaz@gmail.com>
3107 * mini-amd64.c (emit_call_body): Align the call displacement to 4 bytes to
3108 avoid problems during code patching on SMP systems.
3109 (emit_call): Avoid adding a patch info which is already added by
3111 (mono_arch_emit_exceptions): Ditto.
3113 2008-06-05 Zoltan Varga <vargaz@gmail.com>
3115 * tramp-*.c (mono_arch_get_unbox_trampoline): No need to check for ret->byref,
3116 MONO_TYPE_ISSTRUCT already checks for it.
3118 2008-06-05 Bill Holmes <billholmes54@gmail.com>
3120 * mini-amd64.c:merge_argument_class_from_type: When marshaling
3121 structs with floats on Winx64 the float registers are not used.
3122 The integer registers are always used..
3123 * mini-amd64.c:add_valuetype: When marshaling structs on Winx64
3124 only one register will be used and only if the size of the struct
3125 is 1,2,4, or 8 bytes.
3127 * tramp-amd64.c : Adjusting size used for mono_global_codeman_reserve
3130 Contributed under MIT/X11 license.
3132 2008-06-05 Martin Baulig <martin@ximian.com>
3134 * debug-debugger.c (debugger_lookup_class): Also call
3135 mono_class_setup_methods() here; we're only called from RTI.
3137 2008-06-05 Andreas Färber <andreas.faerber@web.de>
3139 * mini.c (mini_init): Add DTrace probes ves-init-{begin,end}.
3140 (mini_method_compile) Add DTrace probes method-compile-{begin,end}.
3141 * Makefile.am (libmono_la_LIBADD,libmono_static_la_LIBADD,mono_LDADD):
3142 Post-process object files and add dtrace-generated object, if necessary.
3144 Contributed under MIT/X11 license.
3146 2008-06-04 Mark Probst <mark.probst@gmail.com>
3148 * inssel.brg, mini-ops.h: Added opcode for unboxcast with computed
3151 * mini.c: Generic sharing for unbox.any and castclass.
3153 2008-06-04 Mark Probst <mark.probst@gmail.com>
3155 * mini.c: Ignore tailcall prefix in shared generic code and when
3156 doing calls which require a vtable/rgctx argument.
3158 2008-06-04 Mark Probst <mark.probst@gmail.com>
3160 * mini.c: Don't free the JIT info.
3162 * driver.c: Changes in the JIT info table testing code.
3164 2008-06-03 Zoltan Varga <vargaz@gmail.com>
3166 * tramp-arm.c (mono_arch_create_trampoline_code): Check for thread
3167 interruption. Fix some warnings.
3169 * tramp-*.c (mono_arch_create_trampoline_code): Call the _force_ variant of
3170 interruption_checkpoint.
3172 Tue Jun 3 13:07:03 CEST 2008 Paolo Molaro <lupus@ximian.com>
3174 * jit.h, mini.h, trace.c, driver.c: introduce an API to enable tracing
3175 from embedding applications.
3177 2008-06-02 William Holmes <billholmes54@gmail.com>
3179 * mini-amd64.c : Correcting some of the issues for Winx64 dealing with
3180 reserving 32 bytes on the stack when making calls.
3182 Contributed under MIT/X11 license.
3184 2008-06-01 Zoltan Varga <vargaz@gmail.com>
3186 * mini-arm.c (mono_arch_output_basic_block): Merge some small fixes from
3187 the linear IL branch.
3189 * driver.c: Print out more information for --version on arm.
3191 2008-05-30 Zoltan Varga <vargaz@gmail.com>
3193 * mini-amd64.c (mono_arch_emit_prolog): Increase max_offset when processing
3194 bb_exit instead, since out of line bblocks might not actually be emitted
3197 * mini-amd64.c (mono_arch_emit_prolog): Increase bb->max_offset by the
3198 maximum epilog size for out of line bblocks if tracing is enabled.
3200 * iltests.il.in: Merge tests/long-shift.regalloc.il into this file.
3202 2008-05-28 Rodrigo Kumpera <rkumpera@novell.com>
3204 * arrays.cs: Regression tests for allocating arrays with negative sizes.
3206 2008-05-28 Zoltan Varga <vargaz@gmail.com>
3208 * mini-x86.h mini-x86.c inssel-x86.brg cpu-x86.md: Add support for
3209 CAS instrinsics. Optimize the implementation of the ATOMIC_EXCHANGE
3212 2008-05-27 Zoltan Varga <vargaz@gmail.com>
3214 * mini.c (mini_get_inst_for_method): Add support for CAS instrinsics when
3215 the 'value' to store is a constant.
3217 * mini-ops.h: Add OP_ATOMIC_CAS_IMM opcodes.
3219 * mini-amd64.c (mono_arch_output_basic_block): Optimize the the implementation
3220 of ATOMIC_EXCHANGE opcodes, add support for the CAS opcodes.
3222 2008-05-26 Zoltan Varga <vargaz@gmail.com>
3224 * mini.c generic-sharing.c jit-icalls.c aot-compiler.c: Use accessor functions
3225 for accessing method->generic_container.
3227 2008-05-24 Zoltan Varga <vargaz@gmail.com>
3229 * mini.c (mono_method_check_inlining): Avoid creating vtables if possible.
3231 * mini.c (SIG_HANDLER_SIGNATURE): Fix sparc build too.
3233 * mini.c (SIG_HANDLER_SIGNATURE): Fix IA64 build.
3235 * mini.c (mono_jit_compile_method_inner): Avoid a crash if mono_class_vtable ()
3238 2008-05-23 Zoltan Varga <vargaz@gmail.com>
3240 * driver.c (mono_main): Set mono_setup_vtable_in_class_init to FALSE.
3242 * mini.c: Handle the case when mono_class_vtable () fails.
3244 2008-05-23 Massimiliano Mantione <massi@ximian.com>
3245 * mini.c (sigprof_signal_handler): Support call chains (backtrace) in
3248 2008-05-22 Mark Probst <mark.probst@gmail.com>
3250 * mini.c, jit-icalls.c, jit-icalls.h: Make generic sharing work
3251 together with domain sharing.
3253 2008-05-22 Mark Probst <mark.probst@gmail.com>
3255 * mini.c: Treat callvirts to final methods like non-virtual calls
3256 when doing generic sharing, i.e. look them up in the runtime
3259 2008-05-22 Mark Probst <mark.probst@gmail.com>
3261 * inssel.brg, mini-ops.h: Added opcodes for mkrefany and refanyval
3262 with computed types (for generic sharing).
3264 * mini.c: Generic sharing for mkrefany and refanyval.
3266 2008-05-22 Zoltan Varga <vargaz@gmail.com>
3268 * inssel.brg (mini_emit_virtual_call): Avoid constructing a generic vtable if
3271 * mini-trampolines.c (mono_magic_trampoline): Avoid calling setup_methods () in
3272 the generic sharing code.
3274 * mini-trampolines.c (mono_magic_trampoline): Call mono_class_setup_methods ()
3277 2008-05-21 Zoltan Varga <vargaz@gmail.com>
3279 * mini.h: Remove the declaration of mono_aot_init_vtable ().
3281 2008-05-21 C.J. Adams-collier <cjac@colliertech.org>
3283 * driver.c: updated copyright date
3285 2008-05-21 Zoltan Varga <vargaz@gmail.com>
3287 * aot-runtime.c mini.c: Remove the AOT init_vtable stuff as it is no longer
3290 2008-05-19 Martin Baulig <martin@ximian.com>
3292 * debug-debugger.h (MonoDebuggerInfo): Add `using_mono_debugger'
3293 pointing to the new `_mono_debug_using_mono_debugger' variable.
3296 (mono_main): Check mono_debug_using_mono_debugger() rather than
3297 the `MONO_INSIDE_MDB' environment variable to check whether we're
3298 inside the debugger.
3300 2008-05-19 Zoltan Varga <vargaz@gmail.com>
3302 * mini.c (mini_method_compile): Use cfg->args [0] for accessing the this
3305 2008-05-08 Rodrigo Kumpera <rkumpera@novell.com>
3307 * declsec.h: Move MONO_SECMAN_FLAG to metadata/metadata-internals.h.
3309 * mini.c: Added mini_assembly_can_skip_verification. This
3310 function checks if the assembly requested to skip verification.
3311 Fixes part of #387274.
3313 2008-05-07 Zoltan Varga <vargaz@gmail.com>
3315 * mini.c (mini_get_method): Disable the check for open generic classes when
3316 using generic sharing.
3318 * generics.cs: Add a test for #387034.
3320 * mini.c (mini_get_method): Check whenever the method class is an open generic
3321 type, and return NULL in that case, causing a verification error. Fixes
3324 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3326 * driver.c (mono_main): Revert r102623. The right
3327 thing to do is to enable the verifier under verifiable
3328 unless a --security flag was passed.
3330 We need this non-trivial behavior for --verify-all otherwise
3331 mcs-compileall won't be able to use it. As it needs everything to
3332 be verified under validil.
3334 2008-05-06 Martin Baulig <martin@ximian.com>
3338 * debug-mini.c (mono_debugger_thread_created): Add proper locking.
3339 (mono_debugger_thread_cleanup): Likewise.
3340 (mono_debugger_extended_notification): Likewise.
3342 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3344 * mini.c (mono_method_to_ir): Verify visibility of call related opcodes
3345 against both inflated and non-inflated methods. We need to check against the
3346 generic definition for cases where the instantiated method is not visible.
3347 We need to check against the inflated types for cases where the instantiation
3348 changes any super type. This fixes #382986.
3350 Note that this doesn't need to be applied to other parts of mono_method_to_ir
3351 that check for visibiliy as generic params only appears as the type subject
3352 of tokens on call opcodes. Field manipulation and ldftn must always
3353 target an exact type.
3355 2008-05-06 Rodrigo Kumpera <rkumpera@novell.com>
3357 * driver.c (mono_main): Using --verify-all enables the verifier under validil mode
3358 if no related --security flag is passed.
3360 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3362 * mini-arch.h: Prepare support for ppc64.
3364 Contributed under MIT/X11 license.
3366 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3368 * aot-runtime.c: Prepare support for ppc64.
3370 Contributed under MIT/X11 license.
3372 2008-05-05 Andreas Färber <andreas.faerber@web.de>
3374 * mini-ops.h: Prepare support for ppc64.
3376 Contributed under MIT/X11 license.
3378 2008-05-04 Andreas Färber <andreas.faerber@web.de>
3380 * helpers.c: Add support for OSX/ppc64 and Linux/ppc64 (dis)assemblers.
3382 Contributed under MIT/X11 license.
3384 2008-05-03 Zoltan Varga <vargaz@gmail.com>
3386 * aot-runtime.c (load_aot_module): Avoid trying to load aot code for dynamic
3387 assemblies, since aot_name is not a full path, causing us to load MS.NET
3388 assemblies on windows.
3390 2008-04-28 Kornél Pál <kornelpal@gmail.com>
3392 * mini.c (mono_jit_compile_method_inner): Use g_warning instead of g_error
3393 for unsupported METHOD_IMPL_ATTRIBUTE_NATIVE.
3394 * main.c: Use UTF-8 encoded command line instead of Windows default code
3395 page on Windows to support Unicode.
3396 * driver.c (DllMain): New function for mixed-mode assembly support.
3397 * Makefile.am: Add -Wl,--kill-at to libmono_la_LDFLAGS on Windows to
3398 export __stdcall functions without decoration.
3400 Contributed under MIT/X11 license.
3402 2008-04-28 Mark Probst <mark.probst@gmail.com>
3404 * tramp-amd64.c, mini-amd64.c: Preserve R11 in the trampoline by
3405 saving it very early.
3407 2008-04-28 Mark Probst <mark.probst@gmail.com>
3409 * mini.h, mini.c: Lots of code for accessing the old RGCTX
3410 deleted. The only way to access the new RGCTX is via the
3413 * mini.c, mini-amd64, mini-x86.c, mini-exceptions.c: Pass the
3414 vtable instead of the RGCTX to static methods.
3416 * mini-tramplines.c, tramp-amd64.c, tramp-x86.c: Trampoline for
3417 accessing the new RGCTX.
3419 * generic-sharing.c: There is no separation between self, type
3420 arguments and other types in the RGCTX anymore.
3422 2008-04-25 Jonathan Chambers <joncham@gmail.com>
3424 * mini-amd64.c (add_general): Remove previous stack adjustment.
3425 (mono_arch_call_opcode): Remove OP_OUTARG_MEMBASE and instead simply
3426 adjust stack pointer after pushing args. Adjust ARGS_OFFSET to account
3427 for 32 bytes of stack space reserved for all calls.
3429 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Remove.
3430 (OP_AMD64_OUTARG_ALIGN_STACK): Take argument to specify size of stack
3433 Code contributed under MIT/X11 license.
3435 2008-04-23 Rodrigo Kumpera <rkumpera@novell.com>
3437 * mini.c (mini_method_verify): Only verify non-inflated methods, check
3438 against the root definition, peeling out method and type instantiations.
3439 Cache verify success results, code that fails verification is still
3440 checked multiple times.
3442 2008-04-23 Zoltan Varga <vargaz@gmail.com>
3444 * mini.c (mono_method_to_ir): Avoid inserting write barriers for stores of null.
3446 2008-04-23 Jonathan Chambers <joncham@gmail.com>
3448 * mini-amd64.c (add_general): Always increment stack on Win64.
3449 (mono_arch_call_opcode): Use OP_OUTARG_MEMBASE instead of OP_OUTARG
3452 * inssel-amd64.brg (OP_OUTARG_MEMBASE): Add OP_OUTARG_MEMBASE for
3453 stack based argument handling on Win64.
3455 Code contributed under MIT/X11 license.
3457 2008-04-23 Raja R Harinath <harinath@hurrynot.org>
3459 * Makefile.am (version.h): Add support for git-svn.
3461 2008-04-22 Zoltan Varga <vargaz@gmail.com>
3463 * mini-exceptions.c (mono_handle_native_sigsegv): Rework the gdb calling code
3464 so instead of calling g_spawn_command_line_sync, we do everything by hand,
3465 avoiding allocations and libc functions which might deadlock.
3467 * mini-exceptions.c (mono_handle_native_sigsegv): Avoid calling gdb if the
3468 'no-gdb-backtrace' option is set.
3470 * mini.c (mini_parse_debug_options): Parse 'no-gdb-backtrace' option.
3472 * mini.h (MonoDebugOptions): Add 'no_gdb_backtrace' option.
3474 2008-04-21 Martin Baulig <martin@ximian.com>
3476 * debug-debugger.h (MonoDebuggerInfo): Removed `attach', `detach'
3477 and `get_lmf_addr'; `notification_address' is no longer a pointer.
3479 2008-04-21 Martin Baulig <martin@ximian.com>
3481 * debug-debugger.h (MonoDebuggerInfo): Added `thread_vtable_ptr',
3482 `thread_vtable', `event_handler_ptr' and `event_handler'.
3484 2008-04-21 Martin Baulig <martin@ximian.com>
3486 * debug-debugger.h (MonoDebuggerInfo): Added `init_code_buffer';
3487 allows delayed initialization of the `executable_code_buffer' when
3490 2008-04-21 Martin Baulig <martin@ximian.com>
3492 * mini.h (mono_debugger_create_notification_function): Removed.
3493 * tramp-*.c (mono_debugger_create_notification_function): Removed.
3495 * mdb-debug-info64.s
3496 (MONO_DEBUGGER__notification_function): Added this in the .text section.
3498 * mdb-debug-info32.s
3499 (MONO_DEBUGGER__notification_function): Added this in the .text section.
3501 * Makefile.am: Fix the mdb-debug-info*.s logic; the debugger
3502 currently only works on x86 and x86_64, so don't create it on ppc.
3504 2008-04-21 Martin Baulig <martin@ximian.com>
3506 * mini.h (MonoDebugOptions): Added `mdb_optimizations'.
3509 (mini_method_compile): In the fp elimination check, check
3510 `debug_options.mdb_optimizations' in addition to
3511 mono_debug_using_mono_debugger().
3513 * driver.c (mono_main): Added `--debug=mdb-optimizations' option to
3514 disable some JIT optimizations which are only disabled when
3515 running inside the debugger.
3516 Added `--help-debug' option to describe the debugging options.
3517 (parse_debug_options): New static function to parse the `--debug'
3518 options, so we can easily add more stuff in future.
3520 2008-04-20 Zoltan Varga <vargaz@gmail.com>
3522 * mini.c (set_exception_type_from_invalid_il): Avoid reading invalid memory when
3523 the method has no body.
3525 2008-04-19 Jonathan Chambers <joncham@gmail.com>
3527 * mini-amd64.c (cpuid): Implement with MSVC intrinsic as inline
3528 assembly is not allowed in MSVC 64-bit compiler.
3529 (mono_arch_cpu_init): Don't set floating point precision on MSVC build
3530 as we get floating point exceptions everywhere.
3532 * exceptions-amd64.c (get_throw_trampoline): Push empty args on stack to
3533 correctly align arguments for call to throw_exception.
3534 (prepare_for_guard_pages): Cast to guint64 instead of unsigned long.
3536 Code contributed under MIT/X11 license.
3538 2008-04-19 Zoltan Varga <vargaz@gmail.com>
3540 * mini-amd64.c (amd64_patch): Make the check for (%rip) addressing more strict.
3542 2008-04-17 Zoltan Varga <vargaz@gmail.com>
3544 * inssel.brg (OP_SWITCH): Use (gint64) instead of (long) to cast a large constant.
3546 * mini-amd64.c (NEW_INS): Set cil_code.
3548 * mini.c (mini_method_compile): Move the disabling of fp elimination to here
3549 from mini-amd64.c so all debugger related logic is in one place.
3551 * mini.c: Set cfg->ip to NULL after passes which set it so instructions created
3552 later won't have a random ip assigned to them.
3554 2008-04-16 Zoltan Varga <vargaz@gmail.com>
3556 * mini-trampolines.c (mono_create_jump_trampoline): Add an assert to check that
3557 the arch specific function initializes code_size.
3558 (mono_create_delegate_trampoline): Ditto.
3560 * mini-mips.h mini-mips.c inssel-mips.brg inssel-long32-mips.brg cpu-mips.md
3561 tramp-mips.c: Resurrect MIPS port and also fix the issues on little-endian
3564 * liveness.c (mono_analyze_liveness): Disable the initlocals optimization if
3565 running under the debugger.
3567 * linear-scan.c (mono_linear_scan): Avoid sharing registers if running under the
3570 * mini.c (mini_method_compile): Set a few flags in cfg if running under the
3571 debugger. Also move the disabling of optimizations here from driver.c.
3572 (mono_allocate_stack_slots_full): Avoid sharing stack slots if running under the
3575 * mini.h (MonoCompile): Add a few new flags.
3577 2008-04-15 Zoltan Varga <vargaz@gmail.com>
3579 * mini.c (mono_method_to_ir): Set cfg->ip before processing an IL instruction
3580 so the cil_code field of created MonoInst's is properly set.
3581 (mini_select_instructions): Ditto.
3583 * mini.h (MONO_INST_NEW): Initialize the cil_code field using cfg->ip.
3584 (MONO_INST_NEW_CALL): Ditto.
3586 * mini.c inssel.brg inssel-x86.brg inssel-amd64.brg: Use MONO_INST_NEW ()
3587 in many places so the ins->cil_code field is properly initialized.
3589 * mini.c (mono_bblock_add_inst): Call MONO_ADD_INS () so the logic is in one
3592 2008-04-14 Zoltan Varga <vargaz@gmail.com>
3594 * mini.c (mini_method_compile): Print a different message when compiling a
3597 * mini.c (GENERIC_SHARING_FAILURE): Print a failure message when verbose_level
3600 2008-04-11 Zoltan Varga <vargaz@gmail.com>
3602 * mini-amd64.c (mono_arch_output_basic_block): Implement OP_ABS directly using
3605 * basic-math.cs: Fix warnings. Add a test for Math.Abs ().
3607 2008-04-11 Zoltan Varga <vargaz@gmail.com>
3609 * mini.c (handle_stack_args): Make this return void since its return value was
3610 never used. Also set cfg->unverifiable for invalid IL instead of calling
3613 2008-04-10 Mark Probst <mark.probst@gmail.com>
3615 * mini.c: Make sure "this" is live in catch clauses with type
3616 variables in shared generic code.
3618 2008-04-08 Mark Probst <mark.probst@gmail.com>
3620 * mini.c: Replaced uses of MONO_TYPE_IS_REFERENCE with calls to
3621 generic_class_is_reference_type() to ensure the proper behaviour
3622 when sharing generic code and the type in question is a type
3625 2008-04-08 Zoltan Varga <vargaz@gmail.com>
3627 * mini-exceptions.c: Applied patch from Mark Spruiell (mes@zeroc.com). Fix
3628 race conditions when printing thread dumps. Fixes #377738.
3630 2008-04-08 Massimiliano Mantione <massi@ximian.com>
3632 aliasing.c (update_aliasing_information_on_inst): Fixed a bug which
3633 shows up when both MonoInst arguments can cause aliasig.
3634 There is likely no way in the current JIT to trigger this problem, but
3635 it showed up in the development of generics sharing, when in a new
3636 opcode both args of an OP_GROUP can be aliases (addresses of a local).
3637 When the generics sharing code will be committed, its tests will be
3638 valid also for this bug.
3640 2008-04-08 Zoltan Varga <vargaz@gmail.com>
3642 * aot-runtime.c (decode_patch_info): Always transform PATCH_INFO_WRAPPER to
3645 * mini.c (mono_resolve_patch_target): Fix a crash in the AOT case if method is
3648 2008-04-07 Zoltan Varga <vargaz@gmail.com>
3650 * mini-exceptions.c (mono_handle_exception_internal): When --debug=casts is used,
3651 use a more detailed exception message for InvalidCastException.
3653 * mini.h (MonoJitTlsData): Add 'class_cast_from' and 'class_cast_to' fields.
3655 * driver.c (mono_main): Add --debug=casts option to turn on better
3656 InvalidCastException message details.
3658 * mini.c (mini_get_debug_options): New helper function to return the address of
3659 the debug_options variable.
3661 * mini.c (mono_get_jit_tls_intrinsic): New helper function to create a load of
3662 the jit_tls TLS variable.
3664 * mini.c (mono_jit_tls): New TLS variable.
3666 * inssel.brg: Save the details of a cast to a TLS variable when the --debug=casts
3669 2008-04-07 Rodrigo Kumpera <rkumpera@novell.com>
3671 * mini.h: Removed verifer related stuff. This code was moved to verify.c
3673 * mini.c: Removed verifer related stuff, code moved to verify.c.
3675 * driver.c: Using code from verify.c instead of mini.c.
3677 2008-04-05 Zoltan Varga <vargaz@gmail.com>
3679 * mini.c (check_for_method_verify): Remove the mscorlib comment since it is no
3682 2008-04-04 Rodrigo Kumpera <rkumpera@novell.com>
3684 * mini.c (check_for_method_verify): Enabling verification of
3685 corlib if mono_verify_all is set. Bugs in the verifier preventing that
3688 2008-04-04 Zoltan Varga <vargaz@gmail.com>
3690 * exceptions-amd64.c (throw_exception): Unify the win32/non-win32 cases, save
3691 caller saved registers as well.
3693 * exceptions-amd64.c (mono_arch_get_restore_context): Restore most caller
3694 saved registers as well.
3696 2008-03-30 Zoltan Varga <vargaz@gmail.com>
3698 * mini-x86.c cpu-x86.md inssel-x86.brg: Add min/max intrinsics.
3700 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of the non-SSE2 floating point
3703 2008-03-27 Zoltan Varga <vargaz@gmail.com>
3705 * mini-amd64.c (mono_arch_get_this_arg_reg): Add a 'gsctx' argument and pass it
3707 (get_call_info): Take a gsctx argument instead of 'cfg'.
3709 2008-03-26 Zoltan Varga <vargaz@gmail.com>
3711 * mini.c (check_for_method_verify): Avoid verifying mscorlib methods even if
3712 mono_verify_all is set.
3714 * driver.c (compile_all_methods_thread_main): Don't exit at the first error.
3716 * mini.c mini.h: Remove the unused and incomplete stack merge verification code.
3718 2008-03-25 Zoltan Varga <vargaz@gmail.com>
3720 * driver.c (compile_all_methods_thread_main): Error out if compilation fails with
3723 * driver.c mini.c mini.h: Add a --verify-all development option to test the
3724 verifier and the code generated by the compiler.
3726 2008-03-25 Mark Probst <mark.probst@gmail.com>
3728 * mini.c: Generic sharing of the non-nullable case of the box
3731 2008-03-24 Zoltan Varga <vargaz@gmail.com>
3733 * inssel.brg: Fix the build.
3735 * iltests.il.in: Add a test for lconv.ovf.u8.un.
3737 2008-03-24 Rodrigo Kumpera <rkumpera@novell.com>
3739 * mini.c (mono_method_to_ir): Implement readonly for ldelema and
3740 Array:Address. Fixes #372410.
3742 * iltests.il.in: New tests for readonly prefix.
3744 2008-03-23 Zoltan Varga <vargaz@gmail.com>
3746 * mini.h mini.c mini-trampolines.c: Move trampoline related code to
3749 * mini.h mini.c mini-exceptions.c: Move mini_init_exceptions () to
3752 * mini-amd64.c mini-s390.c (mono_arch_lowering_pass): Use mono_decompose_op_imm ().
3754 * mini.c (mono_decompose_op_imm): New helper function.
3756 * mini-s390x.c (calculate_sizes): Rename this to get_call_info for consistency
3757 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
3760 * mini-s390x.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
3761 mono_arch_output_basic_block. Fix warnings.
3763 * inssel-s390x.brg: Remove the unneccesary OP_LMUL_IMM rule to fix the s390x build
3766 2008-03-22 Zoltan Varga <vargaz@gmail.com>
3768 * mini-exceptions.c (ves_icall_get_frame_info): Remove the ia64/s390 workarounds
3769 since the extra frame is now detected automatically inside the loop.
3771 * mini-s390.c (mono_arch_peephole_pass_2): Remove the arch independent peephole
3772 opts which are now in mono_peephole_ins ().
3774 * mini-s390.c (mono_arch_output_basic_block): Fix OP_FCALL_MEMBASE.
3776 * mini-exceptions.c (ves_icall_get_frame_info): Skip native-to-managed wrapper
3777 frames and skip duplicate managed-to-native frames. Fixes #367665.
3779 * mini-x86.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
3780 opts which are now in mono_peephole_ins ().
3781 (mono_arch_peephole_pass_2): Ditto.
3783 * mini-codegen.c (mono_peephole_ins): Fix a problem on 32 bit platforms.
3785 * mini-codegen.c (mono_peephole_ins): New helper function containing the
3786 arch independent peephole optimizations.
3788 * mini-amd64.c (mono_arch_peephole_pass_1): Remove the arch independent peephole
3789 opts which are now in mono_peephole_ins ().
3791 * mini-amd64.c (mono_arch_peephole_pass_2): Ditto.
3793 * mini-s390.c (mono_arch_output_basic_block): Fix build.
3795 * tramp-s390.c (mono_arch_get_vcall_slot): Handle an additional instruction
3798 * mini-s390.c (mono_arch_output_basic_block): Handle big offsets in the
3799 CALL_MEMBASE opcodes. Fix setting of the destination in the OP_LCONV_TO_OVF_I
3802 2008-03-21 Zoltan Varga <vargaz@gmail.com>
3804 * mini-s390.c (calculate_sizes): Rename this to get_call_info for consistency
3805 with the other architectures, add an 'mp' argument, fold 'sz' argument into the
3808 * mini-s390.c: Handle DIV_IMM/REM_IMM in the lowering pass instead of in
3809 mono_arch_output_basic_block. Fix warnings.
3811 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3813 * inssel-long32.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
3816 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3818 * inssel-long.brg: Add rules for long conv.ovf.i/conv.ovf.u/conv.ovf.i.un/
3821 * iltests.il: Add new tests.
3823 2008-03-20 Kornél Pál <kornelpal@gmail.com>
3825 * mini.c: Removed Windows version macros.
3827 2008-03-20 Mark Probst <mark.probst@gmail.com>
3829 * generic-sharing.c: Put reflection types in the extensible part
3830 of the runtime generic context.
3832 * mini.c: Generic sharing of the GetTypeHandle special case of the
3833 ldtoken instruction.
3835 2008-03-20 Zoltan Varga <vargaz@gmail.com>
3837 * mini.h (MONO_BB_FOR_EACH_INS_SAFE): New helper macro.
3839 * mini-<ARCH>.c: Use the new macro instead in the peephole/lowering passes.
3841 * mini.h (MONO_DEL_INS): Rename to MONO_DELETE_INS and Add a 'bb' argument for
3842 consistency with the other version on the linear IR branch.
3844 * mini-<ARCH>.c: Update callers of MONO_DEL_INS.
3846 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i/conv.ovf.u.
3848 * iltests.il.in: Add new tests.
3850 2008-03-19 Zoltan Varga <vargaz@gmail.com>
3852 * inssel-long32.brg inssel-long.brg: Add rules for conv.ovf.i.un/conv.ovf.u.un.
3854 * iltests.il.in: Add new tests.
3856 2008-03-19 Mark Probst <mark.probst@gmail.com>
3858 * mini.c: Two variables with the same name were declared in
3859 nesting contexts and one wasn't initialized. Fixed.
3861 2008-03-19 Mark Probst <mark.probst@gmail.com>
3863 * mini.c: Generic sharing of the initobj instruction.
3865 Tue Mar 18 20:18:02 CET 2008 Paolo Molaro <lupus@ximian.com>
3867 * mini.c: make the test to optimize ldtoken from typeof() more
3870 2008-03-18 Mark Probst <mark.probst@gmail.com>
3872 * mini.c: Generic sharing of the initobj instruction for reference
3875 Tue Mar 18 12:39:27 CET 2008 Paolo Molaro <lupus@ximian.com>
3877 * mini.h, mini-amd64.c, mini-x86.c, tramp-amd64.c, tramp-x86.c: change
3878 the mono_breakpoint_clean_code() code to perform bound checks.
3880 Tue Mar 18 11:50:14 CET 2008 Paolo Molaro <lupus@ximian.com>
3882 * mini.h, mini-trampolines.c, tramp-*.c: change the signature of
3883 mono_arch_patch_callsite() to include the start of the managed method
3884 to be able to perform bound checks.
3886 2008-03-17 Mark Probst <mark.probst@gmail.com>
3888 * mini.c: Generic sharing for the isinst instruction.
3890 2008-03-17 Mark Probst <mark.probst@gmail.com>
3892 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
3893 inssel-long32-mips.brg: Added opcodes for doing indirect calls
3894 with the runtime generic context argument.
3896 * mini.c: Share calls to several types of unsharable methods by
3897 putting the address of the method code in the runtime generic
3898 context and doing an indirect call.
3900 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
3903 2008-03-16 Mark Probst <mark.probst@gmail.com>
3905 * generic-sharing.c: Change due to a change in the runtime genric
3908 2008-03-15 Martin Baulig <martin@ximian.com>
3911 (mono_arch_nullify_class_init_trampoline): Add call to
3912 mono_breakpoint_clean_code() to make things work when running
3913 inside the debugger.
3916 (mono_arch_nullify_class_init_trampoline): Add call to
3917 mono_breakpoint_clean_code() to make things work when running
3918 inside the debugger.
3920 2008-03-14 Zoltan Varga <vargaz@gmail.com>
3922 * inssel-long.brg (reg): Fix 64 bit build.
3924 2008-03-14 Mark Probst <mark.probst@gmail.com>
3926 * mini.c, mini.h: Share static generic code by passing it an
3927 implicit argument pointing to the runtime generic context.
3929 * mini-ops.h, inssel.brg, inssel-long.brg, inssel-long32.brg,
3930 inssel-long32-mips.brg: New opcodes for calling shared static,
3931 which need to be passed the runtime generic context.
3933 * mini-amd64.c, mini-x86.c: Save the runtime generic context
3934 argument on the stack in the prologue if needed. New function for
3935 finding the runtime generic context argument from the registers
3936 saved by the trampoline.
3938 * mini-amd64.h, mini-x86.h: Specify which register to use for the
3939 runtime generic context argument.
3941 * tramp-amd64.c: Also restore the register used for the runtime
3942 generic context argument.
3944 * mini-trampoline.c: Resolve shared static calls by consulting the
3945 runtime generic context via the new argument.
3947 * generic-sharing.c: Add an argument to sharability-checking
3948 functions that specifies whether type variables should be treated
3949 as sharable type arguments.
3951 * inssel-x86.brg: Removed a superfluous, buggy rule.
3953 * graph.c, local-propagation.c, aliasing.c: Added the new opcodes
3956 2008-03-14 Martin Baulig <martin@ximian.com>
3958 * debug-debugger.c (main_thread_handler): Call
3959 mono_runtime_run_main() without sending any notifications.
3961 * debug-debugger.h (MonoDebuggerInfo): Added `get_method_signature.
3963 2008-03-14 Zoltan Varga <vargaz@gmail.com>
3965 * mini-trampolines.c (mono_magic_trampoline): Fix build on platforms without IMT.
3967 2008-03-14 Mark Probst <mark.probst@gmail.com>
3969 * tramp-x86.c: Fixed register restore offsets in the trampoline
3970 code for ECX and EDX.
3972 2008-03-12 Geoff Norton <gnorton@novell.com>
3974 * mini-arm.h: Add some #defines for locating sp, pc, r4 with
3975 different ucontext_t implementations.
3976 * exceptions-arm.c: Use the above defines to get exceptions working on
3977 iPhone (based on a patch by Luke Howard lukeh@padl.com)
3978 * mini-arm.c: Implement iPhone icache support (based on a patch by
3979 Luke Howard lukeh@padl.com)
3981 2008-03-12 Mark Probst <mark.probst@gmail.com>
3983 * mini.c: Enable generic sharing of calls to non-static
3984 non-interface non-generic non-value-type methods.
3986 * mini-trampolines.c: Resolve calls from shared generic code.
3988 2008-03-11 Zoltan Varga <vargaz@gmail.com>
3990 * Makefile.am il2tests.il iltests.il.in: Delete il2tests, merge it into iltests.
3992 * tramp-amd64.c (mono_arch_create_trampoline_code): Correctly save RBP as well.
3994 Mon Mar 10 11:59:34 CET 2008 Paolo Molaro <lupus@ximian.com>
3996 * mini.c: some fixes for the AOT compiler.
3998 2008-03-07 Zoltan Varga <vargaz@gmail.com>
4000 * cpu-amd64.md: Add clob:1 to some float opcodes.
4002 2008-03-07 Rodrigo Kumpera <rkumpera@novell.com>
4004 * mini.h: Added MiniVerifierMode enumeration.
4006 * mini.c: Added mini_verifier_set_mode to control
4007 the usage of the new verifier.
4009 * mini.c (mono_method): Integrated the new verifier.
4011 * driver.c: Extended --security option with validil and
4012 verifiable options to activate the new verifier.
4014 2008-03-07 Zoltan Varga <vargaz@gmail.com>
4016 * mini.c jit-icalls.h jit-icalls.c: Generalize the exception creation
4017 optimization to ctors taking 0 or 2 arguments too.
4019 * mini.c (mono_method_to_ir): Optimalize the size of the exception throwing code
4022 * jit-icalls.h (mono_create_corlib_exception): New JIT icall.
4024 * mini-amd64.c (mono_arch_emit_prolog): Improve the first_bb optimization a bit.
4026 2008-03-06 Zoltan Varga <vargaz@gmail.com>
4028 * mini.c (mono_method_to_ir): Apply one of the ldstr optimizations in the
4029 non-aot case as well.
4031 * cpu-amd64.md: Reduce the max size of some frequently used opcodes.
4033 * aot-runtime.c (decode_patch_info): Update this after the ldfld/stfld wrapper
4036 * aot-compiler.c (encode_patch): Ditto.
4038 * mini.h (G_MININT32): Fix the definition of this.
4040 2008-03-05 Zoltan Varga <vargaz@gmail.com>
4042 * mini.h: Define G_MININT32/G_MAXINT32 if using an older glib version.
4044 * cfold.c: Remove definition of G_MININT32 which is now in mini.h.
4046 2008-03-04 Zoltan Varga <vargaz@gmail.com>
4048 * mini-amd64.c (mono_arch_compute_omit_fp): Don't disable fp elimination for
4049 methods returning vtypes in registers.
4050 (mono_arch_allocate_vars): Ditto.
4052 * mini-amd64.c (mono_arch_get_this_arg_reg): New arch specific helper function.
4054 * tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg ().
4056 * generics.cs: Add a test from the linear IR branch.
4058 * mini-amd64.c (emit_load_volatile_arguments): Handle vtypes passed in regs too.
4060 * mini.c (inline_method): Cache failed inline attempts.
4062 2008-03-04 Mark Probst <mark.probst@gmail.com>
4064 * mini.c: For shared methods of generic classes put the location
4065 of "this" into the MonoGenericJitInfo.
4067 * mini-x86.c, mini-amd64.c, mini.h: Added function for fetching a
4068 register out of a MonoContext by register number. Add the generic
4069 sharing context as an argument to mono_arch_find_this_argument().
4071 * mini-alpha.c, mini-arm.c, mini-hppa.c, mini-ia64.c, mini-mips.c,
4072 mini-ppc.c, mini-s390.c, mini-s390x.c, mini-sparc.c: Added stub
4073 for new arch function.
4075 * mini-exception.c: Handle open exception clauses in shared
4078 * mini-trampolines.c: Supply additional argument to
4079 mono_arch_find_this_argument().
4081 2008-03-04 Zoltan Varga <vargaz@gmail.com>
4083 * Makefile.am (regtests): Run the bench.exe tests last.
4085 2008-03-03 Zoltan Varga <vargaz@gmail.com>
4087 * mini-amd64.c (mono_arch_emit_prolog): Improve the first bblock optimization
4090 2008-03-02 Zoltan Varga <vargaz@gmail.com>
4092 * mini.c (mono_method_to_ir): Allow callvirt on static methods for compatibility
4095 * mini-amd64.c (mono_arch_emit_prolog): Fix tracing after the last change.
4097 * mini-amd64.c (mono_arch_emit_prolog): Avoid saving dead arguments.
4099 * mini.c (mono_method_check_inlining): Avoid disabling inlining for methods
4100 whose class has no cctor.
4102 * liveness.c (mono_analyze_liveness): Mark dead arguments with MONO_INST_IS_DEAD.
4104 2008-03-01 Zoltan Varga <vargaz@gmail.com>
4106 * mini.c (mono_method_to_ir): Report calling a static method using callvirt as
4109 2008-02-29 Zoltan Varga <vargaz@gmail.com>
4111 * mini-ops.h: Remove OP_SPARC_INARG_VT, add a new OP_VTARG_ADDR opcode instead
4112 to be in sync with the code on the linear IR branch.
4114 * mini-sparc.c inssel-sparc.brg: Use OP_VTARG_ADDR.
4116 * inssel-s390.brg (OP_SETRET (freg)): Set dreg correctly.
4118 2008-02-27 Zoltan Varga <vargaz@gmail.com>
4120 * mini-mips.c: Use cfg->vret_addr instead of cfg->ret.
4122 * mini-s390x.c: Use cfg->vret_addr instead of cfg->ret.
4124 * mini-s390.c: Use cfg->vret_addr instead of cfg->ret.
4126 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_VARS define.
4128 * mini-<ARCH>.c (mono_arch_create_vars): Define this for all architectures.
4130 * mini.c (mono_method_to_ir): Avoid invalid memory reads for methods without a
4133 2007-11-14 Yoichi NAKAYAMA <nakayama@pixela.co.jp>
4135 * inssel-mips.brg (OP_OUTARG_MEMBASE (CEE_LDIND_R4 (base))): Add missing
4136 OP_LOADR4_MEMBASE emission.
4138 * mini-codegen.c (mono_spillvar_offset_int): Remove assertion.
4139 (mono_spillvar_offset_float): Ditto.
4141 * mini-mips.c (mono_arch_emit_prolog): Ditto.
4143 * inssel-long32-mips.brg: Fix wrong branching, reduce redundant code
4146 * basic-long.cs: Add regression tests for them.
4148 * mini-mips.c (add_float32_arg): Respect o32 calling convention in gr
4150 (mono_arch_allocate_vars): Fix representation of single-precision float
4152 (mono_arch_output_basic_block): Ditto.
4154 * inssel-mips.brg: Ditto, remove duplicate items.
4156 * mini-mips.c (emit_load_volatile_arguments): New function to handle
4157 arguments of tail calls as on other platforms.
4158 (mono_arch_output_basic_block): Handle tail calls.
4160 * inssel-mips.brg (OP_OUTARG_VT (CEE_LDOBJ (base))): Correct destination
4163 * objects.cs (test_5_pass_static_struct): Add test for it.
4165 Contributed under MIT/X11 license.
4167 2008-02-26 Zoltan Varga <vargaz@gmail.com>
4169 * Makefile.am: Use gmcs for compiling the regression tests.
4171 * *.2.cs *.2.il: Rename to *.cs and *.il.
4173 2008-02-24 Zoltan Varga <vargaz@gmail.com>
4175 * regalloc.h: Make the vassign array smaller.
4177 * mini.c (mini_method_compile): Remove an unused field in cfg.
4179 * mini-codegen.c: Add a bunch of micro optimizations.
4181 2008-02-23 Zoltan Varga <vargaz@gmail.com>
4183 * regalloc.h: Remove some unused fields.
4185 2008-02-22 Zoltan Varga <vargaz@gmail.com>
4187 * mini-amd64.c (mono_arch_patch_code): Fix a warning.
4189 * ssa.c (mono_ssa_remove): Avoid declaring volatile variables dead.
4191 2008-02-22 Mark Probst <mark.probst@gmail.com>
4193 * mini.h: New trampoline type (RGCTX_LAZY_FETCH).
4195 * mini-trampolines.c, tramp-amd64.c, tramp-x86.c: RGCTX lazy fetch
4196 trampoline: Fetch an entry from the runtime generic context. If
4197 it's NULL, jump to the actual trampoline to fill the runtime
4198 generic context. Otherwise, return it.
4200 * mini.c: Call the lazy fetch trampoline to get entries out of the
4201 runtime generic context.
4203 * tramp-ia64.c, tramp-arm.c, tramp-alpha.c, tramp-s390.c,
4204 tramp-s390x.c, tramp-ppc.c, tramp-hppa.c, tramp-mips.c,
4205 tramp-sparc.c: Stubs for the lazy fetch trampoline.
4207 2008-02-21 Mark Probst <mark.probst@gmail.com>
4209 * mini.c: Fetch data out of the extensible part of the runtime
4210 generic context instead of calling a helper function.
4212 * generic-sharing.c: Some functions moved into
4213 metadata/generic-sharing.c. Helper function for fetching other
4214 types now checks and asserts against extensible rgctx (just for
4215 debugging purposes - the helper function isn't called anymore
4216 unless for debugging).
4218 2008-02-21 Zoltan Varga <vargaz@gmail.com>
4220 * mini-arm.c (mono_arch_output_basic_block): Implement proper argument passing
4221 for tail calls up to the point that the tests in iltests.exe run. Also add a
4222 dummy CKFINITE implementation.
4223 (mono_arch_emit_prolog): Avoid saving the method in the LMF since it is only
4224 needed for trampoline LMF frames.
4226 * exceptions-arm.c (mono_arch_find_jit_info): Only read lmf->method for
4227 trampoline LMF frames.
4229 2008-02-21 Rodrigo Kumpera <rkumpera@novell.com>
4231 * mini.c (inline_method): clean any pending loader error when inlining fail.
4232 Otherwise loader errors in mono_method_to_ir leaks and cause spurious errors.
4234 2008-02-21 Zoltan Varga <vargaz@gmail.com>
4236 * aot-compiler.c (encode_patch): Handle ICALL_ADDR patch type.
4238 * aot-runtime.c (decode_patch_info): Ditto.
4240 * mini.c (mono_resolve_patch_target): Ditto.
4242 * aot-compiler.c (compile_method): Add some experimental code for AOT compiling
4245 * patch-info.h (PATCH_INFO): Add 'ICALL_ADDR' patch type.
4247 * mini.c (mono_method_to_ir): Convert a CEE_MONO_LDPTR opcode to an AOT constant
4248 if it references an icall address.
4250 2008-02-20 Zoltan Varga <vargaz@gmail.com>
4252 * cpu-s390x.md: Remove some more unused opcodes.
4254 * cpu-s390x.md: Remove some unused opcodes.
4256 * mini-ia64.c (mono_arch_lowering_pass): Add some more opcodes. Use
4257 mono_op_imm_to_op ().
4259 * mini-sparc.c (opcode_to_sparc_cond): Use the mono_opcode_to_cond () functions
4260 instead of a switch statement.
4262 * mini-sparc.c (mono_arch_allocate_vars): Allocate a stack slot for use by
4263 the int<->float conversion opcodes instead of using mono_spillvar_offset_float ().
4265 * mini-codegen.c: Eliminate rassign macro which is no longer needed.
4267 * mini-codegen.c: Remove unused mono_regstate2_... functions.
4269 * mini-codegen.c (mono_print_ins_index): Avoid printing an index when it is
4272 2008-02-19 Zoltan Varga <vargaz@gmail.com>
4274 * driver.c (mono_main): Improve error reporting when an assembly cannot be
4275 opened. Fixes #362607.
4277 * cpu-ia64.md cpu-s390x.md: Remove some unused opcodes.
4279 * iltests.il.in: Add a test for static methods in interfaces.
4281 2008-02-18 Zoltan Varga <vargaz@gmail.com>
4283 * genmdesc.c (build_table): Fix a crash on older glib versions.
4285 * cpu-sparc.md: Remove some unused opcodes.
4287 * genmdesc.c: Error out if the .md contains CEE_ opcodes if
4288 MONO_ARCH_ENABLE_NORMALIZE_OPCODES is defined.
4290 * cpu-amd64.md: Remove some unused opcodes.
4292 * mini.h mini-ops.h mini.c: Define the OP_Ccc opcodes in mini-ops.h normally
4293 like the other opcodes.
4295 2008-02-17 Zoltan Varga <vargaz@gmail.com>
4297 * mini-ia64.c: Use cfg->vret_addr instead of cfg->ret.
4299 * mini-arm.h mini-arm.c: Use cfg->vret_addr instead of cfg->ret.
4301 * mini-sparc.c: Use cfg->vret_addr instead of cfg->ret. Name the MonoCompile
4302 variables 'cfg' instead of 'm' for consistency.
4304 * mini-x86.c: Use cfg->vret_addr instead of cfg->ret.
4306 * mini.h (MonoCompile): Add new 'vret_addr' field which represents the hidden
4307 argument holding the vtype return address, to avoid the ambigious use of
4308 cfg->ret for this purpose.
4310 * mini.c (NEW_RETLOADA): Use vret_addr if set.
4312 * mini-amd64.c: Use cfg->vret_addr instead of cfg->ret.
4314 * mini-codegen.c (mono_print_ins): Rename to mono_print_ins_index (), Add a
4315 new mono_print_ins () function which only takes one argument.
4317 2008-02-15 Zoltan Varga <vargaz@gmail.com>
4319 * mini-s390.h (MONO_OUTPUT_VTR): Use cfg instead of s, avoid assignments to
4322 2008-02-14 Zoltan Varga <vargaz@gmail.com>
4324 * mini-ops.h: Get rid of OP_SPARC_LOCALLOC_IMM.
4326 * mini-sparc.c inssel-sparc.brg: Use OP_LOCALLOC_IMM instead of OP_SPARC_LOCALLOC_IMM.
4328 * mini-x86.c: Sync with the version on the linear IR branch by adding new
4329 opcodes and other small changes.
4331 * mini-ops.h: Add some new opcodes from the linear IR branch.
4333 * mini-ops.h: Get rid of the OP_X86_..._MEMBASE opcodes.
4335 * mini-x86.c inssel-x86.brg cpu-x86.md: Get rid of the confusing _MEMBASE
4336 opcodes, use the REG_MEMBASE opcodes instead.
4338 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Get rid of the confusing _MEMBASE
4339 opcodes, use the REG_MEMBASE opcodes instead.
4341 * mini-amd64.c (mono_arch_output_basic_block): Sync with the version on the
4344 * mini.c (mono_op_imm_to_op): New helper function.
4346 * mini-ops.h: Add some opcodes from linear IR branch.
4348 2008-02-13 Zoltan Varga <vargaz@gmail.com>
4350 * mini-alpha.h mini-alpha.c tramp-alpha.c: Alpha port updates from Sergey Tikhonov
4353 2008-02-12 Zoltan Varga <vargaz@gmail.com>
4355 * mini.c (mono_normalize_opcodes): Always convert CEE_CONV_R4/R8 to
4358 * mini-ia64.c cpu-ia64.md: Add OP_ICONV_TO_R4/R8.
4360 2008-02-09 Zoltan Varga <vargaz@gmail.com>
4362 * aot-compiler.c (emit_method_code): Add an assert.
4364 * mini-arm.h mini-arm.c exceptions-arm.c: Modify the exception throwing code and
4365 the IMT code so it is AOT friendly. Enable AOT for methods which call interface
4368 2008-02-08 Zoltan Varga <vargaz@gmail.com>
4370 * mini-arm.c (mono_arch_output_basic_block): Fix the ordering of arguments for
4371 some load/store opcodes so they are consistent.
4372 (mono_arch_emit_prolog): Simplify some code.
4374 * aot-runtime.c (mono_aot_get_plt_entry): Fix a warning.
4376 * objects.cs: Add tests for large argument offsets on ARM.
4378 * mini-arm.c (mono_arch_emit_prolog): Fix handling of arguments with large
4379 stack offsets. Fixes #359651.
4381 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R4/R8 properly.
4383 * cpu-s390x.md: Add OP_LCONV_TO_R4/R8.
4385 * cpu-ia64.md mini-ia64.h mini-ia64.c: Get rid of CEE_ opcodes.
4387 * mini-ops.h: Add OP_ICONV_TO_R_UN opcode.
4389 * mini.c (mono_normalize_opcodes): Remap CEE_CONV_R_UN too.
4391 * cpu-s390x.md cpu-s390.md mini-s390x.c mini-arm.c cpu-arm.md mini-s390.c: Get
4392 rid of CEE_CONV_R_UN.
4394 * mini-s390x.c mini-s390x.h cpu-s390x.md inssel-s390x.brg: Get rid of CEE_ opcodes.
4396 2008-02-07 Zoltan Varga <vargaz@gmail.com>
4398 * mini-s390.c mini-s390.h cpu-s390.md: Get rid of CEE_ opcodes.
4400 * mini.c (mono_normalize_opcodes): Add some more opcodes.
4402 * mini-arm.c mini-arm.h cpu-arm.md: Get rid of CEE_ opcodes.
4404 * cpu-amd64.md: Remove some unused opcodes.
4406 * mini-sparc.c mini-sparc.h cpu-sparc.md: Get rid of CEE_ opcodes.
4408 * mini-x86.c mini-x86.h cpu-x86.md: Get rid of CEE_ opcodes.
4410 * mini.c mini-<ARCH>.c: Remove mono_arch_local_regalloc (), instead make
4411 arch specific functions for its parts. Call the peephole pass after local
4412 regalloc so the prolog can compute a more accurate max_offset.
4414 * mini.c (mono_normalize_opcodes): New mini pass to convert CEE_ opcodes to
4415 the corresponding OP_I/OP_L opcodes.
4417 * mini-amd64.c mini-amd64.h cpu-amd64.md: Get rid of CEE_ opcodes.
4419 * mini-sparc.c (mono_arch_output_basic_block): Fix the sparc build.
4421 2008-02-06 Zoltan Varga <vargaz@gmail.com>
4423 * mini-s390.c (mono_arch_get_inst_for_method): Remove the Interlocked cases
4424 as they are handled in mini.c.
4426 * mini-s390x.c (mono_arch_get_inst_for_method): Ditto.
4428 * mini-<ARCH>.c (mono_arch_get_inst_for_method): Remove the MemoryBarrier
4429 case since it is handled in mini.c.
4431 * cpu-sparc.md (sparc_setfreg_float): Fix the sparc build.
4433 * mini-ops.h: Add new opcodes OP_CALL/OP_CALLVIRT.
4435 * *.c: Use the new opcodes in the IR and back end code.
4437 * mini-ops.h cpu-<ARCH>.md: Correct the name of the bgt_un opcodes.
4439 * mini-amd64.c (emit_call_body): Use a far-call for calling dynamic methods.
4441 2008-02-06 Mark Probst <mark.probst@gmail.com>
4443 * mini-trampolines.c (mono_generic_class_init_trampoline): Removed
4444 an assert because it has a race condition.
4446 2008-02-06 Zoltan Varga <vargaz@gmail.com>
4448 * tramp-amd64.c (mono_arch_patch_callsite): Add more diagnostics.
4450 * inssel.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused CEE_RET opcode.
4452 * mini-<ARCH>.c cpu-<ARCH>.md: Get rid of unused LDIND/STIND opcodes.
4454 * *.brg mini-<ARCH>.c cpu-<ARCH>.md: Get rid of OP_SETREG/OP_SETFREG/OP_SETREGIMM,
4455 use OP_MOVE/OP_FMOVE/OP_ICONST instead.
4457 2008-02-05 Zoltan Varga <vargaz@gmail.com>
4459 * cpu-amd64.md (move): Correct the maximum size of move.
4461 2008-02-05 Mark Probst <mark.probst@gmail.com>
4463 * tramp-amd64.c, tramp-x86.c, mini-trampolines.c: Added a check in
4464 the generic class init trampoline to return quickly if the class
4467 2008-02-04 Zoltan Varga <vargaz@gmail.com>
4469 * tramp-amd64.c (mono_arch_patch_callsite): Add some diagnostics to help debug
4470 issues where an 32 bit callsite cannot be patched by a 64 bit address.
4472 2008-02-03 Zoltan Varga <vargaz@gmail.com>
4474 * generics.2.cs generics-variant-types.2.il: Merge some tests from the linear IR
4477 2008-01-31 Zoltan Varga <vargaz@gmail.com>
4479 * objects.cs: Add some soft-float tests.
4481 * mini.c: Fix a couple more soft-float issues.
4483 * helpers.c (mono_disassemble_code): Fix disassembly on ARM.
4485 * mini-amd64.c (peephole_pass): Use IXOR instead of LXOR for zeroing a register to
4488 2008-01-30 Zoltan Varga <vargaz@gmail.com>
4490 * exceptions-x86.c (mono_arch_find_jit_info): Fix stack unwinding when an
4491 exception happens while compiling a virtual method.
4493 2008-01-29 Zoltan Varga <vargaz@gmail.com>
4495 * mini-sparc.c (mono_arch_emit_epilog): Fix folding of negative return values.
4497 * mini-sparc.c: Fix build.
4499 * mini-sparc.c (get_call_info): Add support for generic sharing.
4501 * mini-exceptions.c: Add a FIXME.
4503 2008-01-27 Zoltan Varga <vargaz@gmail.com>
4505 * mini-exceptions.c (mono_handle_exception_internal): Remove the old style
4506 altstack handling code.
4508 * mini-s390.c (mono_arch_emit_exceptions): Really fix a warning.
4510 * mini-s390.c (mono_arch_emit_exceptions): Fix a warning.
4512 * mini-s390.c: Add support for generic sharing.
4514 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
4516 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
4518 * mini-s390x.c (mono_arch_emit_exceptions): Fix a warning.
4520 * mini-s390x.c: Add support for generic sharing.
4522 * mini-exceptions.c (ves_icall_System_Security_SecurityFrame_GetSecurityFrame):
4524 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Ditto.
4526 * mini-s390x.c: Use is_imm16 instead of is_uimm16 when checking whenever s390_aghi
4527 can be used since it takes a 16 bit signed immediate.
4529 * inssel-s390x.brg: Fix OP_SETRET.
4531 * mini-s390x.c (mono_arch_output_basic_block): Fix OP_BREAK.
4533 * mini-codegen.c (mono_opcode_to_cond): Fix a warning.
4535 * mini-s390x.c cpu-s390x.md: Implement sext.i4 properly by sign extension.
4537 * mini.c (mono_create_delegate_trampoline): Don't use mono_create_ftpntr here.
4539 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_addr_from_ftnptr
4542 * mini-ia64.h mini-ia64.c: Add minimal support for the delegate trampoline
4545 * mini.h inssel-x86.brg inssel-amd64.brg tramp-alpha.c tramp-ia64.c: Get rid
4546 of the unused mono_arch_patch_delegate_trampoline stuff.
4548 2008-01-26 Zoltan Varga <vargaz@gmail.com>
4550 * basic-long.cs: Move the fp related tests to basic-float.cs.
4552 * mini-ops.h (OP_OUTARG_FREG_R4): New opcode.
4554 * mini-ia64.c inssel-ia64.brg: Implement proper R4 argument passing.
4556 * basic-calls.cs: Add a test for proper float argument passing.
4558 * mini-ia64.h (mono_ia64_context_get_ip): Do not substract 1 from the ip
4559 if the context corresponds to an exception received through a signal.
4561 * exceptions.cs: Add a test for nullref handling at the start of a try
4564 * mini-ia64.c (mono_arch_call_opcode): Fix ia64 argument passing.
4566 * jit-icalls.c (mono_break): New JIT icall.
4568 * mini-<ARCH>.c: Use mono_break instead of mono_arch_break.
4570 * mini-arm.c (arm_patch): Add support for patching the blx calling sequence.
4572 2008-01-25 Zoltan Varga <vargaz@gmail.com>
4574 * cpu-*.md: Get rid of unused opcodes.
4576 * cpu-g4.md: Rename this to cpu-ppc.md for consistency with other archs.
4578 * Makefile.am: Move mini-trampolines.c to $(common_sources) since it is now used
4581 * mini-<ARCH>.h mini.c: Get rid of the MONO_ARCH_HAVE_CREATE_SPECIFIC_TRAMPOLINE
4584 * mini-s390x.h tramp-s390x.c Makefile.am: Rework the s390x trampoline code to use
4585 the arch independent trampoline code in mini-trampolines.c.
4587 * aot-runtime.c (mono_aot_init_vtable): Fix a warning.
4589 * mini.c (get_runtime_generic_context_ptr): Fix a warning.
4591 * mini-s390.h: Remove an unused define.
4593 * mini-s390.h tramp-s390.c Makefile.am: Rework the s390 trampoline code to use
4594 the arch independent trampoline code in mini-trampolines.c.
4596 * mini-arm.c (mono_arch_emit_prolog): Fix build.
4598 2008-01-24 Zoltan Varga <vargaz@gmail.com>
4600 * mini-sparc.c (mono_arch_output_basic_block): Remove some unecessary code.
4602 * mini-s390.c (mono_arch_emit_prolog): Fix build.
4604 * mini-s390x.c (mono_arch_emit_prolog): Fix build.
4606 * mini-ppc.c (mono_arch_emit_prolog): Fix build.
4608 * cpu-amd64.md: Use smaller sizes for int opcodes.
4610 * *.c: Get rid of the NOT_IMPLEMENTED define which is now in mini.h.
4612 * *.cs: Add some tests from the linear-ir branch. Move structs tests to
4615 * driver.c (mono_main): Add a --break-at-bb command line argument for JIT
4618 * mini.h *.c: Change cfg->vars to contain the MonoMethodVar entries directly
4619 instead of though a pointer to save an indirection when accessing elements of
4622 * mini.h (MONO_IS_COND_BRANCH_OP): Move these macros here from mini.c. Fix
4624 (NOT_IMPLEMENTED): New helper macro.
4625 (MONO_BB_FOR_EACH_INS): New helper macro to iterate through the instructions
4628 * *.c: Use the new helper macro.
4630 2008-01-21 Zoltan Varga <vargaz@gmail.com>
4632 * mini-x86.h (MONO_ARCH_AOT_SUPPORTED): Disable AOT for apple x86.
4634 2008-01-20 Zoltan Varga <vargaz@gmail.com>
4636 * mini-amd64.c (mono_arch_emit_prolog): Optimize the omit fp case to save two
4639 2008-01-18 Zoltan Varga <vargaz@gmail.com>
4641 * mini-amd64.c (mono_arch_emit_prolog): Disable the new optimization if
4642 profiling is enabled.
4644 * mini-amd64.c (mono_arch_call_opcode): Emit the save_sp_to_lmf instruction at
4646 (mono_arch_emit_prolog): Add more first bblock optimizations.
4648 * mini-amd64.c (mono_arch_call_opcode): Keep assignments to the arg registers
4649 in order if possible.
4650 (mono_arch_emit_prolog): Optimize assignments to arg registers in the first
4651 bblock, since the arguments are still in their original registers.
4653 * mini.c (type_from_op): Calling add.ovf on floats is not valid IL code.
4655 2008-01-17 Zoltan Varga <vargaz@gmail.com>
4657 * mini.c (mono_method_to_ir): Use the no-spilling optimization for CEE_CALLI
4660 * mini-amd64.c (mono_arch_emit_prolog): Save an instruction if the LMF is at
4663 * mini-amd64.h (MONO_ARCH_HAVE_NOTIFY_PENDING_EXC): Turn on this for amd64.
4665 * exceptions-amd64.c (mono_arch_notify_pending_exc): New function to
4666 process async exceptions received while in unmanaged code.
4668 * mini.c (mini_init): Install a callback with the runtime which will be called
4669 when a thread receives an async exception while in unmanaged code.
4671 * mini.c driver.c: Update after mono_get_native_wrapper () signature change.
4673 * mini-s390x.c (mono_arch_output_basic_block): Fix s390x build.
4675 2008-01-16 Wade Berrier <wberrier@novell.com>
4682 2008-01-16 Zoltan Varga <vargaz@gmail.com>
4684 * mini-x86.c (mono_arch_output_basic_block): Remove some gccism which prevents
4685 compilation with sun cc.
4687 * cpu-*.md: Fix the build.
4689 * cpu-x86.md: Fix the length of some load membase opcodes. Fixes #354241.
4691 * mini-amd64.h: Add some comments to the MonoLMF structure.
4693 * mini-ops.h cpu-amd64.c: Add a OP_AMD64_SAVE_SP_TO_LMF opcode.
4695 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Avoid setting the rip field
4696 in the LMF structure if possible. This saves two instructions in the
4697 managed->native wrappers.
4699 * mini-ops.h *.md: Make some opcodes names uniform by removing the op_ prefix.
4701 2008-01-16 Mark Probst <mark.probst@gmail.com>
4703 * generic-sharing.c: New type argument lookup code which uses the
4704 runtime generic context template.
4706 2008-01-15 Zoltan Varga <vargaz@gmail.com>
4708 * mini.c (mono_method_to_ir): Avoid emitting a write barrier when storing NULL.
4710 * mini-arm.c (add_general): Fix arm eabi parameter passing.
4711 (mono_arch_output_basic_block): Fix localloc implementation.
4713 * mini-amd64.c (peephole_pass): Sync store+load optimizations with the x86 version.
4715 * mini-ia64.c (peephole_pass): Fix ia64 build.
4717 * mini-amd64.c (peephole_pass): Fix a warning.
4719 * mini-amd64.c (mono_arch_allocate_vars): Make sure the LMF is always stored
4720 at a constant offset from sp/fp.
4722 * exceptions-amd64.c (mono_arch_find_jit_info): Compute the LMF address from fp/sp
4723 instead of obtaining it from *lmf in the managed method case.
4725 2008-01-14 Zoltan Varga <vargaz@gmail.com>
4727 * exceptions-amd64.c (mono_arch_find_jit_info): Remove some duplicate code.
4729 Mon Jan 14 12:33:06 CET 2008 David S. Miller <davem@davemloft.net>
4731 * mini.h (MonoInstList): New type.
4732 (MONO_INST_LIST_INIT, MONO_INST_LIST_EMPTY,
4733 __MONO_INST_LIST_ADD, MONO_INST_LIST_ADD,
4734 MONO_INST_LIST_ADD_TAIL, __MONO_INST_LIST_DEL,
4735 __MONO_INST_LIST_SPLICE, MONO_INST_LIST_SPLICE,
4736 MONO_INST_LIST_SPLICE_TAIL, MONO_INST_LIST_SPLICE_INIST,
4737 MONO_INST_LIST_SPLICE_TAIL_INIT, mono_container_of,
4738 MONO_INST_LIST_ENTRY, MONO_INST_LIST_FIRST_ENTRY,
4739 MONO_INST_LIST_LAST_ENTRY, MONO_INST_LIST_FOR_EACH,
4740 MONO_INST_LIST_FOR_EACH_PREV, MONO_INST_LIST_FOR_EACH_SAFE,
4741 MONO_INST_LIST_FOR_EACH_PREV_SAFE,
4742 MONO_INST_LIST_FOR_EACH_ENTRY,
4743 MONO_INST_LIST_FOR_EACH_ENTRY_REVERSE,
4744 MONO_INST_LIST_FOR_EACH_ENTRY_SAFE,
4745 mono_inst_list_first, mono_inst_list_last,
4746 mono_inst_list_next, mono_inst_list_prev): New instruction
4747 list handling interfaces.
4748 (MonoBasicBlock): Remove 'last_ins' and 'code', replace with
4749 list head 'ins_list'.
4750 (MonoInst): Replace next pointer with list head 'node'.
4751 (MonoCallInst): Make 'out_args' a MonoInstList.
4752 (MONO_INST_NEW_CALL): Explicitly init ->out_args.
4753 (MonoCompile): Delete reverse_inst_list and
4754 reverse_inst_list_len.
4755 * mini-hppa.c (mono_arch_call_opcode, NEW_INS,
4756 mono_arch_lowering_pass, mono_arch_local_regalloc,
4757 mono_arch_output_basic_block, mono_arch_emit_prolog):
4758 Convert to new instruction lists.
4759 (insert_after_ins): Delete.
4760 * inssel.brg (MONO_EMIT_NEW_BRANCH_BLOCK): Convert to new
4762 * mini-hppa.h (MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Likewise.
4763 * mini.c (NEW_BBLOCK, ADD_BBLOCK, CHECK_BBLOCK,
4764 split_bblock, mono_add_ins_to_end, mono_emit_call_args,
4765 mono_emulate_opcode, mono_emit_load_got_addr,
4766 inline_method, mono_method_to_ir, mono_print_bb_code,
4767 print_dfn, decompose_pass, nullify_basic_block,
4768 replace_out_block_in_code, remove_block_if_useless,
4769 merge_basic_blocks, move_basic_block_to_end,
4770 try_unsigned_compare, optimize_branches, mono_print_code,
4771 mini_select_instructions, remove_critical_edges): Likewise.
4772 * mini-amd64.c (emit_sig_cookie, mono_arch_call_opcode,
4773 peephole_pass_1, peephole_pass, mono_arch_lowering_pass,
4774 mono_arch_output_basic_block, mono_arch_emit_prolog):
4776 * mini-mips.c (mono_arch_call_opcode, peephole_pass,
4777 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4778 mono_arch_output_basic_block): Likewise.
4779 (inst_list_prepend, insert_after_ins): Delete.
4780 * mini-mips.h (MONO_EMIT_NEW_BRANCH_NONZERO_LABEL,
4781 MONO_EMIT_NEW_COMPARE_BRANCH_BLOCK): Convert to new
4783 * mini-x86.c (emit_sig_cookie, mono_arch_call_opcode,
4784 peephole_pass_1, peephole_pass, mono_arch_output_basic_block,
4785 mono_arch_emit_prolog): Likewise.
4786 * cfold.c (mono_constant_fold): Likewise.
4787 * liveness.c (visit_bb, mono_analyze_liveness,
4788 optimize_initlocals): Likewise.
4789 * ssapre.c (dump_code, process_bb, code_motion): Likewise.
4790 * graph.c (mono_draw_code_cfg): Likewise.
4791 * ssa.c (mono_ssa_rename_vars, mono_ssa_compute,
4792 mono_ssa_remove, mono_ssa_avoid_copies, mono_ssa_create_def_use,
4793 mono_ssa_cprop): Likewise.
4794 * abcremoval (get_relations_from_previous_bb, process_block):
4796 * local-propagation (mono_cprop_invalidate_values,
4797 mono_local_cprop_bb): Likewise.
4798 * mini-s390x.c (mono_arch_call_opcode, emit_sig_cookie,
4799 peephole_pass, mono_arch_output_basic_block,
4800 mono_arch_emit_prolog): Likewise.
4801 * mini-arm.c (mono_arch_call_opcode, peephole_pass,
4802 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4803 mono_arch_emit_prolog): Likewise.
4804 (insert_after_ins): Delete.
4805 * aliasing.c (print_code_with_aliasing_information,
4806 mono_build_aliasing_information, mono_aliasing_deadce):
4807 Convert to new instruction lists.
4808 * mini-ia64.c (emit_sig_cookie, mono_arch_call_opcode,
4809 peephole_pass, NEW_INS, mono_arch_lowering_pass,
4810 mono_arch_local_regalloc, mono_arch_output_basic_block):
4812 (insert_after_ins): Delete.
4813 * mini-sparc.c (emit_sig_cookie, mono_arch_call_opcode,
4814 peephole_pass, mono_arch_output_basic_block): Convert to
4815 new instruction lists.
4816 * mini-codegen (InstList, inst_list_prepend,
4817 insert_after_ins): Delete.
4818 (insert_before_ins, get_register_force_spilling,
4819 get_register_spilling, free_up_ireg, free_up_reg,
4820 create_copy_ins, create_spilled_store, alloc_int_reg,
4821 alloc_float_reg, alloc_reg, mono_local_regalloc): Convert
4822 to new instruction lists.
4823 * mini-ppc.c (mono_arch_call_opcode, peephole_pass,
4824 NEW_INS, mono_arch_lowering_pass, mono_arch_local_regalloc,
4825 mono_arch_output_basic_block, mono_arch_emit_prolog): Likewise.
4826 (insert_after_ins): Delete.
4827 * mini-alpha.c (NEW_INS, peephole_pass, mono_arch_lowering_pass,
4828 mono_arch_local_regalloc, mono_arch_output_basic_block,
4829 mono_arch_call_opcode): Convert to new instruction lists.
4830 (insert_after_ins): Delete.
4831 * mini-s390.c (mono_arch_call_opcode, emit_sig_cookie,
4832 peephole_pass, mono_arch_output_basic_block,
4833 mono_arch_emit_prolog): Convert to new instruction lists.
4835 2008-01-11 Zoltan Varga <vargaz@gmail.com>
4837 * mini-amd64.c (mono_arch_output_basic_block): Use a 4 byte load in OP_CHECK_THIS.
4839 * mini-sparc.c (mono_arch_output_basic_block): Use a byte load in CHECK_THIS.
4842 * Makefile.am (version.h): Make this work with non-bash shells.
4844 2008-01-10 Zoltan Varga <vargaz@gmail.com>
4846 * mini.c (handle_delegate_ctor): Optimize away setting of NULL target.
4848 2008-01-08 Zoltan Varga <vargaz@gmail.com>
4850 * mini.c (mono_method_to_ir): Fix possible reading of invalid memory in
4851 the InitializeArray optimization.
4853 2008-01-06 Zoltan Varga <vargaz@gmail.com>
4855 * mini.c driver.c: Don't include os/gc_wrapper.h.
4857 2008-01-05 Zoltan Varga <vargaz@gmail.com>
4859 * mini.c (print_jit_stats): Print GC statistics if available.
4861 2008-01-04 Zoltan Varga <vargaz@gmail.com>
4863 * mini-amd64.c (mono_arch_allocate_vars): Align argument storage offsets to 8.
4865 2007-12-29 Zoltan Varga <vargaz@gmail.com>
4867 * mini-ppc.c (mono_arch_get_delegate_invoke_impl): Fix flushing of icache.
4869 2007-12-26 Zoltan Varga <vargaz@gmail.com>
4871 * mini.c (mini_init): Move the setting of GC_stackbottom to mono_gc_base_init ().
4873 * mini.c (mini_init): Call mono_gc_base_init () instead of MONO_GC_PRE_INIT ().
4875 * driver.c (mono_main): Ditto.
4877 2007-12-23 Zoltan Varga <vargaz@gmail.com>
4879 * mini-trampolines.c (mono_delegate_trampoline): Use mono_get_delegate_invoke ().
4881 * aot-compiler.c (emit_klass_info): Avoid emitting info if one of the methods
4882 in the vtable can't be encoded.
4883 (compile_method): Ditto.
4885 2007-12-21 Zoltan Varga <vargaz@gmail.com>
4887 * mini.c (setup_jit_tls_data): Use the MONO_ARCH_INIT_TOP_LMF_ENTRY macro if
4890 * mini-amd64.h mini-amd64.c exceptions-amd64.c tramp-amd64.c: Rename lmf->ebp to
4893 * exceptions-amd64.c (mono_arch_find_jit_info): Fix the detection of whenever
4894 the top LMF entry belongs to the current method.
4896 * mini.c: Update after renaming of mono_thread_get_pending_exception ().
4898 2007-12-20 Zoltan Varga <vargaz@gmail.com>
4900 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix a warning.
4902 * tramp-ia64.c (mono_arch_create_trampoline_code): Ditto.
4904 * tramp-sparc.c (mono_arch_create_trampoline_code): Check for thread interruption.
4906 * tramp-amd64.c (mono_arch_create_trampoline_code): Ditto.
4908 * tramp-x86.c (mono_arch_create_trampoline_code): Check for thread interruption.
4910 * cpu-amd64.md mini-amd64.h mini-amd64.c inssel-amd64.brg: Add ulong->double
4913 * basic-float.cs: Add an ulong->double cast test.
4915 2007-12-15 Zoltan Varga <vargaz@gmail.com>
4917 * mini.c (mono_method_to_ir): Fix a warning.
4919 2007-12-14 Zoltan Varga <vargaz@gmail.com>
4921 * mini-ops.h: Add OP_SWITCH.
4923 * mini.c graph.c ssa.c aliasing.c mini-<ARCH>.c inssel-<ARCH>.brg: Avoid using
4924 CEE_SWITCH in back-end code, use OP_SWITCH instead.
4926 2007-12-11 Geoff Norton <gnorton@novell.com>
4928 * mini-s390x.c: Minor change to the MAX() define to allow
4929 it to compile with other gcc versions.
4931 2007-12-11 Geoff Norton <gnorton@novell.com>
4934 * mini-s390x.c: Implement sext_i4 to fix the build on s390x
4936 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
4938 exceptions-arm.c (mono_arch_get_restore_context): Restore
4941 exceptions-arm.c (throw_exception): Save the frame pointer.
4942 This is a partial fix for #323747. Only the client side is
4945 2007-12-11 Rodrigo Kumpera <rkumpera@novell.com>
4947 * mini.c (mono_method_to_ir): Verbose message in CEE_NEWOBJ
4948 was using an unrelated variable to log the class which
4949 needed the cctor to be called. This was crashing on arm.
4951 2007-12-09 Robert Jordan <robertj@gmx.net>
4953 * mini-x86.c (mono_arch_emit_epilog):
4954 Consider all kinds of 64-bit types. Fixes #323114.
4956 2007-12-08 Zoltan Varga <vargaz@gmail.com>
4958 * tramp-amd64.c (mono_arch_create_trampoline_code): Clean up the code a bit.
4960 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4962 * mini-amd64.c (peephole_pass): Add a missing instruction check.
4964 Fri Dec 7 22:08:23 CET 2007 Paolo Molaro <lupus@ximian.com>
4966 * mini.c: run type ctor before allocating an object, not only
4967 when running it's constructor method (fixes at least part of bug #342507).
4969 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4971 * mini-trampolines.c (mono_delegate_trampoline): Fix a warning.
4973 * mini-trampolines.c (mono_generic_class_init_trampoline): Remove a debug printf.
4974 * mini.h mini-amd64.c mini-x86.c: Get rid of the mono_arch_find_vtable ()
4977 * tramp-x86.c tramp-amd64.c mini-trampolines.c: Pass the vtable argument to
4978 mono_generic_class_init_trampoline () the same as it is done with the other
4981 * mini-arm.h mini-arm.c tramp-arm.c inssel-arm.brg cpu-arm.md
4982 aot-runtime.c aot-compiler.c: Implement AOT support.
4984 2007-12-07 Mark Probst <mark.probst@gmail.com>
4986 * mini-trampolines.c (mono_generic_class_init_trampoline): Fixed
4987 build for archs which don't have the vtable trampoline defined
4990 2007-12-07 Zoltan Varga <vargaz@gmail.com>
4992 * tramp-x86.c (mono_arch_create_trampoline_code): Fix the build.
4994 * tramp-ppc.c (mono_arch_create_trampoline_code): Use the new helper function.
4996 * mini-trampolines.c (mono_get_trampoline_func): New helper function.
4998 * tramp-<ARCH>.c: Use the new helper function.
5000 2007-12-07 Mark Probst <mark.probst@gmail.com>
5002 * inssel.brg: Added a pattern for the OP_TRAMPCALL_VTABLE
5003 trampoline call, which takes a vtable argument.
5005 * graph.c, mini-ops.h, local-propagation.c, aliasing.c: Treat
5006 OP_TRAMPCALL_VTABLEs like other calls.
5008 * mini-amd64.c, mini-amd64.h, mini-x86.c, mini-x86.h: Designated a
5009 register to hold the vtable argument to the OP_TRAMPCALL_VTABLE
5010 call. Implemented a support function which fetches the vtable
5011 from a register set.
5013 * mini.c, mini.h, tramp-amd64.c, tramp-x86.c, mini-trampolines.c:
5014 Implemented a generic class init trampoline, using the
5015 OP_TRAMPCALL_VTABLE opcode.
5017 * mini.c: Implemented static field access when sharing generic
5018 code. This implies initing the class using the new
5019 OP_TRAMPCALL_VTABLE call.
5021 2007-12-07 Mark Probst <mark.probst@gmail.com>
5023 * mini.c: Don't compile methods with sharing enabled if their
5024 classes are disabled for sharing.
5026 2007-12-06 Zoltan Varga <vargaz@gmail.com>
5028 * inssel.brg: Add a missing sign extension to the GETCHR and array access
5029 opcodes. Fixes #346563.
5031 * objects.cs: Add a new test.
5033 * aot-compiler.c (emit_method_code): Put back an #ifdef which is needed.
5035 * mini-<ARCH>.h mini.c aot-compiler.c aot-runtime.c: Get rid of the
5036 HAVE_PIC_AOT define and use AOT_SUPPORTED instead.
5038 2007-12-06 Zoltan Varga <vargaz@gmail.com>
5040 * mini-arm.h mini-arm.c: Add support for the common vtable trampoline.
5042 2007-12-03 Zoltan Varga <vargaz@gmail.com>
5044 * mini-arm.c (mono_arch_emit_exceptions): Avoid uninitialized memory in the
5047 2007-12-02 Zoltan Varga <vargaz@gmail.com>
5049 * patch-info.h (PATCH_INFO): Add DELEGATE_TRAMPOLINE.
5051 * mini.c aot-compiler.c aot-runtime.c: Implement the delegate creation
5052 optimization in the AOT case.
5054 2007-11-30 Zoltan Varga <vargaz@gmail.com>
5056 * aot-runtime (mono_aot_get_method_from_vt_slot): Add support for multi-byte method ref encodings.
5058 * aot-runtime.c (decode_klass_ref): Implement decoding of generic instances.
5060 * aot-compiler.c (encode_klass_ref): Implement proper encoding of generic instances.
5062 * mini.c (mono_method_to_ir): Optimize the common ldftn+create delegate combination.
5064 * mini-trampolines.c (mono_delegate_trampoline): Add some code to handle the case when the delegate
5065 is created by the inlined delegate ctor.
5067 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
5069 * mini.c (mono_jit_compile_method_inner): Replace calls to delegate invoke with the trampoline here too.
5071 2007-11-29 Zoltan Varga <vargaz@gmail.com>
5073 * cpu-x86.md: Fix the length of ckfinite.
5075 2007-11-28 Zoltan Varga <vargaz@gmail.com>
5077 * mini-x86.c (mono_arch_output_basic_block): Unify div/rem code and handle the case when sreg2 is EDX.
5079 * mini-x86.c (mono_arch_output_basic_block): Clean up the fp stack properly in CKFINITE.
5080 (mono_arch_output_basic_block): Get rid of unused last_ins and last_offset.
5082 * mini-x86.c (mono_arch_output_basic_block): Add some micro optimizations.
5084 * mini-x86.c inssel-x86.brg cpu-x86.md: Move the implementation of the
5085 OP_START_HANDLER/OP_ENDFINALLY/OP_ENDFILTER opcodes to mini-x86.c.
5087 2007-11-28 Martin Baulig <martin@ximian.com>
5090 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline()
5091 after creating the trampoline.
5093 2007-11-27 Zoltan Varga <vargaz@gmail.com>
5095 * aot-runtime.c (load_aot_module): Check runtime version if needed.
5097 * aot-compiler.c: Add bind-to-runtime-version for producing AOT files which only load into a runtime with
5100 * generic-sharing.c (mono_helper_get_rgctx_other_ptr): Change the signature to take the calling class
5101 instead of the calling method to help AOT.
5103 * mini.c (get_runtime_generic_context_other_ptr): Update after the change.
5105 2007-11-26 Zoltan Varga <vargaz@gmail.com>
5107 * aot-runtime.c (mono_aot_init_vtable): Simplify this if MONO_ARCH_COMMON_VTABLE_TRAMPOLINE
5110 2007-11-23 Zoltan Varga <vargaz@gmail.com>
5112 * aot-compiler.c (emit_class_name_table): Properly encode generic class names.
5114 * aot-compiler.c (compile_method): Correct check for generic method definitions.
5115 (encode_method_ref): No need to handle generic method definitions specially.
5117 * mini.h (MONO_AOT_FILE_VERSION): Bump this.
5119 * aot-runtime.c (decode_klass_ref): Clean this up and rename from
5122 * aot-compiler.c (encode_klass_ref): Clean this up and rename from
5124 (compile_method): Enable generic sharing.
5126 2007-11-22 Zoltan Varga <vargaz@gmail.com>
5128 * mini.c (get_runtime_generic_context_other_ptr): Disable AOT here.
5129 (mini_method_compile): Add preliminary support for AOTing shared generic code.
5131 * aot-compiler.c (compile_method): Add preliminary support for AOTing shared
5134 * mini-trampolines.c: Fix a warning.
5136 * mini.c (get_runtime_generic_context_other_ptr): Use NEW_METHODCONST instead of
5138 (mono_method_to_ir): Use NEW_DOMAINCONST in one place.
5139 (generic_class_is_reference_type): Remove unused function.
5141 * mini-trampolines.c (mono_magic_trampoline): Avoid loading metadata if possible
5142 in the generic vtable trampoline case.
5144 * aot-runtime.c (mono_aot_init_vtable): Use the generic vtable trampoline.
5146 * aot-runtime.c (mono_aot_get_method_from_vt_slot): New helper function to
5147 return an AOT method based on a vtable slot.
5149 * aot-compiler.c (compile_method): Avoid AOTing synchronized methods for now.
5151 * mini.c (mini_get_vtable_trampoline): Export this.
5153 2007-11-22 Martin Baulig <martin@ximian.com>
5156 (MonoDebuggerInfo): Move `debugger_version' up.
5158 2007-11-22 Martin Baulig <martin@ximian.com>
5161 (mono_arch_get_delegate_invoke_impl): Call mono_debug_add_delegate_trampoline().
5163 * mini-trampolines.c
5164 (mono_delegate_trampoline): Call mono_debugger_trampoline_compiled()
5165 after compiling the method.
5167 2007-11-20 Martin Baulig <martin@ximian.com>
5170 (mono_debugger_insert_method_breakpoint): Moved into mono-debug-debugger.c.
5171 (mono_debugger_remove_breakpoint): Likewise.
5172 (mono_debugger_check_breakpoints): Likewise.
5174 * debug-debugger.c: Implement the new breakpoint interface here.
5176 2007-11-18 Zoltan Varga <vargaz@gmail.com>
5178 * mini-amd64.c (mono_arch_output_basic_block): Unify the implementation of
5179 CEE_CONV_I1/SEXT_I1 and I2 since they are the same.
5181 * mini-x86.c (mono_arch_output_basic_block): Ditto.
5183 2007-11-17 Zoltan Varga <vargaz@gmail.com>
5185 * mini-amd64.c (mono_arch_output_basic_block): Fix a typo.
5187 * mini-x86.c (mono_arch_get_inst_for_method): Remove code which is now in
5190 * mini-ia64.c (mono_arch_get_inst_for_method): Remove code which is now in
5193 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for methods
5194 returning a vtype in a register.
5196 * mini.c (mini_get_inst_for_method): Move the handling of the atomic operations
5197 here from the arch specific code.
5199 * mini-amd64.c (mono_arch_get_inst_for_method): Remove code which is now in
5202 * mini-amd64.c (mono_arch_output_basic_block): Add some micro optimizations.
5203 (mono_arch_emit_prolog): Increment maximum prolog size.
5205 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Move the implementation of the
5206 START_HANDLER/ENDFINALLY/ENDFILTER opcodes to mini-amd64.c.
5208 * mini-x86.c (get_call_info): Receive a MonoCompile instead of a
5209 MonoGenericSharingContext.
5211 * mini-ia64.c (get_call_info): Receive a MonoCompile instead of a
5212 MonoGenericSharingContext. Allocate memory from the cfg mempool.
5214 2007-11-15 Mark Probst <mark.probst@gmail.com>
5216 * mini.c, mini.h, generic-sharing.c: Functions for producing code
5217 which extract fields out of the runtime generic context. Full
5218 sharing of the NEWARR opcode.
5220 Thu Nov 15 14:20:21 CET 2007 Paolo Molaro <lupus@ximian.com>
5222 * abcremoval.c, mini.c, ssa.c, ssapre.c: updated to implement
5223 --enable-minimal=ssa.
5225 2007-11-13 Zoltan Varga <vargaz@gmail.com>
5227 * mini-trampolines.c (mono_delegate_trampoline): Update after
5228 mono_marshal_get_delegate_invoke () signature change.
5230 2007-11-13 Mark Probst <mark.probst@gmail.com>
5232 * mini.c: Removed the shared context in favor of the generic
5233 sharing context. Allocate the MonoJitInfo structure with room for
5234 the generic sharing context if it's needed.
5236 * mini.h: Remove MonoGenericSharingContext declaration. It's in
5237 domain-internals.h now.
5239 * mini-x86.c: Pass the generic sharing context to get_call_info ().
5241 * generic-sharing.c: Several changes for working without a shared
5242 context and instead operating on open types instead.
5244 2007-11-12 David S. Miller <davem@davemloft.net>
5246 * inssel-sparc.brg: Fix double instruction emit.
5248 2007-11-12 Zoltan Varga <vargaz@gmail.com>
5250 * mini.c (mono_jit_runtime_invoke): Avoid trying to compile the Array
5251 Get/Set/Address methods.
5253 * mini.c debug-debugger.c mini-trampolines.c: Update after
5254 mono_marshal_get_delegate_invoke signature change.
5256 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
5258 * cpu-arm.md: Increase the max size of OP_THROW to 24 bytes.
5259 This can happens with dynamic methods. Fixes the other bug in #322722.
5261 2007-11-12 Rodrigo Kumpera <rkumpera@novell.com>
5263 * tramp-arm.c (mono_arch_patch_callsite): Support patching
5266 * mini-arm.c (arm_patch): Implement patching of BX call
5267 sequence. Fixes one of the bugs in #322722.
5269 2007-11-03 David S. Miller <davem@huronp11.davemloft.net>
5271 * mini-sparc.c (mono_arch_flush_icache): Make more efficient
5272 under Linux. We only need to flush every 32-byte cache line.
5274 2007-11-07 Massimiliano Mantione <massi@ximian.com>
5277 move_basic_block_to_end: Add branches when needed, eventually creating
5279 optimize_branches: added a parameter that tells if it's ok to create
5280 new BBs (doing is "df_visit" has been called is (IMHO) a nightmare),
5281 and avoid calling move_basic_block_to_end when it's not ok.
5284 2007-11-07 Mark Probst <mark.probst@gmail.com>
5286 * mini.c: Abort inlining call to InitializeArray if something
5287 looks wrong. Let the icall handle it, which now has proper safety
5290 2007-11-05 Rodrigo Kumpera <rkumpera@novell.com>
5292 * mini.c (mono_spill_call): add support for soft-float.
5294 * mini.c (mono_method_to_ir): add support for soft-float
5295 to inlined functions that return float.
5297 * mini.c (mono_method_to_ir): add support for soft-float
5298 to cee_stsfld opcode on float fields.
5300 2007-11-05 Geoff Norton <gnorton@novell.com>
5302 * mini-x86.h: Fix the structure access for X86 Leopard.
5305 2007-11-05 Martin Baulig <martin@ximian.com>
5307 * mini-trampolines.c
5308 (mono_magic_trampoline): Call mono_debugger_trampoline_compiled()
5309 after compiling the method to notify the debugger.
5311 2007-11-05 Martin Baulig <martin@ximian.com>
5313 * debug-debugger.h (MonoDebuggerInfo): Use the new breakpoint tables.
5315 2007-11-02 Zoltan Varga <vargaz@gmail.com>
5317 * mini-sparc.c (EMIT_COND_SYSTEM_EXCEPTION_GENERAL): Applied patch from
5318 David Miller <davem@davemloft.net>. Allow larger offsets in branches.
5320 2007-11-01 Zoltan Varga <vargaz@gmail.com>
5322 * mini-amd64.c (mono_arch_emit_prolog): Check the domain as well for
5323 native-to-managed wrappers.
5325 2007-11-01 Geoff Norton <gnorton@novell.com>
5327 * mini-ppc.h, mini-x86.h: Handle Leopards renaming of some structure
5330 Wed Oct 31 20:23:14 CET 2007 Paolo Molaro <lupus@ximian.com>
5332 * mini.c, mini-x86.c: when getting back from unmanaged code
5333 to managed via a marshaled delegate we also need to set the
5336 Wed Oct 31 19:53:33 CET 2007 Paolo Molaro <lupus@ximian.com>
5338 * mini-amd64.c, mini-amd64.h, tramp-amd64.c: breakpoint table support
5341 Wed Oct 31 19:29:30 CET 2007 Paolo Molaro <lupus@ximian.com>
5343 * mini.c, mini.h, mini-x86, tramp-x86.c, mini-x86.h: added API to
5344 let the debugger or other external agents to tell the JIT when
5345 a sw breakpoint has been inserted in the code that the JIT needs
5346 to be able to inspect.
5348 2007-10-31 Martin Baulig <martin@ximian.com>
5351 (MonoDebuggerInfo): Remove `runtime_class_init'.
5353 2007-10-30 Martin Baulig <martin@ximian.com>
5356 (mono_debugger_thread_created): Added `MonoThread *' argument.
5357 (mono_debugger_extended_notification): New public method.
5358 (mono_debugger_trampoline_compiled): New public method.
5361 (MonoDebuggerThreadInfo): Added `thread' and
5362 `extended_notifications' fields.
5365 (debugger_executable_code_buffer): New static variable.
5368 (MonoDebuggerInfo): Added `executable_code_buffer',
5369 `executable_code_buffer_size', `breakpoint_info_area',
5370 `breakpoint_table' and `breakpoint_table_size'.
5372 2007-10-26 Rodrigo Kumpera <rkumpera@novell.com>
5374 * mini-arm.c (mono_arch_build_imt_thunk): Take the advantage
5375 that IP either is an unused value or the vtable pointer. IMT
5376 calls use vtable + offset now. Reduced by almost half the size
5379 2007-10-26 Jonathan Chambers <joncham@gmail.com>
5381 * mini-amd64.c: Begin Win64 port. Use AMD64_ARG_REG#
5382 defines to access param registers. Replace long usage with
5383 gsize as sizeof(long) != sizeof(void*) on Win64.
5385 * mini-amd64.h: Add %rdi and %rsi to MonoLMF structure
5386 on Win64. Fix intrinsic, use _AddressOfReturnAddress
5387 instead of non-existant _GetAddressOfReturnAddress.
5389 * tramp-amd64.c: Use AMD64_ARG_REG# defines to access
5390 param registers. Save/restore %rdi and %rsi in MonoLMF.
5392 * exceptions-amd64.c: Use AMD64_ARG_REG# defines to access
5393 param registers. Modify (throw_exception) signature to take
5394 %rdi and %rsi on Win64.
5396 Code is contributed under MIT/X11 license.
5398 Thu Oct 25 23:06:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
5400 * helpers.c: unlink debugging output files.
5402 2007-10-25 Zoltan Varga <vargaz@gmail.com>
5404 * mini.c: Move mono_create_ftnptr () to object.c.
5406 2007-10-24 Rodrigo Kumpera <rkumpera@novell.com>
5408 * helpers.c (mono_disassemble_code): MonoCompile parameter is now
5409 optional. This function can now be used to disassemble code generated
5410 outside the JIT such as trampolines and IMT thunks.
5412 * mini-arm.h: defined MONO_ARCH_HAVE_IMT.
5414 * mini-arm.c (decode_vcall_slot_from_ldr): added, extract the
5415 vtable pointer from a ldr instruction.
5417 * mini-arm.c (mono_arch_get_vcall_slot_addr): support the
5418 new IMT call sequence.
5420 * mini-arm.c (mono_arch_output_basic_block): emit the IMT
5421 call sequence for interface invocations.
5423 * mini-arm.c (mono_arch_emit_imt_argument): added, required
5424 for imt support. This function is empty since IMT on ARM requires no
5425 special handling on the IR side.
5427 * mini-arm.c (mono_arch_find_imt_method): added, required for
5430 * mini-arm.c (mono_arch_find_this_argument): added, required
5433 * mini-arm.c (arm_emit_value_and_patch_ldr): added, patches
5434 a ldr instruction to load a value stored in the code stream.
5436 * mini-arm.c (mono_arch_build_imt_thunk):added, required
5440 2007-10-23 Zoltan Varga <vargaz@gmail.com>
5442 * mini.c (mini_init): Install the jump trampoline callback.
5444 Tue Oct 23 17:07:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5446 * mini-trampolines.c: handle synchronized methods with the common
5447 vtable trampoline (bug #335601).
5449 2007-10-17 Zoltan Varga <vargaz@gmail.com>
5451 * mini-ia64.h mini-amd64.c: Add support for the common vtable trampoline.
5453 * inssel.brg (mini_emit_virtual_call): Fix the computation of ins->inst_offset on
5456 * mini-ia64.h mini-ia64.c: Add support for IMT.
5458 * mini-x86.c (mono_arch_emit_prolog): Increase the size allocated for the
5459 prolog. Fixes #331958.
5461 2007-10-15 Zoltan Varga <vargaz@gmail.com>
5463 * mini-sparc.h mini-sparc.c: Add support for the common vtable trampoline.
5465 Mon Oct 15 11:18:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5467 * mini-ppc.c, mini-ppc.h: ppc support for the common vtable
5470 Mon Oct 15 10:41:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5472 * mini-amd64.c, mini-amd64.h: amd64 support for the common vtable
5475 Mon Oct 15 10:39:26 CEST 2007 Paolo Molaro <lupus@ximian.com>
5477 * mini-x86.c, mini-x86.h: x86 support for the common vtable
5480 Mon Oct 15 10:37:15 CEST 2007 Paolo Molaro <lupus@ximian.com>
5482 * mini-trampolines.c: changed the magic rampoline to understand
5483 the common vtable trampoline method: the method to invoke is
5484 determined by the vtable displacement of the call.
5486 Mon Oct 15 10:35:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
5488 * mini.c, mini.h: register the common vtable trampoline if the
5489 architecture supports it.
5491 Mon Oct 15 09:50:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
5493 * cpu-amd64.md: use the correct max length for tls_get.
5495 2007-10-14 Zoltan Varga <vargaz@gmail.com>
5497 * mini.c (mono_method_to_ir): Use mini_get_class in CEE_LDELEM_ANY and
5498 CEE_STELEM_ANY. Fixes #333696.
5500 Thu Oct 11 18:04:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
5502 * exceptions-x86.c: provide more graceful handling of the case where
5503 we followed a bogus function pointer from managed code (bug #332866).
5505 2007-10-11 Mark Probst <mark.probst@gmail.com>
5507 * mini.h, mini.c: Introduced the MonoGenericSharingContext, which
5508 replaces the generic_shared flag and will carry more information
5511 * generic-sharing.c: Added mini_type_stack_size() which allows
5512 allows open types if given a generic sharing context.
5513 mini_get_basic_type_from_generic() takes a
5514 MonoGenericSharingContext* instead of a MonoCompile* now.
5516 * mini-alpha.c, mini-amd64.c, mini-arm.c, mini-hppa.c,
5517 mini-ia64.c, mini-mips.c, mini-ppc.c, mini-s390.c, mini-s390x.c,
5518 mini-sparc.c, mini-x86.c: Trivial changes required by the two
5519 changes above. Just passing arguments through to the right
5522 Wed Oct 10 19:44:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
5524 * mini-arm.c: unify the call emission to emit_code_seq().
5526 Wed Oct 10 13:05:46 CEST 2007 Paolo Molaro <lupus@ximian.com>
5528 * tramp-arm.c: reduced the trampoline size.
5530 2007-10-10 Mark Probst <mark.probst@gmail.com>
5532 * generic-sharing.c, mini.h, mini-amd64.c, mini-x86.c: Moved type
5533 variable handling out of arch-specific code.
5535 Wed Oct 10 10:49:28 CEST 2007 Paolo Molaro <lupus@ximian.com>
5537 * mini-arm.c: implemented fast delegate dispatch.
5539 2007-10-09 Zoltan Varga <vargaz@gmail.com>
5541 * mini-amd64.c (mono_arch_compute_omit_fp): Add more checks to ensure
5542 that fp elimination is turned off if the space required by locals is too
5545 Tue Oct 9 21:01:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
5547 * Makefile.am, mini-arm.c, mini-arm.h, tramp-arm.c: ported
5548 ARM to the new style trampoline.
5550 2007-10-09 Zoltan Varga <vargaz@gmail.com>
5552 * tramp-amd64.c: Rework the specific trampoline code to make it smaller.
5554 * mini-amd64.h mini-amd64.c: Export amd64_patch as mono_amd64_patch.
5556 2007-10-09 Martin Baulig <martin@ximian.com>
5559 (MonoDebuggerMetadataInfo): Added `field_info_type_offset' and
5560 `field_info_offset_offset'.
5562 Tue Oct 9 09:47:51 CEST 2007 Paolo Molaro <lupus@ximian.com>
5564 * mini-ppc.c, mini-ppc.h, mini-ops.h, inssel-ppc.brg, cpu-g4.md:
5565 removed more internal usage of the r11 register and made it available
5566 to the register allocator.
5568 2007-10-08 Mark Probst <mark.probst@gmail.com>
5570 * mini.c, mini-amd64.c, mini-x86.c: Allow open generic contexts
5571 when sharing generics and treat type variables as references.
5573 Mon Oct 8 10:55:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
5575 * mini-ppc.c: started removing the internal uses of register r11
5576 to eventually allow the register allocator to manage it as an
5577 additional available register.
5579 Mon Oct 8 14:25:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
5581 * tramp-amd64.c: fixed memory corruption in the trampoline generation.
5583 Mon Oct 8 12:06:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
5585 * tramp-ppc.c, tramp-x86.c: reduce the alignment requirements for
5586 specific trampolines as they are not performance critical as a jump
5587 target (maybe align as before only for AOT code?). This saves about
5588 200 KB of native code on x86 for monodevelop startup.
5590 Mon Oct 8 10:04:40 CEST 2007 Paolo Molaro <lupus@ximian.com>
5592 * tramp-ppc.c: reduce the size of the trampolines, saves 160KB on
5593 monodevelop startup.
5595 2007-10-06 Zoltan Varga <vargaz@gmail.com>
5597 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Allow signed displacements.
5599 * mini-sparc.h mini-sparc.c: Implement IMT support.
5601 * tramp-sparc.c (mono_arch_create_trampoline_code): Rework the trampoline code so
5602 its smaller and doesn't clobber sparc_g1.
5604 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Update after trampoline changes.
5606 Fri Oct 5 18:28:11 CEST 2007 Paolo Molaro <lupus@ximian.com>
5608 * mini-ppc.c: optimized the size of the IMT thunks a bit.
5610 Fri Oct 5 18:08:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
5612 * mini-ppc.c: implemented fast delegate invocation.
5614 Fri Oct 5 00:01:05 CEST 2007 Paolo Molaro <lupus@ximian.com>
5616 * mini-ppc.h, mini-ppc.c: IMT support for the PPC architecture.
5618 Thu Oct 4 22:04:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
5620 * mini-ppc.c, mini-ppc.h, tramp-ppc.c, Makefile.am: port the PPC
5621 code to the new style trampoline in preparation for IMT support.
5623 Thu Oct 4 19:01:59 CEST 2007 Paolo Molaro <lupus@ximian.com>
5625 * mini-ppc.c, tramp-ppc.c: don't use r13 as it's used by the PPC EABI
5626 systems already. This also reduces the specific trampiline sizes and
5627 prepares for the use of r12 as the IMT identifier register.
5629 Thu Oct 4 16:38:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5631 * mini-mips.h: endianess fix (simplified from a patch by
5632 Thomas Kunze <thommy@tabao.de>, bug #323737).
5634 Thu Oct 4 14:43:49 CEST 2007 Paolo Molaro <lupus@ximian.com>
5636 * exceptions-ppc.c, mini-ppc.h: refactor to use macros
5637 to access ucontext fields and enable netbsd support
5638 (partially from Magnus Henoch <mange@freemail.hu>).
5640 Thu Oct 4 12:35:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5642 * genmdesc.pl: patch from Henryk Plötz <henryk@openmoko.org> to
5643 use the preprocessor from the CPP env var if it is set.
5645 Wed Oct 3 17:11:38 CEST 2007 Paolo Molaro <lupus@ximian.com>
5647 * mini-trampolines.c: fixed an assertion and moved it earlier in the
5648 code, before interface_offset gets used.
5650 2007-10-02 Zoltan Varga <vargaz@gmail.com>
5652 * mini-trampolines.c (mono_convert_imt_slot_to_vtable_slot): Call
5653 mono_class_setup_vtable () before accessing klass->vtable.
5655 2007-10-01 Zoltan Varga <vargaz@gmail.com>
5657 * aot-compiler.c (get_plt_index): Rework the handling of wrappers to be not so
5660 Mon Oct 1 15:00:27 CEST 2007 Paolo Molaro <lupus@ximian.com>
5662 * mini.c, mini-trampolines.c, mini.h: enable the lazy filling of the
5663 IMT slots (this saves hundreds of KB of memory in programs like
5664 IronPython and Monodevelop).
5666 Mon Oct 1 14:44:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
5668 * mini.c: print the delegate counter.
5670 Mon Oct 1 14:36:50 CEST 2007 Paolo Molaro <lupus@ximian.com>
5672 * mini-x86.c: make it easier to enable the debugging code for IMT
5675 2007-09-28 Martin Baulig <martin@ximian.com>
5678 (MonoDebuggerMetadataInfo): Add `klass_image_offset',
5679 `mono_method_klass_offset' and `mono_method_token_offset'.
5681 2007-09-20 Mark Probst <mark.probst@gmail.com>
5683 * mini.c: First generics sharing implementation. Can only share
5684 in very simple cases. If sharing doesn't work it falls back to
5685 dedicated compilation.
5687 * mini.h: Flag in MonoCompile to specify whether generic
5688 compilation is shared. Flags enum for marking which generic inst
5689 of a context is used. Prototypes for helper functions.
5691 * generic-sharing.c: Helper functions for generic method sharing.
5693 * optflags-def.h: Optimization flag (gshared) for enabling generic
5694 method sharing added.
5696 * Makefile.am: generic-sharing.c added.
5698 2007-09-19 Daniel Nauck <dna@mono-project.de>
5700 * mini.c (mono_thread_abort): fixed typo in r86014. It should be '==' instead of '!='.
5702 2007-09-19 Massimiliano Mantione <massi@ximian.com>
5703 * mini.c (mono_thread_abort): Correctly handle ThreadAbortException,
5706 2007-09-19 Martin Baulig <martin@ximian.com>
5708 * mini.c (mini_cleanup): Only call mono_debugger_cleanup() here;
5709 mono_debug_cleanup() is now part of mono_cleanup().
5711 2007-09-18 Zoltan Varga <vargaz@gmail.com>
5713 * driver.c (mono_main): Fix a warning.
5715 2007-09-17 Zoltan Varga <vargaz@gmail.com>
5717 * aot-compiler.c: Optimize various parts when processing large assemblies.
5720 * mini.c (mono_patch_info_hash): Improve hash function.
5722 2007-09-14 Jonathan Chambers <joncham@gmail.com>
5724 * mini-exceptions.c: Add HAVE_UNISTD_H check around include.
5726 Code is contributed under MIT/X11 license.
5728 2007-09-14 Zoltan Varga <vargaz@gmail.com>
5730 * mini.c (mini_init): Fix a leak.
5732 * debug-mini.c (mono_debug_free_method_jit_info): Fix a leak.
5734 Fri Sep 14 12:53:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
5736 * mini.c: redirect string.InternalAllocStr() to the managed allocator.
5738 2007-09-14 Zoltan Varga <vargaz@gmail.com>
5740 * mini-amd64.c (mono_arch_find_imt_method): Add support for AOT code.
5742 2007-09-13 Zoltan Varga <vargaz@gmail.com>
5744 * Makefile.am generics-variant-types.2.il generics.cs: Add some generics
5747 * inssel.brg: Reorganize the isinst/castclass code to reduce code duplication.
5749 * mini.c (handle_alloc): Enable managed allocators in AOT code.
5751 * aot-compiler.c (encode_patch): Add support for MONO_WRAPPER_ALLOC.
5753 * aot-runtime.c (decode_patch_info): Ditto.
5755 2007-09-12 Jonathan Chambers <joncham@gmail.com>
5757 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement
5758 static case. Cache delegates in architecture specific code,
5759 based on number of parameters.
5761 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): Cache delegates
5762 in architecture specific code, based on number of parameters.
5764 * mini-trampolines.c (mono_delegate_trampoline): Architecture specific
5765 caching happen in architecture specific code now.
5767 Code is contributed under MIT/X11 license.
5769 2007-09-12 Jonathan Chambers <joncham@gmail.com>
5771 * mini.h, mini.c, mini-x86.c, mini-amd64.c, mini-hppa.c, mini-mips.c,
5772 mini-s390x.c, mini-arm.c, mini-ia64.c, mini-sparc.c, mini-ppc.c, mini-alpha.c,
5773 mini-s390.c: Add mono_arch_init and mono_arch_cleanup methods.
5775 Code is contributed under MIT/X11 license.
5777 2007-05-15 Massimiliano Mantione <massi@ximian.com>
5778 * mini.c: (mono_thread_abort) Fixed bug #82416.
5780 Tue Sep 11 16:15:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
5782 * mini.: hook the new managed GC allocation feature into the JIT.
5784 Tue Sep 11 16:14:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
5786 * mini.c: implementation for the new runtime tls opcode.
5788 2007-09-11 Martin Baulig <martin@ximian.com>
5791 (MonoDebuggerMetadataInfo): Add `mono_method_flags_offset' and
5792 `mono_method_inflated_offset'.
5794 2007-09-07 Zoltan Varga <vargaz@gmail.com>
5796 * driver.c mini.h mini.c: Add a new devel command line option for injecting
5797 async exceptions into a method.
5799 * mini-amd64.h mini-amd64.c: Implement injecting of async exceptions for the
5800 purpose of testing whenever the unwinder works at every instruction.
5802 Thu Sep 6 12:42:14 CEST 2007 Paolo Molaro <lupus@ximian.com>
5804 * mini.c: check accessibility of method used in ldftn (fixes
5807 2007-09-04 Zoltan Varga <vargaz@gmail.com>
5809 * mini-amd64.c (mono_arch_output_basic_block): Fix a warning.
5811 * inssel.brg: Fix a warning.
5813 2007-09-03 Martin Baulig <martin@ximian.com>
5815 * debug-debugger.c: `MONO_DEBUGGER_EVENT_INITIALIZE_MANAGED_CODE'
5816 now takes the `main_method' as argument.
5818 2007-09-02 Zoltan Varga <vargaz@gmail.com>
5820 * cpu-sparc.md (endfilter): Add missing src1:i argument.
5822 2007-08-30 Jonathan Chambers <joncham@gmail.com>
5824 * driver.c: include the cil-coff.h header on Windows.
5826 Code is contributed under MIT/X11 license.
5828 Thu Aug 30 16:17:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
5830 * mini.c, driver.c: don't include the cil-coff.h header.
5832 Thu Aug 30 14:50:53 CEST 2007 Paolo Molaro <lupus@ximian.com>
5834 * mini.c: flag places that needs fixes fo soft-float support.
5836 Wed Aug 29 18:26:20 CEST 2007 Paolo Molaro <lupus@ximian.com>
5838 * mini.h, inssel-float.brg: fix soft-float constant loads on big
5839 endian systems (partially from Dean Jenkins, bug #81924).
5841 2007-08-28 Mark Probst <mark.probst@gmail.com>
5843 * mini.c (check_linkdemand): Remove embedded reference object in
5844 call to LinkDemandSecurityException.
5845 (mono_jit_compile_method_inner): Call LinkDemandSecurityException
5846 with an IntPtr instead of a reference object.
5848 2007-08-28 Zoltan Varga <vargaz@gmail.com>
5850 * mini.c (handle_initobj): Handle alignment properly.
5852 * inssel.brg (mini_emit_memset): Ditto.
5854 * inssel.brg (mini_emit_memcpy): Ditto.
5856 * inssel-sparc.brg: Ditto.
5858 * mini.h mini.c inssel-*.brg: Pass alignment information to OP_MEMCPY/MEMSET.
5860 2007-08-26 Zoltan Varga <vargaz@gmail.com>
5862 * mini-exceptions.c (mono_handle_exception_internal): Skip the first frame for
5863 exceptions raised in unmanaged code. Fixes part of #82594.
5865 2007-08-24 Mark Probst <mark.probst@gmail.com>
5867 * mini.c (mono_method_to_ir), declsec.c
5868 (mono_declsec_linkdemand_aptc): Fixed custom attr leaks.
5870 2007-08-22 Martin Baulig <martin@ximian.com>
5873 (MonoDebuggerThreadInfo): New typedef.
5874 (mono_debugger_thread_table): New global variable.
5875 (mono_debugger_thread_created): New public function.
5876 (mono_debugger_thread_cleanup): New public function.
5880 - removed `get_current_thread' and `lookup_assembly'.
5881 - removed `data_table'.
5882 - added `thread_table'.
5885 (mono_thread_start_cb): Call mono_debugger_thread_created().
5886 (mono_thread_attach_cb): Likewise.
5887 (mini_thread_cleanup): Call mono_debugger_thread_cleanup().
5888 (mini_cleanup): Move mono_debug_cleanup() down, after free'ing the
5891 * driver.c (mono_main): Move mono_debug_init() up, before calling
5892 mini_init(); mono_debug_init_1() and mono_debug_init_2() are gone.
5894 Tue Aug 21 16:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
5896 * mini-x86.c, inssel-x86.brg: group multiple stack adjustments
5897 together when passing several arguments of type double (gives a small
5898 speedup and saves a few bytes of generated code).
5900 2007-08-20 Jb Evain <jbevain@novell.com>
5902 * mini.c (mono_method_to_ir): fix leak on InvalidProgramException.
5904 2007-08-20 Jb Evain <jbevain@novell.com>
5906 * mini.c (mono_method_to_ir): throw MethodAccessException
5907 and FieldAccessException instead of InvalidProgramException.
5909 2007-08-20 Mark Probst <mark.probst@gmail.com>
5911 * mini.c: CoreCLR security checks.
5913 * mini.h: Removed MonoSecurityMode (moved to
5914 metadata/security-manager.h) and mono_security_mode global var
5915 (replaced by set/get functions in security-manager.h).
5917 * driver.c: Added "core-clr-test" security mode for testing. Used
5918 set-function for setting security mode.
5920 2007-08-17 Mark Probst <mark.probst@gmail.com>
5922 * mini.c: MonoJitInfo's are freed hazardously now. Statistics for
5923 the new jit_info_table.
5925 * driver.c: Test code for the new jit_info_table (enabled by the
5926 define MONO_JIT_INFO_TABLE_TEST).
5928 2007-08-14 Zoltan Varga <vargaz@gmail.com>
5930 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
5931 detection of call <REG> instruction sequence. Fixes build on freebsd.
5933 2007-08-13 Zoltan Varga <vargaz@gmail.com>
5935 * mini-exceptions.c: Fix a warning.
5937 2007-08-11 Zoltan Varga <vargaz@gmail.com>
5939 * exceptions-amd64.c (mono_arch_handle_altstack_exception): Enable the new
5940 stack overflow handling code on amd64 too.
5942 * mini-exceptions.c (mono_setup_altstack): Make this use
5943 mono_thread_get_stack_bounds ().
5945 * mini-x86.h: Disable sigaltstack on solaris x86.
5947 2007-08-10 Zoltan Varga <vargaz@gmail.com>
5949 * mini-exceptions.c (mono_setup_altstack): Enable this to work on solaris x86.
5951 2007-08-10 Geoff Norton <gnorton@customerdna.com>
5953 * tramp-x86.c: Remove some unneeded alignment changes on Apple. Fixes #82387.
5955 2007-08-08 Zoltan Varga <vargaz@gmail.com>
5957 * mini-exceptions.c (mono_print_thread_dump): Enable this on amd64 too.
5959 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Fix a warning.
5961 2007-08-03 Neale Ferguson <neale@sinenomine.net>
5963 * mini-s390.c (add_general): Adjust offset calculation to take into account of rounding up
5966 Thu Aug 2 17:36:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
5968 * mini-ppc.c: avoid an invalid encoding of unsigned right shift by 0
5969 to be emitted (bug #82281).
5971 2007-08-01 Martin Baulig <martin@ximian.com>
5973 Merged the `debugger-dublin' branch.
5975 * debug-debugger.h (MonoDebuggerInfo):
5976 Removed the `old_*' compatibility entries.
5977 Added `debugger_version' and `data_table'.
5978 Renamed `get_method_addr_or_bpt' -> `insert_breakpoint'.
5979 Renamed `remove_method_breakpoint' -> `remove_breakpoint'.
5982 (MiniDebugMethodBreakpointInfo): Add `address_list'.
5983 (mono_debugger_check_breakpoints): Take a `MonoDebugMethodAddress *'
5984 instead of a `gconstpointer'.
5985 (mono_debugger_insert_method_breakpoint): Return a
5986 `MonoDebugMethodAddressList *'.
5988 2007-06-28 Martin Baulig <martin@ximian.com>
5990 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
5992 2007-08-01 Zoltan Varga <vargaz@gmail.com>
5994 * mini-amd64.h (MONO_INIT_CONTEXT_FROM_FUNC): Avoid using
5995 __builtin_frame_address () since it is broken on older gcc versions.
5997 Tue Jul 31 17:34:42 CEST 2007 Paolo Molaro <lupus@ximian.com>
5999 * mini.c, mini.h, mini-exceptions.c: added a bit of documentation
6000 on the stack overflow handling and made the managed stack overflows
6001 catchable in most cases using soft guard pages.
6002 * exceptions-x86.c: added code to restore the protection in the soft
6003 guard pages at the end of exception handling.
6005 2007-07-31 Zoltan Varga <vargaz@gmail.com>
6007 * mini.c (SIG_HANDLER_SIGNATURE): Fix a warning.
6009 Mon Jul 30 17:43:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
6011 * exceptions-ppc.c, mini-ppc.h: arch-specific stack overflow
6014 Mon Jul 30 17:38:13 CEST 2007 Paolo Molaro <lupus@ximian.com>
6016 * mini-alpha.h, mini-ia64.h, mini-sparc.h: disable the altstack
6017 signal handling support until it has been ported to the new mechanism.
6018 * mini.c: fixed stack overflow detection and use the new
6019 architecture code to handle signals on the altstack.
6021 Mon Jul 30 17:33:02 CEST 2007 Paolo Molaro <lupus@ximian.com>
6023 * exceptions-amd64.c, mini-amd64.h: amd64 code to handle
6024 stack overflows on the alt stack.
6026 Mon Jul 30 17:29:56 CEST 2007 Paolo Molaro <lupus@ximian.com>
6028 * exceptions-x86.c, mini-x86.h, mini.h: new code to handle
6029 stack overflows on the alt stack.
6031 Mon Jul 30 11:50:06 CEST 2007 Paolo Molaro <lupus@ximian.com>
6033 * exceptions-ppc.c: cleanup preparing for altstack support.
6035 Mon Jul 30 11:31:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
6037 * exceptions-arm.c: cleanup preparing for altstack support.
6039 2007-07-27 Mark Probst <mark.probst@gmail.com>
6041 * mini.c (print_jit_stats): Output hazard pointer stats.
6043 2007-07-26 Mark Probst <mark.probst@gmail.com>
6045 * driver.c, mini.c: Replaced security mode flags with a single
6048 Thu Jul 26 20:12:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
6050 * mini.c, mini-exceptions.c: cleanup the sigaltstack code.
6052 2007-07-25 Mark Probst <mark.probst@gmail.com>
6054 * mini.c, mini.h, driver.c (mono_main): Added command-line flag
6055 (which doesn't do anything yet) for activating Core CLR
6056 (Silverlight) security.
6058 Tue Jul 24 21:16:17 CEST 2007 Paolo Molaro <lupus@ximian.com>
6060 * mini-codegen.c: work around a possible gcc bug on arm.
6062 Tue Jul 24 17:20:19 CEST 2007 Paolo Molaro <lupus@ximian.com>
6064 * driver.c, mini-x86.h, mini-amd64.h: print a nice error
6065 message for platforms that don't support AOT compilation.
6067 Mon Jul 23 10:29:29 CEST 2007 Paolo Molaro <lupus@ximian.com>
6069 * mini.h, mini.c, driver.c: temporary smcs hack.
6071 Mon Jul 23 09:29:34 CEST 2007 Paolo Molaro <lupus@ximian.com>
6073 * mini-arm.h, mini-arm.c: arm EABI fixes.
6075 2007-07-22 Zoltan Varga <vargaz@gmail.com>
6077 * exceptions-x86.c (mono_arch_find_jit_info): Handle the lmf->method == NULL
6080 * tramp-x86.c (mono_arch_create_trampoline_code): Only set lmf->method for
6081 trampolines taking a method argument.
6083 * mini-x86.h (MonoLMF): Add an 'esp' field plus comments.
6085 * mini-x86.c (mono_arch_emit_prolog): Update after changes to the LMF structure.
6086 * tramp-x86.c (mono_arch_create_trampoline_code): Ditto.
6088 * exceptions-x86.c (mono_arch_get_jit_info): Properly clean up the stack after
6089 JIT compilation throws an exception. Fixes #82050.
6091 2007-07-19 Mark Probst <mark.probst@gmail.com>
6093 * mini.c: Removed the MonoLoaderErrorKind enum and replaced it
6094 with the MONO_EXCEPTION_ defines.
6096 2007-07-17 Zoltan Varga <vargaz@gmail.com>
6098 * mini-amd64.c (mono_arch_find_imt_method): Handle mov reg,IMM64 case. Fixes
6101 * mini-amd64.c (mono_arch_find_imt_method): Add some debug code to help find out
6102 the cause of an assertion.
6104 Mon Jul 16 19:31:21 CEST 2007 Paolo Molaro <lupus@ximian.com>
6106 * mini.c, jit-icalls.c: mono_get_inflated_method() is obsolete,
6109 2007-07-15 Zoltan Varga <vargaz@gmail.com>
6111 * mini-amd64.c (mono_arch_build_imt_thunk): Remove the non-32bit MonoMethod
6112 assert. Should fix #82103.
6114 2007-07-14 Zoltan Varga <vargaz@gmail.com>
6116 * mini-exceptions.c (mono_jit_walk_stack_from_ctx): Use MONO_CONTEXT_GET_SP ()
6117 here too. Fixes #82095.
6119 * mini-amd64.c (mono_arch_build_imt_thunk): Add support for non-32bit MonoMethod
6122 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a couple asserts.
6124 * mini-amd64.h: Enable IMT for amd64.
6126 * mini-amd64.c (mono_arch_build_imt_thunk): Optimize IMT thunk size.
6128 2007-07-12 Zoltan Varga <vargaz@gmail.com>
6130 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for IMT call sequences.
6132 2007-07-12 Mark Probst <mark.probst@gmail.com>
6134 * mini.c (check_linkdemand, mono_method_to_ir): Abort compilation
6135 as soon as check_linkdemand sets an exception_type.
6137 Thu Jul 12 12:18:22 CEST 2007 Paolo Molaro <lupus@ximian.com>
6139 * mini-x86.c: fixed offsets for IMT call sequence.
6140 * mini-x86.h: enable IMT again.
6142 2007-07-11 Zoltan Varga <vargaz@gmail.com>
6144 * trace.c (mono_trace_enter_method): Decode MonoType too.
6146 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Handle signed displacements too.
6148 * mini.h mini-x86.h mini-trampolines.c: Change the signature of mono_arch_find_imt_method () to pass the calling code address too.
6150 * mini-amd64.c: Add preliminary IMT implementation.
6152 Wed Jul 11 18:21:30 CEST 2007 Paolo Molaro <lupus@ximian.com>
6154 * mini-x86.c: adjusted mono_arch_get_vcall_slot_addr () to
6155 understand the new IMT-base interface invocation (thanks to
6156 Daniel Nauck for the report and the remote debugging session).
6158 Wed Jul 11 14:54:39 CEST 2007 Paolo Molaro <lupus@ximian.com>
6160 * mini-x86.c: size and speed optimizations for the IMT bsearch.
6162 2007-07-11 Zoltan Varga <vargaz@gmail.com>
6164 * Makefile.am (aotcheck): Make this actually use the AOTed code.
6166 Wed Jul 11 12:41:32 CEST 2007 Paolo Molaro <lupus@ximian.com>
6168 * mini-trampolines.c: implement AOT IMT support.
6169 * mini-x86.h: enable IMT support for wider testing.
6171 2007-07-10 Zoltan Varga <vargaz@gmail.com>
6173 * inssel.brg (emit_imt_argument): Add aot support here.
6175 * aot-runtime.c (decode_patch_info): Fix reading of MONO_PATCH_INFO_METHOD.
6177 Tue Jul 10 17:50:58 CEST 2007 Paolo Molaro <lupus@ximian.com>
6179 * mini-x86.c, mini-x86.h, tramp-x86.c: x86 arch-specific changes
6180 of the IMT implementation, partially from massi, with my
6181 implementation of the bsearch sequence. Disabled by default until
6182 the AOT code is implemented.
6184 2007-07-10 Zoltan Varga <vargaz@gmail.com>
6186 * cpu-x86.md: The source argument of sext_i1/i2 must by a byte reg.
6188 * inssel-x86.brg: Add reg:ldind.i1(regvar) rules. Fixes #82056.
6190 Tue Jul 10 17:33:12 CEST 2007 Paolo Molaro <lupus@ximian.com>
6192 * inssel.brg, mini.c, mini.h, mini-trampolines.c:
6193 arch-independent IMT JIT code from Massimiliano
6194 Mantione (massi@ximian.com) with small cleanups from me.
6196 Tue Jul 10 13:07:24 CEST 2007 Paolo Molaro <lupus@ximian.com>
6198 * Makefile.am: fix svn invocation to get the svn revision to be
6199 independent of the local language (build fix).
6201 2007-07-09 Mark Probst <mark.probst@gmail.com>
6203 * mini.c (inline_method): Reset cfg->exception_type if the
6204 inlining is aborted. Fixes: 82049.
6206 Mon Jul 9 17:26:47 CEST 2007 Paolo Molaro <lupus@ximian.com>
6208 * mini.c: remove assert from exception handling code when exception_ptr
6211 2007-07-05 Zoltan Varga <vargaz@gmail.com>
6213 * mini.c (mono_codegen): Add an assert.
6215 * mini-x86.c (mono_arch_emit_prolog): Allocate space for the profiler method
6216 enter and leave code.
6217 * mini-amd64.c (mono_arch_emit_prolog): Likewise.
6219 Thu Jul 5 20:12:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
6221 * mini-ppc.c: fixed memory corruption for localloc(0)
6224 2007-07-05 Zoltan Varga <vargaz@gmail.com>
6226 * mini.c: Fix warnings.
6228 Wed Jul 4 15:30:36 CEST 2007 Paolo Molaro <lupus@ximian.com>
6230 * optflags-def.h, mini-x86.c: added sse2 optimization flag and use it
6231 to emit better double->int conversions.
6233 Tue Jul 3 19:42:16 CEST 2007 Paolo Molaro <lupus@ximian.com>
6235 * mini.c: the provided Min/Max optimizations are valid for unisgned
6238 2007-07-03 Rodrigo Kumpera <rkumpera@novell.com>
6240 * 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
6242 2007-06-28 Miguel de Icaza <miguel@novell.com>
6244 * mini.c (mono_running_on_valgrind): Add support for reporting the
6245 method and its boundaries to valgrind.
6247 2007-06-28 Martin Baulig <martin@ximian.com>
6249 * debug-debugger.h (MonoDebuggerInfo): Added `debugger_version'.
6251 2007-06-25 Zoltan Varga <vargaz@gmail.com>
6253 * ssa.c (visit_inst): Add support for OP_BR. Fixes #81946.
6255 * generic.2.cs: Add new test case.
6257 2007-06-25 Martin Baulig <martin@ximian.com>
6259 Merged the `debugger-dublin' branch.
6262 (mono_debugger_insert_method_breakpoint): New public method.
6263 (mono_debugger_remove_method_breakpoint): Likewise.
6264 (mono_debugger_check_breakpoints): New static method.
6265 (mono_debug_close_method): Call mono_debugger_check_breakpoints().
6267 * debug-debugger.h (MonoDebuggerInfo):
6268 Renamed (to keep backward compatibility in the vtable):
6269 `insert_breakpoint' -> `old_insert_breakpoint'.
6270 `remove_breakpoint' -> `old_remove_breakpoint'.
6271 `create_string' -> `old_create_string'.
6272 `lookup_class' -> `old_lookup_class'.
6273 `lookup_type' -> removed; changed into a dummy field.
6274 `lookup_assembly' -> `old_lookup_assembly'.
6275 Added (same functionality, but different signature):
6276 `create_string', `lookup_class', `lookup_assembly'
6278 `get_method_addr_or_bpt', `remove_method_breakpoint',
6279 `runtime_class_init'.
6281 * debug-debugger.c: Merged the `debugger-dublin' branch.
6283 2007-06-23 Zoltan Varga <vargaz@gmail.com>
6285 * mini-amd64.c (peephole_pass_1): Optimize away moves at the beginning of the bb as
6287 (peephole_pass): Likewise.
6289 Fri Jun 22 09:17:08 CEST 2007 Paolo Molaro <lupus@ximian.com>
6291 * driver.c: hopefully make setaffinity work also for ancient
6294 2007-06-22 Atsushi Enomoto <atsushi@ximian.com>
6296 * driver.c : win32 build fix.
6298 Thu Jun 21 19:24:03 CEST 2007 Paolo Molaro <lupus@ximian.com>
6300 * driver.c: check for the MONO_NO_SMP env var and bind to a single
6301 processor if it is set.
6303 2007-06-21 Martin Baulig <martin@ximian.com>
6305 * debug-mini.h: New file.
6308 (mono_debugger_insert_breakpoint_full): Moved here from
6309 ../metadata/mono-debug-debugger.c.
6310 (mono_debugger_remove_breakpoint): Likewise.
6311 (mono_debugger_breakpoint_callback): Likewise.
6313 2007-06-15 Raja R Harinath <rharinath@novell.com>
6315 * jit-icalls.c (mono_helper_compile_generic_method): Update to
6316 changes in MonoGenericClass.
6318 2007-06-14 Zoltan Varga <vargaz@gmail.com>
6320 * mini-codegen.c (mono_opcode_to_type): Fix ia64 build.
6322 2007-06-14 Raja R Harinath <rharinath@novell.com>
6324 * jit-icalls.c (mono_helper_compile_generic_method): Update to
6325 removal of MonoGenericMethod.
6327 Thu Jun 14 12:42:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
6329 * mini-exceptions.c: hooks for the exception events profiling API.
6331 2007-06-14 Randolph Chung <tausq@debian.org>
6333 * Makefile.ma: Add hppa target.
6334 * mini-arch.h: Include mini-hppa.h
6335 * cpu-hppa.md, exceptions-hppa.c, inssel-hppa.brg, mini-hppa.c,
6336 mini-hppa.h, tramp-hppa.c: New files for 32-bit HPPA port.
6337 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6339 2007-06-14 Randolph Chung <tausq@debian.org>
6341 * inssel.brg: Add rules for "chained" compare-branch operations so that
6342 a single compare op can affect multiple branches. Adjust cost for
6343 OP_CEQ/OP_CGT/OP_CGT_UN/OP_CLT/OP_CLT_UN.
6344 * inssel-long32.brg: Update rules to use compare-branch macros. Adjust
6345 cost for some rules so that they can more easily be overridden by
6346 per-arch rules (with fixes from lupus).
6347 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6349 2007-06-13 Randolph Chung <tausq@debian.org>
6351 * mini-ops.h: Reorder branch ops so that they match the order of the
6352 corresponding CEE_* ops. The code expects them this way.
6353 Add new ops for HPPA target.
6354 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6356 2007-06-13 Randolph Chung <tausq@debian.org>
6358 * mini-exceptions.c: Handle cases where the stack grows towards
6360 Contributed under the X11 license (http://bugzilla.ximian.com/show_bug.cgi?id=81866).
6362 Wed Jun 13 19:13:23 CEST 2007 Paolo Molaro <lupus@ximian.com>
6364 * jit-icalls.c, mini.h, mini.c: added virtual generic invoke
6366 * driver.c: explain where a non-matching corlib is found.
6368 2007-06-13 Mark Probst <mark.probst@gmail.com>
6370 * mini.c (print_jit_stats): Output dynamic code allocation stats.
6372 2007-06-10 Sanghyeon Seo <sanxiyn@gmail.com>
6374 * mini-exceptions.c: Generate a method profile leave event during
6375 an exception to ensure that the profiler gets notified.
6377 2007-06-07 Zoltan Varga <vargaz@gmail.com>
6379 * mini-amd64.c (peephole_pass): Merge some small changes from the linear-ir
6382 * cpu-amd64.md: Add long_and/or/xor opcodes.
6384 2007-06-06 Wade Berrier <wberrier@novell.com>
6386 * cpu-s390x.md (shr_imm): Correct the length of shr_imm instruction.
6387 (./class/lib/monolite/mcs.exe:25498): WARNING **: wrong maximal instruction
6388 length of instruction shr_imm (expected 8, got 10)
6390 2007-06-06 Zoltan Varga <vargaz@gmail.com>
6392 * mini-ia64.c (mono_arch_output_basic_block): Really fix the build.
6394 2007-06-06 Mark Probst <mark.probst@gmail.com>
6396 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
6397 MonoInternalHashTable again (fixed bug in the internal hash table
6400 2007-06-06 Mark Probst <mark.probst@gmail.com>
6402 * mini.c, driver.c: Reverted the MonoInternalHashTable changes.
6403 Have to figure out what makes it crash the SWF regression.
6405 2007-06-05 Zoltan Varga <vargaz@gmail.com>
6407 * mini-ia64.c (mono_arch_lowering_pass): Fix ia64 build.
6409 Tue Jun 5 17:40:04 CEST 2007 Paolo Molaro <lupus@ximian.com>
6411 * mini.c: optimize out the type check when storing null in a
6414 2007-06-04 Mark Probst <mark.probst@gmail.com>
6416 * mini.c, driver.c: Changed MonoDomain.jit_code_hash to a
6417 MonoInternalHashTable.
6419 Mon Jun 4 11:29:43 CEST 2007 Paolo Molaro <lupus@ximian.com>
6421 * inssel.brg, mini.c, mini-ops.h: optimized Math.Mini/Max
6422 signed integer methods.
6424 2007-06-02 Zoltan Varga <vargaz@gmail.com>
6426 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case
6427 permanently since the current approach doesn't work.
6429 2007-06-02 Zoltan Varga <vargaz@gmail.com>
6431 * inssel.brg (stmt): Only call delegate->invoke_impl if
6432 MONO_ARCH_HAVE_CREATE_DELEGATE_TRAMPOLINE is defined.
6434 2007-06-01 Zoltan Varga <vargaz@gmail.com>
6436 * mini-amd64.c (mono_arch_output_basic_block): Unify div/rem opcodes and handle
6437 the sreg2==rdx case.
6439 * mini-amd64.c cpu-amd64.md: Correct length of r4const instruction and take into
6440 account if it contains a rex prefix.
6441 (peephole_pass): Handle OP_FMOVE as well.
6443 2007-06-01 Zoltan Varga <vargaz@gmail.com>
6445 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Disable the static case for now
6446 as it causes regressions.
6448 2007-05-31 Zoltan Varga <vargaz@gmail.com>
6450 * mini-x86.c (mono_arch_get_delegate_invoke_impl): Implement support for the
6451 static case as well.
6453 * tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.
6455 * mini-x86.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
6456 (mono_arch_get_this_arg_from_call): Ditto.
6458 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Removed.
6460 * inssel.brg (mini_emit_virtual_call): Call delegate->Invoke through the delegate's
6463 * mini-amd64.c (mono_arch_get_delegate_invoke_impl): New arch dependent function.
6464 (mono_arch_get_this_arg_from_call): Ditto.
6466 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Removed.
6468 * mini-trampolines.c (mono_delegate_trampoline): Complete rewrite. On first call,
6469 try to create optimized invoke code and use that for further invocations.
6470 Otherwise, use the original mono_marshal_get_delegate_invoke () implementation.
6472 * mini-x86.h mini-ia64.h: Remove MONO_ARCH_HAS_CREATE_DELEGATE_TRAMPOLINE for now.
6474 2007-05-29 Rodrigo Kumpera <kumpera@gmail.com>
6476 * inssel.brg (mini_emit_virtual_call): Statically dispatch virtual calls to
6477 sealed classes or methods.
6478 *devirtualization.cs: tests for the new optimization
6480 2007-05-29 Zoltan Varga <vargaz@gmail.com>
6482 * liveness.c (update_gen_kill_set): No need to set VOLATILE flags here, it is done
6483 by the update_volatile () function.
6485 2007-05-27 Zoltan Varga <vargaz@gmail.com>
6487 * driver.c (mono_main): Call g_thread_init () early since newer glib versions
6490 * abcremoval.c (mono_perform_abc_removal): Avoid using alloca.
6492 2007-05-24 Jonathan Chambers <joncham@gmail.com>
6494 * mini.c: Add configure checks for header files.
6495 * mini-x86.c: Add configure checks for header files.
6496 * trace.c: Add configure checks for header files.
6497 * aot-runtime.c: Add configure checks for header files.
6498 * aot-compiler.c: Add configure checks for header files.
6499 * driver.c: Add configure checks for header files.
6500 * mini-codegen.c: Add configure checks for header files.
6502 Code is contributed under MIT/X11 license.
6504 2007-05-22 Zoltan Varga <vargaz@gmail.com>
6506 * mini-ia64.c (mono_arch_lowering_pass): Fix the handling of
6507 icompare_imm -128 + op_iclt. Fixes #81703.
6509 2007-05-19 Zoltan Varga <vargaz@gmail.com>
6511 * mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
6513 2007-05-15 Massimiliano Mantione <massi@ximian.com>
6515 * inssel.brg: added "mini_emit_load_intf_bit_reg_vtable", and used it
6516 inside "mini_emit_isninst_iface_cast" and "mini_emit_castclass_iface"
6517 so that all isinst checks now use "interface_bitmap".
6519 2007-05-15 Zoltan Varga <vargaz@gmail.com>
6521 * cpu-amd64.md (jmp): Fix a warning.
6523 * inssel.brg (CEE_SWITCH): Hopefully fix #80738.
6525 * basic.cs: Add new regression test.
6527 * basic.cs: Remove test which is now in basic-long.cs.
6529 * mini-ia64.c (mono_arch_output_basic_block): Sign extend in CEE_CONV_I8/CEE_CONV_I.
6531 * basic-long.cs: Add new test.
6533 2007-05-13 Zoltan Varga <vargaz@gmail.com>
6535 * mini-sparc.c (mono_spillvar_offset_float): Fix sparc build.
6537 2007-05-12 Zoltan Varga <vargaz@gmail.com>
6539 * cpu-x86.md minix-86.c: Add a peephole_pass_1 () as on amd64.
6541 * mini-x86.c (mono_arch_output_basic_block): Use mono_opcode_to_cond () in a few
6544 * mini-x86.c (mono_arch_emit_exceptions): Decrease the size of the exception
6545 throwing code a bit.
6547 * exceptions-x86.c (mono_arch_get_throw_corlib_exception): Decrease the size of
6548 the exception throwing code a bit.
6550 * mini-x86.c (get_call_info): Allocate result from a mempool.
6552 2007-05-11 Zoltan Varga <vargaz@gmail.com>
6554 * aot-compiler.c (find_typespec_for_class): Fix the assert.
6556 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
6558 * mini.h (MonoCompile): Add 'token_info_hash' field.
6560 * mini.c: Save token->method associations during compilation so the AOT
6561 compiler can use it.
6563 * aot-compiler.c aot-runtime.c: Add support for compiling non-generic methods
6564 which reference generic classes and methods.
6566 2007-05-10 Zoltan Varga <vargaz@gmail.com>
6568 * mini.h mini-<ARCH>.h: Get rid of MONO_ARCH_HAS_XP_LOCAL_REGALLOC.
6570 * aot-compiler.c (compile_method): Fix a typo in a comment.
6572 * aot-runtime.c (decode_cached_class_info): Skip generic types.
6574 * aot-compiler.c: Add minimal support for AOTing generic code by skipping
6577 * mini.c (mono_method_to_ir): Disable AOT when calling helper_compile_generic_method.
6579 2007-05-09 Zoltan Varga <vargaz@gmail.com>
6581 * mini.h (MonoCompile): Add 'args' field.
6583 * mini.c (mono_compile_create_vars): Store variables representing the arguments
6586 * mini-<ARCH>.c: Use cfg->args for accessing the method arguments.
6588 2007-05-08 Zoltan Varga <vargaz@gmail.com>
6590 * mini.c (mono_compile_get_interface_var): Remove this unused function.
6592 * mini-ops.h inssel.brg mini-<ARCH>.c: Add a new opcode for ckfinite as well.
6594 * mini-ops.h: Introduce new opcodes used in the IR instead of the original CEE_
6595 opcodes for some opcodes.
6597 * mini.h *.brg *.c: Use the new opcodes.
6599 2007-05-08 Massimiliano Mantione <massi@ximian.com>
6601 * mini.h: Bumped aot revision.
6603 * inssel.brg: modified code generation of type checks for interfaces
6604 to use the new "MonoClass.interface_bitmap" instead of the old
6605 "MonoClass.interface_offsets".
6607 2007-04-30 Zoltan Varga <vargaz@gmail.com>
6609 * cpu-amd64.md (jmp): Increase the maximum size of the jmp opcode to 128.
6611 2007-04-29 Zoltan Varga <vargaz@gmail.com>
6613 * abcremoval.c (summarize_integer_value): Handle OP_LCONV_TO_I4 to fix abcrem on
6616 2007-04-27 Neale Ferguson <neale@sinenomine.net>
6618 * mini-s390x.c: Fix MONO_TYPE_VALUETYPE processing.
6620 2007-04-27 Wade Berrier <wberrier@novell.com>
6622 * mini-s390x.c: Remove redeclaration of CompRelation and CompType (defined in
6623 mini.h) to fix build.
6625 2007-04-26 Zoltan Varga <vargaz@gmail.com>
6627 * mini-amd64.c (peephole_pass_1): Fix and reenable this pass.
6629 * mini-amd64.c (mono_arch_local_regalloc): Disable the new peephole_pass_1 as it
6630 causes the corlib unit tests to fail.
6632 2007-04-25 Zoltan Varga <vargaz@gmail.com>
6634 * mini-codegen.c (mono_opcode_to_type): Fix a bug in the previous patch.
6636 * mini-amd64.c (peephole_pass_1): New pass to perform before local regalloc.
6638 * mini-codegen.c (mono_opcode_to_cond): New helper function to convert conditional
6639 opcodes to the comparison relations.
6641 * mini-codegen.c (mono_opcode_to_type): New helper function to convert conditional
6642 opcodes to their types.
6644 * mini-ia64.c mini-amd64.c: Use mono_opcode_to_cond and mono_opcode_to_type.
6646 * mini-amd64.c (get_call_info): Allocate the result from the cfg mempool and cache
6647 it in cfg->arch.cinfo.
6649 * local-propagation.c (mono_local_cprop_bb): Fix a warning.
6651 * mini.h mini.c branch-opts.c: Change bbhash to be an array and store it in
6652 cfg->cil_offset_to_bb.
6654 2007-04-24 Zoltan Varga <vargaz@gmail.com>
6656 * liveness.c (optimize_initlocals): New mini-pass to optimize away dead assignments
6657 created becase of initlocals.
6659 2007-04-23 Zoltan Varga <vargaz@gmail.com>
6661 * mini-alpha.c cpu-alpha.md: More alpha port work from
6662 Sergey Tikhonov <tsv@solvo.ru>.
6664 2007-04-21 Andreas Faerber <andreas.faerber@web.de>
6666 * Makefile.am (BUILT_SOURCES): Fix for automake 1.6.x. Fixes #81417.
6668 2007-04-19 Zoltan Varga <vargaz@gmail.com>
6670 * cpu-s390.md (break): Correct the length of break instruction.
6672 Thu Apr 19 16:28:52 CEST 2007 Paolo Molaro <lupus@ximian.com>
6674 * mini.c: fix a couple of soft-float issues and comments.
6676 2007-04-15 Miguel de Icaza <miguel@novell.com>
6678 * trace.c (is_filenamechar): - is also a filename char.
6680 2007-04-15 Neale Ferguson <neale@sinenomine.net>
6682 * mini-s390.c: Correct checking for enum type in return value processing.
6684 2007-04-14 Raja R Harinath <rharinath@novell.com>
6686 * Makefile.am (BUILT_SOURCES): Add 'version.h'.
6687 (version.h): Makefile is in the build directory.
6689 2007-04-06 Andreas Faerber <andreas.faerber@web.de>
6691 * mini-amd64.h: fix for assertion failure on Solaris/amd64
6693 2007-04-11 Martin Baulig <martin@ximian.com>
6695 * mini.c (can_access_member): Fix handling of generic classes;
6698 2007-04-10 Zoltan Varga <vargaz@gmail.com>
6700 * aot-runtime.c (mono_aot_plt_resolve): Fix disabling of AOT. Fixes #81316.
6702 2007-04-05 Zoltan Varga <vargaz@gmail.com>
6704 * aot-runtime.c: Fix disabling of AOT. Fixes #81316.
6706 Fri Mar 23 20:25:31 CET 2007 Paolo Molaro <lupus@ximian.com>
6708 * mini-codegen.c: make sure the right spill amount is
6709 used for fp or integer registers (fixes the float_sub_spill() on ppc).
6711 Fri Mar 23 19:43:35 CET 2007 Paolo Molaro <lupus@ximian.com>
6713 * mini-ppc.c: fixes for the fp_branch_nan test.
6715 2007-03-23 Zoltan Varga <vargaz@gmail.com>
6717 * basic.cs: Comment out new test which still fails on ia64.
6719 Fri Mar 23 15:54:23 CET 2007 Paolo Molaro <lupus@ximian.com>
6721 * mini.c: immediate shifted or fix (mono_metadata_user_string assert).
6723 Fri Mar 23 12:53:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6725 * mini-ppc.c, mini-ppc.h: struct passing ABI fix (bug #77968).
6727 2007-03-22 Zoltan Varga <vargaz@gmail.com>
6729 * cfold.c (FOLD_BINOP): Cast the result to gint32 to prevent overflow problems
6730 on 64 bit machines. Fixes part of #80738.
6732 * basic.cs: Add regression test.
6734 2007-03-17 Zoltan Varga <vargaz@gmail.com>
6736 * inssel.brg basic.cs: Revert previous change to fix build.
6738 * inssel.brg (SWITCH): Clean out the upper word of the switch value on 64 bit
6741 * inssel.brg (SWITCH): Use an integer comparison. Fixes #80738.
6743 * basic.cs: Add new regression test.
6745 2007-03-17 Zoltan Varga <vargaz@gmail.com>
6747 * mini-ia64.c (mono_arch_emit_prolog): Fix an assert when a function has too
6750 2007-03-16 Neale Ferguson <neale@sinenomine.net>
6752 * cpu-s390x.md: Correct length of break instruction.
6754 2007-03-16 Neale Ferguson <neale@sinenomine.net>
6756 * mini-s390x.c, cpu-s390x.md: Fix #80507 for s390x.
6757 * mini-s390.c, cpu-s390.md: Fix #80507 for s390.
6759 2007-03-15 Jonathan Chambers <joncham@gmail.com>
6761 * *.c: Begin WIN64 port.
6762 * mini.c: Use correct register in profiler.
6763 * mini-amd64.c: No inline assembly on Win64.
6764 * mini-amd64.h: Implement MONO_INIT_CONTEXT_FROM_FUNC for Win64.
6765 Only define MONO_ARCH_USE_SIGACTION on non-windows platforms.
6766 * exceptions-amd64.c: Only need gregs_from_ucontext if MONO_ARCH_USE_SIGACTION
6767 is defined. Implement mono_arch_sigctx_to_monoctx, mono_arch_monoctx_to_sigctx, and
6768 mono_arch_ip_from_context for Win64.
6770 Contributed under MIT/X11 license.
6772 2007-03-15 Zoltan Varga <vargaz@gmail.com>
6774 * exceptions-amd64.c (seh_handler): Ditto.
6776 * exceptions-x86.c (seh_handler): Fix a memory leak.
6778 Thu Mar 15 13:47:59 CET 2007 Paolo Molaro <lupus@ximian.com>
6780 * mini-arm.c, mini-mips.c, mini-ppc.c, mini-s390.c,
6781 mini-s390x.c: fixed peephole optimizations to deal
6782 correctly with 1 and 2 byte reload avoidance.
6784 Thu Mar 15 10:17:54 CET 2007 Paolo Molaro <lupus@ximian.com>
6786 * cpu-s390.md, cpu-s390x.md: update localloc length.
6788 Wed Mar 14 21:00:19 CET 2007 Paolo Molaro <lupus@ximian.com>
6790 * cpu-g4.md: added missing descriptions.
6792 2007-03-14 Miguel de Icaza <miguel@novell.com>
6794 * Makefile.am: Add support so the tail tests are not executed on
6795 PowerPC as that is a known limitation of the PowerPC port.
6797 2007-03-13 Jonathan Chambers <joncham@gmail.com>
6799 * runmdesc.bat: Move to msvc directory.
6801 2007-03-13 Jonathan Chambers <joncham@gmail.com>
6803 * runmdesc.bat: Run executable that was produced by the current
6804 target and sent via an argument.
6806 2007-03-11 Zoltan Varga <vargaz@gmail.com>
6808 * mini.c (mono_method_to_ir): Fix box+brtrue optimization. Fixes
6811 * generics.2.cs: Add regression test.
6813 2007-03-09 Wade berrier <wberrier@novell.com>
6815 * mini-ppc.h: Undo typo of MONO_CONTEXT_SET_SP (ppc doesn't define this symbol)
6817 2007-03-09 Zoltan Varga <vargaz@gmail.com>
6819 * aot-runtime.c (load_aot_module): Load all dependent assemblies eagerly since all
6820 AOT code depends on this.
6822 Thu Mar 8 19:36:13 CET 2007 Paolo Molaro <lupus@ximian.com>
6824 * mini.c: more precise tracking of types in the eval stack
6825 (part of fix for bug #81044).
6827 2007-03-07 Zoltan Varga <vargaz@gmail.com>
6829 * aot-runtime.c (mono_aot_get_class_from_name): Add a cache.
6831 * aot-compiler.c (encode_patch): Remove an obsolete comment.
6833 2007-03-06 Zoltan Varga <vargaz@gmail.com>
6835 * mini-exceptions.c (mono_handle_native_sigsegv): Fix a warning.
6837 * mini.c (mono_method_to_ir): Add a workaround for bug #80733.
6839 2007-02-22 Zoltan Varga <vargaz@gmail.com>
6841 * mini.c (type_from_op): Convert CEE_CONV_U to OP_LCONV_TO_U when the argument is
6842 a pointer on 64 bit systems. Fixes #80190.
6844 * iltests.il: Add new regression test.
6846 Tue Feb 20 11:33:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6848 * mini.c: inline a constant for Environment.IsRunningOnWindows.
6850 2007-02-19 Geoff Norton <gnorton@customerdna.com>
6852 * trace.c: Remove an erroneous alignemnt check when tracing.
6853 Fixes --trace on OSX86.
6855 Wed Feb 14 19:45:56 CET 2007 Paolo Molaro <lupus@ximian.com>
6857 * mini-$(arch).h: initialize SP in context for all the archs.
6859 2007-02-14 Sebastien Pouliot <sebastien@ximian.com>
6861 * mini-x86.h: Initialize SP in MONO_INIT_CONTEXT_FROM_FUNC. Fix CAS
6862 regressions in the thread tests.
6864 2007-02-14 Zoltan Varga <vargaz@gmail.com>
6866 * *-alpha.*: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>:
6867 - fixed implementation of LOCALLOC opcode
6868 - implemented non-un compare for floats
6870 - implementation of FDIV and CKFINITE opcodes
6871 - fixes for latest mono updates
6872 - additional arch opcodes
6874 Mon Feb 12 11:54:16 CET 2007 Paolo Molaro <lupus@ximian.com>
6876 * Makefile.am: simplify and merge rules for cross-compilation.
6878 2007-02-07 Massimiliano Mantione <massi@ximian.com>
6880 * local-propagation.c: Actually *apply* the fix for bug 80591...
6882 Tue Feb 6 19:03:19 CET 2007 Paolo Molaro <lupus@ximian.com>
6884 * mini-exceptions.c: backuot part of the last change
6885 (fixes cas tests on amd64 related to GetExecutingAssembly ()).
6887 2007-02-06 Massimiliano Mantione <massi@ximian.com>
6888 * inssel.brg: Fix bug 59286.
6891 Tue Feb 6 12:23:50 CET 2007 Paolo Molaro <lupus@ximian.com>
6893 * mini-exceptions.c: patch from Zoltan to correctly check for
6894 stack boundaries (using the stack register, not the frame register),
6895 fixes bugs #80724, #79717.
6897 2007-02-03 Zoltan Varga <vargaz@gmail.com>
6899 * mini-ia64.c inssel-sparc.brg mini-sparc.c cpu-sparc.md: Get rid of OP_SETREG/
6900 OP_SETREGIMM, use OP_MOVE/OP_ICONST instead.
6902 * mini-amd64.c (mono_arch_output_basic_block): Fix ATOMIC_EXCHANGE in the
6903 presence of frame pointer elimination.
6905 2007-02-01 Geoff Norton <gnorton@customerdna.com>
6907 * mini-x86.h: NetBSD UCONTEX_REG defines.
6909 2007-02-01 Zoltan Varga <vargaz@gmail.com>
6911 * inssel-amd64.brg: Fix amd64 build.
6913 Thu Feb 1 14:02:09 CET 2007 Paolo Molaro <lupus@ximian.com>
6915 * mini.h: remove extern to workaround what looks likes gcc bug 26905
6918 2007-01-31 Zoltan Varga <vargaz@gmail.com>
6920 * mini-codegen.c (mono_is_regsize_var): New helper function usable by the back
6923 * mini-<ARCH>.c: Use mono_is_regsize_var ().
6925 2007-01-30 Mark Mason <mason@broadcom.com>
6927 * exceptions-mips.c: Lots of exception handling fixes, LMFs now work, some cleanups.
6928 * mini-mips.h: Add LMF magic numbers, and fix context set/get macros.
6929 * mini-mips.c: Cleanups, LMF handling now works, optimize store of zero, implement localloc
6930 beginning support for CEE_JMP [not quite working yet]
6931 * tramp-mips.c: LMF handling now works
6933 2007-01-30 Zoltan Varga <vargaz@gmail.com>
6935 * mini-amd64.c (peephole_pass): Optimize code common in initlocals blocks.
6937 * mini.h (NULLIFY_INS): New macro.
6939 Tue Jan 30 16:33:33 CET 2007 Paolo Molaro <lupus@ximian.com>
6941 * mini.c: statistical profiler fix for windows, patch
6942 from Tor Lillqvist (tml@novell.com).
6944 2007-01-30 Massimiliano Mantione <massi@ximian.com>
6945 * local-propagation.c: Fix bug 80591.
6947 Mon Jan 29 12:14:34 CET 2007 Paolo Molaro <lupus@ximian.com>
6949 * Makefile.am: put back the --export-dynamic option as with
6950 the previous gmodule flags (thanks to Robert Jordan).
6952 2007-01-28 Zoltan Varga <vargaz@gmail.com>
6954 * mini-sparc.c (peephole_pass): Fix #80622 for sparc as well.
6956 mini.h *.c: Allocate fp vregs from the same pool as the int vregs. Use this to
6957 simplify and speed up the local register allocator. Also rename some fields
6958 like iassign->vassign.
6960 * regalloc.c: Remove some functions which are no longer used since their
6961 inlined version is in mini-codegen.c.
6963 * mini-codegen.c: Rename mono_regstate2_ functions to mono_regstate_.
6965 * basic.cs objects.cs iltests.il: Merge tests from the linear IL branch.
6967 2007-01-27 Zoltan Varga <vargaz@gmail.com>
6969 * mini-amd64.c (peephole_pass): Remove optimizations which omit a
6970 narrowing. Fixes #80622.
6972 * iltests.il: Add new regresssion test.
6974 Fri Jan 26 18:31:45 CET 2007 Paolo Molaro <lupus@ximian.com>
6976 * mini.h, mini-trampolines.c, aliasing.c, mini-codegen.c,
6977 debug-debugger.c, debug-debugger.h: warning fixes.
6978 * driver.c: updated copyright year and made it fit in one line.
6980 Fri Jan 26 12:48:39 CET 2007 Paolo Molaro <lupus@ximian.com>
6982 * aot-runtime.c: updated to use mono-dl instead of gmodule.
6984 2007-01-25 Zoltan Varga <vargaz@gmail.com>
6986 * mini-x86.c (mono_arch_output_basic_block): Fix #80507 for x86.
6988 * mini-amd64.c (mono_arch_output_basic_block): Fix #80507 for amd64.
6990 * iltests.il: Add new test for bug #80507.
6992 Wed Jan 24 19:10:28 CET 2007 Paolo Molaro <lupus@ximian.com>
6994 * mini-arm.h: use soft-float also on vfp for now.
6996 Wed Jan 24 14:54:40 CET 2007 Paolo Molaro <lupus@ximian.com>
6998 * mini.c: fix some more soft-float issues.
7000 2007-01-24 Zoltan Varga <vargaz@gmail.com>
7002 * mini-sparc.h (MONO_ARCH_FRAME_ALIGNMENT): Fix sparc build.
7004 2007-01-24 Massimiliano Mantione <massi@ximian.com>
7005 * mini-arch.h, , inssel-amd64.brg, mini-x86.c, inssel-x86.brg,
7006 mini-ia64.c, mini-sparc.c, mini-alpha.c: Introduced
7007 MONO_ARCH_LOCALLOC_ALIGNMEENT to fix bug 80498.
7009 Wed Jan 24 12:04:39 GMT 2007 Paolo Molaro <lupus@ximian.com>
7011 * mini-arm.c: typo fix.
7013 2007-01-23 Neale Ferguson <neale@sinenomine.net>
7015 * mini-s390x.c: Use lgb instructions for I1 type variables instead of lb.
7017 2007-01-21 Zoltan Varga <vargaz@gmail.com>
7019 * mini.c (mono_allocate_stack_slots_full): Allocate memory from the cfg mempool.
7020 Share stack slots for scalar types. Avoid expensive g_list_free () calls.
7022 * mini-x86.c (mono_arch_allocate_vars): Don't free the result of allocate_stack_slots_full.
7024 * mini-amd64.c mini-ia64.c mini-alpha.c: Ditto.
7026 * mini.h (MonoJitStats): Add a new JIT statistics: locals_stack_size.
7028 * inssel.brg: Fix a warning.
7030 * mini.h (MonoBasicBlock): Make bb->dominated a GSList.
7032 * abcremoval.c ssa.c ssapre.c: Update after this change.
7034 * dominators.c (compute_dominators): Allocate bb->dominated from the cfg mempool.
7036 * dominators.c (df_set): Use mono_bitset_union_fast.
7038 Sat Jan 20 16:59:01 CET 2007 Paolo Molaro <lupus@ximian.com>
7040 * mini.h, genmdesc.c, genmdesc.pl, mini-${arch}.c, cprop.c,
7041 mini-codegen.c: reduce relocations and memory usage for the cpu
7044 2007-01-20 Zoltan Varga <vargaz@gmail.com>
7046 * mini-codegen.c (mono_regstate2_alloc_int): Optimize this using bsfq on amd64.
7048 * genmdesc.c genmdesc.pl mini.h: Remove some unused fields from the mdesc tables
7049 to reduce their size.
7051 2007-01-19 Mark Mason <mason@broadcom.com>
7053 * exceptions-mips.c: fix mono_arch_ip_from_context(), increase exception debug support.
7054 * mini-mips.c: more configuration macros, support long conditional branches, additional
7055 asserts, fix epilog instrumentation.
7056 * mini-mips.h: use standard stack walk
7057 * cpu-mips.md: increase size of div, rem and conditional branches
7059 Fri Jan 19 17:23:32 CET 2007 Paolo Molaro <lupus@ximian.com>
7061 * mini.h, mini-codegen.c, mini-$(arch).h: claenup references
7064 2007-01-19 Zoltan Varga <vargaz@gmail.com>
7066 * aot-compiler.c (encode_klass_info): Allow classes of the form <Type>[][].
7067 (compile_method): Ditto.
7069 * aot-runtime.c (decode_klass_info): Ditto.
7071 * mini.c (mono_method_to_ir): Call mono_get_got_var () in a place where it is
7072 needed by the code generated by inssel.brg. Also fix a warning.
7074 Thu Jan 18 17:55:22 CET 2007 Paolo Molaro <lupus@ximian.com>
7076 * mini.c: deal with enums that become genericinsts by
7077 being nested in a generic class (bug #79956).
7079 Thu Jan 18 16:52:56 CET 2007 Paolo Molaro <lupus@ximian.com>
7081 * mini.c: match the generic definition to check for
7082 private access with generic types (bug #78431).
7084 Thu Jan 18 11:50:13 CET 2007 Paolo Molaro <lupus@ximian.com>
7086 * genmdesc.pl, Makefile.am: perl implementation of genmdesc,
7087 to make life easier for people cross-compiling that insist on not
7090 2007-01-17 Mark Mason <mason@broadcom.com>
7092 * inssel-long.brg: patch to deal with mips missing flags
7093 * inssel-long32-mips.brg: implement overflow checks
7094 * insset-mips.brg: implement overflow checks
7095 * mini-mips.h: implement conditional exception handling
7096 * mini-mips.c: add mips_emit_exc_by_name(), implement conditional exception handling.
7097 Remove unused code, minor cleanups.
7098 * exceptions-mips.c: minor cleanups
7099 * mini-ops.h: add mips conditional exception ops
7100 * cpu-mips.md: add mips conditional exception ops
7103 Wed Jan 17 19:22:34 CET 2007 Paolo Molaro <lupus@ximian.com>
7105 * inssel.brg: patch from Mark Mason <mason@broadcom.com>
7106 to deal with mips missing of flags.
7108 Tue Jan 16 20:01:01 CET 2007 Paolo Molaro <lupus@ximian.com>
7110 * exceptions-ppc.c: execute fault handlers.
7112 Tue Jan 16 19:54:44 CET 2007 Paolo Molaro <lupus@ximian.com>
7114 * mini-ppc.c: handle missing call locationss with FORCE_INDIR_CALL.
7116 Tue Jan 16 13:14:31 CET 2007 Paolo Molaro <lupus@ximian.com>
7118 * mini.c: handle also floating point values in initialize_array.
7120 Tue Jan 16 12:42:40 CET 2007 Paolo Molaro <lupus@ximian.com>
7122 * mini.c, aot-runtime.c, aot-compiler.c: enable aot compilation of
7123 array initialization and make it conditional on the intrins option.
7125 Tue Jan 16 11:28:45 CET 2007 Paolo Molaro <lupus@ximian.com>
7127 * mini.h, patch-info.h, Makefile.am, aot-compiler.c: reduce
7128 relocations and put the patch info names close to the enum definition.
7130 2007-01-15 Mark Mason <mason@broadcom.com>
7132 * basic.cs, exceptions.cs: break up large tests to increase debugability.
7134 Mon Jan 15 18:57:14 CET 2007 Paolo Molaro <lupus@ximian.com>
7136 * mini.c: optimized RuntimeHelpers::InitializeArray () calls.
7138 2007-01-12 Raja R Harinath <rharinath@novell.com>
7140 * mini.c (mono_method_to_ir): Use new MonoGenericContext accessor.
7142 Thu Jan 11 11:16:42 CET 2007 Paolo Molaro <lupus@ximian.com>
7144 * Makefile.am: distribute the mips sources.
7146 Wed Jan 10 19:49:33 CET 2007 Paolo Molaro <lupus@ximian.com>
7148 * mini-codegen.h: handle bug #80489 here, by excluding ecx
7151 Wed Jan 10 19:08:05 CET 2007 Paolo Molaro <lupus@ximian.com>
7153 * cpu-x86.md: back out for now as this triggers other regressions.
7155 Wed Jan 10 18:33:16 CET 2007 Paolo Molaro <lupus@ximian.com>
7157 * cpu-x86.md: force src1 and dest regpair for long shift instructions
7158 to eax:edx, so ecx can't get allocated to them (bug #80489).
7160 Tue Jan 9 12:36:11 CET 2007 Paolo Molaro <lupus@ximian.com>
7162 * mini.c, mini-exceptions.c: enabled running fault handlers
7165 2007-01-03 Miguel de Icaza <miguel@novell.com>
7167 * driver.c: If nothing fail, do not use the string "failed",
7168 because it makes it very annoying to view test result logs on the
7171 2006-12-30 Miguel de Icaza <miguel@novell.com>
7173 * debug-debugger.c (mono_debugger_main): Rename "main" to
7174 "main_method" to prevent a warning.
7176 Remove a warning for unused field.
7178 2006-12-28 Martin Baulig <martin@ximian.com>
7181 (MONO_DEBUGGER__debugger_info): Add `get_lmf_addr'.
7183 2006-12-22 Martin Baulig <martin@ximian.com>
7185 * mdb-debug-info32.s, mdb-debug-info64.s: New files.
7186 Put a pointer to the `MONO_DEBUGGER__debugger_info' into a
7187 seperate `.mdb_debug_info' section, so we can access it from the
7188 debugger even if the binary is stripped.
7190 * debug-debug.c: Reference the `MONO_DEBUGGER__debugger_info_ptr'
7191 from the `.mdb_debug_info' here to prevent the linker from
7192 removing that section.
7194 * Makefile.am (mono_debugger_sources): Add mdb-debug-info32.s /
7197 2006-12-19 Robert Jordan <robertj@gmx.net>
7199 * mini-x86: enable the code to return small structures in
7200 registers for FreeBSD as well. Fixes bug #80278.
7201 * aot-runtime.c: Include sys/wait.h for WEXITSTATUS/WIFEXITED.
7203 Mon Dec 18 19:47:17 CET 2006 Paolo Molaro <lupus@ximian.com>
7205 * mini-x86.c: align the stack when calling the profiler
7206 function instrumenting the prolog (on OSX).
7208 Thu Dec 14 15:22:43 CET 2006 Paolo Molaro <lupus@ximian.com>
7210 * mini.c: emit a break opcode where Debugger.Break () is called.
7212 2006-12-13 Miguel de Icaza <miguel@novell.com>
7214 * mini.c (mono_method_to_ir): Provide useful information on this
7215 assert, to prevent others from debugging like I did.
7217 Tue Dec 12 17:01:38 CET 2006 Paolo Molaro <lupus@ximian.com>
7219 * mini.c: enable code which was incorrectly commented
7222 Tue Dec 12 16:28:15 CET 2006 Paolo Molaro <lupus@ximian.com>
7224 * mini-x86.c: enable on OSX, too, the code to return small
7225 structures in registers.
7227 Mon Dec 11 19:22:35 CET 2006 Paolo Molaro <lupus@ximian.com>
7229 * mini-x86.c: remove the use of the dynamic code manager here, too.
7231 Mon Dec 11 19:08:33 CET 2006 Paolo Molaro <lupus@ximian.com>
7233 * mini.h, debug-debugger.c, tramp-*.c: fixed
7234 mono_debugger_create_notification_function() to use
7235 mono_global_codeman_reserve () instead of a dynamic code manager.
7237 Tue Dec 5 17:54:50 CET 2006 Paolo Molaro <lupus@ximian.com>
7239 * mini.c, jit-icalls.h, jit-icalls.c: remove the
7240 ves_array_element_address() jit icall and use a generated
7241 managed method instead (which is about 4 times faster for a rank 3
7244 2006-11-29 Mark Mason <mason@broadcom.com>
7246 * basic-calls.cs: additional tests for passing
7247 structures as function arguments.
7249 2006-11-29 Mark Mason <mason@broadcom.com>
7251 * mini-mips.h: disable custom exception handling
7252 * mini-mips.c: throw/rethrow should use jalr to call
7253 exception stubs. Fixed bug with passing structures
7254 by value. More support for tracing floating point
7257 Wed Nov 29 20:28:17 CET 2006 Paolo Molaro <lupus@ximian.com>
7259 * mini.c: fixed typo in the soft-float ldind.r4 handling
7262 Wed Nov 29 11:33:03 CET 2006 Paolo Molaro <lupus@ximian.com>
7264 * mini.c, mini.h, driver.c: added --runtime command line
7265 option to select a different runtime than the autodetected one.
7266 * jit.h: added API for embedders to initialize with a specific
7269 Tue Nov 28 21:24:55 CET 2006 Paolo Molaro <lupus@ximian.com>
7271 * mini.c: handle also boxing of r4 values (bug #80024).
7273 Tue Nov 28 19:45:44 CET 2006 Paolo Molaro <lupus@ximian.com>
7275 * mini-ppc.c: force indirect calls until we reserve
7276 enough address space for all the generated code.
7278 Tue Nov 28 20:04:34 GMT 2006 Paolo Molaro <lupus@ximian.com>
7280 * exceptions-arm.c: workaround bugs in the libc definition
7283 Mon Nov 27 15:13:41 CET 2006 Paolo Molaro <lupus@ximian.com>
7285 * inssel.brg: fixes from me and Mark Mason.
7287 2006-11-23 Dick Porter <dick@ximian.com>
7289 * wapihandles.c (mini_wapi_seminfo): No need to adjust the counter
7290 semaphore display now we've fixed the initial value
7292 Wed Nov 22 11:04:37 CET 2006 Paolo Molaro <lupus@ximian.com>
7294 * inssel.brg: partially revert the last change to fix the build.
7296 2006-11-21 Mark Mason <mason@broadcom.com>
7298 * inssel.brg: Add and use compare-and-branch macros to support
7299 architectures that do not have condition code registers (ie. MIPS).
7300 * *-mips.{c,brg,md}: Fix copyright statements
7302 2006-11-20 Mark Mason <mason@broadcom.com>
7304 * Makefile.am: remove mini-codegen.c from list of MIPS sources
7305 * mini.c: Allow GET_CONTEXT to be specified by the arch port
7306 * mini.h: Added declaration for mono_print_ins()
7307 * mini-codegen.c: added ins_spec initializer for MIPS
7308 * mini-codegen.c (mono_call_inst_add_outarg_reg): added asserts for
7309 vreg to be virtual and hreg to be non-virtual.
7310 * mini-codegen.c (mono_spillvar_offset): assert if MIPS - spilling
7311 is not yet working/implemented correctly.
7312 * mini-codegen.c (print_ins): rename to mono_print_ins(), make
7313 non-static, fixup calls to print_ins() from other parts in the file.
7315 2006-11-20 Mark Mason <mason@broadcom.com>
7317 * basic-calls.cs: added tests for passing structures as arguments
7320 Mon Nov 20 19:40:11 CET 2006 Paolo Molaro <lupus@ximian.com>
7322 * inssel-long32.brg: optimize signed division by power of two.
7324 Mon Nov 20 17:37:58 CET 2006 Paolo Molaro <lupus@ximian.com>
7326 * mini-arm.c: added support for interworking with thumb code
7327 (mono must be still be built using the ARM instruction encoding).
7329 2006-11-19 Miguel de Icaza <miguel@novell.com>
7331 * mini.c (type_from_op): Separate the conditions for OP_EQ as the
7332 verifier has different rules for it. Fixes a few verifier issues
7335 * mini-exceptions.c (mono_handle_native_sigsegv): Put the message
7336 at the end, so people know what happened.
7338 Thu Nov 16 14:07:18 CET 2006 Paolo Molaro <lupus@ximian.com>
7340 * brach-opts.c: in optimize_exception_target() make sure we
7341 are in a catch clause (fixes bug #79871).
7343 Thu Nov 16 12:42:13 CET 2006 Paolo Molaro <lupus@ximian.com>
7345 * jit-icalls.c, jit-icalls.h, mini-arm.c, mini.c:
7346 more soft-float support fixes.
7348 Wed Nov 15 18:45:47 GMT 2006 Paolo Molaro <lupus@ximian.com>
7350 * mini-arm.c, inssel-arm.brg: ABI fix for longs and doubles
7351 that are passed half on the stack and half in registers.
7353 Wed Nov 15 17:00:27 CET 2006 Paolo Molaro <lupus@ximian.com>
7355 * mini-ops.h, mini-arch.h, helpers.c, Makefile.am:
7356 more mips integration work from Mark E Mason
7357 <mark.e.mason@broadcom.com>.
7359 Wed Nov 15 16:34:03 CET 2006 Paolo Molaro <lupus@ximian.com>
7361 * exceptions-mips.c, inssel-mips.brg, mini-mips.h,
7362 cpu-mips.md, inssel-long32-mips.brg, mini-mips.c,
7363 tramp-mips.c: added sources for the mips port, not
7364 integrated in the build yet. Contributed by
7365 Mark E Mason <mark.e.mason@broadcom.com>.
7367 2006-11-14 Neale Ferguson <neale@sinenomine.net>
7369 * mini-s390[x].c (is_regsize_var): Support PTR/FNPTR too.
7371 Tue Nov 14 16:06:37 CET 2006 Paolo Molaro <lupus@ximian.com>
7373 * Makefile.am, inssel-float.brg, inssel-softfloat.brg:
7374 put the soft-float rules in its own file since it seems to
7375 break s390 compilation.
7377 Mon Nov 13 15:54:38 CET 2006 Paolo Molaro <lupus@ximian.com>
7379 * mini-arm.c: fixed wrnings.
7381 Fri Nov 10 19:18:32 CET 2006 Paolo Molaro <lupus@ximian.com>
7383 * mini-arm.c, mini-arm.h, cpu-arm.md, inssel-float.brg,
7384 inssel-arm.brg: ARM support for soft-float.
7386 Fri Nov 10 18:38:15 CET 2006 Paolo Molaro <lupus@ximian.com>
7388 * mini.c, jit-icalls.c, jit-icalls.h: added first cut at handling
7389 loads and stores of 32 bit fp values.
7391 2006-11-10 Zoltan Varga <vargaz@gmail.com>
7393 * mini-sparc.c (is_regsize_var): Support PTR/FNPTR too.
7395 * tramp-sparc.c (mono_arch_patch_callsite): Fix this function so it actually
7396 works. Fixes #79852 and #79463.
7398 Thu Nov 9 16:56:13 CET 2006 Paolo Molaro <lupus@ximian.com>
7400 * mini.c, mini-codegen.c, jit-icalls.c, jit-icalls.h:
7401 more soft-float support WIP and fixes.
7403 Wed Nov 8 16:40:02 CET 2006 Paolo Molaro <lupus@ximian.com>
7405 * mini-arm.c: some VFP updates.
7407 Tue Nov 7 19:45:51 CET 2006 Paolo Molaro <lupus@ximian.com>
7409 * mini-exceptions.c: 0 is a valid local var offset in some
7410 architectures, don't assert (bug #78508).
7412 Tue Nov 7 18:17:52 GMT 2006 Paolo Molaro <lupus@ximian.com>
7414 * exceptions-arm.c: fixed off by one error in stack walk code.
7416 Tue Nov 7 11:27:26 CET 2006 Paolo Molaro <lupus@ximian.com>
7418 * mini.h, mini.c: more precise tracking of type load exceptions.
7420 2006-11-03 Robert Jordan <robertj@gmx.net>
7422 * Makefile.am: [WIN32] Add monow.exe target.
7423 * driver.c: [WIN32] Don't detach the console when debugging.
7426 2006-10-30 Miguel de Icaza <miguel@novell.com>
7428 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Eliminate warning.
7430 2006-10-23 Zoltan Varga <vargaz@gmail.com>
7432 * aot-compiler.c (emit_method_info): Add a case missed earlier.
7434 * driver.c (mini_regression): Fix --regression with AOT.
7436 * aot-compiler.c (emit_method_info): Fix AOT on amd64.
7438 2006-10-17 Zoltan Varga <vargaz@gmail.com>
7440 * mini.c (GET_CONTEXT): Correct the definition of this for sparc/linux.
7442 * mini-sparc.h: Don't use sigaction on sparc/linux.
7444 * exceptions-sparc.c: Call mono_arch_flush_icache () in a couple of places.
7446 * mini-sparc.c (mono_sparc_flushw): Call mono_arch_flush_icache ().
7448 * mini-exceptions.c: Add proper include files for getpid ().
7450 2006-10-16 Zoltan Varga <vargaz@gmail.com>
7452 * aot-runtime.c (mono_aot_get_method): Change this to return the native code
7453 address instead of a MonoJitInfo* to avoid decoding the exception info for the
7456 * aot-runtime.c aot-compiler.c: Use uint16 instead of uint32 entries in the
7457 name cache to reduce its size.
7459 * mini.h (MONO_AOT_FILE_VERSION): Bump aot file format version.
7461 2006-10-15 Zoltan Varga <vargaz@gmail.com>
7463 * mini-x86.c: Save/restore the current LMF structure more efficiently using
7464 the mono_lmf TLS variable.
7466 * exceptions-x86.c (mono_arch_find_jit_info): Only access lmf->method in
7467 trampoline lmf frames.
7469 * mini-sparc.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Define this on sparc as well.
7471 2006-10-14 Zoltan Varga <vargaz@gmail.com>
7473 * mini-amd64.c: Save/restore the current LMF structure more efficiently using
7474 the mono_lmf TLS variable.
7476 * mini-exceptions.c: Access the LMF structure through accessors.
7478 * mini.c: Allow the backends the option for storing the lmf in a dedicated TLS
7479 variable instead of in jit_tls->lmf.
7481 * mini-x86.c mini-amd64.c: Update after lmf->lmf_addr name change.
7483 * exceptions-amd64.c (mono_arch_find_jit_info): Only access lmf->method in
7484 trampoline lmf frames.
7486 * mini-amd64.c (mono_arch_emit_prolog): Do not set lmf->method as it is not needed.
7488 2006-10-12 Zoltan Varga <vargaz@gmail.com>
7490 * mini.c trace.c mini-x86.c: Revert these too.
7492 * mini.c trace.c mini-x86.c: Remove warning workarounds after the mono_type_size ()
7495 Tue Oct 10 11:35:20 CEST 2006 Paolo Molaro <lupus@ximian.com>
7497 * genmdesc.c: removed now dead code.
7499 2006-10-09 Robert Jordan <robertj@gmx.net>
7501 * mini.c: Disable the CrashReporter on MacOS X; Fixes #74869
7503 Mon Oct 9 17:06:41 CEST 2006 Paolo Molaro <lupus@ximian.com>
7505 * mini.h: do not leave gaps in the opcode values.
7507 Mon Oct 9 16:08:51 CEST 2006 Paolo Molaro <lupus@ximian.com>
7509 * jit-icalls.h: flag functions as internal here, too.
7511 Mon Oct 9 15:58:18 CEST 2006 Paolo Molaro <lupus@ximian.com>
7513 * mini.h, aliasing.h, declsec.h, regalloc.h, trace.h: mark internal
7514 functions with the internal attribute.
7516 Mon Oct 9 15:52:45 CEST 2006 Paolo Molaro <lupus@ximian.com>
7518 * aot-compiler.c: fclose the file descriptor in the profile read loop.
7520 Fri Oct 6 16:01:38 CEST 2006 Paolo Molaro <lupus@ximian.com>
7522 * mini.c, jit-icalls.c, inssel-float.brg: beginnings of support
7525 2006-10-05 Zoltan Varga <vargaz@gmail.com>
7527 * mini-x86.c (emit_load_volatile_arguments): New function to handle arguments of
7528 tail calls as on other platforms.
7530 * mini.c (mono_method_to_ir): Fix a few tailcall problems. Fixes #79557.
7532 * iltests.il: Add a few tailcall tests.
7534 Tue Oct 3 16:33:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
7536 * driver.c: fix loop for old compilers (bug #79521).
7538 2006-10-02 Zoltan Varga <vargaz@gmail.com>
7540 * mini-exceptions.c (ves_icall_get_trace): Remove debug printf.
7542 * aot-runtime.c (mono_aot_get_class_from_name): Avoid a memory allocation.
7544 * aot-compiler.c: Add a new option 'metadata-only' to only emit the cached
7545 metadata without any code.
7547 * mini-exceptions.c (mono_handle_native_sigsegv): Add some code to print out
7548 more precise debugging information using gdb.
7550 2006-09-30 Zoltan Varga <vargaz@gmail.com>
7552 * inssel-ia64.brg: Make the helper methods static.
7554 Thu Sep 28 16:40:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
7556 * inssel-x86.brg: make the helper methods static.
7558 Thu Sep 28 16:31:32 CEST 2006 Paolo Molaro <lupus@ximian.com>
7560 * inssel-amd64.brg, mini-amd64.c: small cleanup, use inst_call.
7562 Thu Sep 28 15:36:07 CEST 2006 Paolo Molaro <lupus@ximian.com>
7564 * mini.c: updates for monoburg changes.
7565 * inssel.brg: make a few helper functions static as they should.
7567 2006-09-27 Zoltan Varga <vargaz@gmail.com>
7569 * Makefile.am: Move mini-codegen.c to common_sources.
7571 Wed Sep 27 15:07:08 CEST 2006 Paolo Molaro <lupus@ximian.com>
7573 * mini.h: instroduce inst_call in MonoInst for use in OUTARG
7575 * Makefile.am, cpu-g4.md, inssel-ppc.brg, mini-codegen.c, mini-ppc.c,
7576 mini-ppc.h: port to use the common local register allocator.
7578 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7580 * mini.h: Remove the comment too then.
7582 Tue Sep 26 14:02:58 CEST 2006 Paolo Molaro <lupus@ximian.com>
7584 * mini.h: put back backend.data which is to be used shortly and
7585 doesn't increase the size of MonoInst. If any 64 bit arch aligned
7586 pointers on 4 byte boundaries it'd have much bigger issues running
7587 and you can ifdef it out anyway.
7589 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7591 * mini.h (MonoInst): Remove backend.data field since it is unused and increases
7592 MonoInst size by 4 bytes on 64 bit machines.
7594 Tue Sep 26 11:57:26 CEST 2006 Paolo Molaro <lupus@ximian.com>
7596 * *.{c,h,brg}: long due removal of the unused field in MonoInst and
7597 replacement with more meaningful field names. Arch maintainers, please
7598 check the assigned names are good enough for your arch.
7600 2006-09-26 Zoltan Varga <vargaz@gmail.com>
7602 * cpu-ia64.md mini-ia64.c inssel-ia64.brg mini-ops.h: Get rid of the
7603 OP_IA64_FETCHADD opcodes, use OP_ATOMIC_ADD_IMM_NEW opcodes instead.
7605 Mon Sep 25 11:05:24 CEST 2006 Paolo Molaro <lupus@ximian.com>
7607 * mini.h, driver.c, optflags-def.h, Makefile.am: reduce runtime
7608 relocations and memory requirements, put the optimization flags
7609 definitions in their own file.
7611 2006-09-24 Zoltan Varga <vargaz@gmail.com>
7613 * jit-icalls.c (mono_helper_stelem_ref): Remove this unused helper function.
7615 * mini.c (mini_init): Remove reference to mono_helper_stelem_ref.
7617 2006-09-22 Zoltan Varga <vargaz@gmail.com>
7619 * mini-amd64.c (add_valuetype): Fix an uninitialized memory issue.
7621 Thu Sep 21 19:06:09 CEST 2006 Paolo Molaro <lupus@ximian.com>
7623 * inssel.brg: use the correct function to get the size of an item
7624 in an array, given an element class.
7625 * aot-compiler.c: do not access class->class_size directly.
7627 Thu Sep 21 12:10:56 CEST 2006 Paolo Molaro <lupus@ximian.com>
7629 * mini.h, debug-mini.c: added a debugging function to print
7630 info about local variables and arguments in a jitted method.
7632 2006-09-20 Zoltan Varga <vargaz@gmail.com>
7634 * mini-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
7636 * exceptions-ia64.c: Fix some problems reported by Bill Seurer <seurer@us.ibm.com>.
7638 2006-09-19 Zoltan Varga <vargaz@gmail.com>
7640 * mini-ia64.c (mono_arch_call_opcode): Avoid using the same loop index in the
7641 inner and outer loops when passing vtypes.
7643 Tue Sep 19 17:53:40 CEST 2006 Paolo Molaro <lupus@ximian.com>
7645 * mini-ppc.c: take into account the cpu errata for cache flushing
7646 which caused some random errors (bug #79381).
7648 2006-09-19 Zoltan Varga <vargaz@gmail.com>
7650 * mini-amd64.c (mono_arch_emit_exceptions): Emit the call to
7651 mono_arch_throw_corlib_exception using emit_call () too. Fixes #79271.
7653 2006-09-17 Zoltan Varga <vargaz@gmail.com>
7655 * aot-runtime.c (load_aot_module): Return immeditely if the AOT module was already
7658 * exceptions-amd64.c (gregs_from_ucontext): Apply another patch from the
7661 * mini-amd64.c (emit_call): Avoid near calls on freebsd.
7662 (mono_arch_patch_code): Remove the unused handling of MONO_PATCH_INFO_CLASS_INIT.
7664 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix check for 32 bitness of
7667 2006-09-13 Zoltan Varga <vargaz@gmail.com>
7669 * aot-runtime.c (load_aot_module_from_cache): Fix PPC build.
7671 2006-09-12 Zoltan Varga <vargaz@gmail.com>
7673 * mini.c (UNVERIFIED): Add a 'break-on-unverified' MONO_DEBUG option so this
7674 macro does not have to be changed during debugging.
7676 * 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>.
7678 * cpu-pentium.md: Rename this to cpu-x86.md for consistency with other platforms.
7680 * Makefile.am mini-x86.c mini-codegen.c: Rename pentium_desc to x86_desc.
7682 * mini.c (mini_get_ldelema_ins): Allow ldelema2d optimization if
7683 MONO_ARCH_NO_EMULATE_MUL is defined.
7685 * mini-ia64.h (MONO_ARCH_CALLEE_FREGS): Reserve f33 for use by instructions.
7687 * mini-ia64.h: Define MONO_ARCH_NO_EMULATE_MUL.
7689 * mini-ia64.c: Implement CEE_MUL based on gcc emitted code.
7691 * mini-ia64.c (mono_arch_lowering_pass): Optimize store_membase_imm with offset==0.
7693 2006-09-11 Zoltan Varga <vargaz@gmail.com>
7695 * mini-x86.h mini-amd64.h mini-exceptions.c: Move the bsd specific MAP_ANON
7696 stuff to mini-exceptions.c where it is used.
7698 * mini-sparc.c (mono_arch_setup_jit_tls_data): Remove the duplicate altstack
7699 setup code, the real one is in mini-exceptions.c.
7701 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Move all dependencies on the
7702 layout of ucontext_t to helper functions in exceptions-amd64.c, as on x86. Add
7703 some changes from the freebsd ports tree.
7705 * mini-amd64.h exceptions-amd64.c: Fix the amd64 build. Get rid of the SC_
7708 * mini-amd64.h: Freebsd has MAP_ANON instead of MAP_ANONYMOUS.
7710 Mon Sep 11 13:18:55 CEST 2006 Paolo Molaro <lupus@ximian.com>
7712 * mini.c: on Linux, check for /proc to be mounted
7713 (bug# 79351, novell bug#201204).
7715 Mon Sep 11 13:10:12 CEST 2006 Paolo Molaro <lupus@ximian.com>
7717 * mini.c: handle cases where pthread_attr_getstack() behaves
7718 incorrectly (bug #78096).
7720 Mon Sep 11 11:31:10 BST 2006 Paolo Molaro <lupus@ximian.com>
7722 * mini-arm.c: support larger stack frames (bug #79272).
7724 2006-09-08 Zoltan Varga <vargaz@gmail.com>
7726 * aot-runtime.c (mono_aot_get_class_from_name): Remove a debug printf.
7728 * aot-compiler.c: Add a hash table to the AOT file mapping class names to typedef
7731 * aot-runtime.c (mono_aot_get_class_from_name): New function used by
7732 mono_class_from_name () to find a class from its name.
7734 * mini.c (mini_init): Register mono_aot_get_class_from_name () with the runtime.
7736 2006-09-07 Zoltan Varga <vargaz@gmail.com>
7738 * mini-amd64.c (emit_call): Avoid strstr () call if possible.
7740 2006-09-05 Kornél Pál <kornelpal@gmail.com>
7742 * Makefile.am: Renamed mono-1.dll to mono.dll. (-avoid-version)
7744 2006-09-04 Zoltan Varga <vargaz@gmail.com>
7746 * mini.c (mono_icall_get_wrapper): Fix a race condition on initializing
7747 callinfo->trampoline.
7749 * mini-amd64.c (emit_call): Special case calls to the vararg array icalls. Hopefully
7751 (mono_arch_patch_code): Add some debug code to help track down similar failures in the
7754 2006-09-03 Zoltan Varga <vargaz@gmail.com>
7756 * aot-runtime.c (mono_aot_plt_resolve): Add an assert.
7758 2006-09-02 Zoltan Varga <vargaz@gmail.com>
7760 * tramp-x86.c (mono_arch_create_specific_trampoline): Don't increase
7761 stats.method_trampolines, it is already done by the generic trampoline code.
7763 * tramp-amd64.c (mono_arch_create_specific_trampoline): Ditto.
7765 2006-09-01 Zoltan Varga <vargaz@gmail.com>
7767 * mini.c: Remove some references to mono_compile_aot, and use cfg->compile_aot instead.
7769 * aot-runtime.c: Add some tweaks to the MONO_AOT_CACHE functionality.
7771 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix a FIXME.
7773 * mini.c (print_jit_stats): Print mscorlib mempool size too.
7775 * mini.c (print_jit_stats): Print new stats.
7777 * *-alpha.c: More alpha port work from Sergey Tikhonov <tsv@solvo.ru>.
7779 2006-08-31 Zoltan Varga <vargaz@gmail.com>
7781 * mini.c (mini_get_ldelema_ins): Fix verifier error when calling
7782 Address on two dimensional arrays. Fixes #78729.
7784 * mini.h (MonoCompile): Add a 'skip_visibility' field.
7786 * mini.c (method_to_ir): Disable visibility checks if skip_visibility is set on
7789 * mini-amd64.c (mono_arch_emit_exceptions): Fix assertion introduced by the last change.
7791 * mini.c (mono_runtime_cleanup_handlers): Clean up signal handlers on unix. Fixes
7794 * mini.c (handle_array_new): Applied patch from "briaeros007". Fix
7796 (mini_get_ldelema_ins): Ditto.
7798 2006-08-30 Zoltan Varga <vargaz@gmail.com>
7800 * mini-amd64.c (mono_arch_emit_exceptions): Align fp constants to 16 bytes.
7801 (mono_arch_output_basic_block): Avoid unaligned accesses in FNEG implementation.
7804 2006-08-29 Neale Ferguson <neale@sinenomine.net>
7806 * mini-s390.c, mini-s390x.c: Fix VARARG case processing with 0 arguments. Add
7807 mono_arch_get_patch_offset as a dummy entry point to allow successful link.
7809 * exceptions-s390x.c: Cosmetic change.
7811 * tramp-s390.c: Fix warning.
7813 * cpu-s390.md: Correct length of mul_imm.
7815 Wed Aug 23 19:24:00 CEST 2006 Paolo Molaro <lupus@ximian.com>
7817 * aot-compiler.c: added binary writer with ELF backend
7818 implementation (only on Linux/x86 for now).
7820 2006-08-18 Zoltan Varga <vargaz@gmail.com>
7822 * Makefile.am: Don't run net 2.0 AOT tests.
7824 * aot-compiler.c (compile_method): Skip methods with tail calls as well.
7825 (mono_compile_assembly): Skip net 2.0 assemblies as well.
7827 * aot-runtime.c (load_patch_info): Fix an uninitialized memory error.
7829 Fri Aug 18 19:38:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
7831 * aot-compiler.c: simplified and refactored the asm-writing code
7832 to allow different backends.
7834 2006-08-18 Zoltan Varga <vargaz@gmail.com>
7836 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file format version.
7838 * aot-compiler.c aot-runtime.c: Reorg the GOT slot allocation code a
7839 little. Share patches of type TYPE_FROM_HANDLE as well.
7841 * mini.c (mono_patch_info_equal): New helper function.
7842 (mono_patch_info_hash): Ditto.
7844 * aot-compiler.c (emit_method_code): Fix s390 build.
7846 * mini.c (mono_allocate_stack_slots_full): Fix yet another place where byref
7847 is not handled because it is stored as a flag and not as a type ctor. Fixes
7850 2006-08-17 Zoltan Varga <vargaz@gmail.com>
7852 * aot-compiler.c: Fix computation of GOT slot statistics.
7854 * aot-compiler.c aot-runtime.c: Implement sharing of GOT slots for classes/fields.
7855 Also remove support for not PIC AOT.
7857 * mini.h: Bump AOT file format version.
7859 * objects.cs: Add a test for #78990.
7861 * mini-x86.c (mono_arch_output_basic_block): Applied patch from Peter Dettman
7862 (peter.dettman@iinet.net.au). Fixes #79087.
7864 * basic-long.cs: Add a test for the above.
7866 2006-08-16 Zoltan Varga <vargaz@gmail.com>
7868 * aot-compiler.c (get_got_offset): Add a cache for GOT entries, not yet used.
7870 * aot-compiler.c (get_plt_index): Add a cache for wrappers too. Simplify the
7873 2006-08-15 Zoltan Varga <vargaz@gmail.com>
7875 * mini.c (mini_init): Fix registration of idiv/imul opcodes which can throw
7878 2006-08-10 Jonathan Chambers <joncham@gmail.com>
7880 * mini.c: Don't verify COM proxy invoke calls
7883 2006-08-10 Dick Porter <dick@ximian.com>
7885 * wapihandles.c (mini_wapi_seminfo): More info, to help track down
7886 which process is holding semaphores locked.
7888 2006-08-08 Zoltan Varga <vargaz@gmail.com>
7890 * mini-ia64.c mini-amd64.c: Fix #79027.
7892 * mini-sparc.c (mono_arch_call_opcode): Fix the previous patch.
7894 * mini-sparc.c (mono_arch_call_opcode): Fix #79027.
7896 * mini-x86.c (mono_arch_call_opcode): Handle the case where there are no
7897 implicit arguments in a vararg call. Fixes #79027.
7899 2006-08-07 Zoltan Varga <vargaz@freemail.hu>
7901 * mini.c (mono_get_element_address_signature): Use CDECL calling convention on windows. Fixes #78969.
7902 (mono_get_array_new_va_signature): Ditto.
7904 2006-08-05 Zoltan Varga <vargaz@gmail.com>
7906 * aot-runtime.c: Call init_plt lazily.
7908 * inssel-long.brg: Fix unsigned long->int conversion.
7910 * aot-runtime.c (init_plt): Remove a redundant make_writable () call.
7912 * aot-compiler.c aot-runtime.c: Reorganize the file structure in the amd64 case so
7913 that most data is now in the .rss/.data section.
7915 2006-08-04 Zoltan Varga <vargaz@gmail.com>
7917 * aot-compiler.c: Correct the computation of the 'direct-calls' statistic.
7919 * aot-compiler.c: Print the number of methods without GOT slots as a statistics.
7921 * aot-compiler.c aot-runtime.c tramp-amd64.c: Resurrect amd64 AOT support.
7923 * tramp-amd64.c (mono_arch_patch_callsite): Fix a warning.
7925 * jit-icalls.c (mono_helper_compile_generic_method): Unbox vtypes since this is a
7926 virtual call. Fixes #79010.
7928 * mini.c (mono_method_to_ir): Pass an additional out arg to compile_generic_method
7929 and use the result as the this argument in the real call.
7931 * generics.2.cs: Add a new test for #79010.
7933 2006-08-03 Zoltan Varga <vargaz@gmail.com>
7935 * mini-x86.c: Fix a warning.
7937 * aot-compiler.c: Add a bunch of statistics.
7939 * mini.c (inline_method): Disable inlining in out-of-line bblocks.
7941 2006-08-02 Zoltan Varga <vargaz@gmail.com>
7943 * mini-arch.h Makefile.am mini-ops.h mini-codegen.c: More alpha updates.
7945 2006-08-01 Zoltan Varga <vargaz@gmail.com>
7947 * 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>.
7949 2006-07-13 Miguel de Icaza <miguel@novell.com>
7951 * mini.c (mono_method_to_ir): Obtain the original method in the
7952 CIL stream and use this to perform validation.
7956 2006-07-19 Zoltan Varga <vargaz@gmail.com>
7958 * mini-x86.c (mono_arch_get_argument_info): Fix a warning.
7959 (mono_arch_call_opcode): Ditto.
7961 * mini.c (mono_method_to_ir): Clear ins_flag at the end of CEE_CALL. Fixes
7964 * mini.c (mono_patch_info_dup_mp): New helper function.
7966 * aot-compiler.c (compile_method): Fix some of the memory allocated during
7967 compilation. Fixes #78827.
7969 2006-07-18 Kornél Pál <kornelpal@gmail.com>
7971 * declsec.c: Use original security informations for
7972 MONO_WRAPPER_MANAGED_TO_MANAGED.
7974 2006-07-15 Jonathan Chambers <joncham@gmail.com>
7976 * mini.c: Allow Com Interop methods/classes and
7977 don't verify COM wrapper calls
7980 2006-07-13 Zoltan Varga <vargaz@gmail.com>
7982 * inssel-long32.brg: Fix long->i4 checked conversion.
7984 * exceptions.cs: Add a test for the above.
7986 2006-07-08 Zoltan Varga <vargaz@gmail.com>
7988 * mini-exceptions.c (mono_setup_altstack): Fix a memory leak.
7990 * mini.c: Applied patch from Joachim Ante (joe@otee.dk). Fix some shutdown
7993 * helpers.c (mono_disassemble_code): Avoid using fixed temporary files. Fixes
7996 2006-07-03 Zoltan Varga <vargaz@gmail.com>
7998 * mini.c: Fix solaris/x86 exception handling.
8000 * Makefile.am: Get rid of $(ICU_LIBS).
8002 2006-07-02 Zoltan Varga <vargaz@gmail.com>
8004 * mini-exceptions.c: Fix handling of unhandled SIGSEGV exceptions on ia64.
8005 (ves_icall_System_Security_SecurityFrame_GetSecurityStack): Use MONO_INIT_CONTEXT_FROM_CURRENT.
8006 (ves_icall_System_Security_SecurityFrame_GetSecurityFrame): Ditto.
8008 * mini-ia64.h (MONO_CONTEXT_SET_FUNC): New macro.
8010 * mini-exceptions.c (mono_handle_native_sigsegv): Prevent infinite loops if
8011 this function causes a SIGSEGV.
8013 2006-06-22 Zoltan Varga <vargaz@gmail.com>
8015 * mini.c: Remove unused solaris/x86 includes.
8017 2006-06-21 Zoltan Varga <vargaz@gmail.com>
8019 * jit.h: Add G_BEGIN_DECLS/G_END_DECLS.
8021 2006-06-20 Jb Evain <jbevain@gmail.com>
8023 * cpu-g4.md: fix max length of start_handler instruction.
8025 2006-06-20 Massimiliano Mantione <massi@ximian.com>
8026 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78656.
8028 2006-06-16 Massimiliano Mantione <massi@ximian.com>
8029 * ssa.c: Fixed bug 78653 for SSA based deadce.
8030 * mini.h: added MONO_INST_DEFINITION_HAS_SIDE_EFFECTS flag go
8031 MonoInst.flags, used in SSA based deadce.
8032 * aliasing.c: Fixed bug 78653 for "fastpath" deadce.
8033 * simple-cee-ops.h, simple-mini-ops.h: Fixed bug 78653.
8035 Thu Jun 15 16:52:46 CEST 2006 Paolo Molaro <lupus@ximian.com>
8037 * tramp-ppc.c: don't use malloc () for trampoline code, sometimes
8038 it can end up using non executable memory on ppc64 systems
8039 running ppc32 userspace (fix from Johannes Berg).
8041 2006-06-14 Dick Porter <dick@ximian.com>
8043 * wapihandles.c: Fix a bunch of signed/unsigned warnings from gcc
8046 2006-06-13 Massimiliano Mantione <massi@ximian.com>
8047 * mini.c: Made so that inline is locally disabled if it would
8048 trigger a .cctor, because too many apps depend on this behavior
8049 (which seems to be also the one of the MS CLR).
8051 2006-06-13 Zoltan Varga <vargaz@gmail.com>
8053 * mini-amd64.c (mono_emit_stack_alloc): Fix initialization of localloc'ed memory.
8054 No idea why this worked before.
8056 * branch-opts.c (mono_branch_optimize_exception_target): Avoid branches
8057 which branch to outer exception clauses since they could skip the
8058 inner finally clauses. Fixes #78633.
8060 * exceptions.cs: Add a test for the above.
8062 * mini.c (merge_basic_blocks): Nullify the branch at the end of the first bb.
8065 * iltests.il: Add a test for the above.
8067 2006-06-12 Zoltan Varga <vargaz@gmail.com>
8069 * mini.c (remove_block_if_useless): Do not remove the bblock immediately
8070 after the end of a try bblock, to prevent asserts in mini_method_compile ().
8072 * iltests.il: Add a test for the above.
8074 2006-06-10 Zoltan Varga <vargaz@gmail.com>
8076 * mini-ia64.c (mono_arch_lowering_pass): Remove some code duplication.
8078 * mini-ia64.c inssel-ia64.brg: Implement the new net 2.0 Interlocked.Add
8079 methods as instrinsics.
8081 2006-06-09 Wade Berrier <wberrier@novell.com>
8083 * Makefile.am: Fix sources list for svn rename so that make dist succeeds
8084 (simple-cee-ops.h ssapre-mini-ops.h)
8086 2006-06-09 Neale Ferguson <neale@sinenomine.net>
8088 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on s390/s390x.
8089 * mini-s390x.c, mini-s390.c: Correct ATOMIC operations (incorrect register for CS
8091 * mini-s390x.h, mini-s390.h: Simplify MCONTEXT_GET_BP.
8092 * cpu-s390x.md: Fix max. length values for a couple of instructions.
8094 2006-06-09 Jonathan Chambers <jonathan.chambers@ansys.com>
8096 * mini-exceptions.c: Minor fix for building mono in Visual Studio.
8098 2006-06-08 Massimiliano Mantione <massi@ximian.com>
8100 * ssapre-cee-ops.h: Renamed as "simple-cee-ops.h"
8101 * simple-cee-ops.h: Was "ssapre-cee-ops.h" (renamed).
8102 * ssapre-mini-ops.h: Renamed as "simple-mini-ops.h"
8103 * simple-mini-ops.h: Was "ssapre-mini-ops.h" (renamed).
8104 * local-propagation.c: In mono_cprop_invalidate_values use a whitelist
8105 of opcodes, so that bug 78549 should not happen again.
8106 * ssapre.c: Updated to use the renamed files.
8108 2006-06-08 Zoltan Varga <vargaz@gmail.com>
8110 * mini-amd64.c (mono_arch_output_basic_block): Fix a wrong reg-reg move
8111 in OP_ATOMIC_EXCHANGE_I4.
8113 2006-06-07 Wade Berrier <wberrier@novell.com>
8115 * tramp-s390.c: Fix s390 build (add missing pointer declarations
8116 in mono_debugger_create_notification_function)
8118 2006-06-06 Zoltan Varga <vargaz@gmail.com>
8120 * mini.c (NEW_AOTCONST_TOKEN): Fix amd64 build.
8122 * mini.c (type_from_stack_type): Disable some changes which do not
8125 * driver.c: Reenable opts.
8127 * mini.h (MonoStackSlot): New structure to keep track of the verification state
8128 of the evaluation stack.
8130 * mini.h (MonoBasicBlock): Add a 'stack_state' field to keep track of the
8131 evaluation stack trace at entry to the bblock.
8133 * mini.c (merge_stacks): New function to perform verification of stack merges.
8134 Turned off by default.
8136 * mini.c: Fill up ins->klass for instructions whose type is STACK_OBJ or
8139 2006-06-06 Massimiliano Mantione <massi@ximian.com>
8141 * local-propagation.c: Fixed bug 78549.
8143 2006-06-04 Zoltan Varga <vargaz@gmail.com>
8145 * mini-exceptions.c (ves_icall_get_frame_info): Fix this function on ia64.
8147 2006-06-02 Miguel de Icaza <miguel@novell.com>
8149 * tramp-sparc.c, tramp-ppc.c, tramp-s390.c, tramp-s390x.c,
8150 tramp-arm.c, tramp-ia64.c
8151 (mono_debugger_create_notification_function): Update signature to
8152 new signature and use new protocol for creating the notification
8155 Should fix the build.
8157 2006-06-02 Geoff Norton <gnorton@customerdna.com>
8159 * exceptions-ppc.c (mono_jit_walk_stack)
8160 (ves_icall_get_frame_info): Fix the build
8162 2006-06-02 Zoltan Varga <vargaz@gmail.com>
8164 * mini.c (mono_set_defaults): Fix the handling of -O=-all.
8166 2006-05-31 Raja R Harinath <rharinath@novell.com>
8168 * il2tests.2.il: New file for generics CIL tests. Add test for
8170 * Makefile.am: Update.
8173 * mini.c (mono_method_to_ir): Don't apply box+brtrue optimization
8176 2006-05-30 Massimiliano Mantione <massi@ximian.com>
8178 * aliasing.c: Fixed bug 78311.
8180 2006-05-29 Martin Baulig <martin@ximian.com>
8182 * mini-exceptions.c (mono_find_jit_info): When computing the
8183 native offset, check whether we're actually inside the method's
8184 code; call mono_debug_print_stack_frame() to format the frame.
8185 (ves_icall_System_Exception_get_trace): Call
8186 mono_debug_print_stack_frame() to format the stack frame.
8187 (ves_icall_get_trace): Update to the new debugging API.
8188 (mono_jit_walk_stack_from_ctx): Likewise.
8189 (ves_icall_get_frame_info): Likewise.
8191 * mini.c (get_method_from_ip): Use the new debugging API.
8192 (mono_print_method_from_ip): Likewise.
8195 (mono_jit_walk_stack): Use the new debugging API.
8196 (ves_icall_get_frame_info): Likewise.
8198 2006-05-27 Zoltan Varga <vargaz@gmail.com>
8200 * mini-amd64.c (mono_arch_output_basic_block): Fix MONO_PROFILE_COVERAGE.
8202 2006-05-25 Massimiliano Mantione <massi@ximian.com>
8204 * mini.c: Added "limitator" to inline for debugging.
8206 2006-05-24 Martin Baulig <martin@ximian.com>
8208 * debug-debugger.c (mono_debugger_init): Create a private,
8209 malloc()-based code manager for the notification function and
8210 intentionally leak it on exit. This fixes the crash-on-exit race
8214 (mono_debugger_create_notification_function): Added
8215 `MonoCodeManager *' argument.
8218 (mono_debugger_create_notification_function): Added
8219 `MonoCodeManager *' argument.
8221 2006-05-23 Massimiliano Mantione <massi@ximian.com>
8223 * aliasing.c: Fixed 64 bit issue.
8224 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
8225 default since all known bugs are fixed (one more time!).
8227 Tue May 23 13:47:28 CEST 2006 Paolo Molaro <lupus@ximian.com>
8229 * mini.c: write barrier support.
8231 2006-05-23 Martin Baulig <martin@ximian.com>
8233 * debug-debugger.c: Revert Paolo's change. Add comment and #error
8234 check at the top of the file.
8236 Sun May 21 12:22:29 CEST 2006 Paolo Molaro <lupus@ximian.com>
8238 * debug-debugger.c: fix the build. Again. Hopefully Martin will stop
8239 reverting changes without reason and without changelog entries.
8241 2006-05-18 Zoltan Varga <vargaz@gmail.com>
8243 * mini-sparc.c (mono_arch_output_basic_block): Add support for large stack offets
8244 to a few opcodes. Fixes #78439.
8246 * mini-sparc.c: Rename mono_sparch_break () to mono_arch_break () to improve
8247 consistency with other archs.
8249 * mini-ia64.c (mono_arch_emit_prolog): Remove debug stuff left in by mistake.
8251 Wed May 17 18:07:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
8253 * debug-debugger.c: fix the build.
8255 2006-05-17 Martin Baulig <martin@ximian.com>
8258 (debugger_thread_vtable): Moved here from ../metadata/threads.c.
8259 (debugger_init_threads): Formerly known as mono_debugger_init_threads().
8260 (debugger_finalize_threads): Formaly known as mono_debugger_finalize_threads().
8261 (debugger_attach): Call GC_mono_debugger_add_all_threads().
8263 2006-05-11 Zoltan Varga <vargaz@gmail.com>
8265 * mini.c (mini_init): Call pthread_attr_destroy () to fix a small memory leak.
8267 2006-05-10 Zoltan Varga <vargaz@gmail.com>
8269 * mini-x86.c (mono_arch_instrument_epilog): Fix handling of
8270 MONO_TYPE_GENERICINST.
8272 * mini-amd64.c (mono_arch_instrument_epilog): Fix handling of
8273 MONO_TYPE_GENERICINST.
8275 2006-05-09 Zoltan Varga <vargaz@gmail.com>
8277 * mini-x86.c (mono_arch_get_vcall_slot_addr): Add a missing call sequence. Fixes
8280 2006-05-08 Zoltan Varga <vargaz@gmail.com>
8282 * mini.c (mono_create_jump_trampoline): Allocate MonoJitInfo from the domain
8284 (mono_jit_free_method): Remove the method from jump_trampoline_hash as well.
8286 2006-05-06 Zoltan Varga <vargaz@gmail.com>
8288 * mini.c (mini_cleanup): Applied patch from Joachim Ante (joe@otee.dk). Call
8289 mono_trace_cleanup ().
8291 * iltests.il: Fix problem with the newly added test.
8293 * mini-codegen.c (mono_local_regalloc): When changing the dreg of an instruction
8294 due to register constraints, free up the previous hreg. Fixes #78314.
8296 * iltests.il: Add new test for #78314.
8298 * mini-x86.c (mono_arch_get_inst_for_method): Use OP_ATOMIC_ADD_NEW_I4 for
8299 Interlocked.Add. Fixes #78312.
8301 * mini-amd64.c (mono_arch_get_inst_for_method): Ditto.
8303 2006-05-05 Zoltan Varga <vargaz@gmail.com>
8305 * inssel.brg (mini_emit_virtual_call): Fix a warning.
8307 2006-05-05 Martin Baulig <martin@ximian.com>
8309 * debug-mini.c (mono_debug_open_block): New method.
8312 (mono_arch_output_basic_block): Call mono_debug_open_block() at
8313 the beginning of each basic block.
8316 (mono_arch_output_basic_block): Call mono_debug_open_block() at
8317 the beginning of each basic block.
8319 2006-05-04 Massimiliano Mantione <massi@ximian.com>
8321 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
8322 default until I understand why they break the build on amd64.
8324 2006-05-04 Zoltan Varga <vargaz@gmail.com>
8326 * mini.c (mini_cleanup): Call mono_cleanup ().
8328 * mini.c (UNVERIFIED): New macro to make it easier to track down verification
8331 2006-05-04 Massimiliano Mantione <massi@ximian.com>
8333 * aliasing.c: Fixed shameful cut&paste error that caused JIT crashes.
8334 * driver.c: Enabled inline,consprop,copyprop,treeprop,deadce by
8335 default since all known bugs are fixed, and I cannot reproduce bug
8336 77944... I'm asking Matt Hargett to test again after this commit.
8338 2006-04-28 Massimiliano Mantione <massi@ximian.com>
8340 * mini-codegen.c: Fixed typo that thrashed inline.
8342 2006-04-28 Zoltan Varga <vargaz@gmail.com>
8344 * dominators.c (compute_dominators): Avoid using a worklist since
8345 it is not correct in some cases. Instead, iterate over all bblocks as
8346 in the original paper. Fixes --compile-all -O=all System.Xml.dll.
8348 2006-04-28 Miguel de Icaza <miguel@novell.com>
8350 * mini.c (mono_jit_compile_method_inner): Use
8351 mono_prepare_exception_from_error that resets the value
8354 2006-04-27 Miguel de Icaza <miguel@novell.com>
8356 * mini.c: Move the mini_loader_error_to_exception to metadata.
8358 2006-04-27 Massimiliano Mantione <massi@ximian.com>
8360 * aliasing.c: Fixed bug 78210.
8362 2006-04-27 Massimiliano Mantione <massi@ximian.com>
8364 * driver.c: Disabled inline,consprop,copyprop,treeprop,deadce by
8365 default until all their problems (or the ones they trigger) are fixed.
8367 2006-04-26 Zoltan Varga <vargaz@gmail.com>
8369 * aot-runtime.c (mono_aot_get_method_from_token_inner): Fix the previous patch.
8371 * aot-runtime.c (mono_aot_get_method_from_token_inner): Mark the method
8372 as loaded only after resolving patches since that could invoke the same method.
8374 * aot-runtime.c (mono_aot_plt_resolve): Fix ppc etc. builds.
8376 * aot-compiler.c: Refactor mono_aot_compile_aot () into a bunch of smaller
8379 * aot-runtime.c (init_plt): Use a normal trampoline to transfer code to the
8382 * aot-compiler.c (emit_plt): Pass the plt offset in %eax instead of on the
8385 * mini-trampolines.c (mono_aot_plt_trampoline): New trampoline to handle calls
8386 made from AOT code through the PLT table.
8388 * mini-x86.h mini-amd64.h: Define MONO_ARCH_AOT_PLT_OFFSET_REG to the register
8389 holding the plt offset when a call is made to the aot plt trampoline.
8391 2006-04-25 Zoltan Varga <vargaz@gmail.com>
8393 * aot-runtime.c aot-compiler.c cpu-amd64.md mini-amd64.c: Update parts of the
8396 * Makefile.am (common_sources): Fix build breakage.
8398 * aot-runtime.c aot-compiler.c: Reorganize the AOT code yet again: Make all
8399 calls through a jump table similar to the ELF PLT table. Avoid indirect calls for
8400 intra-assembly calls if possible.
8402 * tramp-*.c: Add new functions for patching/nullifying PLT entries.
8404 * mini-trampolines.c: Handle PLT entries.
8406 * mini.c: Avoid creating a GOT var for calls.
8408 * jit-icalls.c (helper_ldstr_mscorlib): New helper function for loading strings
8411 * jit-icalls.c (helper_newobj_mscorlib): New helper function to create objects
8414 * mini.c (mono_method_to_ir): Use the new helper functions in throw bblocks in
8417 * mini.h: Bump AOT file format version.
8419 * mini.c (get_basic_blocks): Fix the calculation of bb->out_of_line so it
8422 2006-04-25 Martin Baulig <martin@ximian.com>
8424 * driver.c: Disable copyprop, consprop and inline when running
8425 inside the debugger.
8427 2006-04-25 Martin Baulig <martin@ximian.com>
8429 * debug-debugger.h (MonoDebuggerInfo): Replaced `get_thread_id'
8430 with `get_current_thread' and added `detach'.
8431 (MonoDebuggerMetadataInfo): Added `thread_size',
8432 `thread_tid_offset', `thread_stack_ptr_offset' and
8433 `thread_end_stack_offset'.
8435 2006-04-25 Zoltan Varga <vargaz@gmail.com>
8437 * aot.c Makefile.am: Split aot.c into two new files aot-compiler.c and
8440 * inssel.brg (mini_emit_load_intf_reg_vtable): Use a new kind of AOT constant
8441 ADJUSTED_IID to avoid the need for adjusting the IID at runtime.
8443 * mini.h (MonoJumpInfoType): Add MONO_PATCH_INFO_ADJUSTED_IID.
8445 * mini.c (mono_resolve_patch_target): Handle ADJUSTED_IID.
8447 * aot.c: Add support for ADJUSTED_IID.
8449 2006-04-24 Zoltan Varga <vargaz@gmail.com>
8451 * aot.c (emit_method_order): Don't align method_order_end.
8453 * inssel.brg (stmt): Fix interface calls in AOT code which got broken by
8454 the interface ID changes.
8456 2006-04-21 Dick Porter <dick@ximian.com>
8458 * mini.c (mini_thread_cleanup): Clear the JIT TLS data when
8459 cleaning up a thread. Fixes the new part of bug 77470.
8461 2006-04-20 Geoff Norton <gnorton@customerdna.com>
8463 * mini-ppc.c: Call mono_jit_thread_attach when transitioning a native
8466 2006-04-19 Zoltan Varga <vargaz@gmail.com>
8468 * mini.h mini.c: Remove mono_type_to_ldind/stind () which are now in marshal.c.
8470 * mini.c (mono_runtime_install_handlers): Handle SIGABRT similarly to
8471 SIGSEGV. Fixes #78072.
8473 * mini-exceptions.c (mono_handle_native_sigsegv): Add a 'signal' argument,
8474 unregister our SIGABRT handler.
8476 2006-04-19 Massimiliano Mantione <massi@ximian.com>
8478 * mini.c: Disabled inline where it can alter the call stack in a
8479 way visible from managed code.
8480 * driver.c: enabled inline,consprop,copyprop,treeprop,deadce by
8483 2006-04-16 Zoltan Varga <vargaz@gmail.com>
8485 * mini-amd64.c (mono_arch_emit_prolog): Attach the thread to the runtime as it is done
8486 on other platforms. Fixes #78089.
8488 2006-04-13 Martin Baulig <martin@ximian.com>
8490 * driver.c: Also check a `MONO_INSIDE_MDB' environment variable to
8491 determine whether we're inside the debugger.
8494 (MonoDebuggerMetadataInfo): Added all offsets from `MonoDefaults'.
8496 2006-04-12 Zoltan Varga <vargaz@gmail.com>
8498 * mini.c (mono_method_to_ir): Handle multiple LEAVE statements inside a single
8499 handler clauses. Fixes #78024.
8501 * mini-sparc.c (mono_arch_output_basic_block): Handle large offsets
8502 in the CALL_MEMBASE opcodes. Fixes #78088.
8503 (mono_arch_get_vcall_slot_addr): Ditto.
8505 2006-04-10 Martin Baulig <martin@ximian.com>
8507 * debug-debugger.c: The thread handling code has now been moved
8508 into ../metadata/threads.c.
8510 2006-04-10 Zoltan Varga <vargaz@gmail.com>
8512 * driver.c (mono_main): Fix --with-gc=none build.
8514 * mini-codegen.c (mono_spillvar_offset): Improve alignment.
8515 (mono_spillvar_offset_float): Ditto.
8516 (mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
8517 hreg, not when its !global, since on ia64, there is a third category: stacked
8520 Mon Apr 10 14:39:49 CEST 2006 Paolo Molaro <lupus@ximian.com>
8522 * mini.c: set MonoInst->klass for load field address and a few other
8525 2006-04-10 Zoltan Varga <vargaz@gmail.com>
8527 * helpers.c (mono_disassemble_code): Emit debug info on amd64 as well.
8529 2006-04-07 Zoltan Varga <vargaz@gmail.com>
8531 * dominators.c (compute_dominators): Fix yet another bug which surfaced after
8532 the branch opt changes.
8534 2006-04-06 Dick Porter <dick@ximian.com>
8536 * wapihandles.c (mini_wapi_semdel): Fix parameters in semctl () call.
8538 * wapihandles.c (mini_wapi_seminfo):
8539 * driver.c (mono_main): Add semaphore info option
8541 2006-04-05 Zoltan Varga <vargaz@gmail.com>
8543 * dominators.c (compute_dominators): Fix a bug which surfaced after the recent
8544 branch optimization changes. Fixes #78009.
8546 Wed Apr 5 16:40:33 CEST 2006 Paolo Molaro <lupus@ximian.com>
8548 * mini.c: ignore accessibility of methods in managed->native wrappers.
8550 2006-04-04 Zoltan Varga <vargaz@gmail.com>
8552 * mini.c (mini_cleanup): Call print_jit_stats () earlier since it accesses metadata.
8554 * mini.c (mini_cleanup): Free 'emul_opcode_map' as well.
8556 2006-04-03 Zoltan Varga <vargaz@gmail.com>
8558 * mini.c: Modify the branch optimizations to preserve the invariant that
8559 the entries inside the in_bb and out_bb arrays are unique.
8560 (mono_unlink_bblock): Avoid creation of new arrays.
8562 2006-04-02 Zoltan Varga <vargaz@gmail.com>
8564 * mini.c (mono_unlink_bblock): Fix regression caused by previous
8567 2006-04-01 Zoltan Varga <vargaz@gmail.com>
8569 * mini.c (optimize_branches): Remove the "optimizations" in
8570 the cbranch1/cbranch2 -> branch cases which were causing several
8571 problems in the past. Fixes #77986.
8573 2006-03-31 Chris Toshok <toshok@ximian.com>
8575 * driver.c (DEFAULT_OPTIMIZATIONS): back out the new set of
8576 default optimizations :(
8578 2006-03-31 Zoltan Varga <vargaz@gmail.com>
8580 * inssel-x86.brg mini-codegen.c mini.c: Merge some changes/fixes from linear-il
8583 2006-03-31 Massimiliano Mantione <massi@ximian.com>
8585 * local-propagation.c: Added comments to structs and removed
8586 "Mono" prefixes from local tree mover types.
8588 2006-03-30 Zoltan Varga <vargaz@gmail.com>
8590 * Makefile.am (arch_sources): Define this for each architecture so
8591 libmono_la_SOURCES is defined in one place.
8593 Wed Mar 29 20:51:14 CEST 2006 Paolo Molaro <lupus@ximian.com>
8595 * driver.c, wapihandles.c, Makefile.am: integrate the io-layer utils
8598 Wed Mar 29 17:16:57 CEST 2006 Paolo Molaro <lupus@ximian.com>
8600 * driver.c: print the GC name supplied by configure.
8602 2006-03-29 Massimiliano Mantione <massi@ximian.com>
8604 * local-propagation.c: Added tree mover, and moved here all the
8605 local propagation code from mini.c
8606 * mini.c: Added support for treeprop, and moved all the local
8607 propagation code to local-propagation.c
8608 * mini.h: Added support for treeprop
8609 * driver.c: Added support for treeprop, enabled consprop, copyprop,
8610 treeprop, inline and deadce by default
8611 * Makefile.am: Added local-propagation.c
8613 2006-03-25 Zoltan Varga <vargaz@gmail.com>
8615 * exceptions-sparc.c: Applied patch from David S. Miller <davem@sunset.davemloft.net>: Implement correct support for sparc/linux.
8617 Fri Mar 24 20:07:19 CET 2006 Paolo Molaro <lupus@ximian.com>
8619 * debug-debugger.c: make it compile without the Boehm GC.
8621 Wed Mar 22 18:25:18 CET 2006 Paolo Molaro <lupus@ximian.com>
8623 * mini.c: fixed issue with mismatch when an icall is registered
8624 with multiple names but same address.
8626 Tue Mar 21 15:59:57 CET 2006 Paolo Molaro <lupus@ximian.com>
8628 * declsec.c, mini-exceptions.c: use write barrier to set reference
8629 fields of managed objects.
8631 2006-03-19 Zoltan Varga <vargaz@gmail.com>
8633 * mini.c (mono_print_method_from_ip): Recognize JIT trampolines as well.
8634 (can_access_internals): Fix a warning.
8636 * mini.c (print_method_from_ip): Rename this to
8637 mono_print_method_from_ip so it gets exported.
8639 * trace.c: Deal with strings inside StringBuilder's containing garbage
8640 and fix memory leaks. Fixes #77848.
8642 2006-03-19 Zoltan Varga <vargaz@gmail.com>
8644 * mini.c (mini_init): Disable the setting of GC_stackbottom on ia64. Hopefully
8647 2006-03-16 Neale Ferguson <neale@sinenomine.net>
8649 * mini-s390.c: Remove OP_X86_TEST_NULL.
8651 Thu Mar 16 17:19:04 CET 2006 Paolo Molaro <lupus@ximian.com>
8653 * mini.c: use the correct GetHashCode() for the moving collector.
8655 2006-03-16 Massimiliano Mantione <massi@ximian.com>
8657 * liveness.c: Regalloc spill cost tuning.
8659 2006-03-15 Neale Ferguson <neale@sinenomine.net>
8661 * mini-s390x.h: Correct S390_LONG macro.
8663 * mini-s390x.c: Cleanup unused code.
8665 2006-03-15 Zoltan Varga <vargaz@gmail.com>
8667 * jit-icalls.h: New file.
8669 * Makefile.am mini.c jit-icalls.c: Use a proper include file for the jit
8670 icalls and include that instead of including jit-icalls.c.
8672 * mini-ppc.c (mono_arch_output_basic_block): Remove references to
8675 Tue Mar 14 20:23:53 CET 2006 Paolo Molaro <lupus@ximian.com>
8677 * mini.c: when checking for member accessibility, also check for
8678 friend assemblies and for explicit interface implementations.
8680 2006-03-14 Zoltan Varga <vargaz@gmail.com>
8682 * mini-codegen.c (mono_local_regalloc): Remove incorrect g_free () calls.
8684 * cpu-arm.md cpu-g4.md: Remove x86_ opcodes.
8686 * mini-x86.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
8687 common cases are done first.
8689 * mini-ops.h: Only define platform specific opcodes on the given platform.
8691 * mini.h regalloc.h mini-codegen.c: Merge optimizations from the linear-il
8694 2006-03-14 Martin Baulig <martin@ximian.com>
8696 Revert Paolo's change from r57348:
8698 * mini.h: don't use gboolean for bitfields.
8699 * mini.c: verifier changes for fields and methods accessibility.
8701 2006-03-13 Neale Ferguson <neale@sinenomine.net>
8703 * mini-s390.h, mini-s390x.h: Fix calls to mono_call_inst_add_outarg_reg.
8705 * mini-s390x.c: Fix conv_r_un.
8707 * cpu-s390, cpu-s390x.md: Fix lengths.
8709 Sun Mar 12 17:31:22 CET 2006 Paolo Molaro <lupus@ximian.com>
8711 * mini.c: nested types have access to all the nesting
8712 levels, not just the enclosing types.
8714 Sun Mar 12 16:23:11 CET 2006 Paolo Molaro <lupus@ximian.com>
8716 * mini.c: added a few more verification checks.
8718 2006-03-12 Zoltan Varga <vargaz@gmail.com>
8720 * liveness.c: Merge optimizations from the linear-il branch.
8722 2006-03-11 Zoltan Varga <vargaz@gmail.com>
8724 * mini-ia64.c (emit_call): Add a comment.
8726 * tramp-ia64.c (mono_arch_patch_callsite): Handle indirect calls as well.
8728 * tramp-ia64.c: Fix some warnings.
8730 Sat Mar 11 20:15:59 CET 2006 Paolo Molaro <lupus@ximian.com>
8732 * mini.h: don't use gboolean for bitfields.
8733 * mini.c: verifier changes for fields and methods accessibility.
8735 2006-03-11 Zoltan Varga <vargaz@gmail.com>
8737 * mini.c (mono_icall_get_wrapper): Fix an ia64 bug introduced by the
8738 lazy icall wrapper changes.
8740 * dominators.c: Replace all the dominator algorithms with faster
8741 ones from the linear-il branch.
8743 * inssel-*.brg: Allocate call->out_ireg_args and call->out_freg_args from
8746 * mini-amd64.h (MONO_ARCH_INST_FIXED_REG): Reorganize the comparisons so
8747 common cases are done first.
8749 * mini-amd64.c: Fix some warnings.
8751 * mini-codegen.c mini-*.c: Allocate call->out_ireg_args and call->out_freg_args
8754 * mini.c (mono_jit_compile_method_with_opt): Fix a race in the newly
8757 * mini.h: Add a missing prototype.
8759 2006-03-10 Zoltan Varga <vargaz@gmail.com>
8761 * mini.c: Compile icall wrappers lazily.
8763 * mini-codegen.c: Use printf instead of g_print since its much faster.
8765 * mini.h (mono_bitset_foreach_bit): Use the faster mono_bitset_find_start ()
8768 * mini.c (optimize_branches): Cache the negative result from
8769 remove_block_if_useless ().
8771 * mini.c (optimize_branches): Avoid restarting the iteration after each change.
8772 Also fix some bblock linking issues.
8774 * helpers.c (mono_disassemble_code): Reduce the size of the temporary
8777 * mini.h: Define G_LIKELY/G_UNLIKELY macros for older glib versions.
8779 * mini.h (MonoBasicBlock): Reorganize the fields, putting more frequently
8780 accessed fields first, for better cache behavior.
8782 Fri Mar 10 18:21:41 CET 2006 Paolo Molaro <lupus@ximian.com>
8784 * mini.c: speedup IList<T> array accesses.
8786 2006-03-09 Zoltan Varga <vargaz@gmail.com>
8788 * mini.c (mono_method_to_ir): Handle large methods overflowing the
8789 inline_costs counter. Fixes #77190.
8791 2006-03-06 Zoltan Varga <vargaz@gmail.com>
8793 * mini-exceptions.c: Call mono_trace_is_enabled () before printing
8794 trace messages. Fixes #77706.
8796 2006-03-04 Martin Baulig <martin@ximian.com>
8798 * tramp-amd64.c, tramp-x86.c
8799 (mono_debugger_create_notification_function): Use
8800 mono_global_codeman_reserve() to allocate a buffer at runtime and
8803 * debug-debugger.h (MonoDebuggerInfo): Added `initialize'.
8805 * debug-debugger.c (mono_debugger_init): Dynamically allocate the
8806 notification function at runtime and then call `initialize' in the
8807 `MONO_DEBUGGER__debugger_info' vtable.
8809 2006-03-04 Zoltan Varga <vargaz@gmail.com>
8811 * iltests.il: Fix a visibility problem.
8813 Wed Mar 1 15:55:25 CET 2006 Paolo Molaro <lupus@ximian.com>
8815 * driver.c, mini.c: add hooks for the counters API.
8817 Wed Mar 1 12:28:04 CET 2006 Paolo Molaro <lupus@ximian.com>
8819 * driver.c: show disabled options.
8821 Wed Mar 1 12:18:51 CET 2006 Paolo Molaro <lupus@ximian.com>
8823 * linear-scan.c: always use cost-driven selection.
8825 2006-02-28 Raja R Harinath <rharinath@novell.com>
8827 * jit-icalls.c (helper_compile_generic_method): Revert change from
8830 Mon Feb 27 18:58:19 GMT 2006 Paolo Molaro <lupus@ximian.com>
8832 * cpu-arm.md, mini-arm.c: implemented MemoryBarrier.
8834 Sat Feb 25 17:39:21 CET 2006 Paolo Molaro <lupus@ximian.com>
8836 * inssel.brg: style fixes, mostly to force the updated monoburg
8837 to run for people using svn.
8839 Sat Feb 25 17:07:42 CET 2006 Paolo Molaro <lupus@ximian.com>
8841 * mini.c: match monoburg changes.
8843 Sat Feb 25 16:04:33 CET 2006 Paolo Molaro <lupus@ximian.com>
8845 * mini.h, mini.c, abcremoval.c, aliasing.c, liveness.c,
8846 ssapre.c, graph.c, ssa.c: put the mono_burg_arity[]
8847 declaration in the header file.
8849 Sat Feb 25 14:19:31 CET 2006 Paolo Molaro <lupus@ximian.com>
8851 * helpers.c: reduce relocations and mem usage.
8853 Sat Feb 25 11:58:16 CET 2006 Paolo Molaro <lupus@ximian.com>
8855 * mini.h, mini-codegen.c: disable logging features if
8856 requested by configure.
8858 Sat Feb 25 11:54:49 CET 2006 Paolo Molaro <lupus@ximian.com>
8860 * mini.c: tiny verifier changes.
8862 Fri Feb 24 18:17:52 CET 2006 Paolo Molaro <lupus@ximian.com>
8864 * mini-ops.h, inssel-x86.brg, tramp-x86.c, mini-x86.c,
8865 cpu-pentium.md: stack alignment changes for osx/x86,
8866 partially from Geoff Norton <gnorton@customerdna.com>.
8868 2006-02-24 Raja R Harinath <harinath@gmail.com>
8870 * jit-icalls.c (helper_compile_generic_method): Update to changes
8871 in metadata/class.c.
8873 2006-02-24 Zoltan Varga <vargaz@gmail.com>
8875 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add a missing check.
8877 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Add support for
8878 interface calls with large offsets.
8880 2006-02-23 Raja R Harinath <rharinath@novell.com>
8882 * jit-icalls.c (helper_compile_generic_method): Document the
8883 special-case we depend on so that we can inflate the method twice
8884 with the same context with no bad side-effects.
8886 Thu Feb 23 13:45:46 CET 2006 Paolo Molaro <lupus@ximian.com>
8888 * mini-x86.c, mini-amd64.c: fix for case when xen support
8891 Wed Feb 22 19:38:40 CET 2006 Paolo Molaro <lupus@ximian.com>
8893 * mini-x86.c, mini-amd64.c: generate code to access tls items
8894 in a faster way for Xen systems.
8896 Wed Feb 22 10:31:25 CET 2006 Paolo Molaro <lupus@ximian.com>
8898 * exceptions-x86.c, mini-x86.h, driver.c, mini-codegen.c:
8899 updates and compilation fixes for the OSX/x86 port, mostly from
8900 Geoff Norton <gnorton@customerdna.com>.
8902 Tue Feb 21 19:56:55 CET 2006 Paolo Molaro <lupus@ximian.com>
8904 * inssel.brg: faster interface call implementation
8905 to sync with the interface_offsets MonoVTable changes.
8907 Mon Feb 20 10:37:57 CET 2006 Paolo Molaro <lupus@ximian.com>
8909 * mini.c: more verification checks.
8911 Fri Feb 17 19:47:29 CET 2006 Paolo Molaro <lupus@ximian.com>
8913 * mini.c: added a few more verification checks.
8915 2006-02-17 Neale Ferguson <neale@sinenomine.net>
8917 * mini-s390x.c, mini-s390x.h: Check for presence of long displacement
8918 facility on the processor and use it if available.
8920 Fri Feb 17 16:12:52 CET 2006 Paolo Molaro <lupus@ximian.com>
8922 * driver.c, aot.c, mini.c: throw exception if the IL code is
8923 invalid or unverifiable.
8925 2006-02-17 Raja R Harinath <rharinath@novell.com>
8927 * generics.2.cs (test_0_ldfld_stfld_mro): Use m.struct_field, not
8930 2006-02-16 Zoltan Varga <vargaz@gmail.com>
8932 * generics.2.cs: Add some tests for generics ldfld/stfld wrappers.
8934 Wed Feb 15 16:23:17 CET 2006 Paolo Molaro <lupus@ximian.com>
8936 * mini-s390x.c, mini-s390.c, mini.c, mini-amd64.c, mini-arm.c,
8937 mini-ia64.c, mini-sparc.c, mini-x86.c, mini-ppc.c: fixed
8938 handling of instantiated generic valuetypes.
8940 2006-02-11 Zoltan Varga <vargaz@gmail.com>
8942 * mini-exceptions.c mini-x86.h mini-x86.c: Get rid of
8943 MONO_INIT_CONTEXT_FROM_CALLER, and use MONO_INIT_CONTEXT_FROM_FUNC
8946 * generics.2.cs: Revert the nullable reftypes tests.
8948 2006-02-10 Zoltan Varga <vargaz@gmail.com>
8950 * mini-exceptions.c (MONO_INIT_CONTEXT_FROM_CALLER): Avoid
8951 using __builtin_frame_address (1) as it doesn't work in the presence
8952 of optimizations. Hopefully fixes #77273.
8954 * Makefile.am generics.cs generics.2.cs: Revert the generics.2.cs
8955 -> generics.cs change as it doesn't work with some automake versions.
8957 Thu Feb 9 16:24:44 CET 2006 Paolo Molaro <lupus@ximian.com>
8959 * mini.c: handle systems that sue a different way to
8960 retrieve the stack address of the current thread.
8962 2006-02-09 Zoltan Varga <vargaz@gmail.com>
8964 * Makefile.am generics.2.cs: Rename this to generics.cs and handle
8965 it specially in the makefile.
8967 * generics.2.cs: Add tests for nullable reference types.
8969 Wed Feb 8 19:33:17 CET 2006 Paolo Molaro <lupus@ximian.com>
8971 * mini.c: always handle the case when mono_jit_init()
8972 is called in a thread different from the main thread,
8973 confusing libgc (bug #77309).
8975 Mon Feb 6 09:01:24 EST 2006 Paolo Molaro <lupus@ximian.com>
8977 * mini-ppc.c: fix handling of exceptions in large methods (bug #74932).
8979 Fri Feb 3 18:51:35 CET 2006 Paolo Molaro <lupus@ximian.com>
8981 * mini.c: change optimize_branches () to use a single loop
8982 and introduce a new optimization to simplify some range checks.
8984 2006-02-03 Martin Baulig <martin@ximian.com>
8986 * debug-debugger.c (debugger_thread_manager_thread_created): Removed
8987 and merged with debugger_thread_manager_add_thread().
8988 (mono_debugger_main): Call debugger_thread_manager_add_thread() to
8989 inform the debugger about the main thread.
8991 2006-02-03 Zoltan Varga <vargaz@gmail.com>
8993 * basic.cs: Add test for div.un/rem.un constant folding.
8995 2006-02-03 Neale Ferguson <neale@sinenomine.net>
8997 * cpu-s390x.md: correct int_xor_imm length
8999 2006-02-03 Zoltan Varga <vargaz@gmail.com>
9001 * generics.2.cs: New test for #77442.
9003 * jit-icalls.c (helper_compile_generic_method): Check for null. Fixes
9006 2006-02-02 Martin Baulig <martin@ximian.com>
9008 * tramp-x86.c, tramp-amd64.c: It's now safe to #include
9009 <mono/metadata/mono-debug-debugger.h>
9011 * debug-mini.c: Don't #define _IN_THE_MONO_DEBUGGER.
9013 2006-02-02 Martin Baulig <martin@ximian.com>
9015 * debug-debugger.h: New header file for debug-debugger.c.
9017 * debug-debugger.c: Big API cleanup; don't run the managed Main()
9018 function is a separate thread anymore; add support for attaching.
9020 2006-02-01 Zoltan Varga <vargaz@gmail.com>
9022 * tramp-x86.c: Fix a warning.
9024 2006-01-31 Zoltan Varga <vargaz@gmail.com>
9026 * mini-amd64.c (mono_arch_compute_omit_fp): Avoid hitting an assertion
9027 on very large methods.
9029 * aot.c (load_patch_info): Fix a warning.
9031 Mon Jan 30 12:51:10 CET 2006 Paolo Molaro <lupus@ximian.com>
9033 * cpu-pentium.md, mini-x86.c, inssel.brg, inssel-x86.brg,
9034 mini-ops.h: alu membase optimizations.
9036 Fri Jan 27 21:11:08 CET 2006 Paolo Molaro <lupus@ximian.com>
9038 * mini-ops.h, mini.c, inssel.brg, inssel-x86.brg: opcode
9039 to speedup StringBuilder.
9041 2006-01-27 Zoltan Varga <vargaz@gmail.com>
9043 * dominators.c (mono_compute_natural_loops): Fix detection of
9044 loop body start blocks.
9046 * mini-exceptions.c (mono_print_thread_dump): Fix non x86 builds.
9048 2006-01-26 Zoltan Varga <vargaz@gmail.com>
9050 * mini.h mini.c mini-exceptions.c: Add thread dump support. Fixes
9053 2006-01-25 Massimiliano Mantione <massi@ximian.com>
9055 * aliasing.c: Fixed aliasing issue on 64 bit archs.
9057 2006-01-25 Martin Baulig <martin@ximian.com>
9059 * debug-debugger.c: Moved the `MonoDebuggerManager' and
9060 `MonoDebuggerThread' typedefs here from mono-debug-debugger.h and
9061 started to cleanup this file a little bit.
9063 Tue Jan 24 18:20:48 CET 2006 Paolo Molaro <lupus@ximian.com>
9065 * mini.c: optimize a codepath frequently happening in generics code.
9067 2006-01-23 Martin Baulig <martin@ximian.com>
9069 * Makefile.am: Only compile debug-debugger.c on supported platforms.
9071 * debug-debugger.c: Kill the IO_LAYER() hack and use the io-layer
9074 * driver.c: debug-debugger.c is only available if
9075 `MONO_DEBUGGER_SUPPORTED' is defined.
9077 2006-01-23 Martin Baulig <martin@ximian.com>
9079 * debug-debugger.c: Only enable this on platforms where the Mono
9080 Debugger is working (x86 and x86_64).
9082 2006-01-21 Martin Baulig <martin@ximian.com>
9084 The Mono Debugger is now using the normal `mono' instead of the
9085 `mono-debugger-mini-wrapper' when executing managed code.
9087 * debug-debugger.c: New file; previously known as
9088 debugger/wrapper/wrapper.c.
9090 * debug-mini.c (mono_init_debugger): Removed.
9092 * driver.c (mono_main): Added new `--inside-mdb' command line
9093 argument which is used when running inside the debugger.
9095 2006-01-20 Zoltan Varga <vargaz@gmail.com>
9097 * liveness.c (mono_analyze_liveness): Remove some unused data
9100 2006-01-17 Zoltan Varga <vargaz@gmail.com>
9102 * mini.h: Move mono_bitset_test_fast macro to monobitset.h where it belongs.
9104 2006-01-16 Zoltan Varga <vargaz@gmail.com>
9106 * mini.h (mono_bitset_test_fast): Disable the 'fast' implementation which
9107 depends on implementation details of monobitset.
9109 * mini.c (mini_get_ldelema_ins): Fix handling of 1 dimensional arrays.
9112 2006-01-15 Zoltan Varga <vargaz@gmail.com>
9114 * liveness.c: Update after monobitset changes.
9116 2006-01-14 Zoltan Varga <vargaz@gmail.com>
9118 * mini-amd64.c (mono_arch_compute_omit_fp): Fix a leak.
9120 2006-01-11 Neale Ferguson <neale@sinenomine.net>
9122 * inssel-s390x.brg: Fix reg: OP_LDADDR(OP_S390_LOADARG) register setting.
9124 * mini-s390x.c: Remove warning messages.
9126 2006-01-11 Ben Maurer <bmaurer@andrew.cmu.edu>
9128 * mini.c: pass the jitinfo to mono_profiler_method_end_jit.
9130 2006-01-10 Zoltan Varga <vargaz@gmail.com>
9132 * generics.2.cs: Add ldelem/stelem_any test.
9134 2006-01-10 Neale Ferguson <neale@sinenomine.net>
9136 * mini-s390.c: Fix ATOMIC_ADD_I4 operation.
9138 2006-01-07 Zoltan Varga <vargaz@gmail.com>
9140 * inssel-long.brg: Fix int->long ovf conversion rules. Fixes #77172.
9142 2006-01-06 Zoltan Varga <vargaz@gmail.com>
9144 * generics.2.cs: Reenable vtype tests.
9146 * inssel-x86.brg: Remove an icorrect valuetype rule.
9148 2006-01-06 Neale Ferguson <neale@sinenomine.net>
9150 * mini-s390x.c, inssel-s390x.brg, cpu-s390x.md: Fix ATOMIC_I8 operations. Provide
9151 initial support for OP_ABS.
9153 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9155 * mini-s390x.c (emit_float_to_int): Correct r8 to unsigned int algorithm.
9157 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9159 * mini-s390.c, mini-s390.h, inssel-s390.brg, cpu-s390.md: Fix r8 to unsigned int
9160 conversion and implement LADD/LSUB.
9162 * exceptions-s390.c: Standardize mono_arch_find_jit_info to match other
9165 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9167 * mini-s390x.c, mini-s390x.h: Fix r8 to unsigned int conversion.
9169 * exceptions-s390x.c: Standardize mono_arch_find_jit_info to match other
9172 2006-01-05 Neale Ferguson <neale@sinenomine.net>
9174 * mini-s390x.c, mini-s390x.h, mini-s390.c, mini-s390.h: Fix lmf handling when
9175 localloc is encountered. Fixes crash in test-183.cs when using gmcs
9176 (stack walk problem).
9178 2006-01-04 Zoltan Varga <vargaz@gmail.com>
9180 * aot.c (mono_aot_load_method): Fix a warning.
9182 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9184 * mini-s390x.h, exceptions-s390x.c, inssel-s390x.brg: Fix compiler warnings
9186 2006-01-03 Zoltan Varga <vargaz@gmail.com>
9188 * iltests.il: Add test for #77148.
9190 * mini.c (mini_get_ldelema_ins): Handle arrays with rank 1 too. Fixes
9193 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9195 * mini-s390x.c, inssel-s390x.brg: Remove debug statements
9197 2006-01-03 Neale Ferguson <neale@sinenomine.net>
9199 * mini-s390x.c, mini-s390x.h, exceptions-s390x.c, tramp-s390x.c, inssel-s390x.brg,
9200 cpu-s390x.md, mini-codegen.c, Makefile.am: add 64-bit s390 support to JIT.
9202 * basic-long.cs: Add lconv-to-r4/r8 tests.
9204 2006-01-03 Zoltan Varga <vargaz@gmail.com>
9206 * mini.c (mono_method_to_ir): Fix DynamicMethod support in some opcodes.
9208 * mini-sparc.c (mono_arch_call_opcode): Use mono_class_value_size ()
9209 here as on other archs.
9211 2005-12-29 Neale Ferguson <neale@sinenomine.net>
9213 * mini-s390.c (mono_arch_get_inst_for_method): Add memory_barrier support.
9215 2005-12-29 Neale Ferguson <neale@sinenomine.net>
9217 * inssel-s390.brg: Correct register assignment; Rework L[ADD|SUB]_OVF[_UN] for s390.
9219 * cpu-s390.md: Fix lengths of a couple of long instructions; Add memory_barrier.
9221 * mini-s390.c: Fix long add/sub overflow instructions; Fix displacement handling in
9222 instrument_prolog; Add memory_barrier instruction.
9224 2005-12-26 Zoltan Varga <vargaz@gmail.com>
9226 * exceptions-x86.c mini-x86.h: Fix solaris/x86 exception handling.
9228 2005-12-23 Zoltan Varga <vargaz@gmail.com>
9230 * tramp-ia64.c (mono_arch_get_unbox_trampoline): Flush icache.
9232 * aliasing.c inssel.brg: Fix warnings.
9234 * inssel-ia64.brg (OP_MEMSET): Fix an optimization which previously
9235 could skip initialization of some parts of memory.
9237 * mini.c mini-ia64.c: Fix warnings.
9239 * inssel-sparc.brg: Add an implementation of lneg which actually works.
9241 2005-12-22 Zoltan Varga <vargaz@gmail.com>
9243 * aliasing.c (mono_build_aliasing_information): Add a workaround for
9244 a crash seen on sparc.
9246 * mini-sparc.c: Add implementation of Thread.MemoryBarrier.
9248 * cpu-sparc.md: Add memory_barrier opcode. Remove unused opcodes.
9250 2005-12-21 Neale Ferguson <neale@sinenomine.net>
9252 * mini-ops.h: Add s390_backchain instruction
9254 * inssel-s390.brg: Use backchaining instruction for LOADARG/STKARG operations.
9256 * cpu-s390.md: Add s390_backchain instruction
9258 * mini-s390.c: Significant ABI changes
9260 * mini-s390.h: Cater for zero length structures
9262 2005-12-20 Neale Ferguson <neale@sinenomine.net>
9264 * mini-s390.c: ABI fixes
9266 * inssel-s390.brg: Remove debug statements
9268 * cpu-s390.md: Fix length of ATOMIC_xx operations
9270 2005-12-19 Zoltan Varga <vargaz@gmail.com>
9272 * basic-float.cs: Add float<->long conversion tests.
9274 2005-12-16 Neale Ferguson <neale@sinenomine.net>
9276 * mini-s390.c: Fix LOCALLOC processing.
9278 * tramp-s390.c (s390_magic_trampoline): Fix base calculation.
9280 2005-12-15 Zoltan Varga <vargaz@gmail.com>
9282 * iltests.il: Add tests for some opcodes not covered by the other
9285 2005-12-15 Neale Ferguson <neale@sinenomine.net>
9287 * mini-s390.c: Fix ADDCC/SBB bug revealed by test_0_ulong_regress; Correct
9288 register loading for Tail processing; Correct trace output.
9290 * inssel-s390.brg: Reimplement LSUB_OVF due to s390 implementation of signed math.
9292 * cpu-s390.md: Correct size of jmp instruction.
9294 2005-12-13 Neale Ferguson <neale@sinenomine.net>
9296 * mini-s390.c (mono_arch_emit_prolog): Remove some debugging bits.
9298 2005-12-13 Neale Ferguson <neale@sinenomine.net>
9300 * inssel-s390.brg tramp-s390.c cpu-s390.md mini-s390.c mini-s390.h:
9301 Bring s390 up to current level.
9303 2005-12-12 Zltan Varga <vargaz@gmail.com>
9305 * generics.2.cs: Disable the newly added tests as they do not work yet.
9307 * generics.2.cs: Add valuetype tests.
9309 2005-12-09 Zoltan Varga <vargaz@gmail.com>
9311 * basic-long.cs: Add i4->u8 test.
9313 * objects.cs: Add tests for JIT intrinsic.
9315 * mini.c (mini_get_inst_for_method): Resurrect the array Rank/Length
9316 optimizations lost by a mistake.
9318 2005-12-07 Zoltan Varga <vargaz@gmail.com>
9320 * basic-long.cs: Remove a test moved to objects.cs.
9322 * arrays.cs: Add more array tests.
9324 2005-12-06 Zoltan Varga <vargaz@gmail.com>
9326 * arrays.cs: Add new tests for multi-dimensional arrays.
9328 2005-12-06 Raja R Harinath <rharinath@novell.com>
9330 * Makefile.am (test_sources2): Add generics.2.cs.
9331 (EXTRA_DIST): Add test_sources2.
9333 2005-12-05 Ben Maurer <bmaurer@ximian.com>
9335 Support for boxing and unboxing nullable types as well as the
9336 isinst operation on nullables, per the CLI ammendment.
9338 * inssel.brg (CEE_ISINST): Special case for nullable
9340 * mini.c (handle_unbox_nullable): new method
9341 (handle_box): Special case for nullable types
9342 (mono_method_to_ir): Call handle_unbox_nullable in correct
9345 * generics.2.cs: New test suite
9347 * Makefile.am: Support for regression tests with generics.
9349 2005-12-03 Zoltan Varga <vargaz@gmail.com>
9351 * mini-amd64.c (emit_load_volatile_arguments): Add loading of arguments
9352 allocated to registers. Fixes #76800.
9354 Thu Dec 1 12:59:40 EST 2005 Paolo Molaro <lupus@ximian.com>
9356 * mini-ppc.c, inssel-ppc.brg: fix ABI issue (pinvoke3.cs).
9358 2005-11-30 Zoltan Varga <vargaz@gmail.com>
9360 * exceptions.cs: Disable test_0_long_cast () test, since it fails on a lot
9363 2005-11-29 Zoltan Varga <vargaz@gmail.com>
9365 * objects.cs basic-calls.cs: Move a test depending on valuetypes to
9368 * inssel-long32.brg (CEE_CONV_I8): Remove unused labels.
9370 * inssel-long32.brg (CEE_CONV_I8): Convert this to a branchless version.
9371 Tue Nov 29 05:41:34 EST 2005 Paolo Molaro <lupus@ximian.com>
9373 * mini-ppc.c, cpu-g4.md: ensure a fp register is converted to
9374 single precision before storing to a single precision location.
9376 2005-11-28 Raja R Harinath <rharinath@novell.com>
9378 * Makefile.am (ILASM): Use profile-dependent location of ilasm.
9380 2005-11-27 Zoltan Varga <vargaz@gmail.com>
9382 * basic-long.cs basic-calls.cs objects.cs: Move some tests to the
9385 * basic.cs: Remove test_0_byte_compares test which was moved to
9386 objects.cs a long time ago.
9388 2005-11-22 Massimiliano Mantione <massi@ximian.com>
9390 * aliasing.c: Fixed aliasing issue on 64 bit archs.
9392 2005-11-20 Zoltan Varga <vargaz@gmail.com>
9394 * mini-ia64.c exceptions-ia64.c: Simplify the way filters/finally
9395 handlers are called.
9397 * mini-ia64.c (mono_arch_emit_exceptions): Optimize size of exception
9400 * mini-ia64.c: Add support for the throw->branch exception
9403 * driver.c (DEFAULT_OPTIMIZATIONS): Add MONO_OPT_EXCEPTION.
9405 2005-11-18 Massimiliano Mantione <massi@ximian.com>
9407 * mini.c: Enabled "fastpath" deadce :-)
9409 2005-11-18 Massimiliano Mantione <massi@ximian.com>
9411 * mini.c: Added "fastpath" deadce (deadce without SSA), and a simple
9412 alias analysis pass to support it.
9415 * liveness.c: Likewise (liveness computation can use aliasing
9416 information to be more accurate).
9417 * driver.c: Added an "ssa" option go tell the JIT to use SSA, and
9418 moreover made so that "--compile-all" uses the given optimization
9419 flags and not the default ones.
9420 * aliasing.c: Alias analysis (new file).
9421 * aliasing.h: Likewise.
9422 * Makefile.am: added "aliasing.c" and "aliasing.h".
9424 2005-11-17 Zoltan Varga <vargaz@gmail.com>
9426 * mini-ops.h: Add missing OP_I opcodes so it is in synch with the
9429 2005-11-13 Zoltan Varga <vargaz@gmail.com>
9431 * mini-exceptions.c (mono_handle_exception_internal): Remove the
9432 fp >= end_of_stack exit condition, as it is not needed, and it might
9433 become true for fp eliminated frames.
9435 2005-11-11 Zoltan Varga <vargaz@gmail.com>
9437 * mini-x86.c (mono_arch_emit_epilog): Use G_STRUCT_OFFSET instead of hard
9440 Tue Nov 8 11:28:20 GMT 2005 Paolo Molaro <lupus@ximian.com>
9442 * mini-arm.c: fixed alignment of doubles/longs to match
9443 the C ABI (bug #76635).
9445 Mon Nov 7 16:13:21 CET 2005 Paolo Molaro <lupus@ximian.com>
9447 * aot.c: fix compilation with --enable-minimal=aot.
9449 Fri Nov 4 12:34:15 GMT 2005 Paolo Molaro <lupus@ximian.com>
9451 * mini-arm.c: fixed compatibility with the new
9452 floating point emulator package for compares.
9454 2005-11-03 Atsushi Enomoto <atsushi@ximian.com?
9456 * mini.c : reverted sig->pinvoke changes (r51396-51397).
9458 2005-11-01 Zoltan Varga <vargaz@freemail.hu>
9460 * mini-exceptions.c (print_stack_frame): Output to stderr.
9461 (mono_handle_native_sigsegv): Ditto.
9463 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
9465 * mini-amd64.c (mono_arch_output_basic_block): Remove unused
9466 OP_LCONV_TO_OVF_I implementation.
9468 * mini-amd64.c: Add support for the throw->branch exception
9471 * branch-opts.c (mono_branch_optimize_exception_target): Allow the case
9472 when the catch clause catches a more general exception, i.e. Object.
9474 2005-10-30 Zoltan Varga <vargaz@gmail.com>
9476 * cpu-ia64.md: Remove unused opcodes.
9478 * mini.c (GET_CONTEXT): Simplify this somewhat by removing arch
9479 specific defines for architectures defining USE_SIGACTION.
9481 * mini-ia64.c: Fix some warnings.
9483 * exceptions-ia64.c (mono_arch_ip_from_context): Fix this, the previous
9484 version seemed to skip a frame.
9486 2005-10-30 Zoltan Varga <vargaz@freemail.hu>
9488 * mini.c: Clean up the usage of sig->pinvoke flag. Now
9489 only calls which are made to native code use this flag.
9491 2005-10-29 Zoltan Varga <vargaz@freemail.hu>
9493 * mini-amd64.c (mono_arch_compute_omit_fp): Disable fp elimination for
9494 varargs methods as well.
9496 * mini-amd64.c exceptions-amd64.c: Allow fp elimination in methods
9497 which have save_lmf set. Reorganize methods prologs a bit.
9499 * mini-amd64.c (mono_arch_compute_omit_fp): Move the check for the
9500 debugger to the proper place.
9502 2005-10-29 Martin Baulig <martin@ximian.com>
9504 * mini-amd64.c (debug_omit_fp): Temporarily disable fp elimination
9505 when running inside the debugger until the debugger has support
9508 2005-10-26 Zoltan Varga <vargaz@gmail.com>
9510 * mini.h: Fix a warning.
9512 2005-10-24 Miguel de Icaza <miguel@novell.com>
9514 * mini.c (mono_pmip): Just a wrapper for get_method_from_ip which
9515 we expose publicly, this returns the string.
9517 2005-10-22 Zoltan Varga <vargaz@freemail.hu>
9519 * exceptions-amd64.c (mono_arch_find_jit_info): Fix some corner cases
9520 with fp elimination.
9522 2005-10-21 Zoltan Varga <vargaz@gmail.com>
9524 * mini-exceptions.c (mono_handle_native_sigsegv): Try to print a
9525 native stacktrace using the glibc 'backtrace' function if available.
9527 2005-10-20 Zoltan Varga <vargaz@gmail.com>
9529 * mini.h (MonoDebugOptions): Remove 'abort_on_sigsegv' option.
9531 * mini-exceptions.c (mono_handle_native_sigsegv): New function to
9532 handle SIGSEGVs received while in native code.
9534 * mini.c (sigsegv_signal_handler): If the SIGSEGV happened in native
9535 code, call mono_handle_native_sigsegv which will abort the runtime
9536 after printing some diagnostics, instead of converting it into a
9537 confusing NullReferenceException.
9539 2005-10-18 Zoltan Varga <vargaz@gmail.com>
9541 * cpu-pentium.md: Remove unused opcodes.
9543 2005-10-18 Zoltan Varga <vargaz@freemail.hu>
9545 * mini-amd64.h (MonoLMF): Add rsp field.
9547 * mini-amd64.c exceptions-amd64.c tramp-amd64.c: Save the sp reg into
9550 2005-10-17 Zoltan Varga <vargaz@gmail.com>
9552 * mini-codegen.c (get_register_spilling): Fix some warnings.
9554 2005-10-16 Zoltan Varga <vargaz@freemail.hu>
9556 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Add support for fp
9557 elimination during exception handling. Enable fp elimination by
9560 * mini-amd64.h mini-amd64.c: Add preliminary support for frame pointer
9563 2005-10-16 Martin Baulig <martin@ximian.com>
9566 (mono_debugger_run_finally): New public method for the debugger.
9568 2005-10-10 Zoltan Varga <vargaz@gmail.com>
9570 * debug-mini.c (mono_debug_init_method): Fix warning.
9572 * mini.h branch-opts.c (mono_branch_optimize_exception_target): Make
9573 the 'exname' parameter const to fix some warnings.
9575 2005-10-09 Zoltan Varga <vargaz@freemail.hu>
9577 * mini-exceptions.c (mono_handle_exception_internal): Fix another bug
9578 introduced by the previous patch.
9580 2005-10-08 Zoltan Varga <vargaz@gmail.com>
9582 * basic-float.cs: Add test for precision of float arithmetic.
9584 * mini-ia64.c (mono_arch_output_basic_block): Convert to/from doubles
9585 when loading/storing single values from/to memory.
9587 * mini.c (mono_jit_compile_method_with_opt): Create the function
9588 pointers in the correct domain.
9590 2005-10-08 Zoltan Varga <vargaz@freemail.hu>
9592 * mini-exceptions.c (mono_handle_exception_internal): Fix bug
9593 introduced by previous patch.
9595 * mini-exceptions.c (mono_handle_exception_internal): Handle the case
9596 when out_filter_idx is NULL.
9598 * mini-exceptions.c: Don't run filter clauses twice during exception
9599 handling. Fixes #75755.
9601 2005-10-07 Zoltan Varga <vargaz@gmail.com>
9603 * aot.c: Add support for ldflda wrappers.
9605 * mini.c (mono_method_to_ir): Use ldflda wrappers for CEE_LDFLDA. Fixes
9608 Tue Oct 4 20:23:25 CEST 2005 Paolo Molaro <lupus@ximian.com>
9610 * mini.c, mini.h: do not consider exception handlers blocks when
9611 setting up interface variables.
9613 2005-10-04 Zoltan Varga <vargaz@freemail.hu>
9615 * aot.c (emit_section_change): Fix emitting of sections on win32. Fixes #76322.
9617 2005-10-03 Zoltan Varga <vargaz@gmail.com>
9619 * liveness.c (mono_analyze_liveness): Revert parts of r51051 since it
9620 causes a regression.
9622 * mini.c (mini_thread_cleanup): Fix reading of freed memory.
9624 2005-10-02 Zoltan Varga <vargaz@freemail.hu>
9626 * mini.h (OP_PCONST): Move the definition of OP_PCONST into the rest
9627 of the OP_P definitions.
9629 * TODO: Add a proposal for dealing with the CEE/OP mess.
9631 * mini-amd64.c (mono_arch_output_basic_block): Merge mul_imm
9632 optimizations from the x86 port.
9634 * cpu-amd64.md: Ditto.
9636 * basic.cs basic-long.cs: Add tests.
9638 Fri Sep 30 20:07:20 CEST 2005 Paolo Molaro <lupus@ximian.com>
9640 * Makefile.am, driver.c, mini-x86.c, mini.c, mini.h, branch-opts.c:
9641 Patrik Torstensson's implementation of my exception-handling
9642 optimization idea, when the exception object is not used
9645 Fri Sep 30 19:10:29 CEST 2005 Paolo Molaro <lupus@ximian.com>
9647 * mini-x86.c, cpu-pentium.md: Patrik Torstensson's port
9648 of the mul_imm optimizations from the old jit.
9650 Fri Sep 30 11:37:51 EDT 2005 Paolo Molaro <lupus@ximian.com>
9652 * mini.c, liveness.c: patch by Patrik Torstensson and
9653 Zoltan Varga to improve performance in methods with
9656 2005-09-30 Zoltan Varga <vargaz@gmail.com>
9658 * driver.c: Remove 'Globalization' entry from --version.
9660 2005-09-28 Zoltan Varga <vargaz@gmail.com>
9662 * mini.c (mono_jit_compile_method_inner): Do not load AOT code when
9663 there is a profiler interested in JIT events.
9665 * aot.c: Load profile files produced by the AOT profiling module, and
9666 reorder methods based on the profiling info. Add a 'method_order' table
9667 to the AOT file to make mono_aot_find_jit_info work with the reordered
9670 * mini.h: Bump AOT file version info.
9672 Wed Sep 28 17:12:48 CEST 2005 Paolo Molaro <lupus@ximian.com>
9674 * mini-arm.h: work around what looks like a gcc bug when optimizations
9677 2005-09-28 Raja R Harinath <rharinath@novell.com>
9679 * Makefile.am (AM_CFLAGS): Don't use += to append inside
9680 conditionals. Use ...
9681 (PLATFORM_CFLAGS, ARCH_CFLAGS): ... these.
9683 2005-09-27 Zoltan Varga <vargaz@freemail.hu>
9685 * mini-amd64.c (mono_arch_call_opcode): Use mono_class_value_size ()
9686 to determine the amount of memory to copy when passing valuetypes.
9688 * inssel-amd64.brg: Remove PUSH(LDIND4) rules since they convert an
9689 4 byte load into a 8 byte load. Fix aligning of size in OP_OUTARG_VT.
9691 2005-09-27 Zoltan Varga <vargaz@gmail.com>
9693 * mini.h mini.c aot.c: Add infrastructure to collect pagefault
9694 information about aot.
9696 2005-09-27 Ben Maurer <bmaurer@ximian.com>
9698 * *.c: Replace the use of {Enter,Leave}CriticalSection with
9699 macros. This will allow a deadlock debugger to easily be plugged
9702 Tue Sep 27 09:32:11 EDT 2005 Paolo Molaro <lupus@ximian.com>
9704 * mini-ppc.c, cpu-g4.md: added memory barrier instruction.
9706 2005-09-27 Raja R Harinath <rharinath@novell.com>
9708 * Makefile.am (AM_CFLAGS): Rename from INCLUDES.
9709 (AM_CFLAGS) [PLATFORM_WIN32): Append to it, don't set it.
9710 (AM_CFLAGS) [ARM]: Add arch/arm directory from the build tree.
9711 ($(arch_built)) [CROSS_COMPILING]: Error out.
9713 2005-09-26 Zoltan Varga <vargaz@gmail.com>
9715 * aot.c: Add support for the no_special_static flag for classes.
9717 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
9719 * Reapply reverted patches.
9721 * *: Revert r50174 as well.
9723 * mini-amd64.c cpu-amd64.md inssel-amd64.brg: Revert r50170 as well.
9725 2005-09-24 Zoltan Varga <vargaz@freemail.hu>
9727 * mini-amd64.c: Revert r50342 to see if this fixed buildbot.
9729 2005-09-23 Miguel de Icaza <miguel@novell.com>
9731 * mini.c (SIG_HANDLER_SIGNATURE): Only dereference info if it is
9732 part of the SIG_HANDLER_SIGNATURE.
9734 2005-09-23 Zoltan Varga <vargaz@gmail.com>
9736 * mini.h mini.c: Add a new MONO_DEBUG option to collect metadata pagefault
9739 * mini-x86.c (mono_arch_call_opcode): Fix vararg calling convention
9740 introduced by previous patch.
9742 2005-09-21 Zoltan Varga <vargaz@gmail.com>
9744 * tramp-x86.c (mono_arch_create_trampoline_code): Restore caller
9745 saved registers too.
9747 * mini-x86.c (mono_arch_allocate_vars): Rewrite this so it works based
9748 upon the information returned by get_call_info ().
9750 * mini-x86.c (add_float): Fix stack size calculation.
9751 (mono_arch_call_opcode): Rewrite this so it works based up the
9752 information returned by get_call_info ().
9753 (mono_arch_get_this_vret_args): Ditto.
9755 2005-09-21 Zoltan Varga <vargaz@freemail.hu>
9757 * mini-amd64.c (mono_arch_emit_this_vret_args): Use the information
9758 in cinfo to determine the registers which need to be used.
9760 2005-09-20 Miguel de Icaza <miguel@novell.com>
9762 * driver.c (mono_main): Add --server and --desktop flags.
9764 2005-09-16 Zoltan Varga <vargaz@gmail.com>
9766 * mini-ia64.h: Make register masks 64 bit. Don't treat argument
9767 registers as global registers.
9769 * inssel-ia64.brg (stmt): Remove OP_OUTARG_REG () rules which are no
9770 longer needed with the new register allocator.
9772 * mini-ia64.c: Use OP_MOVE instead of OP_SETREG for reg-reg moves.
9774 * cpu-ia64.md: Remove unused opcodes.
9776 * regalloc.c mini-codegen.c: Make register masks 64 bit on ia64.
9778 2005-09-16 Zoltan Varga <vargaz@freemail.hu>
9780 * cpu-amd64.md: Remove unused opcodes.
9782 * inssel-amd64.brg: Remove OP_OUTARG_REG () rules which are no longer
9783 needed with the new register allocator.
9785 * inssel-amd64.brg mini-amd64.c: Use OP_MOVE instead of OP_SETREG for
9788 2005-09-16 Raja R Harinath <rharinath@novell.com>
9790 * Makefile.am (check-local): Don't invoke semdel-wrapper.
9792 2005-09-16 Martin Baulig <martin@ximian.com>
9794 * exceptions-amd64.c
9795 (throw_exception): Don't call mono_debugger_throw_exception() if
9796 we're a rethrow - see the FIXME in the code.
9798 2005-09-15 Geoff Norton <gnorton@customerdna.com>
9800 * mini.c (mono_init_exceptions): This only works on some architectures.
9802 2005-09-15 Zoltan Varga <vargaz@gmail.com>
9804 * mini.c (mono_method_to_ir): Add OP_LMUL imm -> OP_LMUL_IMM conversion
9807 * inssel-long.brg mini-ia64.c: Add OP_LMUL_IMM rules.
9809 * mini-ia64.h mini-ia64.c: Remove the altstack support code which is
9810 now in mini-exceptions.c.
9812 2005-09-15 Zoltan Varga <vargaz@freemail.hu>
9814 * mini-amd64.h mini-am64.c: Remove the altstack support code which is
9815 now in mini-exceptions.c.
9817 2005-09-15 Zoltan Varga <vargaz@gmail.com>
9819 * exceptions-x86.c: Applied patch from Patrik Torstensson
9820 <patrik.torstensson@gmail.com>. Add stack overflow handling support for win32.
9822 * mini-exceptions.c mini-x86.c mini.c: Move the altstack setup/teardown
9823 code into mini-exceptions.c. Add some assertions to it.
9825 2005-09-12 Zoltan Varga <vargaz@gmail.com>
9827 * aot.c (emit_section_change): Applied patch from "The Software Team"
9828 (<software@solmersa.com>). Fix as errors on windows.
9830 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
9832 * tramp-amd64.c (mono_arch_create_trampoline_code): Fix saving of
9833 method info into the LMF.
9835 2005-09-11 Zoltan Varga <vargaz@gmail.com>
9837 * mini-ia64.c: Add proper unwind info for method epilogs.
9839 * exceptions-ia64.c: Add some code to help debugging.
9841 * mini-ia64.c mini-ia64.h: Add sigaltstack support.
9843 * mini-exceptions.c: Fix warning.
9845 2005-09-11 Zoltan Varga <vargaz@freemail.hu>
9847 * mini.c: Really fix build.
9849 * mini-x86.c mini-amd64.c: Fix build.
9851 2005-09-11 Zoltan Varga <vargaz@gmail.com>
9853 * mini-ia64.c inssel-ia64.brg: Add InterlockedExchange instrinsics.
9855 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Implement
9856 some Interlocked methods as intrinsics.
9858 * mini.c (mini_get_inst_for_method): Call arch_get_inst_for_method
9859 for Thread methods as well.
9861 * mini-ops.h: Add OP_MEMORY_BARRIER opcode.
9863 * inssel.brg: Add rule for OP_MEMORY_BARRIER.
9865 * mini-ia64.c mini-x86.c mini-amd64.c
9866 cpu-ia64.md cpu-pentium.md cpu-amd64.md: Add implementation of
9869 * mini.c (mono_init_exceptions): Fix build breakage.
9871 2005-09-10 Zoltan Varga <vargaz@gmail.com>
9873 * mini-ia64.c exceptions-ia64.c tramp-ia64.c: Remove 'manual' emitting
9874 of instructions. Use the new ia64_unw_op macros for emitting unwind
9877 * mini.c (mono_init_exceptions): Initialize exception handling
9878 related trampolines at startup.
9880 Fri Sep 9 19:30:37 BST 2005 Paolo Molaro <lupus@ximian.com>
9882 * cpu-arm.md, mini-arm.c: fix for dynamic code (Gtk# apps).
9884 2005-09-09 Zoltan Varga <vargaz@gmail.com>
9886 * mini.c: Handle type loading errors gracefully during compilation and
9887 throw the appropriate exception.
9889 Fri Sep 9 09:49:14 CEST 2005 Paolo Molaro <lupus@ximian.com>
9891 * ldscript.mono, Makefile.am: use anonymous versions in the ldscript
9892 for the mono binary.
9894 2005-09-09 Martin Baulig <martin@ximian.com>
9896 * mini.c (mono_method_to_ir): Comment out the G_BREAKPOINT()'s for
9899 Thu Sep 8 14:53:45 BST 2005 Paolo Molaro <lupus@ximian.com>
9901 * mini-arm.h: use emulation for conv.r.un for the release.
9903 Thu Sep 8 11:28:45 BST 2005 Paolo Molaro <lupus@ximian.com>
9905 * mini-arm.c, objects.cs: more fixes and tests for them.
9907 Wed Sep 7 17:14:26 BST 2005 Paolo Molaro <lupus@ximian.com>
9909 * mini-arm.c: align structures to at least 4 bytes to be able
9910 to keep our current optimized memcpy.
9912 Tue Sep 6 22:51:08 BST 2005 Paolo Molaro <lupus@ximian.com>
9914 * mini-arm.c, cpu-arm.md, inssel-arm.brg: bugfixes.
9916 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9918 * mini.c: ignore SIGPIPE.
9920 2005-09-04 Zoltan Varga <vargaz@gmail.com>
9922 * mini-ia64.c (mono_arch_lowering_pass): Convert 'and_imm 255' to zext1.
9924 * mini-ia64.h mini-ia64.c: Add some minor optimizations.
9926 2005-09-02 Zoltan Varga <vargaz@gmail.com>
9928 * mini.h: Add prototype for mono_allocate_stack_slots_full.
9930 Thu Sep 1 21:05:26 BST 2005 Paolo Molaro <lupus@ximian.com>
9932 * exceptions-arm.c, mini.c, mini-arm.c, mini-arm.h:
9933 exception handling support.
9934 * mini-arm.c, mini-arm.h: bigendian fixes (partially from a
9935 patch by Brian Koropoff <briank@marakicorp.com>).
9937 Thu Sep 1 10:22:44 EDT 2005 Paolo Molaro <lupus@ximian.com>
9939 * mini.c: revert another 'optimization' which breaks when
9940 items on the eval stack need to be saved at a basic block end
9943 Wed Aug 31 17:29:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
9945 * jit-icalls.c: for arrays, ensure we always provide
9948 2005-08-30 Zoltan Varga <vargaz@gmail.com>
9950 * mini.c (mono_allocate_stack_slots_full): Fix ia64 build.
9952 * mini.c (mini_get_inst_for_method): Special case Object:.ctor as well.
9954 2005-08-29 Zoltan Varga <vargaz@gmail.com>
9956 * mini-ia64.h mini-ia64.c: Implement frame pointer elimination. Keep
9957 arguments in their original register.
9959 2005-08-28 Zoltan Varga <vargaz@gmail.com>
9961 * mini-ops.h cpu-ia64.md inssel-ia64.brg mini-ia64.c: Optimize
9964 * mini.c (mono_method_to_ir): Disable the MUL->MUL_IMM optimization
9965 when ssapre is enabled.
9967 * inssel-long.brg: Fix bug in previous patch.
9969 * mini-ia64.c mini-ia64.h mini.c inssel-long.brg: Optimize
9970 multiplication by a constant.
9972 2005-08-27 Zoltan Varga <vargaz@gmail.com>
9974 * mini-ia64.c (mono_arch_setup_jit_tls_data): Add support for intel
9977 * tramp-ia64.c (mono_arch_create_trampoline_code): Use st8.spill for
9980 Fri Aug 26 11:09:28 BST 2005 Paolo Molaro <lupus@ximian.com>
9982 * inssel-arm.brg: apply changes tested by Brian Koropoff
9983 <briank@marakicorp.com>.
9985 2005-08-25 Zoltan Varga <vargaz@gmail.com>
9987 * mini-x86.c (mono_arch_emit_prolog): Fix calling of mono_jit_thread_attach () under windows.
9989 2005-08-24 Zoltan Varga <vargaz@gmail.com>
9991 * mini-codegen.c (mono_local_regalloc): Avoid allocating dreg and sreg1/2
9992 to the same register if dreg is just a base register.
9993 (print_ins): Improve printing of membase opcodes.
9995 * inssel-x86.brg: Add optimized ldind(reg) rules.
9997 * mini-x86.c cpu-pentium.md: Changes required to support the new rules.
9999 Wed Aug 24 19:39:36 CEST 2005 Paolo Molaro <lupus@ximian.com>
10001 * mini.c: when running under valgrind, set the stack bottom for
10002 the GC at the actual approximate stack for the app (fixes running
10003 mono with valgrind).
10005 Tue Aug 23 21:38:50 CEST 2005 Paolo Molaro <lupus@ximian.com>
10007 * mini.c: do no break at the first valuetype to init found
10008 (fixes bug #75791).
10010 Tue Aug 23 16:53:21 BST 2005 Paolo Molaro <lupus@ximian.com>
10012 * cpu-arm.md, mini-arm.c: more fixes and LMF support.
10014 Tue Aug 23 15:11:44 CEST 2005 Paolo Molaro <lupus@ximian.com>
10016 * cpu-g4.md: fixed instruction length exposed by the nemerle compiler.
10018 2005-08-23 Zoltan Varga <vargaz@freemail.hu>
10020 * inssel-amd64.brg inssel-x86.brg: Fix the fcall rules.
10022 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
10024 * inssel-x86.brg: Fix assert in patch_delegate_trampoline.
10026 * tramp-x86.c (mono_arch_patch_delegate_trampoline): Add some debug
10029 * tramp-amd64.c (mono_arch_patch_delegate_trampoline): Add some debug
10032 * mini.c (optimize_branches): Don't quit after 1000 iterations on large
10035 Mon Aug 22 19:16:29 BST 2005 Paolo Molaro <lupus@ximian.com>
10037 * tramp-arm.c: allocate less memory for the trampoline and fix typo.
10039 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
10041 * mini.c (mono_method_to_ir): Remove instructions inserted after a branch
10042 in the tail recursion optimization.
10044 * mini.h helpers.c (mono_disassemble_code): Emit starts of basic blocks as
10045 debug info into the assembly file.
10047 * iltests.il: Add test for filter regions.
10049 * mini.c (mono_method_to_ir): Fix handling of nested FILTER clauses. Fix
10050 initial stack of filter regions. Fixes #75755.
10052 Mon Aug 22 17:49:16 BST 2005 Paolo Molaro <lupus@ximian.com>
10054 * mini-arm.c, cpu-arm.c: fixes and support for methods with bigger
10055 stack requirements.
10057 2005-08-22 Zoltan Varga <vargaz@freemail.hu>
10059 * mini.c (mono_create_delegate_trampoline): Fix memory leak. Put back
10060 the check for an already compiled method on non-ia64 platforms.
10061 (mono_create_jump_trampoline): Store the MonoJitInfo structure into the
10064 * mini-x86.h tramp-x86.c: Add support for delegate trampolines.
10066 * inssel-x86.brg: Add some optimized call rules.
10068 2005-08-21 Zoltan Varga <vargaz@freemail.hu>
10070 * mini.c (mono_create_delegate_trampoline): Do not return an already compiled
10073 * mini.h mini-trampolines.c: Pass the trampoline argument to
10074 mono_arch_patch_delegate_trampoline.
10076 * mini-ia64.h mini-ia64.c tramp-ia64.c: Add support for delegate trampolines.
10078 * mini-trampolines.c: Fix build.
10080 * mini-amd64.h: Add delegate trampolines.
10082 * mini.h mini.c mini-trampolines.c tramp-amd64.c: Add delegate trampolines.
10084 * inssel-amd64.brg: Add optimized call rules.
10086 * mini-ia64.c tramp-ia64.c: Improve instruction scheduling.
10088 * inssel-ia64.brg: Add optimized ldind(reg) rules.
10090 2005-08-20 Zoltan Varga <vargaz@freemail.hu>
10092 * mini.c (mono_create_class_init_trampoline): Fix bug caused by last
10095 * mini-ia64.c: Remove LMF fixmes.
10097 * mini-ia64.h: Remove most fields from LMF.
10099 * inssel-ia64.brg (stmt): Fix unaligned access errors.
10101 * mini-trampolines.c: Add support for IA64 function descriptors.
10103 * mini.h mini.c jit-icalls.c exceptions-ia64.cdriver.c: Add support
10104 for IA64 function descriptors.
10106 Sat Aug 20 16:51:44 BST 2005 Paolo Molaro <lupus@ximian.com>
10108 * tramp-arm.c: patch the vtable for virtual calls. Added
10109 support code to register/unregister the LMF.
10110 * mini-arm.c, mini-arm.h: warning fixes, fixes, speedups,
10113 2005-08-19 Dick Porter <dick@ximian.com>
10115 * mini.c: Use a gsize to store the thread ID, so it can hold a 64
10116 bit value if needed.
10118 2005-08-19 Zoltan Varga <vargaz@freemail.hu>
10120 * mini.c (mini_get_method): Move handling of wrapper data here.
10122 * mini.c (mono_method_to_ir): Add support for dynamic methods.
10124 * mini.c (mono_method_to_ir): Convert nonvirtual calls to abstract methods into
10127 * mini.c (mono_method_to_ir): Emit IR for CEE_NOP as well, so
10128 bblock->code does not remain empty.
10130 2005-08-17 Zoltan Varga <vargaz@freemail.hu>
10132 * arrays.cs: Add regression test for #75832.
10134 * inssel-amd64.brg cpu-amd64.md mini-amd64.c: Fix LDELEMA optimization
10135 rules. Fixes #75832.
10137 * mini-ia64.c tramp-ia64.c exceptions-ia64.c: Implement improved
10138 instruction scheduling.
10140 2005-08-12 Zoltan Varga <vargaz@freemail.hu>
10142 * mini-exceptions.c (ves_icall_get_frame_info): Fix IA64 build.
10144 2005-08-11 Zoltan Varga <vargaz@freemail.hu>
10146 * mini-exceptions.c mini-x86.h: Move VC stuff into macros in mini-x86.h.
10148 * mini-codegen.c: Fix VC build.
10150 * cpu-pentium.md: Increase length of atomic_exhange_i4.
10152 2005-08-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10154 * mini.h: fix signature for mono_register_opcode_emulation.
10156 2005-08-09 Zoltan Varga <vargaz@freemail.hu>
10158 * mini.c: Get rid of most of the helper_sig_... constants using
10159 mono_create_icall_signature ().
10161 2005-08-08 Zoltan Varga <vargaz@freemail.hu>
10163 * jit-icalls.c (helper_ldstr): New helper function.
10165 * mini.c (get_basic_blocks): Set out_of_line for bblocks containing a throw.
10167 * mini.c (mono_method_to_ir): If an LDSTR instruction is in a bblock with a
10168 throw, load the string using a helper call instead of creating a string object.
10170 * aot.c: Update after LDSTR changes.
10172 * mini.h: Bump AOT file version.
10174 * aot.c: Save class size info into the AOT file. Print more statistics during
10177 * mini.h: Bump AOT file version.
10179 * tramp-amd64.c (mono_arch_nullify_class_init_trampoline): Fix
10180 ordering of disasm cases. Fixes #74957.
10182 Thu Aug 4 19:47:24 BST 2005 Paolo Molaro <lupus@ximian.com>
10184 * mini-ops.h, mini-arch.h, inssel.brg, mini.c, mini.h,
10185 jit-icalls.c, mini-codegen.c, Makefile.am: changes in
10186 the generic code needed for the ARM port.
10188 Thu Aug 4 19:42:54 BST 2005 Paolo Molaro <lupus@ximian.com>
10190 * exceptions-arm.c, tramp-arm.c, mini-arm.c, mini-arm.h, cpu-arm.md,
10191 inssel-arm.brg: more ARM features and fixes.
10193 Mon Aug 1 18:37:38 BST 2005 Paolo Molaro <lupus@ximian.com>
10195 * tramp-arm.c, mini-arm.c, cpu-arm.md, inssel-arm.brg: more
10196 ARM port work in progress.
10198 2005-07-30 Zoltan Varga <vargaz@freemail.hu>
10200 * mini-ia64.c (mono_arch_call_opcode): Ongoing IA64 work.
10202 * mini-exceptions.c mini-ia64.h: Ongoing IA64 work.
10204 * mini-ia64.c (ia64_emit_bundle): Ongoing IA64 work.
10206 * inssel.brg (mini_emit_memset): Add support for unaligned access.
10208 * *-ia64.*: Ongoing IA64 work.
10210 * mini-ia64.c exceptions-ia64.c: Ongoing IA64 work.
10212 2005-07-28 Zoltan Varga <vargaz@freemail.hu>
10214 * TODO: Remove out-of-data todo stuff.
10216 * mini.h mini.c (mono_create_jit_trampoline_from_token): Remove some
10219 * aot.c: Save/load MonoCachedClassInfo->has_nested_classes.
10221 * mini.h: Bump corlib version.
10223 2005-07-27 Martin Baulig <martin@ximian.com>
10226 (create_copy_ins): Added `const unsigned char *ip' argument; set
10227 `copy->cil_code' from it.
10229 2005-07-27 Martin Baulig <martin@ximian.com>
10231 * mini-exceptions.c (mono_handle_exception): Don't call
10232 mono_debugger_handle_exception() for filters.
10234 2005-07-27 Zoltan Varga <vargaz@freemail.hu>
10236 * mini-trampolines.c (mono_aot_trampoline): Handle AppDomain:InvokeInDomain
10239 2005-07-26 Martin Baulig <martin@ximian.com>
10241 Committing a patch from Michal Moskal <michal.moskal@gmail.com>.
10243 * mini.c (mono_method_to_ir): In `CEE_CALLI', only use
10244 helper_compile_generic_method() if the method is actually virtual
10247 2005-07-26 Martin Baulig <martin@ximian.com>
10250 (trampoline_code): Renamed to `mono_trampoline_code' and made it
10251 public; this is now accessed directly by the debugger.
10252 (mono_generic_trampoline_code): Removed.
10255 (mono_debug_init_method): Also add interncalls and wrappers.
10257 2005-07-23 Zoltan Varga <vargaz@freemail.hu>
10259 * mini-ia64.c mini-ia64.h: Add support for tracing/profiling.
10261 2005-07-22 Zoltan Varga <vargaz@freemail.hu>
10263 * aot.c (mono_aot_get_method_from_token): Fix a potential crash here.
10265 2005-07-21 Zoltan Varga <vargaz@freemail.hu>
10267 * aot.c (load_patch_info): Fix handling of stfld_remote wrapper.
10269 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
10271 * mini-amd64.c (mono_arch_setup_jit_tls_data): Use the nice way of
10272 getting TLS offsets on AMD64 too.
10274 2005-07-20 Kornél Pál <kornelpal@hotmail.com>
10276 * driver.c: Detach console when executing IMAGE_SUBSYSTEM_WINDOWS_GUI on win32
10278 Wed Jul 20 18:05:19 BST 2005 Paolo Molaro <lupus@ximian.com>
10280 * exceptions-arm.c, mini-arm.c, tramp-arm.c, cpu-arm.md,
10281 inssel-arm.brg, mini-arm.h: ARM port work in progress.
10283 2005-07-20 Zoltan Varga <vargaz@freemail.hu>
10285 * tramp-amd64.c (mono_arch_create_specific_trampoline): Fix build.
10287 * mini.h mini.c mini-*.h tramp-*.c: Move more cross platform trampoline code
10290 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Call
10291 mono_sparc_is_virtual_call ().
10293 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix warning.
10295 * tramp-sparc.c (mono_arch_create_trampoline_code): Fix order of
10296 trampoline parameters.
10298 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Fix signature.
10300 * mini-sparc.c (mono_arch_get_vcall_slot_addr): Rename this
10301 to mono_arch_get_vcall_slot_addr.
10303 * Makefile.am tramp-sparc.c: Update the sparc port to use the generic
10306 * *-sparc.*: Merge the mini-xp-regalloc branch for sparc.
10308 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
10310 * mini-ia64.h mini-ia64.c: Finish pinvoke support.
10312 2005-07-19 Martin Baulig <martin@ximian.com>
10314 * exceptions-amd64.c (throw_exception): Call
10315 mono_debugger_throw_exception() here like we're doing it on i386.
10317 2005-07-19 Zoltan Varga <vargaz@freemail.hu>
10319 * mini-ia64.c: Add optimized TLS access support.
10321 2005-07-18 Zoltan Varga <vargaz@freemail.hu>
10323 * mini-exceptions.c: Ongoing IA64 work.
10325 * mini-ia64.c inssel-long.brg: Ongoing IA64 work.
10327 * mini.c: Use the default optimization set when embedding. Fixes
10330 2005-07-11 Zoltan Varga <vargaz@freemail.hu>
10332 * tramp-amd64.c tramp-ia64.c Makefile.am: Move arch independent parts
10333 of trampolines to a separate file.
10335 * mini-trampolines.c: New file.
10337 * mini.h tramp-x86.c: Move arch independent parts of trampolines to a
10340 * tramp-x86.c: Reorganize the trampoline code to be similar to the
10343 * mini-codegen.c: Fix cygwin build.
10345 2005-07-10 Zoltan Varga <vargaz@freemail.hu>
10347 * mini.c: Add some minor changes needed by the IA64 port.
10349 * *-ia64.*: Ongoing IA64 work.
10351 2005-07-09 Zoltan Varga <vargaz@freemail.hu>
10353 * tramp-amd64.c mini-amd64.c: Update after latest AOT changes. Split
10354 trampolines into arch-independent and arch-dependent parts.
10356 * mini-amd64.c (mono_arch_lowering_pass): Fix store_membase_imm -> store_membase_reg rule.
10358 2005-07-08 Zoltan Varga <vargaz@freemail.hu>
10360 * cpu-amd64.md: Merge the xp-regalloc-branch for amd64.
10362 * mini-ops.h mini-amd64.h mini-amd64.c inssel-amd64.brg Makefile.am: Merge
10363 the xp-regalloc-branch for amd64.
10365 * mini-x86.h mini-x86.c cpu-pentium.md Makefile.am: Merge the
10366 xp-regalloc-branch for x86.
10368 2005-07-07 Zoltan Varga <vargaz@freemail.hu>
10370 * inssel.brg (OP_THROW_OR_NULL): Allways rethrow the abort exception.
10372 2005-07-06 Martin Baulig <martin@ximian.com>
10375 (mono_jit_compile_method_inner): Call mono_get_inflated_method().
10376 (mono_jit_runtime_invoke): Likewise.
10378 2005-07-05 Zoltan Varga <vargaz@freemail.hu>
10380 * aot.c (mono_compile_assembly): Allocate the GOT in the .bss segment
10383 * aot.c: Add new mono_aot_get_method_from_token () function to load AOT methods
10384 without loading their metadata. Reorganize the file format so exception handling+
10385 debug info is kept separate from normal method info. Create MonoJitInfo
10386 structures for methods lazily.
10388 * tramp-x86.c (x86_aot_trampoline): Use the new from_token method to avoid
10390 (x86_class_init_trampoline): Patch AOT class init trampolines too.
10392 * mini.c (mini_init): Install the new mono_aot_find_jit_info hook.
10394 * mini.c (mono_method_to_ir): Reduce the number of class init trampoline calls
10397 * mini.h: Bump AOT file version.
10399 2005-07-04 Zoltan Varga <vargaz@freemail.hu>
10401 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
10403 2005-07-01 Raja R Harinath <rharinath@novell.com>
10405 * Makefile.am (check-local): Call semdel-wrapper.
10407 2005-06-29 Zoltan Varga <vargaz@freemail.hu>
10409 * mini-x86.c: Revert the last change as it seems to break the build..
10411 2005-06-28 Zoltan Varga <vargaz@freemail.hu>
10413 * mini-x86.c (peephole_pass): Fix the loadi1/loadi2 rules.
10415 * mini-x86.c (mono_arch_cpu_init): Fix setting of fp precision in the VC build.
10417 2005-06-27 Ben Maurer <bmaurer@ximian.com>
10419 * mini.c (NEW_AOTCONST): make sure to call mono_get_got_var
10420 outside of the macro, so strange stuff doesn't happen with gcc4
10421 (NEW_AOTCONST_TOKEN): Likewise.
10423 2005-06-28 Martin Baulig <martin@ximian.com>
10425 * mini.c (mini_class_is_system_array): New static method; use this
10426 instead of `klass->parent == mono_defaults.array_class' everywhere
10427 since this also works for the new generic array class.
10429 2005-06-26 Ben Maurer <bmaurer@ximian.com>
10431 * inssel.brg: Remove warnings.
10433 2005-06-24 Zoltan Varga <vargaz@freemail.hu>
10435 * mini-ia64.c: Ongoing IA64 work.
10437 * basic-float.cs: Add float->i1 conversion test.
10439 * iltests.il: Add conv.u4 test.
10441 2005-06-23 Zoltan Varga <vargaz@freemail.hu>
10443 * inssel-long.brg: Fix bug caused by last change.
10445 2005-06-23 Geoff Norton <gnorton@customerdna.com>
10447 * mini-x86.h: Add __APPLE__ to the SC_* redefines with the other
10448 BSDs. Allows the x86 JIT to work on OSX86
10450 2005-06-22 Zoltan Varga <vargaz@freemail.hu>
10452 * inssel-long.brg: Use OP_LSHR_UN_IMM instead of OP_SHR_UN_IMM in
10455 * mini-ia64.c: Ongoing IA64 work.
10457 2005-06-19 Zoltan Varga <vargaz@freemail.hu>
10459 * mini-ia64.c: Ongoing IA64 work.
10461 * driver.c: Clean up jit_code_hash as well when using --regression.
10463 * inssel-long.brg: Fix long->i4/u4 conversion rules.
10465 * basic-long.cs: Add tests for long->u4 conversion.
10467 2005-06-18 Ben Maurer <bmaurer@ximian.com>
10469 * mini.c: Take mono_get_domainvar out of macros. This makes sure
10470 that we do not depend on undefined C behavior: the order stuff
10471 gets evaluated within an expression. Fixes mono when compiled on
10474 2005-06-18 Zoltan Varga <vargaz@freemail.hu>
10476 * *-ia64.*: Ongoing IA64 work.
10478 * aot.c: Lower memory usage while loading AOT methods.
10480 * tramp-x86.c: Avoid allocating+freeing MonoJitInfo structures.
10482 * mini.h: Bump AOT file format version.
10484 2005-06-17 Zoltan Varga <vargaz@freemail.hu>
10486 * mini.c (mono_method_to_ir): Allow STACK_PTR as input to SWITCH.
10488 2005-06-16 Sebastien Pouliot <sebastien@ximian.com>
10490 * declsec.c: Fixed APTC to check for FullTrust on caller assembly (and
10491 not on callee assembly). Fixed some comments.
10493 2005-06-16 Zoltan Varga <vargaz@freemail.hu>
10495 * aot.c (mono_compile_assembly): Mark the "methods" symbol as a function so
10496 it gets proper disassembly.
10497 (emit_method_info): Remove some dead code.
10499 * mini.c (mini_method_compile): Allways allocate the GOT var in
10500 mono_method_to_ir for emulating opcodes.
10502 2005-06-13 Zoltan Varga <vargaz@freemail.hu>
10504 * mini.c (mono_jit_free_method): Remove the method from the JitInfo table
10505 before freeing the code memory. Fixes #74990.
10507 * objects.cs: Add regression test for #74992.
10509 * liveness.c: Extend live ranges of arguments to the beginning of the
10510 method. Fixes #74992.
10512 * exceptions-ia64.c mini-ia64.h: Modify ip during exception handling
10513 so it points into the faulting instruction.
10515 2005-06-12 Zoltan Varga <vargaz@freemail.hu>
10517 * jit-icalls.c (mono_imul_ovf): Add exception handling.
10519 * *-ia64.*: Ongoing IA64 work.
10521 * mini.c (mini_init): Fix signature of mono_delegate_ctor.
10523 2005-06-11 Zoltan Varga <vargaz@freemail.hu>
10525 * mini-ia64.h exceptions-ia64.c: Ongoing IA64 work.
10527 * *-ia64.*: Ongoing IA64 work.
10529 2005-06-10 Zoltan Varga <vargaz@freemail.hu>
10531 * basic-long.cs: Add tests for add/sub.ovf.
10533 * basic.cs: Add tests for sub.ovf.
10535 * *-ia64.*: Ongoing IA64 work.
10537 2005-06-09 Zoltan Varga <vargaz@freemail.hu>
10539 * *-ia64.*: Ongoing IA64 work.
10541 * basic.cs: Add conv.ovf.i4.un test.
10543 2005-06-09 Massimiliano Mantione <massi@ximian.com>
10545 * mini.c: (remove_block_if_useless) Fixed bug 75061.
10547 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10549 * mini.c: no SIGUSR2 on windows. Remove it for PLATFORM_WIN32.
10551 2005-06-07 Zoltan Varga <vargaz@freemail.hu>
10553 * *-ia64.*: Ongoing IA64 work.
10555 2005-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
10558 * mini.c: added the ability to toggle trace on/off using SIGUSR2.
10560 2005-06-04 Zoltan Varga <vargaz@freemail.hu>
10562 * mini-ia64.c mini-ia64.h: Fix cleanup of memory stack.
10564 2005-06-03 Zoltan Varga <vargaz@freemail.hu>
10566 * mini-amd64.c (emit_call): Fix yet another bug in the near call optimization.
10568 * mini-amd64.c (amd64_patch): Add an assert to check that the destination
10569 of a call is callable by a near call.
10571 2005-05-31 Zoltan Varga <vargaz@freemail.hu>
10573 * mini-ia64.c: Ongoing IA64 work.
10575 2005-05-29 Zoltan Varga <vargaz@freemail.hu>
10577 * genmdesc.c: Make the generated array non-static.
10579 * inssel-long.brg: Fix LSHR_IMM rule.
10581 * *-ia64.*: Ongoing IA64 work.
10583 * *-ia64.*: Ongoing IA64 work.
10585 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
10587 * *-ia64.*: Ongoing IA64 work.
10589 * *-ia64.*: Ongoing IA64 work.
10591 * mini-ia64.c: Ongoing IA64 work.
10593 * *-ia64.* jit-icalls.c mini-codegen.c: Ongoing IA64 work.
10595 2005-05-28 Zoltan Varga <vargaz@freemail.hu>
10597 * objects.cs basic-calls.cs: Move some tests to objects.cs.
10599 * objects.cs basic-long.cs: Move some tests to objects.cs.
10601 2005-05-26 Zoltan Varga <vargaz@freemail.hu>
10603 * *-ia64.*: Ongoing IA64 work.
10605 * iltests.il: Add a new test.
10607 * mini.c (mono_method_to_ir): Initialize valuetypes when created using
10608 newobj. Fixes #75042.
10610 2005-05-22 Zoltan Varga <vargaz@freemail.hu>
10612 * *-ia64.*: Ongoing IA64 work.
10614 * *-ia64.*: Ongoing IA64 work.
10616 * *-ia64.*: Ongoing IA64 work.
10618 * basic.cs objects.cs: Move tests accessing static variables as well.
10620 * basic.cs objects.cs: Move test_0_pin_string to objects.cs.
10622 2005-05-21 Zoltan Varga <vargaz@freemail.hu>
10624 * mini.c (SIG_HANDLER_SIGNATURE): Fix warning.
10626 * driver.c: Always print failed tests.
10628 * mini-codegen.c: Use cfg->frame_reg instead of a macro for the
10631 * *ia64*: Ongoing IA64 work.
10633 2005-05-20 Zoltan Varga <vargaz@freemail.hu>
10635 * basic.cs: Add tests for add.ovf. Fix warnings.
10637 2005-05-18 Miguel de Icaza <miguel@novell.com>
10639 * driver.c (mono_main): Avoid crash if no argument is passed to
10640 --break; Do not use g_error, but f_printf. And fix all other
10641 ocurrences of the same crash.
10643 2005-05-17 Zoltan Varga <vargaz@freemail.hu>
10645 * mini.h mini.c: Generalize the existing uses of the MONO_DEBUG env variable
10646 and add a new one: aborting when a SIGSEGV is raised while in unmanaged code.
10649 2005-05-14 Zoltan Varga <vargaz@freemail.hu>
10651 * *-ia64.*: Add beginnings of IA64 backend.
10653 * Makefile.am mini-arch.h mini-codegen.c: Add IA64 support.
10655 2005-05-13 Zoltan Varga <vargaz@freemail.hu>
10657 * inssel-long.brg: Add missing ulong->{i1, i2} checked conversions.
10660 * basic-long.cs exceptions.cs: Add new tests. Fix some warnings.
10662 * mini-amd64.c: Fix a warning.
10664 2005-05-10 Zoltan Varga <vargaz@freemail.hu>
10666 * mini-amd64.c (mono_arch_output_basic_block): Fix stack space leakage
10667 in float_neg. Fixes #74897.
10669 * mini-amd64.c (emit_call): Fix another near call bug.
10671 2005-05-06 Sebastien Pouliot <sebastien@ximian.com>
10673 * declsec.c: Keep the appdomain information in the structure. Added a
10674 missing "return FALSE" for Unmanaged if FullTrust is set (or else the
10675 value gets overwritten).
10676 * declsec.h: Set the default MonoArray for the the stack to 6. Added
10677 an MonoAppDomain member to MonoSecurityFrame.
10678 * mini-exceptions.c: Do not use a glist to keep GC allocated objects
10679 used in the stack walk. Now use a MonoArray which grow (double) when
10682 2005-05-05 Lluis Sanchez Gual <lluis@novell.com>
10684 * mini.c: Re-enabled runtime cleanup, since running threads should
10685 now properly stop when exiting.
10687 2005-05-05 Zoltan Varga <vargaz@freemail.hu>
10689 * mini-codegen.c: New file contaning the arch-independent local
10690 register allocator. Not used by any architectures yet.
10692 * mini.h linear-scan.c: Merge some changes from the
10693 mini-xp-local-regalloc branch.
10695 2005-04-28 Zoltan Varga <vargaz@freemail.hu>
10697 * mini-amd64.c (emit_call): Fix calls to native functions when the
10698 runtime is compiled as a shared library. Fixes #74756.
10700 * mini.c (mono_method_to_ir): Assert if ldsfld and friends are used
10701 on a literal field. Fixes #74751.
10703 2005-04-25 Raja R Harinath <rharinath@novell.com>
10705 * Makefile.am (RUNTIME): Add MONO_CFG_DIR.
10707 2005-04-23 Zoltan Varga <vargaz@freemail.hu>
10709 * objects.cs: Add missing null casting test.
10711 2005-04-22 Zoltan Varga <vargaz@freemail.hu>
10713 * mini-exceptions.c (mono_find_jit_info): Fix native offset calculation
10714 in wrapper methods. Also rename 'address' variable to 'offset'.
10716 2005-04-20 Zoltan Varga <vargaz@freemail.hu>
10718 * mini.c debug-mini.c aot.c tramp-x86.c driver.c: Fix some gcc 4.0
10721 * Makefile.am (MCS): Use -unsafe instead of --unsafe.
10723 * aot.c: Applied patch from "The Software Team" <software@solmersa.com>. Make AOT compilation
10726 Mon Apr 18 16:20:32 CEST 2005 Paolo Molaro <lupus@ximian.com>
10728 * exceptions-ppc.c: update code to handle stack traces (fixes bug #74452).
10730 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
10732 * mini-x86.c (mono_emit_stack_alloc): Initialize the whole allocated area not
10733 just the last bytes.
10735 2005-04-17 Zoltan Varga <vargaz@freemail.hu>
10737 * aot.c (mono_compile_assembly): Fix warning.
10739 * mini-exceptions.c (ves_icall_get_frame_info): Fix bug introduced
10740 by the _MSC_VER stuff.
10742 2005-04-16 Zoltan Varga <vargaz@freemail.hu>
10744 * inssel-long.brg: Fix #74588.
10746 * cpu-amd64.md: Fix #74591.
10748 * iltests.il: Add new regression tests.
10750 2005-04-13 Zoltan Varga <vargaz@freemail.hu>
10752 * trace.c (mono_trace_enter_method): Print enums as an int, not as a
10755 2005-04-11 Zoltan Varga <vargaz@freemail.hu>
10757 * mini-x86.c (setup_stack): Unconditionally call pthread_attr_init ().
10759 * exceptions-x86.c mini-x86.h mini-x86.c: Applied some freebsd patches
10760 from Bill Middleton <flashdict@gmail.com>.
10762 2005-04-10 Zoltan Varga <vargaz@freemail.hu>
10764 * arrays.cs: Add new regression test. Fix warnings.
10766 2005-04-09 Zoltan Varga <vargaz@freemail.hu>
10768 * mini-amd64.c (mono_arch_output_basic_block): Fix stack alignment
10769 and leakage in CKFINITE.
10771 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Change
10772 this to a null op since it is called on amd64 too.
10774 * exceptions-amd64.c (get_throw_trampoline): Align stack.
10776 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Remove
10777 body since this is not used on amd64.
10779 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Remove duplicate define.
10781 * mini-amd64.c: Remove obsolete fixmes.
10783 * mini.c (print_method_from_ip): Fix debugging support.
10785 2005-2-1 Massimiliano Mantione <massi@ximian.com>
10787 * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE
10788 so that expressions that don't give much gain are not reduced.
10789 * ssapre.h: Likewise.
10791 2005-04-04 Zoltan Varga <vargaz@freemail.hu>
10793 * exceptions-x86.c (mono_arch_find_jit_info): Remove last SC_EBP reference.
10795 * mini-x86.c (mono_emit_stack_alloc): Fix localloc under windows.
10797 * mini-x86.h exceptions-x86.c: Hopefully fix compilation on *BSD.
10799 2005-04-01 Zoltan Varga <vargaz@freemail.hu>
10801 * mini-sparc.c mini-sparc.h: Add asserts when running with sigaltstack.
10803 * exceptions-x86.c (mono_arch_monoctx_to_sigctx): Fix cygwin build.
10805 2005-03-31 Zoltan Varga <vargaz@freemail.hu>
10807 * mini-x86.c: If sigaltstack support is enabled, perform win32 style
10810 * mini.h (mono_arch_sigctx_to_monoctx): New arch-specific function.
10812 * mini.h (mono_arch_monoctx_to_sigctx): New arch-specific function.
10814 * mini.c: sigaltstack support requires MONO_ARCH_USE_SIGACTION.
10816 * mini-x86.h mini-x86.c exceptions-x86.c: Add support for
10817 MONO_ARCH_USE_SIGACTION. Fixes #74252.
10819 * mini-x86.h: Enable MONO_ARCH_USE_SIGACTION on linux.
10821 * mini-x86.c: Fix up stack overflow handling.
10823 * exceptions.cs: Add new regression test.
10825 2005-03-30 Zoltan Varga <vargaz@freemail.hu>
10827 * mini-x86.c (mono_arch_emit_prolog): Adjust stack after calls to
10828 mono_jit_thread_attach.
10830 * mini.c (mono_method_to_ir): Verify called method is not abstract.
10832 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
10834 * mini.c (mono_method_to_ir): Applied Ben's patch from bug #61441 to
10835 avoid calling constructors using callvirt.
10837 * inssel.brg: Fix #74073.
10839 2005-03-29 Sebastien Pouliot <sebastien@ximian.com>
10841 * aot.c, mini.h: Added mono-compiler.h header to allow/ease
10842 compilation with non-GCC compilers.
10843 * mini-exceptions.c, mini-x86.c|h: Patches to make compilation of mono
10844 possible using VS.NET. Adapted from the work of J Lothian (for VC6).
10846 Tue Mar 29 11:43:01 CEST 2005 Paolo Molaro <lupus@ximian.com>
10848 * inssel.brg, arrays.cs: fix long standing 64 bit issue in access to
10849 klass->interface_offsets (will likely fix bug#74073).
10851 2005-03-29 Zoltan Varga <vargaz@freemail.hu>
10853 * mini-amd64.c (mono_arch_is_int_overflow): Fix rex handling.
10855 2005-03-28 Zoltan Varga <vargaz@freemail.hu>
10857 * mini-amd64.c (mono_arch_output_basic_block): Fix order of parameters
10858 to amd64_div_reg_size ().
10860 * mini-amd64.c (mono_arch_emit_exceptions): Emit a near call here too.
10862 2005-03-27 Zoltan Varga <vargaz@freemail.hu>
10864 * cpu-amd64.md (store_membase_reg): Fix length of storer8 opcodes.
10866 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
10868 * driver.c: Turn off automatic command line globbing under windows. Fixes #73763.
10870 2005-03-24 Zoltan Varga <vargaz@freemail.hu>
10872 * mini.c (mono_method_to_ir): Remove debugging stuff left in by mistake.
10874 * mini.c (mono_precompile_assembly): Load and precompile referenced
10875 assemblies as well. Fixes #74015.
10877 2005-03-23 Zoltan Varga <vargaz@freemail.hu>
10879 * cpu-amd64.md (sin): Fix up maximum lengths of some opcodes.
10881 2005-03-23 Sebastien Pouliot <sebastien@ximian.com>
10883 * declsec.c: Skip linkdemand checks for intra-corlib calls. This skips
10884 a lot of checks and (anyway) permissions cannot work until corlib is
10887 Wed Mar 23 14:29:49 CET 2005 Paolo Molaro <lupus@ximian.com>
10889 * mini-ppc.c: fixed ABI issue on sysv/ppc.
10891 Tue Mar 22 19:03:17 CET 2005 Paolo Molaro <lupus@ximian.com>
10893 * tramp-ppc.c, exceptions-ppc.c: added missing icache flush
10894 calls (fixes bug#72824).
10896 Tue Mar 22 16:28:48 CET 2005 Paolo Molaro <lupus@ximian.com>
10898 * mini.c: fix tail recursion elimination (see test in bug#73936).
10900 2005-03-21 Zoltan Varga <vargaz@freemail.hu>
10902 * mini-amd64.c (mono_arch_output_basic_block): Add inline versions of
10903 some fp functions in sse2 mode.
10905 2005-03-20 Zoltan Varga <vargaz@freemail.hu>
10907 * mini-x86.c (emit_tls_get): Move tls handling into a separate helper function.
10909 2005-03-19 Zoltan Varga <vargaz@freemail.hu>
10911 * mini.h mini.c: Add mono_get_jit_tls_key ().
10913 * mini-x86.c: Enable fast TLS support on windows.
10915 2005-03-17 Sebastien Pouliot <sebastien@ximian.com>
10917 * declsec.c: Renamed aptc to allowpartiallytrustedcallers.
10918 * mini.c: Check for p/invoke method when generating code. If a
10919 p/invoke method, or it's class, isn't decorated with [Suppress
10920 UnmanagedCodeSecurity] then generate code to call System.Security.
10921 UnmanagedDemand (only if the security manager is active).
10923 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
10925 * tramp-amd64.c (create_specific_trampoline): Revert parts of the
10926 last change as it seems to cause strange crashes.
10928 Wed Mar 16 16:24:11 CET 2005 Paolo Molaro <lupus@ximian.com>
10930 * *.c: handle unsafe function pointers where needed.
10932 2005-03-16 Zoltan Varga <vargaz@freemail.hu>
10934 * mini.c (mono_jit_free_method): Remove the fixme too.
10936 2005-03-15 Miguel de Icaza <miguel@novell.com>
10938 * mini.c: As discussed, make the code actually free the delegate
10939 thunk now, to enable the debugging of delegate problems, use
10940 MONO_DEBUG=1 when running Mono.
10942 This takes also care of parts of the leaks as seen by Joe.
10944 2005-03-15 Zoltan Varga <vargaz@freemail.hu>
10946 * mini-amd64.c (mono_arch_setup_jit_tls_data): Enable
10947 thread_tls_offset calculation.
10949 2005-03-14 Sebastien Pouliot <sebastien@ximian.com>
10951 * declsec.c: Reworked linkdemand checks for icall. The previous code
10952 was using the declaration code (untrusted) and didn't work as expected
10953 with the CLR 2.0. We're now more compatible with 2.0 than 1.x for this
10956 2005-03-13 Zoltan Varga <vargaz@freemail.hu>
10958 * iltests.il: Add new localloc test.
10960 * mini-amd64.c: Handle large stack allocations the same way as on
10961 windows if stack overflow handling is working.
10963 * mini-amd64.c: Allocate the signal stack using mmap.
10965 * mini.c (sigsegv_signal_handler): Fix reading of context.
10967 * mini-exceptions.c: Fix up stack overflow handling.
10969 * mini-amd64.h mini-amd64.c: Fix up stack overflow handling.
10971 * tramp-amd64.c (create_specific_trampoline): Optimize trampoline size.
10973 * exceptions-amd64.c (mono_amd64_exceptions_init): Remove this.
10975 * mini.h mini.c tramp-*.c: Move common trampoline code to mini.c.
10977 * mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Get rid of the
10978 tramp_init functions as they are no longer needed.
10980 2005-03-12 Zoltan Varga <vargaz@freemail.hu>
10982 * tramp-amd64.c (mono_amd64_tramp_init): Fix typo.
10984 * tramp-amd64.c (mono_amd64_tramp_init): Init AOT trampoline as well.
10986 * mini-amd64.h mini-amd64.c (mono_amd64_exceptions_init): Remove this.
10988 * mini.c mini-*.h: Remove OUT_OF_LINE_BBLOCK defines since all arches
10991 * mini-ops.h: Add OP_LMUL_IMM.
10993 * mini.c jit-icalls.cmini-amd64.h mini-amd64.c cpu-amd64.md: Implement
10994 long mul/div opcodes as intrinsic.
10996 * mini-amd64.c (emit_call): Handle the case when the callee might be
10999 2005-03-11 Zoltan Varga <vargaz@freemail.hu>
11001 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Reorder cases to be
11004 * mini-amd64.c (mono_arch_get_vcall_slot_addr): Fix ordering of cases.
11006 * aot.c (mono_aot_load_method): Get rid of bogus make_writable call.
11008 2005-03-09 Ben Maurer <bmaurer@ximian.com>
11010 * mini.c (mono_codegen): Don't leak here, to help people running
11013 2005-03-08 Zoltan Varga <vargaz@freemail.hu>
11015 * mini-amd64.c (mono_arch_output_basic_block): Fix int->float
11016 conversions in sse2 mode.
11018 * basic-float.cs: Add regression test.
11020 * mini-amd64.c: Reenable sse2.
11022 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
11024 * mini-amd64.c: Disable sse2 until some regressions are fixed.
11026 2005-03-07 Joerg Rosenkranz <joergr@voelcker.com>
11028 * driver.c: Copyright text should include 2005.
11030 2005-03-07 Zoltan Varga <vargaz@freemail.hu>
11032 * cpu-amd64.md (load_membase): Fix more max lengths.
11034 2005-03-06 Zoltan Varga <vargaz@freemail.hu>
11036 * cpu-amd64.md (load_membase): Fix max length.
11038 * mini-ops.h: Add OP_F<xx>_MEMBASE opcodes.
11040 * inssel.brg: Add MONO_EMIT_BIALU_MEMBASE macro.
11042 * cpu-amd64.md inssel-amd64.brg mini-amd64.h mini-amd64.brg: Finish SSE2
11043 support and enable it by default. Also add OP_F<xxx>_MEMBASE opcodes.
11045 * basic-float.cs: Add rounding regression test.
11047 * mini-amd64.c (INST_IGNORES_CFLAGS): Add more instructions.
11049 2005-03-04 Neale Ferguson <NealeFerguson@earthlink.net>
11051 * inssel-s390.brg, mini-s390.c: Add support for passing/returning small
11052 structures in registers for pinvoke wrappers.
11054 2005-03-04 Zoltan Varga <vargaz@freemail.hu>
11056 * mini-exceptions.c (ves_icall_get_trace): Return wrapper info as well.
11058 2005-03-03 Zoltan Varga <vargaz@freemail.hu>
11060 * mini.h mini.c mini-x86.c: Pass the domain of the native->managed
11061 wrapper to mono_jit_thread_attach.
11063 * mini.c (mini_jit_thread_attach): New jit icall.
11065 * mini-x86.c (mono_arch_emit_prolog): Attach to the VM in
11066 native->managed wrappers.
11068 * exceptions.cs: Add new regression test.
11070 * mini.c (optimize_branches): Check regions in the cbranch to throw
11071 block case as well. Fixes #73242.
11073 Tue Mar 1 18:35:27 CET 2005 Paolo Molaro <lupus@ximian.com>
11075 * mini.c: thread safety fixes.
11077 2005-02-27 Zoltan Varga <vargaz@freemail.hu>
11079 * tramp-amd64.c (amd64_magic_trampoline): Disable the method_ptr
11080 patching stuff, since delegates use jump trampolines so there is
11083 * tramp-amd64.c (create_trampoline_code): Pass NULL as 'code' in
11086 * tramp-amd64.c: Fix build.
11088 * mini-x86.c tramp-x86.c: Moved get_vtable_slot_addr into mini-x86.c and rename
11089 it to mono_arch_.... Add get_delegate_method_ptr implementation for x86.
11091 * mini-amd64.h mini.h mini-amd64.c tramp-amd64.c (mono_amd64_get_vcall_slot_addr):
11092 Rename this to mono_arch....
11093 (mono_amd64_get_delegate_method_ptr_addr): Ditto.
11095 * mini-amd64.c (mono_amd64_get_delegate_method_ptr_addr): New helper function.
11097 * mini-amd64.c (emit_call): If both the caller and the callee is
11098 guaranteed to have 32 bit addresses, emit a normal call.
11100 * tramp-amd64.c: Adapt to changes in mini-amd64.c.
11102 * tramp-amd64.c (amd64_magic_trampoline): Remove patching of trampolines.
11103 * tramp-amd64.c (amd64_magic_trampoline): Add support for patching the
11104 method_ptr inside delegates.
11106 2005-02-26 Zoltan Varga <vargaz@freemail.hu>
11108 * mini.c (mono_jit_free_method): Free the method info even if the native code is
11109 invalidated. Fixes #73001.
11111 * mini.c: Add a proper icall wrapper for mono_delegate_ctor.
11113 * mini-x86.c: Only use stdcall for pinvokes on windows.
11115 Thu Feb 24 15:22:30 CET 2005 Paolo Molaro <lupus@ximian.com>
11117 * mini.c, mini.h: make mono_lmf_addr a fast-access thread var.
11118 * mini-x86.c: remove unreliable __thread var offset detection,
11119 use the correct accessors and enable by default.
11121 2005-02-23 Zoltan Varga <vargaz@freemail.hu>
11123 * mini.c (mono_jit_free_method): Fix memory leak.
11125 2005-02-22 Zoltan Varga <vargaz@freemail.hu>
11127 * mini.c (mono_method_to_ir): Allocate a GOT var for THROW and RETHROW.
11129 2005-02-21 Zoltan Varga <vargaz@freemail.hu>
11131 * cpu-amd64.md: Fix lengths of atomic opcodes.
11133 Mon Feb 21 16:52:20 CET 2005 Paolo Molaro <lupus@ximian.com>
11135 * driver.c: try to not imply using ICU is any good.
11137 2005-02-20 Zoltan Varga <vargaz@freemail.hu>
11139 * mini-amd64.c (mono_arch_get_inst_for_method): Implement more
11140 functions as inline ops.
11142 * mini-ops.h inssel-amd64.brg cpu-amd64.md mini-amd64.c: Implement
11143 some Interlocked functions as inline ops.
11145 * mini.c (move_basic_block_to_end): Fix bug in last patch.
11147 * mini.h (MonoBasicBlock): Reorganize fields a bit.
11149 * mini-ops.h inssel.brg: Add OP_NOT_REACHED.
11151 * mini.c: Add support for OP_NOT_TAKEN.
11153 * mini-amd64.h mini-amd64.c: Add support for passing/returning small
11154 structures in registers for pinvoke wrappers.
11156 * mini-amd64.c: Fix warnings.
11158 2005-02-19 Zoltan Varga <vargaz@freemail.hu>
11160 * mini.h (MonoCompile): Add 'ret_var_is_local' field.
11162 * mini.h mini.c (mono_arch_create_vars): Add new arch specific hook.
11164 * mini.c (NEW_RETLOADA): If the ret variable is a local, use its
11165 address instead of loading the address from it.
11167 * mini-x86.c: Add support for returning small structs in registers
11168 on Win32. Fixes part of #70864.
11170 2005-02-18 Zoltan Varga <vargaz@freemail.hu>
11172 * trace.c (get_token): Improve error checking.
11174 2005-02-17 Zoltan Varga <vargaz@freemail.hu>
11176 * jit-icalls.c (mono_ldvirtfn): Explicitly check for a NULL obj here.
11178 2005-02-17 Sebastien Pouliot <sebastien@ximian.com>
11180 * mini.h: Moved MONO_EXCEPTION_* enum to metadata/class-internals.h so
11181 it can be reused for MonoClass.
11182 * mini.c: Renamed MONO_EXCEPTION_SECURITY to MONO_EXCEPTION_SECURITY
11185 2005-02-15 Sebastien Pouliot <sebastien@ximian.com>
11187 * mini.c: Fixed 2 cases where I sent a MonoMethod to managed code
11188 instead of a MonoReflectionMethod. The method information wasn't used
11189 when displaying SecurityException details (but will be now).
11191 2005-02-15 Atsushi Enomoto <atsushi@ximian.com>
11193 * Makefile.am : windows build fix.
11195 2005-02-14 Zoltan Varga <vargaz@freemail.hu>
11197 * iltests.il: Add new regression test.
11199 * mini.c (mono_method_to_ir): Allocate a GOT var in CEE_NEWOBJ. Fixes
11202 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
11204 * mini.c: Moved linkdemand check into helper function check_linkdemand
11205 to allow reuse for all intructions (CALL, CALLVIRT, NEWOBJ, JMP,
11208 2004-02-13 Sebastien Pouliot <sebastien@ximian.com>
11210 * declsec.c: Added statistics counter for different kinds of
11212 * mini.h: Added CAS statistic counters to MonoJitStats. Removed unused
11213 (and commented) declaration.
11214 * mini.c: Added statistics counter for security Demand code
11215 generation. Added display of security statistics.
11217 2005-02-13 Zoltan Varga <vargaz@freemail.hu>
11219 * declsec.c (mono_declsec_linkdemand_aptc): Applied patch from Robert Jordan (robertj@gmx.net).
11220 Fix compilation errors under gcc-2.95.
11222 2005-02-12 Ben Maurer <bmaurer@ximian.com>
11224 * mini.c, driver.c: Use the new jit trampoline hashtable
11226 Fri Feb 11 18:47:11 CET 2005 Paolo Molaro <lupus@ximian.com>
11228 * mini.c, jit-icalls.c: use the managed implementation of memcpy, too.
11230 2005-02-11 Martin Baulig <martin@ximian.com>
11232 * debug-mini.c (mono_debug_close_method): Free the line number array.
11234 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
11236 * aot.c: Break up large methods into smaller ones. Share GOT slots for
11239 * mini.h: Bump AOT file format version.
11241 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>
11243 * declsec.c: Added LinkDemand support and it's special cases for ECMA,
11245 * declsec.h: Added macros to get/set lazyly initialized security
11246 informations about assemblies. Added new enum for different type of
11247 possible LinkDemand violation. Added function to check LinkDemands.
11248 * mini.h: Added a field to MonoCompile to hold any security violation
11249 detected when JITting a method (so it can be thrown later).
11250 * mini.c: Added LinkDemand checks in mono_method_to_ir for CEE_CALL
11251 and CEE_CALLVIRT. Added code to throw exception at the end of
11252 mini_method_compile (note: the exception is unhandled right now).
11254 Thu Feb 10 15:49:44 CET 2005 Paolo Molaro <lupus@ximian.com>
11256 * mini.c, jit-icalls.c: use the managed implementation of
11257 memset for initobj and memset, to avoid managed <-> unmanaged
11260 2005-02-10 Zoltan Varga <vargaz@freemail.hu>
11262 * inssel.brg (mini_emit_virtual_call): Disable the virtual->nonvirtual
11263 optimization if it would need a GOT var.
11265 * basic.cs: Add tests for constant propagation and switch statements.
11267 * ssa.c: Fix out-of-range constant propagation and switch statements.
11269 2005-02-09 <vargaz@freemail.hu>
11271 * inssel-x86.brg (reg): Align the allocation size in the localloc(imm) case too.
11273 2005-02-08 Zoltan Varga <vargaz@freemail.hu>
11275 * cpu-amd64.md (load_membase): Fix max length of load_membase.
11277 Tue Feb 8 18:21:11 CET 2005 Paolo Molaro <lupus@ximian.com>
11279 * mini.c: update to new signature of mono_class_get_allocation_ftn().
11281 2005-02-06 Neale Ferguson <NealeFerguson@earthlink.net>
11283 * cpu-s390.md, mini-s390.c: Correct bug with register usage on certain
11284 arithmetic operations.
11286 Sun Feb 6 07:10:12 EST 2005 Paolo Molaro <lupus@ximian.com>
11288 * mini-ppc.c: add a workaround for broken user code that
11289 DllImports vararg functions with non-vararg signatures.
11291 2005-02-05 Zoltan Varga <vargaz@freemail.hu>
11293 * mini.c (mono_jit_compile_method_inner): Add detection and a
11294 meaningfull error message for assemblies written in Managed C++.
11296 * tramp-amd64.c mini-amd64.h: Add support for
11297 create_trampoline_from_token ().
11299 * aot.c mini-x86.c abcremoval.c: Applied patch from
11300 Robert Jordan (robertj@gmx.net). Fix compilation errors under gcc-2.95.
11302 2005-02-04 Zoltan Varga <vargaz@freemail.hu>
11304 * mini.h mini.c mini-x86.h tramp-x86.c: Add a new kind of trampoline
11305 which takes a MonoImage/token as parameter instead of a MonoMethod.
11307 * aot.c: Use the new trampoline for initializing vtables.
11309 * aot.c: Add support for ldfld/stfld_remote wrappers.
11311 * mini-ops.h cpu-pentium.md inssel-x86.brg mini-x86.c: Add optimized
11312 rules for compare <MEM>, IMM.
11314 * mini.h (MONO_AOT_FILE_VERSION): Bump it.
11316 * aot.c: Handle inherited finalizers correctly.
11318 2005-02-03 Zoltan Varga <vargaz@freemail.hu>
11320 * inssel.brg (stmt): Add a missing _setup_... ().
11322 * aot.c: Save some parts of the class state to the AOT file and use it
11323 to recompute that state when a class is initialized.
11325 * mini.c: Install AOT hooks into the runtime.
11327 * mini.h: Bump AOT file format version.
11329 * mini.c (mono_method_to_ir): Initialize pointer type locals correctly.
11332 * iltests.il: Add new test.
11334 Wed Feb 2 16:53:59 CET 2005 Paolo Molaro <lupus@ximian.com>
11336 * mini.c: fix typo.
11338 Wed Feb 2 16:37:13 CET 2005 Paolo Molaro <lupus@ximian.com>
11340 * mini.c: setup the statistical profiler in the thread attach
11341 callback to cope with the new single thread code.
11343 Wed Feb 2 15:43:58 CET 2005 Paolo Molaro <lupus@ximian.com>
11345 * mini-ppc.c: ensure we have enough room for the profiler
11346 calls (fixed bug#72084).
11348 2005-02-02 Zoltan Varga <vargaz@freemail.hu>
11350 * aot.c: Get rid of the MonoAotMethod structure and the hashtable holding
11353 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11355 * driver.c: Re-enabled SSAPRE (two commits, I was just dumb).
11357 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11359 * ssapre.c: Fixed an issue with down safety (this allows IronPython
11360 to succesfully execute parrotbench).
11361 * ssapre.h: Likewise.
11363 2005-2-1 Massimiliano Mantione <massi@ximian.com>
11365 * ssa.c: In mono_ssa_rename_vars, forced the creation of a new SSA
11366 variable for stores to method arguments (fixes a SSAPRE issue).
11368 Tue Feb 1 15:52:26 CET 2005 Paolo Molaro <lupus@ximian.com>
11370 * mini.c: handle value types in dup, fixes gen-112.cs.
11372 Tue Feb 1 11:45:19 CET 2005 Paolo Molaro <lupus@ximian.com>
11374 * mini-ppc.c, cpu-g4.md, tramp-ppc.c: use a slower code
11375 sequence for calls in dynamic methods to avoid thunks.
11377 Tue Feb 1 11:44:01 CET 2005 Paolo Molaro <lupus@ximian.com>
11379 * mini.c: correctly remove dynamic methods from the hashtable.
11381 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11383 * driver.c: Disabled SSAPRE until fix the bug that appears
11384 in IronPython's parrotbench.
11386 2005-01-31 Zoltan Varga <vargaz@freemail.hu>
11388 * aot.c (mono_compile_assembly): Get rid of Skip (other) messages.
11390 * mini.c (mono_method_to_ir): Revert the previous change.
11392 * mini.c (mono_method_to_ir): Do not inline ldfld and stfld wrappers
11393 when AOT compiling.
11395 * tramp-x86.c (x86_magic_trampoline): Avoid calls to
11396 mono_jit_info_table_find () etc. when running under valgrind.
11398 * inssel.brg: Fix warnings.
11400 * mini-exceptions.c: Fix warnings.
11402 2005-01-31 Martin Baulig <martin@ximian.com>
11404 * driver.c (compile_all_methods_thread_main): Don't try to compile
11405 generic methods or anything which has type parameters.
11407 2005-01-30 Zoltan Varga <vargaz@freemail.hu>
11409 * aot.c: Avoid costly calls to mono_method_full_name in tracing code and fix memory leaks.
11411 * TestDriver.cs: Add --verbose flags.
11413 * graph.c ssa.c: Fix 64 bit warnings.
11415 * abcremoval.h ssapre.h abcremoval.c ssapre.c mini.c tramp-amd64.c
11416 trace.c mini-exceptions.c linear-scan.c inssel-amd64.brg inssel.brg:
11417 Fix 64 bit warnings.
11419 * mini-amd64.c (mono_arch_output_basic_block): Fix uninitialized
11420 variable not spotted by gcc.
11422 * mini-amd64.c inssel-amd64.brg: Applied patch from
11423 Willibald Krenn <Willibald.Krenn@gmx.at>. Clean up usage of
11424 X86_COMPARE_MEMBASE opcodes.
11426 * exceptions-amd64.c (mono_arch_find_jit_info): Fix AMD64 build.
11428 2005-01-29 Ben Maurer <bmaurer@ximian.com>
11430 * *: MonoMethod->signature might be NULL now. You *MUST* use
11431 mono_method_signature.
11433 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
11435 * driver.c (compile_all_methods_thread_main): Compile the methods
11436 without invoking cctors.
11438 Fri Jan 28 18:28:26 CET 2005 Paolo Molaro <lupus@ximian.com>
11440 * mini.c: remove ben's "optimizations" to dup+stloc (bug #71905).
11441 * basic-calls.cs: test for the above.
11443 2005-01-28 Zoltan Varga <vargaz@freemail.hu>
11445 * mini.c mini-exceptions.c aot.c exceptions-*.c: Update after
11446 MonoJitInfo changes.
11448 2005-01-27 Zoltan Varga <vargaz@freemail.hu>
11450 * mini-exceptions.c (mono_handle_exception): Compute the stack trace
11451 eagerly if it contains dynamic methods.
11453 * mini-exceptions.c (ves_icall_System_Exception_get_trace): New icall.
11455 * mini-exceptions.c (mono_handle_exception): Avoid computing the stack
11456 trace, it is now computed by an icall from trace_ips.
11458 * mini-exceptions.c: Fix a warning.
11460 Thu Jan 27 13:38:34 CET 2005 Paolo Molaro <lupus@ximian.com>
11462 * mini-exceptions.c: don't bother getting stack trace info if
11463 it's not going to be used.
11465 2005-01-27 Raja R Harinath <rharinath@novell.com>
11467 * Makefile.am (common_sources): Add ssapre-cee-ops.h and
11470 2005-01-26 Zoltan Varga <vargaz@freemail.hu>
11472 * mini.c (remove_block_if_useless): Only print debug stuff with -v -v.
11474 * aot.c: Avoid calling mono_method_get_header () if not needed.
11476 * mini.h: Bump AOT file format version.
11478 * mini.c (mono_emit_native_call): Allocate a GOT var here.
11480 * mini.c (mono_print_tree): Print more info for calls.
11482 2005-01-26 Sebastien Pouliot <sebastien@ximian.com>
11484 * declsec.h: Remove warning by adding missing include for marshal.h
11486 2005-01-26 Martin Baulig <martin@ximian.com>
11488 * mini.c (mono_method_to_ir): In CEE_UNBOX_ANY, don't increase
11491 2005-01-25 Zoltan Varga <vargaz@freemail.hu>
11493 * mini-amd64.c (mono_arch_call_opcode): Add missing MONO_SSA_LOAD/STORE
11496 * ssa.c (mono_ssa_compute): Fix crashes when using AOT.
11498 * aot.c (mono_compile_assembly): Fix a warning.
11500 2005-01-25 Sebastien Pouliot <sebastien@ximian.com>
11502 * declsec.c: Look for security attributes on the original MonoMethod
11503 (and not the wrapped one). This fix permissions on icalls.
11505 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
11507 * mini-amd64.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
11509 * mini.c (mono_allocate_stack_slots): Add a fixme.
11511 * mini-x86.c (mono_arch_allocate_vars): Use mono_allocate_stack_slots ().
11513 Sun Jan 23 16:16:48 CET 2005 Paolo Molaro <lupus@ximian.com>
11515 * inssel.brg: optimize casts of sealed types (more
11516 optimizations waiting for fixes in remoting).
11518 2005-01-23 Zoltan Varga <vargaz@freemail.hu>
11520 * inssel.brg (stmt): Add another dummy rule.
11522 * driver.c: Fix warnings.
11524 * driver.c (mono_main): If running under valgrind, instruct glib to use
11525 the system allocation functions so valgrind can track the memory
11526 allocated by the g_... functions.
11528 * inssel.brg (stmt): Add DUMMY rule for OP_DUMMY_STORE.
11530 * mini-ops.h: Add OP_DUMMY_STORE opcode.
11532 * mini.h (MONO_BBLOCK_IS_IN_REGION): New helper macro.
11534 * liveness.c: Handle OP_DUMMY_STORE. Enable register allocation for
11535 variables in try regions.
11537 * mini.c (mini_method_compile): Don't disable optimizations on large
11538 methods when AOT compiling.
11540 * mini.c (mono_allocate_stack_slots): New arch independent method to
11541 allocate stack slots. Not yet used.
11543 2005-01-22 Ben Maurer <bmaurer@ximian.com>
11545 * debug-mini.c (mono_debug_close_method): Plug some leaks.
11547 Sat Jan 22 13:41:51 EST 2005 Paolo Molaro <lupus@ximian.com>
11549 * mini-ppc.c: make the branch info relative as the code
11550 buffer can be reallocated.
11552 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>
11554 * aot.c: Allow decoding of the new MONO_PATCH_INFO_DECLSEC.
11555 * driver.c: Removed the AOT/security restriction. Now initialize the
11556 security manager (in metadata) if --security is used.
11557 * mini.c|h: Add the MONO_PATCH_INFO_DECLSEC code to use the index,
11558 rather than the pointer to declarative security, when AOT is used.
11560 Sat Jan 22 09:35:19 EST 2005 Paolo Molaro <lupus@ximian.com>
11562 * mini.h, mini-ppc.h, mini-ppc.c: updated to use out of line
11563 basic blocks, reduced intrinsic exception throwing code size.
11565 2005-01-22 Miguel de Icaza <miguel@ximian.com>
11567 * driver.c (mini_usage): Reorder the usage screen.
11569 2005-01-21 Zoltan Varga <vargaz@freemail.hu>
11571 * mini.c (mono_resolve_patch_target): Fix warning.
11573 2005-01-20 Zoltan Varga <vargaz@freemail.hu>
11575 * mini-x86.c (mono_arch_local_regalloc): Fix bug introduced by
11578 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
11580 * mini-amd64.c (mono_arch_local_regalloc): Revert last patch as it
11581 breaks the amd64 build.
11583 * mini-x86.c (mono_arch_local_regalloc): Fix bug in div/rem
11584 register allocation. Fixes #71454.
11586 * mini-amd64.c (mono_arch_local_regalloc): Ditto.
11588 * arrays.cs: Add new regression test.
11590 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11592 * ssapre.c: Turned usage of snprintf to GString.
11593 * ssapre.h: disabled MONO_APPLY_SSAPRE_TO_SINGLE_METHOD
11594 (I left it on by mistake in my previous commit).
11596 Thu Jan 20 12:00:45 CET 2005 Paolo Molaro <lupus@ximian.com>
11598 * mini.c, cfold.c, basic-calls.cs: preserve side effects
11599 on cond branch optimization (fixes bug# 71515).
11601 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11603 * abcremoval.c: Fixed bug 71062.
11604 * abcremoval.h: Likewise.
11606 2005-1-20 Massimiliano Mantione <massi@ximian.com>
11608 * mini.c: Added a new functionality to optimize_branches, the removal
11609 of useless basic blocks, and fixed some problem in the removal of
11610 critical edges; some utility functions added for both purposes.
11611 * ssapre.c: Added complex expression support, and fixed bug 70637.
11612 * ssapre.h: Likewise.
11613 * ssapre-cee-ops.h: Added file with list of "CEE_*" opcodes
11615 * ssapre-mini-ops.h: Likewise, but for "OP_*" opcodes.
11616 * driver.c: Re-enabled SSAPRE.
11618 2005-01-19 Martin Baulig <martin@ximian.com>
11620 * mini.c (mono_method_to_ir): Call mono_get_inflated_method() on
11621 the result of mono_get_method_constrained().
11623 2005-01-18 Neale Ferguson <NealeFerguson@earthlink.net>
11625 * exceptions-s390.c tramp-s390.c: Allocate code using the global code
11628 2005-01-18 Geoff Norton <gnorton@customerdna.com>
11630 * jit-icalls.c (mono_llmult_ovf): Fix other overflow conditions to
11631 be detected. Fixes #59296.
11633 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
11635 * mini-amd64.c (mono_arch_output_basic_block): Remove some assertions
11636 which can happen. Fixes #71361.
11638 2005-01-18 Zoltan Varga <vargaz@freemail.hu>
11640 * exceptions-sparc.c tramp-sparc.c: Allocate code using the global code
11643 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
11645 * mini.c (mono_create_jump_trampoline): Revert last change as it causes
11646 appdomain-unload.exe to fail.
11648 * mini.c: Fix some memory leaks.
11650 Mon Jan 17 16:16:23 CET 2005 Paolo Molaro <lupus@ximian.com>
11652 * inssel.brg: handle the new size of rank, idepth, max_interface_id.
11653 Fixed bug and sped up some codepaths.
11655 2005-01-17 Zoltan Varga <vargaz@freemail.hu>
11657 * mini.c: Fix some memory leaks.
11659 * exceptions.cs basic-long.cs: Add test for checked ulong->int
11662 * inssel-long.brg: Implement long_conv_to_ovf_i4_un. Fixes #71319.
11664 * inssel-long.brg: Fix conv.ovf.i8 when run on an int32. Fixes
11667 * iltests.il: Add regression test for #71320.
11669 2005-01-16 Zoltan Varga <vargaz@freemail.hu>
11671 * mini.c (mono_codegen): Fix installation of profiler hooks.
11673 * mini-sparc.c mini-amd64.c: Don't allocate stack space for dead vars.
11675 Sun Jan 16 12:19:35 CET 2005 Paolo Molaro <lupus@ximian.com>
11677 * mini.h, mini.c, cfold.c: optimize access to enum
11678 readonly fields, too. Eval conditional branches if possible
11679 to perform unreachable code removal in more cases.
11681 2005-01-15 Zoltan Varga <vargaz@freemail.hu>
11683 * tramp-amd64.c exceptions-amd64.c: Use the new global code manager.
11685 * mini.c (mono_global_codeman_reserve): New function to allocate code memory from a global
11688 * tramp-x86.c mini-x86.c exceptions-x86.c: Allocate all code memory so mono works with
11689 WinXP DEP. Fixes #71244.
11691 2005-01-14 Zoltan Varga <vargaz@freemail.hu>
11693 * inssel.brg: Allways convert CEE_CONV_OVF_I4 to a move on 64 bit platforms. Fixes #71236.
11695 2005-01-13 Zoltan Varga <vargaz@freemail.hu>
11697 * mini-x86.c (mono_arch_output_basic_block): Fix OP_ATOMIC_ADD_NEW_I4.
11699 2005-01-11 Zoltan Varga <vargaz@freemail.hu>
11701 * mini-exceptions.c exceptions-ppc.c aot.c: Cope with MonoJitInfo
11704 * mini.h: Bump AOT version.
11706 * mini.h (MonoCompile): Change exvar to a hash table.
11708 * mini.c: Allocate a separate exvar for each handler block.
11710 * mini.c: Get rid of the computation of filter_lengths, its not needed.
11712 * mini.c inssel.brg: Change OP_THROW_OR_NULL to compare the current
11713 ex var with the pending exception and only throw if the two are equal.
11716 * exceptions.cs: Add tests for rethrow and nested catch clauses.
11718 * mini-x86.c: Fix warnings.
11720 * Makefile.am (common_sources): Move mini-exceptions.c here as it is
11721 used by all the ports now.
11723 * aot.c: Add write-symbols and save-temps options.
11725 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
11727 * mini-x86.c: Add support for returning structs in registers from pinvoke functions on WIN32.
11729 Mon Jan 10 16:11:16 EST 2005 Neale Ferguson <nealeferguson@earthlink.net>
11731 * mini-ops.h, inssel-s390.brg, cpu-s390.md: Support OP_ATOMIC__xxx
11734 * tramp-s390.c: Check vtable slot belongs to the domain.
11736 * mini-exceptions.c, exceptions-s390.c: Standardize exception handling
11737 as per other platforms.
11739 * mini-s390.c, mini-s390.h: Enable out-of-line bblock support.
11741 Mon Jan 10 18:53:05 CET 2005 Paolo Molaro <lupus@ximian.com>
11743 * driver.c: we don't run the Main() code in a subthread anymore.
11745 Mon Jan 10 17:54:16 CET 2005 Paolo Molaro <lupus@ximian.com>
11747 * mini.c: added experimental rtc support in the statistical
11748 profiler: if the user has the permission, more accurate statistics
11749 are gathered. Run with: MONO_RTC=4096 mono --profiler=default:stat ....
11750 The MONO_RTC value must be restricted to what the linux rtc allows:
11751 power of two from 64 to 8192 Hz.
11753 2005-01-10 Zoltan Varga <vargaz@freemail.hu>
11755 * mini-x86.c (mono_arch_emit_exceptions): Fix #71121.
11757 Mon Jan 10 05:20:49 EST 2005 Paolo Molaro <lupus@ximian.com>
11759 * mini-ppc.c: better icache flush for smp.
11761 2005-01-09 Zoltan Varga <vargaz@freemail.hu>
11763 * mini-amd64.c (emit_move_return_value): Fix memory leak.
11765 * mini-x86.c (get_call_info): Add the get_call_info () code from the
11766 amd64 port, not yet used.
11768 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
11770 * mini.c (mono_method_to_ir): Disable inlining of ldfld wrappers with
11773 2005-01-07 Sebastien Pouliot <sebastien@ximian.com>
11775 * driver.c: Added --security option to activate the security manager.
11776 Right now this will allow code generation for declarative demands and
11777 is disabled when AOT is specified.
11778 * mini.c: Add code generation for declarative security demands.
11779 * mini.h: Add mono_use_security_manager as an extern gboolean.
11781 2005-01-07 Zoltan Varga <vargaz@freemail.hu>
11783 * aot.c (mono_compile_assembly): Speed up compilation a bit by
11784 emitting more dense assembly code.
11786 * mini-sparc.c mini-sparc.h exceptions-sparc.c: Enable optimized corlib
11787 exception throwing stuff.
11789 2005-01-06 Zoltan Varga <vargaz@freemail.hu>
11791 * mini-sparc.c (mono_arch_emit_exceptions): Fix typo in previous patch. Remove
11794 * mini-amd64.c (mono_arch_emit_exceptions): Remove duplicate epilog stuff
11795 left in by mistake.
11797 * driver.c (EXCLUDED_FROM_ALL): Disable SSAPRE until bug #70637 is
11800 * mini-sparc.h mini-sparc.c: Enable out-of-line bblock support.
11802 * tramp-*.c: Only patch vtable slots if the object is in the current
11803 domain. Fixes appdomain-unload.exe.
11805 * mini-amd64.c mini-amd64.h: Enable out-of-line bblock support.
11807 * mini-amd64.c (mono_arch_local_regalloc): Port regalloc fix from
11810 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
11812 * mini.c (reverse_branch_op): New helper function.
11814 * mini.c (optimize_branches): Run the new optimization only on
11815 platforms which support it. Also reverse all kinds of branches.
11817 * mini.h (MonoBasicBlock): Add 'out_of_line' field.
11819 * mini.c (mono_method_to_ir): Set 'out_of_line' for bblocks which have
11822 * mini.c (optimize_branches): Reverse not-equals branches if the false
11823 bblock is a throw. This happens a lot of time with argument checking in
11826 * mini.c (mono_codegen): Add support for placing basic blocks after
11827 the function epilogue.
11829 * mini-x86.c mini-x86.h: Add support for placing basic blocks after the
11832 2005-01-05 Miguel de Icaza <miguel@ximian.com>
11834 * mini.c (setup_stat_profiler): Only set this up if the platform
11835 supports ITIMER_PROF.
11837 2005-01-05 Zoltan Varga <vargaz@freemail.hu>
11839 * mini-x86.c (mono_arch_local_regalloc): Fix a bug introduced by the
11842 * inssel.brg: Fix a warning.
11844 Wed Jan 5 16:40:18 CET 2005 Paolo Molaro <lupus@ximian.com>
11846 * mini.c: added support for statistical profiler
11847 (run with: --profile=default:stat).
11849 2005-01-04 Zoltan Varga <vargaz@freemail.hu>
11851 * mini-x86.h (MONO_ARCH_ENABLE_EMIT_STATE_OPT): Enable this on x86.
11853 * mini-x86.c cpu-pentium.md: More fixes for usage of global registers.
11855 * mini-amd64.c (mono_arch_local_regalloc): Port some regalloc fixes
11856 related to global registers from the amd64 port.
11858 2005-01-03 Zoltan Varga <vargaz@freemail.hu>
11860 * mini.c (mono_method_to_ir): Handle MONO_CLASSCONST.
11862 * mini-amd64.c (mono_arch_local_regalloc): Fix some regalloc problems
11863 with global registers.
11864 (mono_arch_output_basic_block): Fix SWITCH in the AOT case.
11866 * aot.c (emit_method_code): Fix the 'method emitted as' messages.
11868 2004-12-31 Zoltan Varga <vargaz@freemail.hu>
11870 * debug-mini.c (encode_value): Fix off-by-one.
11872 * aot.c (encode_value): Likewise.
11874 * mini.c (mono_method_to_ir): Disable AOT for methods containing LDPTR.
11876 2004-12-30 Zoltan Varga <vargaz@freemail.hu>
11878 * mini.c linear-scan.c: Add a workaround for the mcs crash when using
11881 * aot.c (mono_aot_load_method): Free up patch info if no longer needed.
11883 * aot.c (emit_method_info): Increase size of temp buffer.
11885 * mini-x86.c cpu-pentium.md mini.c: Load fp constants differently in
11888 2004-12-28 Zoltan Varga <vargaz@freemail.hu>
11890 * aot.c (emit_method_info): Fix build.
11892 * aot.c: Further rework of the AOT file format to reduce the size of
11893 the method info data.
11895 * mini.h: Bump AOT file format version.
11897 2004-12-27 Martin Baulig <martin@ximian.com>
11899 * mini.c (mini_get_method): New static method; call
11900 mono_get_method_full() and mono_get_inflated_method().
11901 (mono_method_to_ir): Use mini_get_method() instead of
11902 mono_get_method_full().
11904 2004-12-26 Patrik Torstensson <patrik.torstensson@gmail.com>
11906 * mini-x86.c (atomic ops): fixed bug interlocked bug #70784.
11908 2004-12-25 Zoltan Varga <vargaz@freemail.hu>
11910 * inssel.brg (ldind_to_load_membase): Handle CEE_LDIND_I8.
11912 * inssel-amd64.brg: Add some optimization rules.
11914 2004-12-24 Ben Maurer <bmaurer@ximian.com>
11916 * aot.c: Remove the use of MonoGHashTable and other GC stuff. The
11917 standard not GC'd stuff is fine.
11919 2004-12-24 Zoltan Varga <vargaz@freemail.hu>
11921 * aot.c: Rework the AOT file format to get rid of most of the global
11922 symbols. This reduces the size of the mscorlib.dll.so by 1MB.
11924 * mini.h: Bump AOT file format version.
11926 2004-12-23 Zoltan Varga <vargaz@freemail.hu>
11928 * mini.h: Bump AOT file format version.
11930 * aot.c (mono_aot_is_got_entry): New function to determine if an
11931 address is inside a GOT.
11933 * aot.c mini-x86.c tramp-x86.c: Make all patches use the GOT.
11935 * cpu-pentium.md: Increase the maximum size of some instructions which
11936 might involve a got access.
11938 * mini.c (get_method_from_ip): Another debug helper function.
11940 * mini.c: Call mono_get_got_var () in a couple places. Handle the case
11941 when got var accesses are created during the decompose phase.
11943 * mini-sparc.c: Change mono_compile_aot to cfg->compile_aot.
11945 * mini.h mini.c mini-x86.c aot.c mini-sparc.c: Add a 'compile_corlib'
11946 argument mini_compile_method and to MonoCompile, and use this to
11947 determine whenever a given method is compiled for AOT. This allows the
11948 other methods compiled during AOT compilation to be free of AOT stuff,
11949 so the backends does not need to add special support for them by
11950 creating a fake GOT etc.
11952 * mini-x86.c (mono_arch_patch_code): Remove fake got stuff as it is no
11955 2004-12-21 Ben Maurer <bmaurer@ximian.com>
11957 * mini.c (mono_method_to_ir): It turns out that some of the
11958 x-appdomain wrappers are lax with types, so just ignore this for
11961 * inssel.brg (OP_CHECK_ARRAY_TYPE): Optimize this by only looking
11962 at the vtable->klass. If it is non-shared code we can just use the
11965 Tue Dec 21 17:43:06 CET 2004 Paolo Molaro <lupus@ximian.com>
11967 * mini-ppc.c: access MonoDomain from tls, too.
11969 2004-12-21 Sebastien Pouliot <sebastien@ximian.com>
11971 * declsec.c: Removed unused variable (and related warning ;-)
11973 2004-12-21 Ben Maurer <bmaurer@ximian.com>
11975 * iltests.il: New test for LDELEMA on an array of ref types.
11977 * mini.c (CEE_LDELEMA): We need to emit OP_CHECK_ARRAY_TYPE for
11978 all ldelema's on reftypes.
11979 (check_call_signature): Remove the OP_CHECK_ARRAY_TYPE from here,
11980 it was the wrong place to put it.
11982 * mini-x86.c (mono_arch_output_basic_block): Just use ecx as the
11983 register to pop to make this cleaner, at the request of Paolo.
11985 2004-12-20 Ben Maurer <bmaurer@ximian.com>
11987 * mini-ops.h (OP_GETHASHCODE): New op.
11989 * inssel.brg (OP_GETHASHCODE): Emit code for the new opcode
11991 * mini.c (mini_get_inst_for_method): Create the intrinsic hash
11994 For a microbenchmark, this reduces the cost of Hashtable.get_Item
11997 * mini-x86.c (mono_arch_output_basic_block): Rather than
12005 The first is 3 bytes while the second is 1. This saves 36 kb on
12006 mscorlib, quite a big saving. When bootstraping mcs, I was able to
12007 see a small boost because of icache locality.
12009 * cfold.c (FOLD_BINOPCOMM): Kill add foo, 0
12011 Mon Dec 20 12:19:40 EST 2004 Paolo Molaro <lupus@ximian.com>
12013 * Makefile.am, mini-ppc.h, mini-exceptions.c, exceptions-ppc.c:
12014 started code sharing with the generic code.
12016 Mon Dec 20 11:08:06 EST 2004 Paolo Molaro <lupus@ximian.com>
12018 * mini-ppc.c, cpu-g4.md: added code for direct access to
12021 Mon Dec 20 10:58:28 EST 2004 Paolo Molaro <lupus@ximian.com>
12023 * mini-ops.h, inssel-x86.brg, cpu-amd64.md, inssel.brg, inssel-amd64.brg,
12024 mini-amd64.c, mini-x86.c, cpu-pentium.md: renamed OP_X86_TLS_GET
12027 2004-12-20 Sebastien Pouliot <sebastien@ximian.com>
12029 * declsec.c|h: Added functions to cache the declarative stack modifiers
12030 in MonoJitInfo and to create a security frame from a MonoJitInfo
12032 * mini.c: Initialize jinfo->cas_inited to FALSE when MonoJitInfo is
12033 created. Register internal calls for System.Security.SecurityFrame::
12034 _GetSecurityFrame and _GetSecurityStack.
12035 * mini.h: Added definition for new icalls (in mini-exceptions.c) and
12036 the definitions for the new stack walk/callback mechanism.
12037 * mini-exceptions.c: Added internal call GetSecurityFrame (to get the
12038 first security frame for LinkDemands and InheritanceDemands) and
12039 GetSecurityStack for Demands. Both use the new mono_walk_stack code
12041 * mini-x86.h, mini-amd64.h, mini-sparc.h: Architecture specific stack
12042 walk initialization (lupus).
12044 2004-12-20 Ben Maurer <bmaurer@ximian.com>
12046 * mini.c (mono_method_to_ir): In CEE_DUP, handle the dup / stloc
12048 (handle_loaded_temps): Do not create a temporary variable for
12049 things that we know are temps. They will never be modified.
12050 (mono_spill_call): Set MONO_INST_IS_TEMP
12051 (mono_emulate_opcode): ditto
12053 (mono_method_to_ir.CEE_DUP): ditto
12055 2004-12-19 Ben Maurer <bmaurer@ximian.com>
12057 * mini.c (type_to_eval_stack_type): Make this handle the void type
12058 (mono_emit_call_args): set the call->type with type_to_eval_stack_type
12059 (emit_tree): use ip_in_bb to special case some common idioms
12060 Update all callers to pass in the IP.
12061 (mono_method_to_ir): Make CEE_CALL* do the above as well.
12063 This gives us a nice 2% speedup in mcs bootstrap.
12065 * mini-x86.c (peephole_pass): Peephole pass to make
12074 * mini.c (ip_in_bb): new method.
12075 (mono_method_to_ir): use this method rather than doing the hash
12078 * linear-scan.c (mono_linear_scan): When expiring actives, you
12079 don't need to keep around variables that expire on this
12080 instruction. This makes it so that:
12083 store (ebx add (ebx, 1))
12087 2004-12-19 Zoltan Varga <vargaz@freemail.hu>
12089 * mini.c (mono_method_to_ir): Optimize the common ldobj+stloc
12090 combination to avoid doing two copies. Fix up problems with previous
12093 * mini.c: Fix 64 bit warnings.
12095 * mini-x86.c (INST_IGNORES_CFLAGS): Add OP_STOREI4_MEMBASE_REG.
12097 2004-12-17 Zoltan Varga <vargaz@freemail.hu>
12099 * mini-amd64.h mini-amd64.c exceptions-amd64.c: Port exception handling
12100 changes from the x86 code.
12102 * mini.h: Add prototype for mono_arch_get_throw_corlib_exception ().
12104 2004-12-16 Zoltan Varga <vargaz@freemail.hu>
12106 * mini-x86.c (mono_arch_emit_epilog): Optimize the corlib exception
12107 throwing code to reduce its size, unify the AOT and non-aot code and
12108 get rid of relocations in the AOT case.
12110 * mini-x86.h mini.c exceptions-x86.c
12111 (mono_arch_get_throw_corlib_exception): New arch specific function to
12112 raise corlib exceptions which doesn't require relocations in the
12115 * aot.c (emit_method): Handle PATCH_INFO_NONE as well.
12117 2004-12-15 Zoltan Varga <vargaz@freemail.hu>
12119 * mini.c (mono_emit_method_call): Only allocate the got var when it is
12122 * mini-x86.c (mono_arch_patch_code): Add missing PATCH_INFO_METHOD_REL
12125 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12127 * mini-x86.c, cpu-pentium.md, inssel-x86.brg: Fixed bug
12128 with add function when used from Inc/dec atomic
12129 functions. Re-enabled optimization on x86.
12130 * mini-ops.h: renamed atomic_add functions to
12131 allow _add to match the Interlocked::Add and
12132 _add_next to match Interlocked::Inc/Dec.
12134 2004-12-15 Massimiliano Mantione <massi@ximian.com>
12136 * mini.c: Fixed a subtle bug in mono_method_to_ir, about the
12137 linking of BBs to the end BB, and enabled SSAPRE also with
12138 consprop and copyprop (which was prevented by that bug).
12140 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12142 * mini-x86.c: disabling the Interlocked optimizing code.
12144 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
12146 * aot.c (load_aot_module): Move reading of got_addr after the AOT
12147 file version check.
12149 2004-12-14 Patrik Torstensson <patrik.torstensson@gmail.com>
12151 * mini-x86.c, inssel-x86.brg, cpu-pentium.md: removed _imm
12152 interlocked optimization due lack of support on x86, rewrote
12153 exchange to take into account that base may be in eax.
12155 xsp works again; activated Interlocked optimizing code.
12157 2004-12-14 Zoltan Varga <vargaz@freemail.hu>
12159 * mini.h (MONO_AOT_FILE_VERSION): Bump AOT file version.
12161 2004-12-13 Zoltan Varga <vargaz@freemail.hu>
12163 * mini-ops.h: Add new opcodes.
12165 * mini.h: Add new patch types. Add got_var to MonoCompile.
12167 * mini.h mini-x86.c mini-amd64.c aot.c: Rename
12168 mono_arch_get_aot_patch_offset () to mono_arch_get_patch_offset () and
12169 make it work with all kinds of patchable code.
12171 * inssel.brg inssel-x86.brg: Add new rules dealing with computing the
12172 address of the GOT, and referencing entries in the GOT.
12174 * mini.c: Add code to load the GOT address if needed by an opcode.
12176 * aot.c mini-x86.h mini-x86.c cpu-pentium.md: Add support for position
12177 independent AOT code on the x86 using an elf-style Global Offset Table.
12179 2004-12-14 Raja R Harinath <rharinath@novell.com>
12181 * Makefile.am (RUNTIME): Set MONO_SHARED_DIR.
12183 2004-12-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12185 * mini-x86.c: disabling the Interlocked optimizing code. It segfaults
12188 2004-12-13 Patrik Torstensson <patrik.torstensson@gmail.com>
12190 * mini-x86.c,mini-ops.h,inssel-x86.brg,cpu-pentium.md: Implementation
12191 of Interlocked:Increment/Decrement/Add as inline ops.
12192 (mini-x86.c (mono_arch_get_inst_for_method and mono_arch_output_basic_block))
12194 2004-12-12 Geoff Norton <gnorton@customerdna.com>
12196 * exceptions-ppc.c: Reorder code so gcc3.4 can compile it
12197 * mini-ppc.c: Unify mono_arch_patch_code with changes in r37636.
12199 2004-12-12 Duncan Mak <duncan@ximian.com>
12201 * mini-ppc.c (mono_arch_patch_code): Hopefully made this build
12202 again. `patch_info->table_size' is no longer valid after Zoltan's
12205 2004-12-12 Martin Baulig <martin@ximian.com>
12207 * mini.c (mono_method_to_ir): Only call mono_debug_init_method()
12208 if we are the "real" method, ie. not an inlined method inside it.
12210 2004-12-11 Ben Maurer <bmaurer@ximian.com>
12212 * mini.c (CEE_LDSFLD): Make sure that the vtable has been init'd
12213 before we look in the special fields table. This fixes
12214 ../tests/thread-static-init.cs.
12216 2004-12-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
12218 * mini.c: return immediately after setting OP_ARRAY_RANK or CEE_LDLEN
12219 for Array get_Rank and get_Length. Fixes bug #70465.
12221 2004-12-11 Zoltan Varga <vargaz@freemail.hu>
12223 * mini.h mini.c aot.c: Put the bblock table for a SWITCH patch into a
12224 separate structure to reduce the size of MonoJumpInfo.
12226 Fri Dec 10 18:09:22 CET 2004 Paolo Molaro <lupus@ximian.com>
12228 * mini.c, mini.h, aot.c, driver.c: allow disabling the aot code.
12230 2004-12-10 Patrik Torstensson <patrik.torstensson@gmail.com>
12232 * mini.c (mini_get_inst_for_method): Changed to allow ports
12233 to return a MonoInst instead of opcode
12234 (renamed mini_get_opcode_for_method to better reflect the new functionality)
12236 * mini-[x86|s390|s390x|ppc|sparc].c (mono_arch_get_inst_for_method):
12237 Allow ports to return a created MonoInst instead of op-code, will enable
12239 (renamed mini_get_opcode_for_method to better reflected the functionality)
12241 2004-12-09 Zoltan Varga <vargaz@freemail.hu>
12243 * mini.c (NEW_AOTCONST): Share some code between the different NEW_AOTCONST macros.
12245 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
12247 * mini.c jit-icalls.c: Pass generic_context to mono_ldtoken_wrapper.
12250 2004-12-08 Martin Baulig <martin@ximian.com>
12252 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use `fsig->signature'
12253 if we're a CEE_CONSTRAINED call. Fixes gen-118.cs.
12255 2004-12-08 Zoltan Varga <vargaz@freemail.hu>
12257 * mini-sparc.c (mono_arch_output_basic_block): Implement OP_FCONV_TO_<X>
12260 * exceptions.cs: Disable some tests which depend on properties of x86 fp
12263 2004-12-08 Raja R Harinath <rharinath@novell.com>
12265 * Makefile.am (CLEANFILES): Add *.exe, *.dll.
12267 2004-12-07 Zoltan Varga <vargaz@freemail.hu>
12269 * mini-sparc.c (mono_arch_output_basic_block): Fix LOCALLOC_IMM
12270 bug introduced by the previous patch.
12272 Tue Dec 7 11:44:39 CET 2004 Paolo Molaro <lupus@ximian.com>
12274 * mini-ppc.c, objectc.cs: handle large structs passed by value
12275 (fixes bug #69972).
12277 Tue Dec 7 10:43:31 CET 2004 Paolo Molaro <lupus@ximian.com>
12279 * mini-ppc.c: OP_ARGLIST implementation from
12280 Geoff Norton <gnorton@customerdna.com>.
12282 Tue Dec 7 10:14:25 CET 2004 Paolo Molaro <lupus@ximian.com>
12284 * inssel-x86.brg, inssel-ppc.brg: fix reference to register
12285 in stmt: OP_OUTARG_VT (reg) (should fix bug #69785).
12287 Tue Dec 7 10:06:39 CET 2004 Paolo Molaro <lupus@ximian.com>
12289 * exceptions-ppc.c: avoid calling ppc_patch in exception trampolines.
12291 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12293 * inssel-s390.brgi, mini-ops.h, mini-s390.c : Add stubs for support of tls offset
12296 2004-12-06 Zoltan Varga <vargaz@freemail.hu>
12298 * mini-sparc.c: Zero out localled-ed memory.
12300 * iltests.il: Add tests for zeroing out localloc-ed memory.
12302 2004-12-04 Martin Baulig <martin@ximian.com>
12304 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, use the new
12305 mono_method_get_signature_full().
12307 2004-12-03 Massimiliano Mantione <massi@ximian.com>
12309 * mini.c: Added removal of critical edges (prerequisite for SSAPRE),
12310 and some utility functions (always for SSAPRE), integrated SSAPRE.
12311 * mini.h: Likewise.
12312 * driver.c: Added ssapre option.
12313 * ssa.c: Small fix on OP_ARG handling.
12314 * ssapre.c, ssapre.h: Added files containing SSAPRE implementation.
12315 * Makefile.am: Likewise.
12317 2004-12-02 Zoltan Varga <vargaz@freemail.hu>
12319 * tramp-x86.c (mono_arch_create_jit_trampoline): Remove code which is
12320 now in the xp code.
12322 * mini.c (mini_init): Register mono_thread_force_interruption_checkpoint
12325 2004-12-01 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12327 * inssel-s390.brg : Add OP_OUTARG_VT (OP_REFANYTYPE (reg)) rule.
12329 * cpu-s390.md : Increase instruction length of oparglist.
12331 * mini-s390.c : Implement vararg and TYPEDEBYREF support.
12333 2004-11-30 Martin Baulig <martin@ximian.com>
12335 * mini.c (mono_method_to_ir): In CEE_CALLVIRT, added support for
12336 virtual generic methods. We call a special helper_compile_generic_method()
12337 icall to retrieve the method from the vtable, inflate and compile
12338 it and then do a CEE_CALLI. Thanks a lot to Paolo for this idea.
12340 * jit-icalls.c (helper_compile_generic_method): New JIT icall.
12342 2004-11-30 Zoltan Varga <vargaz@freemail.hu>
12344 * mini-sparc.c: Fix up vararg corner cases. Fixes #70019.
12346 2004-11-29 Zoltan Varga <vargaz@freemail.hu>
12348 * cpu-sparc.md mini-sparc.c (long_conv_to_ovf_i): Fill missing delay slot.
12351 2004-11-27 Ben Maurer <bmaurer@ximian.com>
12353 * inssel.brg (CEE_SWITCH): The AOT stuff Zoltan added is only for
12354 platforms with PIC aot.
12356 2004-11-28 Martin Baulig <martin@ximian.com>
12358 * mini.c (mono_method_to_ir): In CEE_DUP, added handle_stobj().
12361 2004-11-28 Martin Baulig <martin@ximian.com>
12363 * mini-x86.c (mono_arch_call_opcode): Use the original type, not
12364 the result of mono_type_get_underlying_type() to check whether
12367 2004-11-26 Martin Baulig <martin@ximian.com>
12370 (mono_method_to_ir): Use `!method->signature->has_type_parameters'
12373 2004-11-26 Zoltan Varga <vargaz@freemail.hu>
12375 * mini-amd64.c (mono_arch_emit_this_vret_args): Handle this and vret
12376 the same way as the other arguments so they won't get clobbered.
12378 * mini-amd64.c (mono_arch_output_basic_block): Avoid doing virtual
12379 calls through R11 since it is clobbered by the trampoline code.
12381 2004-11-26 Raja R Harinath <rharinath@novell.com>
12383 * Makefile.am: Consistently use $(RUNTIME) rather than ./mono to
12384 pick up in-tree mscorlib.dll.
12386 2004-11-25 Zoltan Varga <vargaz@freemail.hu>
12388 * aot.c: Rename MonoAOTModule->cleanup to out_of_date.
12390 * mini-amd64.c aot.c: Switch to PIC relative AOT code. References to
12391 runtime data/code are now stored in a table similar to the GOT in ELF.
12392 This allows the code itself to be position independent.
12394 * aot.c: Fix loading of referenced assemblies after the lazy assembly
12397 * aot.c: Attach ELF type (object/function) directives to all global
12400 * tramp-amd64.c (amd64_magic_trampoline): Patch RIP relative calls too.
12402 * inssel.brg (SWITCH): Emit an AOT_CONST in the aot case.
12404 * mini-amd64.h: Turn on PIC AOT code.
12406 * mini.h (mono_arch_get_aot_patch_offset): New arch specific function
12407 returning the offset within an OP_AOTCONST instruction where the GOT
12408 offset needs to be added.
12410 * mini.h: Bump AOT file format version.
12412 2004-11-25 Martin Baulig <martin@ximian.com>
12414 * mini.c (mono_method_to_ir): In CEE_CALL, don't allow calling any
12415 uninflated generic methods.
12417 2004-11-25 Martin Baulig <martin@ximian.com>
12419 * mini.c (mono_method_to_ir): Don't allow any uninflated generic methods.
12421 2004-11-24 Martin Baulig <martin@ximian.com>
12423 * minit.c (type_to_eval_stack_type): Set `inst->klass' to the
12424 original klass (this only applies for generic instances).
12426 2004-11-24 Martin Baulig <martin@ximian.com>
12428 * mini.c (mono_method_to_ir): Use `STACK_OBJ' instead of
12429 `ldind_type [CEE_LDIND_REF]' (which would be beyond the end of
12432 2004-11-24 Zoltan Varga <vargaz@freemail.hu>
12434 * mini.c (mono_method_to_ir): Disable inlining for methods containing
12435 localloc. Fixes #69678.
12437 * iltests.il (test_0_localloc_inline): Add regression test for #69678.
12439 2004-11-23 Zoltan Varga <vargaz@freemail.hu>
12441 * mini-amd64.c (mono_arch_output_basic_block): Set %al to the number of
12442 used SSE registers on pinvoke calls. Fixes #69774.
12444 2004-11-23 Geoff Norton <gnorton@customerdna.com>
12446 * inssel-ppc.brg, mini-ppc.c: Use mono_class_from_mono_type instead of
12447 vt->inst_vtype->data.klass. This fixes generic structs and bug #69766
12449 2004-11-23 Raja R Harinath <rharinath@novell.com>
12451 * Makefile.am (MCS,ILASM): Don't refer to runtime/ directory.
12452 Refer directly to the mcs/ tree.
12454 2004-11-19 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12456 * mini-s390.c, tramp-s390.c, mini-s390.h: Add LMF processing for trampolines.
12457 Check if a trampoline for a synchronized method is required.
12459 Fri Nov 19 17:34:21 CET 2004 Paolo Molaro <lupus@ximian.com>
12461 * mini-ppc.c, cpu-g4.md: set to zero the memory allocated
12462 with localloc if needed. Throe arithmetric exception in
12463 div an rem if needed. Implement ovf checks in OP_LCONV_TO_OVF_I.
12464 Adapted from a patch by Geoff Norton <gnorton@customerdna.com>.
12466 2004-11-19 Geoff Norton <gnorton@customerdna.com>
12468 * mini-ppc.c: Call mono_type_get_underlying_type to unwrap generic
12469 types before switching on type. Fixes #69622.
12471 2004-11-19 Raja R Harinath <rharinath@novell.com>
12473 * Makefile.am (check-local): New. Integrate into 'make check'.
12474 (MCS,RUNTIME): Define using in-tree mono and mcs.
12476 (%.exe): Use $(ILASM).
12478 Fri Nov 19 14:54:07 CET 2004 Paolo Molaro <lupus@ximian.com>
12480 * mini-ppc.c: adjust initial prolog size (bug #69691).
12482 2004-11-18 Zoltan Varga <vargaz@freemail.hu>
12484 * cpu-pentium.md (localloc): Increase max instruction len. Fixes
12487 2004-11-17 Raja R Harinath <rharinath@novell.com>
12489 * Makefile.am (clean-local): Rename from 'clean'.
12491 2004-11-15 Nelae Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12493 * mini.c, mini-x86.c, mini-amd64.c, exceptions-s390.c: Add siginfo_t parameter
12494 to mono_arch_is_int_overflow.
12495 * exceptions-s390.c: Add mono_arch_is_int_overflow routine to discern between
12498 2004-11-15 Sebastien Pouliot <sebastien@ximian.com>
12500 * declsec.c|h: New files to support declarative security attributes.
12501 Added function to check if a method has (applicable) security.
12502 * mini.c|h: Add check for declarative security attributes in
12503 mono_method_check_inlining.
12504 * Makefile.am: Added declsec.c and declsec.h to the build.
12506 Mon Nov 15 11:53:46 CET 2004 Paolo Molaro <lupus@ximian.com>
12508 * mini.c, mini.h: update to keep dynamic code info per-domain.
12510 2004-11-12 Zoltan Varga <vargaz@freemail.hu>
12512 * mini.c mini-*.h: Get rid of MONO_ARCH_HAVE_RETHROW since all architectures support it now.
12513 (mini_init): Get rid of it from here too.
12515 Thu Nov 11 20:17:17 CET 2004 Paolo Molaro <lupus@ximian.com>
12517 * mini-ppc.c, mini-ppc,h, cpu-g5.md, exceptions-ppc.c:
12518 implemented OP_RETHROW (patch by Geoff Norton
12519 <gnorton@customerdna.com>).
12521 2004-11-10 Geoff Norton <gnorton@customerdna.com>
12523 * tramp-ppc.c (ppc_magic_trampoline): Don't trampoline methods
12524 between appdomains. Fixes appdomain-unload on PPC.
12526 2004-10-26 Lluis Sanchez Gual <lluis@novell.com>
12528 * exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12529 mini-exceptions.c: handle the new wrapper types.
12530 * mini.c: The CEE_ISINST and CEE_CASTCLASS opcodes now take the
12531 token value as a MonoClass* when compiling a wrapper.
12532 mono_jit_create_remoting_trampoline now takes an additional
12533 MonoRemotingTarget parameter.
12535 2004-11-10 Martin Baulig <martin@localhost>
12537 * mini.c (mono_method_to_ir): Use `generic_container->context'
12538 rather than creating a new one.
12540 2004-11-09 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12542 * exceptions-s390.c, mini-s390, cpu-s390.md: Add support for OP_RETHROW.
12544 * inssel-390.md, mini-s390.c: Correct register allocation for globals.
12546 2004-11-09 Zoltan Varga <vargaz@freemail.hu>
12548 * aot.c (mono_aot_init): Add MONO_AOT_CACHE env variable to turn on
12549 the experimental aot cache stuff.
12551 Tue Nov 9 17:30:20 CET 2004 Paolo Molaro <lupus@ximian.com>
12553 * aot.c, mini.c, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12554 mini-exceptions.c: update to exception clause structure changes.
12556 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
12558 * exceptions-x86.c (throw_exception): Fix warnings.
12560 * mini-x86.h mini-x86.c cpu-pentium.md exceptions-x86.c: Add support
12563 2004-11-08 Zoltan Varga <vargaz@freemail.hu>
12565 * exceptions-sparc.c (get_throw_exception): Really fix this.
12567 2004-11-07 Ben Maurer <bmaurer@ximian.com>
12569 * tramp-*.c: we no longer support icalls without wrappers, so
12570 a bit of code can be removed here
12572 2004-11-07 Zoltan Varga <vargaz@freemail.hu>
12574 * exceptions-sparc.c (get_throw_exception): Fix more bugs in previous
12577 * cpu-sparc.md: Add op_rethrow.
12579 * exceptions-sparc.c (get_throw_exception): Fix bug in previous patch.
12581 * mini-sparc.h mini-sparc.c exceptions-sparc.c: Add support for OP_RETHROW.
12583 * mini.h: Add mono_arch_get_rethrow_exception () arch specific function.
12584 * mini-ops.h: Add OP_RETHROW.
12586 * mini.c inssel.brg: Distinguish between THROW and RETHROW.
12588 * cpu-amd64.c mini-amd64.c exceptions-amd64.c: Add support for OP_RETHROW.
12590 2004-11-05 Geoff Norton <gnorton@customerdna.com>
12592 * helpers.c: Change otool arguments from -V -v -t to -v -t on Darwin
12593 Makes the output much easier to read
12595 2004-11-05 Ben Maurer <bmaurer@ximian.com>
12597 * ssa.c: allocate MonoMethodVar.uses from the mempool. First, this
12598 prevents another huge leak when compiling with ssa. Secondly, the
12599 performance of doing this rather than freeing the lists is much
12600 better. GList does a lock every time you allocate a list link,
12601 so that it can use a memory pool. So, it is better to just use
12602 a memory pool of our own.
12604 * ssa.c, linear-scan.c: replace g_list_remove_link with
12605 g_list_delete. The remove one does not free the GList, so we were
12606 leaking memory. On -O=all --compile-all with corlib, this cut down
12607 3 MB of allocations.
12609 2004-11-05 Zoltan Varga <vargaz@freemail.hu>
12611 * tramp-sparc.c (mono_arch_create_jit_trampoline): Fix sparc build.
12613 * tramp-amd64.c (mono_arch_create_jit_trampoline): Fix amd64 build.
12615 * mini.h mini.c tramp-*.c: Moved xp parts of JIT trampoline creation
12616 into a new function mono_create_jit_trampoline ().
12618 2004-11-02 Zoltan Varga <vargaz@freemail.hu>
12620 * trace.c (get_spec): Allow tracing of classes without a namespace.
12622 2004-11-02 Sebastien Pouliot <sebastien@ximian.com>
12624 * mini.c: Fix pointer overwrite in mini_method_compile.
12626 2004-11-2 Geoff Norton <gnorton@customerdna.com>
12628 * inssel-ppc.brg (OP_OUTARG_VT (CEE_LDOBJ (base))):
12629 The darwin ABI needs some special handling for 1 and 2 byte structs
12630 Lets use lbz/lhz instead of lwz everywhere.
12631 * mini-ppc.c (calculate_sizes): The Darwin ABI needs from special handling
12632 for 1 and 2 byte structs and struct which are size >= 3 || size % 4 != 0.
12633 Use stb/sth for the former, and put the latter always on stack instead of in
12634 argument registers.
12636 2004-10-30 Zoltan Varga <vargaz@freemail.hu>
12638 * trace.c (is_filenamechar): Add '_'.
12640 2004-10-29 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12642 * mini-s390.c: Fix prolog length to allow for large trace requirements.
12644 * exceptions-s390.c: Remove dwarf unwinding stuff that was unused.
12646 2004-10-29 Zoltan Varga <vargaz@freemail.hu>
12648 * Makefile.am (libgc_libs): Do some automake magic so libmono/mono
12649 depends on libmonogc. Fixes #68805.
12651 2004-10-26 Miguel de Icaza <miguel@ximian.com>
12653 * mini.c (mono_jit_free_method): Provide extra information for
12654 this error. Currently this leaks, but will be turned into a
12655 developer option in the future.
12657 2004-10-26 Zoltan Varga <vargaz@freemail.hu>
12659 * driver.c (mono_main): Applied patch from Willibald Krenn <willibald.krenn@gmx.at>. Make --graph work for icalls and pinvoke methods.
12661 2004-10-25 Zoltan Varga <vargaz@freemail.hu>
12663 * aot.c (mono_aot_load_method): Align PATCH_INFO_R8 on an 8 byte
12664 boundary. Fixes reading of PATCH_INFO_R4 and R8.
12665 (mono_aot_load_method): Do not allocate MonoAotMethod in the GC heap.
12667 2004-10-24 Zoltan Varga <vargaz@freemail.hu>
12669 * mini-amd64.c (mono_arch_patch_code): Fix patching of class init
12670 trampolines for AOT code.
12672 2004-10-22 <vargaz@freemail.hu>
12674 * aot.c (mono_compile_assembly): Disable AOT for methods containing calls to methods of
12675 constructed types. Fixes #68136.
12677 2004-10-21 Martin Baulig <martin@ximian.com>
12679 * exceptions-x86.c (throw_exception): Call mono_debugger_throw_exception();
12680 if it returns true, unwind the stack to the call instruction.
12682 2004-10-21 <vargaz@freemail.hu>
12684 * aot.c: Reorganize the AOT file format to avoid relocations. Fix warnings.
12686 * mini.h: Bump AOT version number.
12688 * objects.cs: Add another test for unbox trampolines.
12690 * tramp-amd64.c (amd64_magic_trampoline): Disable patching of trampolines for
12693 2004-10-20 <vargaz@freemail.hu>
12695 * driver.c: Add SHARED to the set of optimizations tested.
12697 * tramp-amd64.c (amd64_magic_trampoline): Patch trampoline code as well.
12699 * mini.c (mono_method_to_ir): Mark the domainvar as volatile when it is implicitly
12700 used by CEE_NEWARR.
12702 * ssa.c (mono_ssa_deadce): Do not optimize away accesses to volatile variables.
12704 2004-10-20 Martin Baulig <martin@ximian.com>
12706 * mini-exceptions.c (mono_handle_exception): Call
12707 mono_debugger_handle_exception() to tell the debugger about
12708 catch/finally clauses.
12710 2004-10-18 Zoltan Varga <vargaz@freemail.hu>
12712 * exceptions-amd64.c (mono_arch_find_jit_info): Pop arguments of the stack.
12714 * mini-amd64.c (mono_amd64_get_vcall_slot_addr): Handle extended registers. Fixes
12717 2004-10-15 Geoff Norton <gnorton@customerdna.com>
12719 * mini-ppc.c (calculate_sizes): Marshal valuetypes for pinvoke
12720 methods as their native size, fixed bug #57543, #57545.
12721 * mini-ppc.c (mono_arch_output_basic_block): Use mulli for imm16 types
12722 This saves a temporary register and mullw call down into 1 (minor perf
12723 increase for cases like sum = sum * 5; This use to translate into:
12726 It now translates to
12729 2004-10-15 Zoltan Varga <vargaz@freemail.hu>
12731 * trace.c (mono_trace_eval): Use mono_method_desc_full_match. Fixes
12734 2004-10-11 Martin Baulig <martin@ximian.com>
12736 * mini.c (mono_method_to_ir): If we're a generic method, get the
12737 MonoGenericContainer from our MonoMethodNormal and create a
12738 MonoGenericContext from it.
12740 2004-10-08 Zoltan Varga <vargaz@freemail.hu>
12742 * inssel-long32.brg (OP_LCONV_TO_OVF_I2): Fix CONV_I1 -> CONV_I2.
12744 * basic-long.cs: Add test for checked i8->i2 cast.
12746 Wed Oct 6 12:40:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
12748 * inssel-ppc.brg: added a couple of speedup rules.
12750 2004-10-05 Zoltan Varga <vargaz@freemail.hu>
12752 * Makefile.am (genmdesc_LDADD): Don't link this against libmetadata
12753 to speed up rebuilds.
12755 2004-10-04 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12757 * mini-s390.c: Minor fix to OP_OR_IMM.
12759 2004-10-03 Zoltan Varga <vargaz@freemail.hu>
12761 * tramp-sparc.c (sparc_magic_trampoline): Handle appdomain stuff
12762 better. Fixes appdomain-unload.exe on sparc.
12764 2004-10-02 Massimiliano Mantione <massi@ximian.com>
12766 * ssa.c: Fixed casts to unsigned where the value was of 64 bits in
12767 simulate_long_compare, patch by will@exomi.com (Ville-Pertti Keinonen),
12770 2004-10-02 Zoltan Varga <vargaz@freemail.hu>
12772 * jit-icalls.c: Handle a nonexisting trunc function more correctly.
12774 2004-09-30 Lluis Sanchez Gual <lluis@novell.com>
12776 * mini.c: Always generate a field read/write wrapper for members
12777 of the class MarshalByRefObject since the actual instance could
12780 2004-09-28 Lluis Sanchez Gual <lluis@novell.com>
12782 * mini.c: Use mono_thread_exit() to stop threads, instead of ExitThread.
12784 2004-09-28 Zoltan Varga <vargaz@freemail.hu>
12786 * driver.c mini.h trace.c: Move the setting of the main assembly into
12787 a separate function called mono_trace_set_assembly () and call it after
12788 actually loading the main assembly. Fixes #66872.
12790 2004-09-25 Zoltan Varga <vargaz@freemail.hu>
12792 * mini-amd64.h mini-amd64.c tramp-amd64.c: Allocate trampoline memory
12793 using the code manager.
12795 2004-09-24 Zoltan Varga <vargaz@freemail.hu>
12797 * tramp-amd64.c mini-amd64.h: Add support for MONO_ARCH_HAVE_INVALIDATE_METHOD.
12799 2004-09-23 Zoltan Varga <vargaz@freemail.hu>
12801 * cpu-amd64.md: Fix bug in previous patch.
12803 * cpu-amd64.md: Fix instruction lengths of membase opcodes. Fixes
12806 Wed Sep 22 19:03:20 CEST 2004 Paolo Molaro <lupus@ximian.com>
12808 * mini.h, exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
12809 mini-exceptions.c: updates for changed stack walk interface.
12811 2004-09-21 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
12813 * mini-s390.c, cpu-s390.md: Minor changes to OP_ARGLIST handling
12815 2004-09-17 Zoltan Varga <vargaz@freemail.hu>
12817 * mini.c (mono_method_to_ir): Fix LDSTR in dynamic methods. Fixes #66132.
12819 2004-09-13 Zoltan Varga <vargaz@freemail.hu>
12821 * driver.c (mini_regression_list): Do not call mono_assembly_close
12822 since assemblies can't be unloaded.
12824 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
12826 * cpu-amd64.md: Fix more instruction lengths.
12828 * cpu-amd64.md: Fix lengths of some instructions.
12830 2004-09-11 Ben Maurer <bmaurer@users.sourceforge.net>
12832 * inssel.brg: Make the array ldelema check aot friendly.
12834 2004-09-11 Zoltan Varga <vargaz@freemail.hu>
12836 * mini-amd64.c (mono_arch_get_argument_info): Fix stack_unwind test.
12838 * cpu-amd64.md inssel-long.brg inssel-amd64.brg: Small optimizations.
12840 2004-09-10 Zoltan Varga <vargaz@freemail.hu>
12842 * mini-x86.c: Fix build.
12844 * mini-sparc.c mini-x86.c mini-amd64.c: Use the new
12845 mono_type_get_underlying_type () helper function to simplify code.
12847 2004-09-09 Martin Baulig <martin@ximian.com>
12849 * mini-amd64.c: Don't access `type->data.klass' directly, call
12850 mono_class_from_mono_type() instead since the type may be a
12853 2004-09-09 Martin Baulig <martin@ximian.com>
12855 * mini-amd64.c (get_call_info): Fix support for generic instances.
12856 (add_valuetype): Use mono_class_from_mono_type() to get the class
12857 since we can be a generic instance.
12859 Thu Sep 9 01:43:53 PDT 2004 Paolo Molaro <lupus@ximian.com>
12861 * mini-ppc.c, mini.h, regalloc.c, regalloc.h: powerpc speedups.
12863 2004-09-07 Ben Maurer <bmaurer@users.sourceforge.net>
12865 * liveness.c: reset spill costs on each scan: bug 62107
12867 2004-09-07 Bernie Solomon <bernard@ugsolutions.com>
12869 * exceptions-sparc.c (mono_arch_find_jit_info): remove
12870 unnecessary line that doesn't compile
12872 2004-09-07 Zoltan Varga <vargaz@freemail.hu>
12874 * mini.c mini.h mini-x86.h tramp-x86.c: Instead of freeing delegate
12875 trampolines, make them call an error function so people can fix their
12878 2004-09-06 Martin Baulig <martin@ximian.com>
12880 * mini.c (mono_method_to_ir): When initializing locals, handle a
12881 generic instances like a valuetype if it's a valuetype and like a
12882 class if it's a class.
12884 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
12886 * exceptions-x86.c (mono_arch_find_jit_info): Pop arguments off the
12887 stack. Fixes #64674.
12889 * exceptions.cs: Add test for unwinding of call arguments.
12891 Mon Sep 6 05:50:02 PDT 2004 Paolo Molaro <lupus@ximian.com>
12893 * mini-*.c, mini-ops.h, inssel-long32.brg: introduced
12894 OP_ADDCC_IMM and OP_SUBCC_IMM (add/sub immediate that will
12895 set the carry/borrow flag). The sparc and s390 implementations
12896 can now use optimized versions (and simplify the code). ppc bugfixes.
12898 2004-09-06 Zoltan Varga <vargaz@freemail.hu>
12900 * exceptions-ppc.c (mono_arch_find_jit_info): Fix memory leak.
12902 2004-09-05 Zoltan Varga <vargaz@freemail.hu>
12904 * inssel-amd64.brg: Remove leftover 32 bit rule.
12906 * mini-amd64.c (mono_arch_instrument_prolog): Fix tracing support.
12908 2004-09-04 Zoltan Varga <vargaz@freemail.hu>
12910 * mini-exceptions.c (mono_find_jit_info): Refactor common code from
12911 mono_arch_find_jit_info functions into a new function. Fix a memory
12914 * exceptions-x86.c exceptions-amd64.c exceptions-sparc.c: Remove
12917 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
12919 * exceptions.cs inssel-long32.brg: Handle the OP_LCONV_TO_OVF_I2 case
12922 * exceptions.cs: Add array size tests.
12924 * mini.c: Allocate a separate icall wrapper for each arity of
12925 mono_array_new_va. Fixes #59509.
12927 * exceptions.cs: Add testcase for 64578.
12929 * inssel-long32.brg: Fix OP_LCONV_TO_OVF_I1 rule. Fixes #64578.
12931 * trace.c (is_filenamechar): Allow 0..9 in strings. Fixes #65094.
12933 2004-09-02 Martin Baulig <martin@ximian.com>
12935 * mini.c (mono_method_to_ir): When initializing the locals, call
12936 handle_initobj() on the generic instance itself, not its
12939 2004-09-02 Zoltan Varga <vargaz@freemail.hu>
12941 * mini.h (MonoJitDynamicMethodInfo): New structure, extension of
12942 MonoJitInfo for dynamic methods.
12944 * mini.c: Rename trampoline_hash_mutex to jit_mutex.
12946 * mini.c: Add support for freeing JIT data for dynamic methods.
12948 2004-09-01 Martin Baulig <martin@ximian.com>
12950 * mini-x86.c (is_regsize_var): Added support for generic
12952 (mono_arch_emit_prolog): Make this compile again, use
12953 `x86_push_imm_template (code)'.
12955 2004-08-30 Ben Maurer <bmaurer@users.sourceforge.net>
12957 * mini-x86.c: make all push_imm instructions that get
12958 patched always emit the long form
12960 2004-08-30 Zoltan Varga <vargaz@freemail.hu>
12962 * mini.c (mono_create_jump_trampoline): Store the jump trampolines
12963 in a per-domain hash.
12965 * mini-amd64.c (merge_argument_class_from_type): Handle generic
12968 2004-08-29 Zoltan Varga <vargaz@freemail.hu>
12970 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: Ongoing SSE
12973 * mini-amd64.c cpu-amd64.md inssel-amd64.brg mini-amd64.h: More SSE
12976 * mini-amd64.c cpu-amd64.md: Implement checked int<->uint casts.
12977 Beginnings of SSE2 support.
12979 * exceptions.cs: Add more tests for checked int<->uint casts.
12981 2004-08-28 Martin Baulig <martin@ximian.com>
12983 * mini-x86.c (mono_arch_instrument_epilog): Added support for
12987 (mono_type_to_ldind, mono_type_to_stind, type_to_eval_stack_type):
12988 Handle generic instances recursively.
12990 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
12992 * iltests.il: test for conv.u8 on a constant
12994 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
12996 * inssel-long32.brg: c&p rules for LCONV_x4 (membase) and
12997 LCONV_x4 (shrun_32 (membase)).
12999 2004-08-27 Ben Maurer <bmaurer@users.sourceforge.net>
13001 * inssel-x86.brg: c&p rules for push/setret of long
13003 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
13005 * inssel-x86.brg: c&p rules for compare (base, regvar) and
13006 compare (regvar, base)
13008 * inssel-x86.brg: more burg love
13010 * inssel.brg: more cleanup
13012 * inssel-x86.brg, inssel-long32.brg: burg cleanup.
13014 2004-08-26 Ben Maurer <bmaurer@users.sourceforge.net>
13016 * basic-long.cs, basic-calls.cs: new tests for optimization.
13018 2004-08-26 Zoltan Varga <vargaz@freemail.hu>
13020 * mini-amd64.c (read_tls_offset_from_method): Fix typo in previous
13023 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
13025 * mini-amd64.c (read_tls_offset_from_method): Add another case.
13027 2004-08-25 Bernie Solomon <bernard@ugsolutions.com>
13029 * inssel.brg (mini_emit_memcpy): use
13030 NO_UNALIGNED_ACCESS to disable memcpy optimization
13032 2004-08-25 Zoltan Varga <vargaz@freemail.hu>
13034 * mini-amd64.c: Handle generic types in various places.
13036 * mini.c (mono_method_to_ir): Handle generic types in init locals.
13038 2004-08-24 Zoltan Varga <vargaz@freemail.hu>
13040 * mini.c (handle_box): Fix warning.
13042 * mini-amd64.c (mono_arch_local_regalloc): Fix regalloc problem.
13044 * mini-amd64.h: Enable the emit_state optimization.
13046 * mini-ops.h cpu-amd64.md: Add new amd64_test_null opcode.
13048 * mini-amd64.c: Add some new 64 bit peephole opts.
13050 * inssel.brg (mini_emit_memcpy): Optimize for 64 bit architectures.
13052 * cpu-amd64.md: sreg1 of div instructions must be %rax.
13054 * mini-amd64.c: Register allocator fixes.
13056 * mini.c: Add an optimization to emit_state to avoid allocation of new
13057 registers on some platforms.
13059 2004-08-23 Zoltan Varga <vargaz@freemail.hu>
13061 * inssel-x86.brg inssel-amd64: Add yet another missing tree->dreg assignment.
13063 * mini-x86.c (mono_arch_local_regalloc): Fix bug in long register
13064 allocation. Fixes #63085.
13066 * basic-long.cs: Add new regression test.
13068 * mini-amd64.c: Register allocator improvements.
13070 2004-08-21 Zoltan Varga <vargaz@freemail.hu>
13072 * mini-amd64.c (read_tls_offset_from_method): Add another code
13075 * tramp-amd64.c (amd64_class_init_trampoline): Use a more efficient
13076 instruction sequence for nullifying class init trampolines.
13078 * objects.cs: Add new regalloc test.
13080 * mini-amd64.c inssel-amd64.brg: Optimize parameter passing.
13082 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
13084 * mini-amd64.c (mono_arch_call_opcode): Refactor this a little.
13086 * mini-amd64.c (mono_arch_regalloc_cost): Adjust regalloc costs for
13089 * driver.c: Fix profiling after TLS changes.
13091 * driver.c (mono_main): Set mono_stats.enabled if needed.
13093 * mini.c (handle_alloc): New helper function used by CEE_NEWOBJ and
13096 2004-08-20 Ben Maurer <bmaurer@users.sourceforge.net>
13098 * mini-x86.c: use a 1 op rather than a 2 op tls access
13099 instruction -> faster.
13101 2004-08-20 Zoltan Varga <vargaz@freemail.hu>
13103 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
13106 2004-08-19 Bernie Solomon <bernard@ugsolutions.com>
13108 * exceptions-sparc.c (throw_exception): fix typo
13110 2004-08-19 Ben Maurer <bmaurer@users.sourceforge.net>
13112 * mini-x86.c, cpu-pentium.md, inssel-x86.brg:
13113 set tree->dreg correctly with tls. Allow any
13114 register to be used.
13116 * mini-x86.c (read_tls_offset_from_method): add new code
13117 generation pattern seen with GCC.
13120 Thu Aug 19 17:26:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
13122 * mini-exceptions.c, exceptions-x86.c, exceptions-amd64.c,
13123 exceptions-ppc.c, exceptions-s390.c, exceptions-s390x.c,
13124 exceptions-sparc.c: fix some performance issues in exception
13125 handling and setting of the stack trace for exceptions that were
13128 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
13130 * mini-amd64.c inssel-amd64.brg cpu-amd64.md: Merge changes from
13133 * mini-amd64.c (mono_arch_is_int_overflow): Handle all possible
13136 2004-08-18 Ben Maurer <bmaurer@users.sourceforge.net>
13138 This patch inlines tls access, when possible.
13140 * mini.h: new arch functions for TLS intrinsics.
13141 All platforms updated with a stub.
13143 * mini.c: use the new intrinsics
13145 * mini-x86.c, cpu-pentium.md, inssel-x86.brg, mini-ops.h:
13146 arch specific intrinsic for tls variables
13148 2004-08-18 Zoltan Varga <vargaz@freemail.hu>
13150 * Makefile.am (libmono_la_LDFLAGS): Enable creating of libmono dll
13153 2004-08-17 Ben Maurer <bmaurer@users.sourceforge.net>
13155 * mini.c: thread local allocation
13157 2004-08-16 Zoltan Varga <vargaz@freemail.hu>
13159 * mini-amd64.h (MONO_ARCH_NO_EMULATE_LONG_SHIFT_OPS): Enable.
13161 * Makefile.am: Link against the static version of libmonogc.
13163 * Makefile.am: Link the static versions of the convenience libraries
13164 into the mono executable.
13166 * mini-x86.h mini-x86.c: Throw the correct exception on integer overflow.
13168 2004-08-15 Zoltan Varga <vargaz@freemail.hu>
13170 * mini.h mini.c mini-amd64.h mini-amd64.c: Throw the correct exception
13171 on integer overflow.
13173 * mini-amd64.c: Reorganize function call code.
13175 * mini-amd64.c (peephole_pass): Merge changes from mini-x86.c.
13177 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13179 * inssel-x86.brg: use xor eax,eax.
13181 * basic.cs: new tests
13183 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13185 * mini-amd64.c (mono_arch_emit_epilog): Use RIP relative addressing
13186 in exception throwing code.
13188 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13190 * inssel-x86.brg: use xor esi,esi.
13192 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13194 * driver.c (mono_main): Call mono_trace_parse_options earlier so it
13195 can trace methods compiled during mini_init () too.
13197 * cpu-amd64.md mini-amd64.c (mono_arch_output_basic_block): Handle
13200 2004-08-14 Ben Maurer <bmaurer@ximian.com>
13202 * Makefile.am: static link on x86 (r=zoltan)
13204 2004-08-14 Zoltan Varga <vargaz@freemail.hu>
13206 * tramp-amd64.c (amd64_magic_trampoline): Avoid patching the trampoline
13207 code since it causes some programs to fail.
13209 2004-08-12 Zoltan Varga <vargaz@freemail.hu>
13211 * mini-amd64.c (bb_is_loop_start): Merge changes from mini-x86.c.
13213 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
13215 * mini.c: ovfops_op_map - add STACK_OBJ case for
13217 * basic.cs: add test_0_pin_string as test
13220 2004-08-11 Bernie Solomon <bernard@ugsolutions.com>
13222 * Makefile.am: build C# if srcdir != builddir
13224 Tue Aug 10 19:23:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
13226 * dominators.c, mini.h, mini-x86.c: fix loop alignment with
13227 fall-through blocks.
13229 Tue Aug 10 16:18:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
13231 * driver.c: enable loop by default again and include abcrem in -O=all.
13233 2004-08-08 Zoltan Varga <vargaz@freemail.hu>
13235 * iltests.il: Add some localloc tests.
13237 * mini.c (mono_method_to_ir): Set stack type of LOCALLOC correctly.
13239 * inssel-amd64.brg inssel-x86.brg: Set dreg of LOCALLOC correctly.
13242 * inssel-amd64.brg: Add some optimizations.
13244 * mini-amd64.c (mono_arch_setup_jit_tls_data): Add tls offset detection
13247 * Makefile.am: Statically link mono against libmono on AMD64.
13249 * mini-amd64.c inssel-amd64.brg: Optimizations.
13251 2004-08-07 Zoltan Varga <vargaz@freemail.hu>
13253 * mini-amd64.c (mono_arch_emit_prolog): Optimize lmf saving a bit.
13255 * tramp-amd64.c: Patch calling code in trampolines.
13257 2004-08-06 Zoltan Varga <vargaz@freemail.hu>
13259 * mini-amd64.c: pinvoke struct passing fixes.
13261 2004-08-05 Bernie Solomon <bernard@ugsolutions.com>
13263 * mini-sparc.c: redo change, make mono_arch_cpu_init call
13264 mono_arch_cpu_optimizazions so sparcv9 is initialized when embedded
13266 2004-08-05 Duncan Mak <duncan@ximian.com>
13268 * mini.c: Renamed CEE_STELEM to CEE_STELEM_ANY and CEE_LDELEM to
13271 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13273 * mini-amd64.c (emit_move_return_value): Move return value for normal
13276 2004-08-05 Martin Baulig <martin@ximian.com>
13278 * mini.c (ret_type_to_call_opcode): Don't use a `t' variable for
13279 `type->type'; just modify `type' itself when dealing with enums
13280 and generic instances.
13281 (check_call_signature): Make `simple_type' a `MonoType *'.
13283 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13285 * mini.c: Use OP_PADD to add offsets to addresses.
13287 * mini-amd64.h: Disable SIGSEGV_ON_ALTSTACK.
13289 2004-08-04 Bernie Solomon <bernard@ugsolutions.com>
13291 * mini-sparc.c (mono_arch_emit_epilog): fix check
13292 for folding last op into restore instruction
13294 2004-08-05 Zoltan Varga <vargaz@freemail.hu>
13296 * exceptions-amd64.c (mono_arch_get_throw_exception_by_name): Allocate
13297 helper methods using the code manager.
13299 * exceptions-amd64.c (mono_arch_get_throw_exception): Fix maximum length.
13301 * mini-amd64.c (mono_arch_allocate_vars): Fix tls offset detection.
13303 Tue Aug 3 23:50:00 EST 2004 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
13305 * mini-s390x.c mini-s390x.h tramp-s390x.c inssel-s390x.brg
13306 cpu-s390x.md exceptions-s390x.c Makefile.am: S/390 64-bit JIT
13308 * mini-s390.c: fix tail processing
13310 Tue Aug 3 01:35:44 PDT 2004 Paolo Molaro <lupus@ximian.com>
13312 * mini-ppc.c: mul.ovf.un exception name fix.
13314 2004-08-03 Martin Baulig <martin@ximian.com>
13316 * mini-x86.c (mono_arch_call_opcode): Correctly handle generic
13317 instances; before jumping to `handle_enum', also modify `ptype'.
13319 2004-08-02 Bernie Solomon <bernard@ugsolutions.com>
13321 * cpu-sparc.md: fcall maximal length too small.
13323 2004-08-02 Zoltan Varga <vargaz@freemail.hu>
13325 * mini-amd64.c mini.h: Add initial support for passing/returning
13326 structures to/from pinvoked methods.
13328 Mon Aug 2 11:59:35 PDT 2004 Paolo Molaro <lupus@ximian.com>
13330 * mini-ppc.c: reg allocator fix.
13332 2004-07-31 Zoltan Varga <vargaz@freemail.hu>
13334 * mini-amd64.c (mono_arch_output_basic_block): Fix OP_X86_PUSH_OBJ.
13336 * inssel.brg: Optimize memset on 64 bit machines.
13338 * mini-amd64.c: Fix some vararg cases.
13340 2004-07-30 Neale Ferguson <Neale.Ferguson@SoftwareAG-usa.com>
13342 * mini-s390.c: Corrected macro in emit_float_to_int
13344 * s390-abi.cs: Tests to exercise the s390 ABI
13346 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13348 * exceptions-amd64.c (mono_arch_find_jit_info): Fix restoring of
13351 * basic.cs: Add a test for add.ovf.un.
13353 2004-07-30 Bernie Solomon <bernard@ugsolutions.com>
13355 * mini-sparc.c: add case for OP_IDIV_UN
13357 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13359 * mini-amd64.c mini-amd64.h mini.c: Add support for vararg pinvoke calls.
13361 * mini-amd64.c cpu-amd64.md: Ongoing JIT work.
13363 2004-07-30 Ben Maurer <bmaurer@ximian.com>
13365 * basic.cs: regression tests.
13367 * inssel-x86.brg: Disable cmp BYTE PTR [eax], imm, it causes various
13370 2004-07-30 Zoltan Varga <vargaz@freemail.hu>
13372 * basic.cs: Add a new test.
13374 * mini-amd64.c aot.c cpu-amd64.md: Add support for tracing, profiling
13375 and AOT. Various fixes and optimizations.
13377 * inssel.brg (CALL_REG): Add 64 bit versions of call_reg rules.
13379 Fri Jul 30 15:49:26 CEST 2004 Paolo Molaro <lupus@ximian.com>
13381 * mini-ppc.c: make sure temp regs are not used for global reg
13384 2004-07-29 Bernie Solomon <bernard@ugsolutions.com>
13386 * cpu-sparc.md: conv_i8 fix for 64bits
13388 * mini-sparc.c: add cases for OP_IXXX codes for 64bits
13390 2004-07-29 Ben Maurer <bmaurer@ximian.com>
13392 * cpu-pentium.md, mini-x86.c, inssel-x86.brg, mini-ops.h:
13393 add opcode for cmp BYTE PTR [eax], imm.
13395 * inssel.brg: Make memcpy and memset takes bases.
13397 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
13399 * *-amd64.*: More AMD64 work.
13401 2004-07-28 Ben Maurer <bmaurer@ximian.com>
13403 * cpu-pentium.md, inssel-x86.brg, mini-ops.h, mini-x86.c:
13404 add a compare-not-equal opcode.
13406 2004-07-28 Lluis Sanchez Gual <lluis@novell.com>
13408 * mini.c: Use mono_init_from_assembly instead of mono_init.
13410 2004-07-28 Zoltan Varga <vargaz@freemail.hu>
13412 * mini.c: Fix opcode mapping for STACK_MP on 64 bit platforms.
13414 * mini.c (CEE_NEWOBJ): Call mono_array_new_va using the correct signature.
13416 * mini.c: Use MONO_ARCH_SIGACTION on AMD64 as well.
13418 * inssel.brg: 64 bit fixes.
13420 * mini.h (MonoCallInst): Add some AMD64 specific data.
13422 * mini.h: Add some OP_P opcodes.
13424 2004-07-28 Ben Maurer <bmaurer@ximian.com>
13426 * basic.cs: tests for 61797 and 61740
13428 Tue Jul 27 16:05:19 CEST 2004 Paolo Molaro <lupus@ximian.com>
13430 * mini-ppc.c, mini-sparc.c, mini-s390.c: keep track of line
13431 numbers in the debug info (spotted by Geoff Norton, <gnorton@customerdna.com>).
13433 2004-07-24 Zoltan Varga <vargaz@freemail.hu>
13435 * mini-sparc.c (mono_arch_output_basic_block): Add CEE_CONV_U8/I8.
13437 * *-amd64*.*: Ongoing AMD64 work.
13439 2004-07-23 Zoltan Varga <vargaz@freemail.hu>
13441 * inssel-long.brg: Implement CONV_I8/CONV_U8 in the backends.
13443 * *-amd64*: Ongoing AMD64 work.
13445 * mini-arch.h: Add AMD64 support.
13447 * mini-sparc.c (mono_arch_is_inst_imm): New arch dependent function.
13449 * mini.h: Add new arch dependent function mono_arch_is_inst_imm.
13451 * mini-ops.h: Add new opcodes.
13453 * Makefile.am: Add AMD64 support.
13455 * inssel.brg inssel-long32.brg inssel-long.brg: Move mul/div and shift
13456 rules into the inssel-long*.brg files.
13458 * *-amd64.*: Add beginnings of AMD64 backend.
13460 2004-07-22 Ben Maurer <bmaurer@ximian.com>
13462 * mini.c (print_dfn): commenting out the code that prints
13463 the cil. With -O=deadce, this makes -v -v crash.
13465 * cpu-pentium.md: make checkthis have a length of 2
13467 2004-04-21 Bernie Solomon <bernard@ugsolutions.com>
13469 * mini-sparc.h: fix implementations of __builtin
13470 functions for Sun compiler for V9.
13472 2004-07-16 Ben Maurer <bmaurer@ximain.com>
13474 * mini.c: use the new stelem.ref wrapper
13475 * exceptions.cs, arrays.cs: new stelem.ref tests
13477 Wed Jul 14 19:08:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
13479 * mini-ppc.c, exceptions-ppc.c: cleanups and fixes (the
13480 new XSP should work with these changes).
13482 2004-07-14 Ben Maurer <bmaurer@ximain.com>
13484 * inssel-{long32,x86,}.brg: trivial optimizations.
13486 Mon Jul 12 20:25:57 CEST 2004 Paolo Molaro <lupus@ximian.com>
13488 * mini.c: load value when emitting box operation in
13491 2004-07-12 Ben Maurer <bmaurer@ximian.com>
13493 * mini-x86.c (OP_CHECK_THIS): cmp DWORD PTR [eax], eax
13494 is one byte shorter than cmp DWORD PTR [eax], 0.
13496 Mon Jul 12 17:47:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
13498 * inssel-ppc.brg: arguments on the stack are always
13499 relative to the stack pointer (spotted by Neale Ferguson).
13501 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13503 * exceptions-x86.c: delay appending the method name to the trace until
13504 after mono_jit_info_table_find is called, as this gets the real
13507 2004-07-09 Ben Maurer <bmaurer@ximian.com>
13509 * aot.c: register roots
13511 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13513 * aot.c : I could just use PLATFORM_WIN32 flag.
13515 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13517 * aot.c : Reverting the previous fix. This time it broke linux build.
13519 2004-07-09 Atsushi Enomoto <atsushi@ximian.com>
13521 * aot.c : quick cygwin build fix. mkdir() with two args does not exist.
13523 2004-07-08 Zoltan Varga <vargaz@freemail.hu>
13525 * mini.c (handle_stack_args): Remove some more debugging code.
13527 * mini.c (handle_stack_args): Remove debug output left in by mistake.
13529 * driver.c mini.h aot.c: Allow additional options to be specified with
13530 --aot and pass them to mono_compile_assembly.
13532 * aot.c: Add experimental code to AOT compile all loaded assemblies
13533 on demand and save the code into a cache in the filesystem.
13535 * aot.c: Add support for more wrapper methods.
13537 * mini.c (handle_stack_args): Handle some corner cases. Fixes
13540 * cpu-*.md: Remove removed opcodes.
13542 * mini.h mini.c: Move JIT icall handling to icall.c. Replace usage of
13543 CEE_MONO_PROC<x> with CEE_MONO_ICALL. Move registration of marshalling
13544 related icalls to marshal.c.
13546 2004-07-06 Zoltan Varga <vargaz@freemail.hu>
13548 * mini-ops.h: Add OP_SAVE_LMF and OP_RESTORE_LMF.
13550 * Makefile.am (EXTRA_DIST): Add inssel-long[32].brg.
13552 * inssel.brg: Fix warning. Add rules for SAVE_LMF and RESTORE_LMF.
13554 2004-07-06 Ben Maurer <bmaurer@ximian.com>
13555 * liveness.c: If liveness is recomputated we need to reset the information
13556 for each variable. This way, if the liveness range has been narrowed
13557 by optimizations that happened after the last computation, we can return
13560 For example, if you have
13565 // Tons of code that does not affect i
13571 i = 0 is dead code and will be removed by SSA. However, when
13572 linear scan gets to the code, i will still appear to be live
13573 throughout the entire block. This prevents good register allocation.
13575 2004-07-06 Martin Baulig <martin@ximian.com>
13577 * debug-mini.c (mono_debug_init_method): Allow
13578 MONO_WRAPPER_MANAGED_TO_NATIVE wrappers.
13579 (mono_debug_add_icall_wrapper): New method.
13581 * mini.c (mono_icall_get_wrapper): Call mono_debug_add_icall_wrapper().
13583 2004-07-05 Zoltan Varga <vargaz@freemail.hu>
13585 * mini.c (optimize_branches): Fix linking of bblocks in branch->branch
13588 2004-07-03 Zoltan Varga <vargaz@freemail.hu>
13590 * aot.c (mono_aot_load_method): Fix loading of debug info.
13592 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
13594 * aot.c: Add logging support.
13596 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
13598 * mini.h: Add prototype for mono_print_method_from_ip.
13600 * mini.c: 64 bit fixes. Use LCOMPARE for comparing longs.
13602 * inssel.brg: 64 bit fixes.
13604 * inssel.brg inssel-long32.brg: Move 32 bit arithmetic rules to
13607 * Makefile.am: Add SPARC64 support.
13609 2004-07-02 Zoltan Varga <vargaz@freemail.hu>
13611 * aot.c: Fix alignment problems on 32 bit platforms.
13613 2004-07-01 Zoltan Varga <vargaz@freemail.hu>
13615 * helpers.c (mono_disassemble_code): Pass -xarch=v9 to assembler on
13618 * aot.c: Add SPARC64 support. Reorganize patch table to fix alignment
13621 * mini.h: Bump AOT file version. Some 64 bit fixes.
13623 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
13625 * inssel-sparc.brg: Add new rule to avoid register moves.
13627 * inssel.brg: Add ldind_to_load_membase helper function.
13629 2004-06-30 Ben Maurer <bmaurer@ximian.com>
13631 * mini.c: OffsetToStringData intrinsic.
13633 2004-06-30 Zoltan Varga <vargaz@freemail.hu>
13635 * ssa.c: Handle OP_LCOMPARE the same as OP_COMPARE.
13637 * objects.cs exceptions.cs basic.cs basic-long.cs basic-calls.cs: New
13640 * mini-ops.h cpu-sparc.md mini-sparc.h mini-sparc.c exceptions-sparc.c tramp-sparc.c inssel-long.brg: Add SPARC64 support.
13641 Mon Jun 28 18:05:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
13643 * mini.c: reinstated mono_compile_get_interface_var()
13644 on x86, too, since the change breaks the Gtk# build there as well.
13646 Fri Jun 25 17:36:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13648 * driver.c: remove loop from the default optimizations: it seems to
13649 interact badly with some of the other options (see bug #60613).
13651 2004-06-25 Zoltan Varga <vargaz@freemail.hu>
13653 * mini.c mini-x86.h mini-x86.c: Applied patch from Guenter Feldmann
13654 (fld@informatik.uni-bremen.de): Add Solaris x86 support.
13656 Tue Jun 22 21:29:11 CEST 2004 Paolo Molaro <lupus@ximian.com>
13658 * mini-ppc.c, cpu-g4.md: small updates to be able to compile
13659 vararg-using methods.
13661 2004-06-21 Martin Baulig <martin@ximian.com>
13663 * mini/mini-exceptions.c
13664 (mono_handle_exception): Added `gpointer original_ip' argument.
13665 After calling mono_unhandled_exception(), call
13666 mono_debugger_unhandled_exception() and if that returns true,
13667 restore the context and return.
13669 Mon Jun 21 19:26:40 CEST 2004 Paolo Molaro <lupus@ximian.com>
13671 * mini-ppc.c: prefer the use of relative branches so
13672 they won't need to be patched in aot code (patch from Patrick Beard).
13674 Mon Jun 21 19:03:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
13676 * aot.c: patch from Patrick Beard to make the output assembly
13677 more correct for the MacOSX assembler. Small tweak to
13678 generate sane images on Linux/PPC, too.
13680 Fri Jun 18 18:24:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13682 * mini.c, mini.h, mini-ppc.c: handle varargs methods with a special
13683 case until bug #59509 is fixed (shows up in #60332).
13685 Tue Jun 15 16:36:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
13687 * mini.c: make sure the needed wrappers are compiled, too, with
13690 Mon Jun 14 18:36:08 CEST 2004 Paolo Molaro <lupus@ximian.com>
13692 * driver.c: remove NPTL reference in --version output.
13694 Sun Jun 13 17:25:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
13696 * aot.c: patch from Patrick Beard (pcbeard@mac.com) to
13697 generate valid assembly for the Mach-O assembler.
13699 Sun Jun 13 15:59:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
13701 * driver.c: don't include abcrem in the all optimization specifier
13702 since it slows down jit compilation too much for now.
13704 2004-06-12 Ben Maurer <bmaurer@users.sourceforge.net>
13706 * mini.c: use BIGMUL only if both operands have the same signage.
13707 * iltests.il: Test for bug 60056. (errors related to signage in
13712 Thu Jun 10 16:06:42 CEST 2004 Paolo Molaro <lupus@ximian.com>
13714 * mini.c, aot.c: memory leak fixes.
13716 Tue Jun 8 16:37:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
13718 * inssel-long32.brg: implemented a few missing ulong cast opcodes.
13720 Tue Jun 8 15:36:30 CEST 2004 Paolo Molaro <lupus@ximian.com>
13722 * Makefile.am: remove the -static hack completely, it links in
13723 statically glib as well.
13725 Sat Jun 5 16:32:33 CEST 2004 Paolo Molaro <lupus@ximian.com>
13727 * iltests.il, mini.c: fixed bug#59580 in branch optimization.
13728 * exceptions.cs: make it compile with new mcs/csc.
13730 2004-06-03 Massimiliano Mantione <massi@ximian.com>
13731 * cpu-pentium.md basic-float.cs Fixed bug on fpu spills (see bug 54467),
13732 and added relevant test case.
13734 Mon May 31 19:41:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
13736 * mini.c revert Zoltan's fix to bug#58863 on ppc, since it causes
13737 regressions in gtk-sharp.
13739 2004-05-29 Zoltan Varga <vargaz@freemail.hu>
13741 * exceptions.cs: New regression tests.
13743 * jit-icalls.c (mono_llmult_ovf): Fix some boundary conditions.
13745 Sat May 29 10:45:58 CEST 2004 Paolo Molaro <lupus@ximian.com>
13747 * mini.c: emit castclass/isinst in their own trees (bug #54209/59057).
13749 2004-05-28 Zoltan Varga <vargaz@freemail.hu>
13751 * mini-sparc.h (MONO_ARCH_NEED_DIV_CHECK): Define this.
13753 * cpu-sparc.md mini-sparc.c: Add overflow detection to div opcodes.
13755 2004-05-28 Patrik Torstensson <totte@hiddenpeaks.com>
13757 * mini.c (mono_jit_runtime_invoke): Init class in this
13758 method instead of trusting mono_jit_compile_method to
13759 do the work (because wrappers can be in object class)
13761 2004-05-27 Zoltan Varga <vargaz@freemail.hu>
13763 * mini-sparc.c (mono_arch_output_basic_block): Fix sub.imm.
13765 * basic-long.cs: New regression test.
13767 Thu May 27 15:50:52 CEST 2004 Paolo Molaro <lupus@ximian.com>
13769 * cpu-g4.md, mini-ppc.c: fixes to long add/sub ovf opcodes
13770 and div/rem checks.
13772 Thu May 27 12:36:53 CEST 2004 Paolo Molaro <lupus@ximian.com>
13774 * Makefile.am: fix miguel's change to build mono statically against
13775 libmono (track build dependencies).
13777 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
13779 * cfold.c: Some glib versions do not have G_MININT32.
13781 2004-05-26 Massimiliano Mantione <massi@ximian.com>
13783 * mini-x86.c cpu-pentium.md Makefile.am basic-math.cs: Fixed problem
13784 with precision of tan, atan, sin and cos, and implemented related
13785 regressions tests (fixes bug 54467, but one new problem appeared and
13788 2004-05-26 Zoltan Varga <vargaz@freemail.hu>
13790 * cfold.c (FOLD_BINOPZ): Avoid division by zero.
13792 * exceptions.cs: Add test for constant folding && division by zero.
13794 * driver.c mini.h mini.c mini-x86.c: Revert most of the previous patch
13795 since driver.c is in libmono too, so the optimization was useless.
13797 * driver.c mini.h mini.c mini-x86.c: Moved the mono_lmf_addr TLS
13798 variable to driver.c so the compiler can emit more efficient code to
13801 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
13803 * Makefile.am: don't distribute generated inssel.[ch] files.
13805 2004-05-25 Zoltan Varga <vargaz@freemail.hu>
13807 * mini.c (mono_jit_compile_method_with_opt): Really emit icall wrappers
13808 into the default appdomain. Fixes #58707.
13810 * jit-icalls.c: Remove the broken approximation for truncl, doing
13811 no conversion is better.
13813 * mini.c (handle_stack_args): Avoid reusing variables for stack slots.
13816 Tue May 25 14:33:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
13818 * mini-ops.h, mini-ppc.c, cpu-g4.md, inssel-ppc.brg: eliminate the use
13819 of the mcrxr instruction which is not available on some processors
13820 even if it's documented to be. Implement add and sub overflow correctly
13821 (still not complete for long unsigned). Speed up icalls a bit.
13823 2004-05-25 13:01 CET Patrik Torstenson <totte@hiddenpeaks.com>
13825 * mini.c (mono_jit_compile_method_with_opt): Make sure that
13826 we run .cctor in the current domain instead of target_domain.
13828 Fixes bug #58558, .cctor not being called in -O=shared.
13830 Tue May 25 12:46:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
13832 * mini-ppc.h, jit-icalls.c: added explicit checks for divide by zero.
13834 2004-05-24 Ben Maurer <bmaurer@users.sourceforge.net>
13836 * mini-x86.c (EMIT_COND_BRANCH): If an OP_LABEL has an offset
13837 which can be done with an imm8, do it that way.
13838 (mono_arch_output_basic_block): ditto for a jmp
13839 (mono_arch_emit_prolog): Computate maximum offset of a label.
13841 2004-05-24 18:18 CET Patrik Torstenson <totte@hiddenpeaks.com>
13843 * mini-x86.c (mono_arch_local_regalloc): the reg allocator
13844 now tries to allocate prefered physical reg's for virtual
13845 regs. This reduces the number of emited spills/loads with
13846 20-30% on our core assemblies.
13848 Mon May 24 18:21:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
13850 * jit-icalls.c: truncl() is not needed and trunc() is
13851 the correct thing to do anyway (bug #58287).
13853 2004-05-24 Zoltan Varga <vargaz@freemail.hu>
13855 * mini-sparc.c (mono_arch_flush_icache): Call sync_instruction_memory
13858 Mon May 24 12:49:45 CEST 2004 Paolo Molaro <lupus@ximian.com>
13860 * driver.c: enable loop optimizations by default.
13862 Mon May 24 11:13:46 CEST 2004 Paolo Molaro <lupus@ximian.com>
13864 * mini-x86.c: fix calc of max loop size when aligning loops start.
13866 2004-05-23 Zoltan Varga <vargaz@freemail.hu>
13868 * ssa.c (mono_ssa_cprop): Allocate carray dynamically instead of on
13871 2004-05-22 Zoltan Varga <vargaz@freemail.hu>
13873 * mini-sparc.c (mono_arch_output_basic_block): ADD_IMM and SUB_IMM
13876 * basic-long.cs: Add tests for add/subtract of immediates with carry.
13878 * mini.c exceptions-x86.c: Remove MONO_USE_EXC_TABLES stuff.
13880 * mini.c (inline_method): Allways inline some wrappers even if the cost
13881 is too large. Fixes #58785.
13883 * mini.c: Add support for MARSHAL_CONV_FTN_DEL.
13885 2004-05-21 Zoltan Varga <vargaz@freemail.hu>
13887 * mini-sparc.c exceptions-sparc.c: Applied patch from Mark Crichton
13888 (crichton@gimp.org). Beginning of support for sparc/linux.
13890 * mini-sparc.c: Optimize retrieval of LMF address.
13892 Fri May 21 08:00:12 EDT 2004 Paolo Molaro <lupus@ximian.com>
13894 * exceptions-ppc.c: handle alloca in methods with clauses.
13896 Fri May 21 07:35:30 EDT 2004 Paolo Molaro <lupus@ximian.com>
13898 * mini-ppc.c: cleanups, off-by-one fixes, avoid recursive thunks.
13900 2004-05-20 Lluis Sanchez Gual <lluis@ximian.com>
13902 * mini.c: Delegate most of the abort signal work to
13903 mono_thread_request_interruption, which also handles Stop and Suspend
13906 2004-05-20 Zoltan Varga <vargaz@freemail.hu>
13908 * mini.c mini.h: Allow inlining of icall wrappers if the backend
13909 supports the save/restore lmf opcodes.
13911 2004-05-19 Zoltan Varga <vargaz@freemail.hu>
13913 * mini-x86.c (mono_arch_setup_jit_tls_data): Handle code generated
13914 by gcc-3.4 as well.
13916 * mini-x86.h mini-x86.c tramp-x86.c: Optimize lmf restoring code.
13918 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
13920 * mini.h mini.c (mini_method_compile): Only run abc removal pass on
13921 methods which contain array accesses.
13923 * mini.c (CEE_LDTOKEN): Handle this instruction correctly on bb
13924 boundaries. Fixes #58537.
13926 * iltests.il: Add regression test for #58537.
13928 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
13930 * mini-x86.c (mono_arch_local_regalloc): Last part of
13931 fix for bug #58633 (releasing register to early).
13933 2004-05-18 Miguel de Icaza <miguel@ximian.com>
13935 * basic-long.cs: Add new regression test.
13937 2004-05-18 Patrik Torstensson <totte@hiddenpeaks.com>
13939 * mini-x86.c (mono_arch_local_regalloc): Avoid releasing a
13940 register too early on the chain.
13942 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
13944 * mini.c (create_helper_signature): Use a helper function to reduce
13945 the code which needs to be written. Also set the calling convention of
13946 icalls on windows. Fixes #57840.
13948 Tue May 18 11:05:18 CEST 2004 Paolo Molaro <lupus@ximian.com>
13950 * mini.h, exceptions-x86.c, exceptions-sparc.c, exceptions-s390.c,
13951 exceptions-ppc.c: added helper function to get the instruction address
13952 from a signal handler context.
13954 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
13956 * helpers.c: use g_get_tmp_dir. Invokes happyness
13959 2004-05-17 Ben Maurer <bmaurer@users.sourceforge.net>
13961 * helpers.c: Add new env variable to pass args to objdump.
13962 Specifically for those of us who love -Mintel. r=miguel, gonzalo.
13964 2004-05-17 Radek Doulik <rodo@ximian.com>
13966 * Makefile.am (common_sources): added abcremoval.h so it get
13967 disted and daily mono packages on go-mono.com will build again
13969 2004-05-17 Massimiliano Mantione <massi@ximian.com>
13971 * abcremoval.c: Fixed coding style, added copyright header.
13973 * abcremoval.h: Fixed style and moved prototype to mini.h, added copyright header.
13975 * mini.h: Added prototype for abc removal main function.
13977 * build_relations_propagation_table.pl: Added copyright header.
13979 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
13981 * basic-long.cs: reg test for complex ceq_long bug.
13983 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
13985 * mini-x86.c (mono_arch_local_regalloc): Correctly free
13986 reg in long and clob case (bug #58343). Fixed/added comments.
13988 2004-05-14 Ben Maurer <bmaurer@users.sourceforge.net>
13990 * mini.c (mono_jit_runtime_invoke): Follow new convention
13991 of calling the invoke method with an function pointer.
13993 2004-05-14 Zoltan Varga <vargaz@freemail.hu>
13995 * ChangeLog: Fix author of memory leak patch.
13997 Fri May 14 15:13:06 CEST 2004 Paolo Molaro <lupus@ximian.com>
13999 * Makefile.am: fix make dist as well...
14002 2004-05-14 Massimiliano Mantione <massi@ximian.com>
14004 * cfold.c: Made so that conversions from pointer to int4 are no-ops
14005 on archs where pointers are 4 bytes long.
14007 * Makefile.am: Added abcremoval.c source file.
14009 * abcremoval.c: Added abcremoval.c.
14011 * abcremoval.h: Added abcremoval.h.
14013 * build_relations_propagation_table.pl: Added build_relations_propagation_table.pl.
14015 * inssel.brg: Enabled bounds check removal.
14017 * mini.c: Added support for abcrem optimization.
14019 * mini.h: Added abcrem optimization label.
14021 * driver.c: Added support for abcrem optimization.
14023 * propagated_relations_table.def: Added propagated_relations_table.def.
14025 Fri May 14 14:30:13 CEST 2004 Paolo Molaro <lupus@ximian.com>
14027 * mini.c, cfold.c: fix style.
14029 Fri May 14 14:28:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14031 * mini.c: handle issue with the low-level implementation of
14032 some long opcodes (bug #54209).
14034 2004-05-13 Ben Maurer <bmaurer@users.sourceforge.net>
14036 * basic.cs: test for my new cmov stuff.
14038 2004-05-13 Patrik Torstensson
14040 * mini-x86.c: added OP_X86_COMPARE_MEMBASE_IMM peephole
14041 opt and added peephole documentation.
14043 Thu May 13 11:41:49 CEST 2004 Paolo Molaro <lupus@ximian.com>
14045 * tramp-ppc.c: rewrote the generic trampoline code.
14047 2004-05-11 Patrik Torstensson
14049 * mini-x86.c: optimize long shl/shr asm code (one less branch)
14051 2004-05-11 Zoltan Varga <vargaz@freemail.hu>
14053 * basic.cs basic-long.cs objects.cs: Make these compile under MS csc.
14055 * mini.h mini.c dominators.c: Applied patch from Derek Woo
14056 (derek@eecg.toronto.edu): Fix memory leaks in loop optimizations.
14058 * mini.c: Add new icalls for AsAny marshalling.
14060 Tue May 11 16:00:38 CEST 2004 Paolo Molaro <lupus@ximian.com>
14062 * tramp-ppc.c, mini-ppc.c: more cleanups.
14064 2004-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14066 * mini.c: no warnings.
14068 Tue May 11 13:59:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14070 * mini-ppc.c, mini.c: use mono_resolve_patch_target ().
14072 2004-05-11 Lluis Sanchez Gual <lluis@ximian.com>
14074 * mini.c: In the thread abort signal handler, if the thread is in the
14075 process of being stoped, don't throw the Abort exception, just stop the
14078 Tue May 11 12:15:24 CEST 2004 Paolo Molaro <lupus@ximian.com>
14080 * tramp-ppc.c: removed old code.
14082 Tue May 11 12:02:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14084 * mini.h, mini-ppc.c, cfold.c: export mono_is_power_of_two().
14085 do some simple speed optimizations on ppc.
14087 Mon May 10 17:21:00 CEST 2004 Paolo Molaro <lupus@ximian.com>
14089 * mini-ppc.c, cpu-g4.md: fixes to handle large stack frames
14090 and large offsets in load/store.
14092 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
14094 * mini-x86.c (mono_arch_local_regalloc): Remove the previous fix, since
14095 it causes regressions.
14097 2004-05-07 Zoltan Varga <vargaz@freemail.hu>
14099 * mini-sparc.c: Fix vararg support + add beginnings of sigaltstack
14102 Fri May 7 13:25:50 CEST 2004 Paolo Molaro <lupus@ximian.com>
14104 * jit-icalls.c: remove warnings.
14105 * inssel-x86.brg, inssel.brg, mini-x86.c, cfold.c: some simple
14106 speedups for unsafe code.
14108 2004-05-07 Ben Maurer <bmaurer@users.sourceforge.net>
14110 * inssel.brg: Optimize Stind.[ui][12]. r=zoltan.
14112 2004-05-06 Zoltan Varga <vargaz@freemail.hu>
14114 * basic-calls.cs: Add new regression test.
14116 * mini.c (mono_runtime_install_handlers): Use SA_ONSTACK since it is
14119 * mini.c (mono_method_to_ir): Handle opcode emulation for *_OVF opcodes.
14121 * mini-x86.c (mono_arch_local_regalloc): Free new_dest register when it
14124 2004-05-06 Patrik Torstensson
14126 * mini-x86.[c|h], inssel-x86.brg, cpu-pentium.md, mini.c: enabled
14127 long reg allocation in any reg (not only eax:edx) and implemented
14128 long shl/shr ops in asm instead of helpers.
14130 2004-05-05 Zoltan Varga <vargaz@freemail.hu>
14132 * mini-sparc.h: Fix warnings.
14134 * exceptions-sparc.c (mono_arch_find_jit_info): Pop unused lfm off the
14137 * mini-exceptions.c (mono_handle_exception): Call the filter in a
14138 separate statement for clarity.
14140 * mini-sparc.c: Update status.
14142 2004-05-04 Zoltan Varga <vargaz@freemail.hu>
14144 * mini-exceptions.c (ves_icall_get_frame_info): Flush register windows
14147 Mon May 3 22:58:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14149 * inssel-ppc.brg: another small pre-release workaround:
14150 we don't do overflow detection for long_sub_un.
14152 Sun May 2 20:12:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14154 * mini.c, mini-ops, inssel-long32.brg: speedup ulong >> 32
14155 (also works around a weird ppc bug: 57957).
14157 Sat May 1 16:56:10 EDT 2004 Paolo Molaro <lupus@ximian.com>
14159 * tramp-ppc.c: trampoline fixes.
14161 Fri Apr 30 15:54:26 EDT 2004 Paolo Molaro <lupus@ximian.com>
14163 * mini-ppc.c: fixed typos.
14165 Thu Apr 29 20:15:41 CEST 2004 Paolo Molaro <lupus@ximian.com>
14167 * mini-ppc.c, exceptions-ppc.c: more code saves registers
14168 at the top of the stack. Fixed typos. Use a frame registers
14169 for all the methods with exception clauses.
14171 Thu Apr 29 18:52:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
14173 * exceptions-ppc.c: restore fp registers.
14175 Thu Apr 29 18:26:56 CEST 2004 Paolo Molaro <lupus@ximian.com>
14177 * mini-ppc.c, exceptions-ppc.c: save the registers in reverse
14178 order from the stack top (moved the stack room to save the
14179 return value for trace after the param area). Fixed corruption
14180 in restoring registers on unwind.
14182 Thu Apr 29 16:47:15 CEST 2004 Paolo Molaro <lupus@ximian.com>
14184 * mini-ppc.c, cpu-g4.md: fixed unisgned -> double conversion.
14186 Thu Apr 29 13:50:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14188 * exceptions-ppc.c, mini-ppc.h, mini-ppc.c: fixed localloc
14189 and prolog/epilog for methods that use it. Allow
14190 enough param area room for varargs methods. Fix miguel's
14191 breakage in exception handling.
14193 Thu Apr 29 12:06:51 CEST 2004 Paolo Molaro <lupus@ximian.com>
14195 * Makefile.am: run genmdesc only on current arch.
14197 2004-04-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14199 * exceptions-x86.c:
14200 * mini-x86.h: fix the build on windows.
14202 2004-04-28 Zoltan Varga <vargaz@freemail.hu>
14204 * 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.
14206 * exceptions-sparc.c exceptions-ppc.c exceptions-s390.c mini-ppc.h mini-s390.h mini-sparc.h: Fix up ports after changes.
14208 * mini-exceptions.c: New file.
14210 * mini.c mini-exceptions.c mini-x86.h exceptions-x86.c Makefile.am:
14211 Move some parts of the x86 exception handling code to an
14212 arch-independent file so it can be shared with other ports.
14214 Tue Apr 27 12:15:59 CEST 2004 Paolo Molaro <lupus@ximian.com>
14216 * trace.c, cpu-g4.md, inssel-ppc.brg, mini-ppc.c: some fixes for FP code.
14218 2004-04-26 David Waite <mass@akuma.org>
14220 * driver.c: remove comma from end of enumeration declaration
14222 2004-04-26 Jackson Harper <jackson@ximian.com>
14224 * driver.c: parse config file before loading first assembly. This
14225 allows the user gac to be enabled/disabled.
14227 2004-04-23 Miguel de Icaza <miguel@ximian.com>
14229 * mini-ppc.c (ppc_patch): Replaced the branch code patching with a
14230 simpler mechanism: we do not care what is encoded initially
14231 (branch absolute or relative), we care about the code and its
14232 target. I kept the old code for reference for now.
14234 The new code tries first to determine if the jump is anywhere in
14235 the -/+32 absolute meg range, if it succeeds, it encodes using the
14236 absolute branch; If not, it tried to find something in the
14237 relative range, if not, it uses the handle_thunk code.
14239 Fri Apr 23 14:20:40 EDT 2004 Paolo Molaro <lupus@ximian.com>
14241 * exceptions-ppc.c: use the correct ip register on macosx.
14243 Thu Apr 22 13:23:16 EDT 2004 Paolo Molaro <lupus@ximian.com>
14245 * exceptions.c, mini.c, mini-ppc.h: adapt code to macosx.
14247 Thu Apr 22 18:08:37 CEST 2004 Paolo Molaro <lupus@ximian.com>
14249 * mini-ppc.c, cpu-g4.md: made the branch macros more flexible.
14250 Raise exception on integer divide by zero by hand since the hw
14251 doesn't support it. Handle NaNs in FP compares.
14253 Thu Apr 22 16:10:31 CEST 2004 Paolo Molaro <lupus@ximian.com>
14255 * exceptions-ppc.c, mini-ppc.h, mini.c: simplified some
14256 code reducing duplication between the platforms and enabled
14257 signal exception handling (on linux for now).
14259 Wed Apr 21 12:27:48 EDT 2004 Paolo Molaro <lupus@ximian.com>
14261 * exceptions-ppc.c: more macosx support.
14263 Wed Apr 21 16:38:28 CEST 2004 Paolo Molaro <lupus@ximian.com>
14265 * mini-ppc.h, mini-ppc.c, cpu-g4.md: enable bigmul optimization.
14267 Wed Apr 21 16:20:32 CEST 2004 Paolo Molaro <lupus@ximian.com>
14269 * mini.h, mini-ppc.c, cpu-g4.md: support for implicit exceptions.
14271 2004-04-19 Ben Maurer <bmaurer@users.sourceforge.net>
14273 * iltests.il: more tests.
14275 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
14277 * mini-*.c (mono_arch_get_allocatable_int_vars): Skip written-only
14280 Mon Apr 19 19:39:47 CEST 2004 Paolo Molaro <lupus@ximian.com>
14282 * mini-ppc.c: some fixes to bootstrap mcs/corlib/etc.
14284 2004-04-19 Zoltan Varga <vargaz@freemail.hu>
14286 * liveness.c: Mark variables as volatile in all basic blocks reachable
14287 from exception clauses.
14289 2004-04-18 Zoltan Varga <vargaz@freemail.hu>
14291 * exceptions.cs (test_0_rethow_stacktrace): Make this work with
14294 2004-04-18 Ben Maurer <bmaurer@users.sourceforge.net>
14296 * iltests.il, basic.cs: more tests for regalloc.
14298 2004-04-17 Ben Maurer <bmaurer@users.sourceforge.net>
14300 * iltests.il: Some tests for register allocation modifications
14303 2004-04-16 Zoltan Varga <vargaz@freemail.hu>
14305 * exceptions.cs: Add regression test for bug #56782.
14307 * exceptions-*.c (mono_arch_handle_exception): Do not overwrite the
14308 original stack trace if an exception is rethrown. Fixes #56782. Oh,
14309 the beauty of fixing the same thing in 5 different files...
14311 2004-04-15 Zoltan Varga <vargaz@freemail.hu>
14313 * mini.c (mono_method_to_ir): Do not compute coverage for inlined
14316 2004-04-14 Zoltan Varga <vargaz@freemail.hu>
14318 * mini.c: Add support for STRWLPARRAY marshalling convention.
14320 Wed Apr 14 18:15:55 CEST 2004 Paolo Molaro <lupus@ximian.com>
14322 * exceptions-ppc.c: missing fixes in mono_jit_walk_stack (need
14323 to init the context to setup the regs pointer).
14325 Wed Apr 14 17:59:09 CEST 2004 Paolo Molaro <lupus@ximian.com>
14327 * exceptions-ppc.c: more exceptions work.
14329 Wed Apr 14 17:46:22 CEST 2004 Paolo Molaro <lupus@ximian.com>
14331 * mini.c: avoid reusing the same MonoInst on multiple trees: this is
14334 2004-04-13 Miguel de Icaza <miguel@ximian.com>
14336 * inssel-x86.brg (reg): Add new rules for add, sub and mul that
14337 can use the memory directly.
14339 * cpu-pentium.md: Update documentation from a post from Zoltan.
14341 add x86_add_membase, x86_sub_membase, x86_mul_membase
14343 2004-04-13 Miguel de Icaza <miguel@ximian.com>
14345 * mini-ppc.c: Remove unused definitions FLOAT_REGS and
14346 GENERAL_REGS they were also hardcoded for all PPC ports.
14348 (add_general): Use PPC_NUM_REG_ARGS instead of GENERAL_REGS.
14350 Remove hard-coded limit for floating point registers, use
14351 PPC_LAST_FPARG_REG instead in MONO_TYPE_R4 and MONO_TYPE_R8.
14353 Notice that in MacOS X calling conventions you can fit a lot more
14354 floating point values in registers, so I should update the PInvoke
14355 test to excercise the passing of floating point values on the
14356 stack (currently broken).
14358 2004-04-06 Miguel de Icaza <miguel@ximian.com>
14360 * tramp-ppc.c (create_trampoline_code): Added
14361 JUMP_TRAMPOLINE_SIZE.
14362 (ppc_magic_trampoline): Follow the pattern from
14363 x86_magic_trampoline: if code is set to zero, return.
14364 (create_trampoline_code): Always pass MonoMethod to the jump
14365 trampoline, before it was passing a null.
14366 (mono_arch_create_jump_trampoline): Implement the jump stub, could
14367 share the code with mono_arch_create_jit_trampoline.
14369 * mini-ppc.c (mono_arch_output_basic_block): CEE_JMP opcode
14371 (mono_arch_patch_code): MONO_PATCH_INFO_METHOD_JUMP patch type
14374 * cpu-g4.md: Added length for jmp instruction, the worst case
14375 scenario is 92 bytes (4 mandatory bytes, potential 19 registers
14378 2004-04-08 Zoltan Varga <vargaz@freemail.hu>
14380 * aot.c (mono_compile_assembly): Add back unlink removed by mistake.
14382 2004-04-07 Zoltan Varga <vargaz@freemail.hu>
14384 * mini.c: Only set bblock->real_offset when adding a new bblock, and
14385 before each IL instruction.
14387 * mini.c (CEE_BOX): Fix warnings.
14389 2004-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14391 * mini.c: removed a few unused vars and extra whitespace.
14393 2004-04-05 Ben Maurer <bmaurer@users.sourceforge.net>
14395 * inssel.brg (MONO_EMIT_BOUNDS_CHECK): a new macro to emit bounds
14397 (MONO_EMIT_BOUNDS_CHECK_IMM): the above, but when you know the
14399 (OP_GETCHR): use the above
14400 (CEE_LDELEMA): use the above.
14402 * inseel-x86.brg (MONO_EMIT_BOUNDS_CHECK): a faster and smaller
14403 version of the generic impl.
14404 (MONO_EMIT_BOUNDS_CHECK_IMM): the same
14405 (CEE_LDELEMA): use the above.
14407 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
14409 * inssel-long32.brg (CEE_CONV_OVF_I8): Sign extend the i4 value to i8.
14412 * iltests.il: Added new regression test for #56317.
14414 2004-04-05 Zoltan Varga <vargaz@freemail.hu>
14416 * mini-x86.c (mono_arch_setup_jit_tls_data): Use pthread_attr_get_np
14417 under NetBSD. Fixes #56450.
14419 * liveness.c (update_gen_kill_set): Fix previous patch.
14421 2004-04-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14423 * mini-x86.h: SA_STACK defined as SA_ONSTACK. Fixed build under NetBSD.
14425 2004-04-02 Zoltan Varga <vargaz@freemail.hu>
14427 * mini.c (mono_method_to_ir): Avoid handle_loaded_temps in
14428 ldsfld and ldsflda.
14430 * inssel-sparc.brg: Add more optimizations.
14432 * mini-sparc.c: Replace multiply/divide with shifts if possible.
14434 2004-04-01 Martin Baulig <martin@ximian.com>
14436 * mini.c (handle_box): New static function; moved the
14437 implementation of CEE_BOX here.
14438 (mono_method_to_ir): Added `constrained_call' variable.
14439 (mono_method_to_ir:CEE_CONSTRAINED_): Set it.
14440 (mono_method_to_ir:CEE_CALL): If `constrained_call' is set, use
14441 mono_method_get_constrained() to get the method.
14443 2004-04-01 Martin Baulig <martin@ximian.com>
14445 * mini.c (TYPE_PARAM_TO_TYPE, TYPE_PARAM_TO_CLASS): Removed.
14446 (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): Removed.
14447 (mono_method_to_ir): We don't need these macros anymore since
14448 mono_class_get_full() already takes care of it.
14450 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14452 * aot.c: set aot_verbose to 0, fixed format string that caused sigsegv,
14453 use @function (as doesn't accept #function here) and check the return
14454 value of system and stop if fails.
14456 2004-03-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14458 * mini.c: set the timeout to 2s when calling mono_domain_finalize.
14460 2004-03-31 Zoltan Varga <vargaz@freemail.hu>
14462 * mini-ppc.c (mono_arch_patch_code): Fix ppc build.
14464 * inssel-sparc.brg mini-sparc.c aot.c: Implement AOT support.
14466 * inssel-long32.brg (OP_LNEG): Use ADC instead of ADD here. Fixes
14469 * basic-long.cs: Add test for negation of Int64.MinValue.
14471 2004-03-30 Zoltan Varga <vargaz@freemail.hu>
14473 * mini-sparc.c: Update status.
14475 * mini-sparc.c tramp-sparc.c: Save lmf in trampolines.
14477 * exceptions-sparc.c: Fix return value in filters.
14479 * inssel-sparc.brg: Fix register allocation in some rules.
14481 2004-03-28 Martin Baulig <martin@ximian.com>
14483 * mini.c (mmono_method_to_ir): In CEE_STELEM, do a handle_stobj()
14486 2004-03-28 Zoltan Varga <vargaz@freemail.hu>
14488 * mini-x86.c (mono_arch_patch_code): Fix warnings.
14490 * mini-x86.c (mono_arch_output_basic_block): Fix CEE_MUL_OVF_UN if
14491 dreg is not EAX. Thanks to Willibard Krenn for spotting this. Also
14492 remove unused conv_u4 opcode.
14494 * mini-x86.c: Remove valgrind workaround since it slows down things
14495 even when mono is not run under valgrind.
14497 2004-03-26 Zoltan Varga <vargaz@freemail.hu>
14499 * mini-sparc.c: Update status.
14501 * inssel-sparc.brg: Add some optimizations.
14503 * inssel-sparc.brg mini-sparc.c: Rework branch instructions to allow
14504 future delay slot filling. Add support for varargs, tail calls and JMP.
14506 * inssel.brg mini-ops.h mini.c: Use OP_REFANYTYPE instead of
14507 CEE_REFANYTYPE, since CEE_REFANYTYPE needs a prefix to be unique.
14509 * inssel.brg: Fix register allocation in OP_ARGLIST.
14511 * inssel.brg: Fix warnings.
14513 2004-03-25 Martin Baulig <martin@ximian.com>
14515 * mini.c (inflate_generic_field): Removed.
14516 (mini_get_method): Removed, use mono_get_method_full(),
14517 (mini_get_class): Removed, use mono_class_get_full().
14518 (mono_method_to_ir): Pass our generic context to
14519 mono_field_from_token().
14521 2004-03-25 Martin Baulig <martin@ximian.com>
14523 * mini.c (mini_get_class): Take a `MonoGenericContext *' instead
14524 of a `MonoMethod *'.
14525 (mini_get_method): Take a `MonoGenericContext *' instead
14526 of a `MonoMethod *'.
14527 (TYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_TYPE): mono_method_to_ir() has
14528 a new local variable called `generic_context' which holds the
14529 current `MonoGenericContext *'; use it to lookup things.
14531 2004-03-24 Martin Baulig <martin@ximian.com>
14533 * mini.c (mini_get_class): New static method; if we're inside a
14534 generic instance, inflate the class if neccessary.
14535 (mono_method_to_ir): Use mini_get_class() instead of mono_class_get().
14537 2004-03-24 Zoltan Varga <vargaz@freemail.hu>
14539 * iltests.il: New regression test for #55976.
14541 * mini.c (mono_method_to_ir): Empty the stack in endfinally. Fixes
14544 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
14546 * exceptions-sparc.c (mono_sparc_handle_exception): Remove debugging
14549 2004-03-23 Zoltan Varga <vargaz@freemail.hu>
14551 * liveness.c: Consider SSA stores as well as loads when making vars
14554 * exceptions.cs: New regression tests for register allocation.
14556 2004-03-22 Lluis Sanchez Gual <lluis@ximian.com>
14558 * mini-ppc.c, tramp-ppc.c: Added lock for accessing the domain code manager.
14559 * mini.c: Removed domain lock from mono_jit_compile_method_with_opt. Use
14560 domain lock only to protect puntual access to data structures.
14561 Added access lock for sighash, jit_icall_hash_name,
14562 jit_icall_hash_addr and domain->code_mp.
14564 2004-03-20 Zoltan Varga <vargaz@freemail.hu>
14566 * driver.c: Print SIGSEGV handling method.
14568 * mini-x86.c (mono_arch_free_jit_tls_data): Add missing ifdef.
14570 * mini.c (setup_jit_tls_data): Handle case when this is called
14571 multiple times for a thread.
14573 * mini-x86.c cpu-pentium.md: Fix floating point branch opcodes so fbxx
14574 is different from fbxx_un. Fixes #54303. Also use constants instead of
14575 magic numbers in a lot of places.
14577 2004-03-19 Zoltan Varga <vargaz@freemail.hu>
14579 * exceptions.cs: Fix cctor test when --regression is used.
14581 Thu Mar 18 19:57:56 CET 2004 Paolo Molaro <lupus@ximian.com>
14583 * mini-ppc.c, exceptions-ppc.c: basic exceptions support
14586 Thu Mar 18 19:56:19 CET 2004 Paolo Molaro <lupus@ximian.com>
14588 * inssel-ppc.brg: fixed register assignments for some rules.
14590 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
14592 * exceptions.cs: Add test for exceptions in static constructors.
14594 * mini.c (mono_jit_compile_method_with_out): Move the calling of
14595 static constructors outside the domain lock. Fixes #55720.
14597 2004-03-17 Martin Baulig <martin@ximian.com>
14599 * mini.c (get_generic_field_inst): Removed, this'll never happen.
14600 (inflate_generic_field): Take the `MonoMethod *' instead of the
14601 `MonoClass *' and added support for generic method.
14602 (mono_method_to_ir): In CEE_LDSFLD and CEE_STSFLD, assert we never
14603 have a `field->parent->gen_params', only inflate the field if it's
14604 an open constructed type.
14606 2004-03-17 Zoltan Varga <vargaz@freemail.hu>
14608 * exceptions-x86.c (mono_arch_handle_exception): Allocate a new
14609 exception object instead of the preconstructed ones.
14611 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14613 * mini.c: reverted changed to sigsegv_signal_handler commited
14614 accidentally in the previous patch.
14616 2004-03-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14619 (mono_method_to_ir): CEE_CALLVIRT, abort if no method. It hanged when
14620 running --aot with an old assembly.
14622 2004-03-16 Zoltan Varga <vargaz@freemail.hu>
14624 * mini-sparc.c (mono_arch_instrument_epilog): Fix handling of floating
14627 * mini-sparc.c: Add support for v9 branches with prediction.
14629 2004-03-15 Bernie Solomon <bernard@ugsolutions.com>
14631 * mini.c (mini_init): #warning is GNUC only
14633 * mini-sparc.h: implement __builtin_frame_address
14634 and __builtin_return_address for Sun C compiler
14636 2004-03-15 Zoltan Varga <vargaz@freemail.hu>
14638 * exceptions-sparc.c (mono_arch_has_unwind_info): Add missing function.
14640 2004-03-14 Zoltan Varga <vargaz@freemail.hu>
14642 * basic-calls.cs: Add test for unaligned byref long argument passing.
14644 * mini-ops.h: Add sparcv9 compare and branch instructions.
14646 * inssel-sparc.brg mini-sparc.h mini-sparc.c cpu-sparc.md: Use some
14647 v9 instructions if we have a v9 cpu.
14649 * mini-sparc.c (mono_arch_get_global_int_regs): Use unused input
14650 registers for global allocation.
14652 * exceptions-sparc.c: Fixes.
14654 2004-03-11 Zoltan Varga <vargaz@freemail.hu>
14656 * liveness.c (mono_analyze_liveness): Optimized version.
14658 * inssel-sparc.brg cpu-sparc.md: Ongoing sparc work.
14660 * mini-sparc.h mini-sparc.c tramp-sparc.c exceptions-sparc.c: Ongoing
14663 * basic-float.cs basic-calls.cs: New regression tests.
14665 2004-03-10 Zoltan Varga <vargaz@freemail.hu>
14667 * mini-x86.h: Define SIGSEGV_ON_ALTSTACK only if we have a working
14668 sigaltstack implementation.
14670 * mini-x86.c (mono_arch_setup_jit_tls_data): Fix previous patch.
14672 * mini-x86.c (mono_arch_setup_jit_tls_data): Turn off the sigaltstack
14673 stuff if SIGSEGV_ON_ALTSTACK is not defined.
14675 2004-03-09 Zoltan Varga <vargaz@freemail.hu>
14677 * mini.c: Fix warnings.
14679 * mini.c (mono_resolve_patch_target): New function which contains the
14680 arch independent part of the patching process.
14682 * mini-x86.c (mono_arch_patch_code): Move arch independent parts of the
14683 patching code to a separate function.
14685 2004-03-09 Bernie Solomon <bernard@ugsolutions.com>
14687 * mini.c (add_signal_handler): ifdef out on Windows
14689 2004-03-08 Zoltan Varga <vargaz@freemail.hu>
14691 * mini-sparc.h mini-sparc.c inssel-sparc.brg exceptions-sparc.c
14692 cpu-sparc.md: Add exception handling support + other fixes.
14694 * driver.c: Print --help output to stdout. Fixes #55261. Also fix
14695 typed GC detection in --version.
14697 * basic.cs exceptions.cs: New regression tests.
14699 * mini.h mini-x86.h mini-ppc.h: Add MonoCompileArch structure where
14700 the arch specific code can store data during a compilation.
14702 * mini-ops.h: Add OP_SETFRET.
14704 * mini.c (mini_get_ldelema_ins): Instead of allways calling the same
14705 function, register a separate icall for each arity, so the icalls can
14708 * mini.c (mono_print_tree): Print negative offsets in a more readable
14711 * mini.c: Make signal handling work on sparc.
14713 * mini.c (mini_init): Add emulation for lconv_to_r8_un.
14715 * inssel-long32.brg: Fix OP_LSUB_OVF_UN rule.
14717 * jit-icalls.c: Emulate truncl by aintl on solaris.
14719 * jit-icalls.c (mono_lconv_to_r8_un): New icall emulation function.
14721 2004-03-05 Zoltan Varga <vargaz@freemail.hu>
14723 * mini.c (mini_init): fconv_to_ovf can raise exceptions.
14725 2004-03-04 Lluis Sanchez Gual <lluis@ximian.com>
14727 * mini.c: In CEE_ISINST and CEE_CASTCLASS, if the type is an interface or
14728 a MarshalByRef type, inline a method that performs the check, taking into
14729 account that the object can be a proxy. Also implemented tow new opcodes:
14730 CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
14731 * inssel.brg: Implemented two new opcodes, mini-ops.h: OP_CISINST and
14732 OP_CCASTCLASS, which implement CEE_MONO_CISINST and CEE_MONO_CCASTCLASS.
14734 Tue Mar 2 17:23:48 CET 2004 Paolo Molaro <lupus@ximian.com>
14736 * mini-ppc.c: if a relative branch displacement is too big
14737 but it points to and area reachable with an absolute branch,
14740 Tue Mar 2 16:59:40 CET 2004 Paolo Molaro <lupus@ximian.com>
14742 * mini.c: optimize small copies in cpblk.
14744 2004-03-01 Zoltan Varga <vargaz@freemail.hu>
14746 * basic-calls.cs basic-float.cs: New regression tests.
14748 * mini-sparc.c inssel-sparc.brg mini-ops.h: Access local variables at
14749 negative offsets from %fp. Implement localloc. Fix local register
14750 allocation. Fix the case when the this argument needs to be saved to
14751 the stack. Implement some missing opcodes.
14753 2004-02-26 Zoltan Varga <vargaz@freemail.hu>
14755 * mini.c (mini_method_compile): Reenable global regalloc in methods
14756 with exception handlers.
14758 * linear-scan.c (mono_varlist_sort): Fix warning.
14760 * linear-scan.c (mono_linear_scan): Fix computation of used_regs.
14762 * mini-x86.c (mono_arch_regalloc_cost): Reenable precise computation of
14765 * liveness.c: Make all variables uses in exception clauses volatile, to
14766 prevent them from being allocated to registers. Fixes #42136.
14768 2004-02-25 Zoltan Varga <vargaz@freemail.hu>
14770 * mini-x86.c (mono_arch_regalloc_cost): Revert this change since it
14771 causes regressions.
14773 * mini.h linear-scan.c mini-x86.c mini-sparc.c mini-ppc.c: Add 'cfg'
14774 argument to mono_arch_regalloc_cost.
14776 * mini-x86.c (mono_arch_regalloc_cost): Compute regalloc costs
14779 2004-02-24 Zoltan Varga <vargaz@freemail.hu>
14781 * mini.h mini-x86.c mini-ppc.c mini-sparc.c linear-scan.c:
14782 Make the cost of allocating a variable to a register arch dependent.
14784 * basic-calls.cs: Fix compilation of tests.
14786 * mini.h mini.c tramp-x86.c mini-x86.c: Add mono_running_on_valgrind ()
14787 helper function to cut back on the number of #ifdefs needed.
14789 * mini-ppc.c: Fix compilation.
14791 * basic-calls.cs: New regression tests.
14793 * mini-sparc.c (mono_sparc_is_virtual_call): New helper function.
14795 * tramp-sparc.c (create_specific_trampoline): Use g5 register instead
14796 of l0 since that is callee saved.
14798 * tramp-sparc.c (sparc_magic_trampoline): Apply unbox trampoline only
14801 * mini-sparc.c: Ongoing work + flag virtual calls with a special kind
14802 of delay instruction.
14804 * inssel.brg (OP_CHECK_THIS): Set tree->sreg1 and dreg correctly.
14806 * mini.h (MonoCallInst): Add 'virtual' flag.
14808 * inssel.brg (mini_emit_virtual_call): Set 'virtual' flag.
14810 2004-02-23 Zoltan Varga <vargaz@freemail.hu>
14812 * *.cs: New regression tests.
14814 * mini-sparc.c inssel-sparc.brg: Update after latest changes. Ongoing sparc
14817 * mini.c (mono_runtime_install_handlers): Fix build.
14819 * mini.h (MonoJitTlsData): Add 'stack_size', 'signal_stack' and
14820 'signal_stack_size' members.
14822 * mini.h mini.c mini-x86.h mini-x86.c: Run sigsegv handlers on an
14823 alternate signal stack.
14825 * exceptions-x86.c: Add stack overflow handling.
14827 * mini.h mini.c mini-x86.c mini-ppc.c trace.h trace.c: Move tracing
14828 functions to arch independent code.
14830 * mini.c (mono_print_tree): Print more detailed info for load_membase
14833 2004-02-23 Martin Baulig <martin@ximian.com>
14835 * mini.c (mini_get_method): Set `gmethod->generic_inst'.
14837 Sun Feb 22 22:25:19 CET 2004 Paolo Molaro <lupus@ximian.com>
14839 * mini-x86.c: fixed reg allocation for div/rem.
14841 2004-02-22 Miguel de Icaza <miguel@ximian.com>
14843 * driver.c (mono_main): Report some configuratio options on --version.
14845 Fri Feb 20 11:01:44 PST 2004 Paolo Molaro <lupus@ximian.com>
14847 * mini-ppc.c: fixed clt.un, cgt.un. Optimized calls to functions
14848 low in the address space. Correctly flush memory in thunks where we
14849 output native code.
14851 2004-02-20 Martin Baulig <martin@ximian.com>
14853 * mini.c (mini_get_method): New static method; inflate all generic
14854 methods and methods in open generic instances.
14855 (mono_method_to_ir): Use mini_get_method() instead of mono_get_method().
14856 (ret_type_to_call_opcode): Added support for MONO_TYPE_GENERICINST.
14858 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
14860 * mini-sparc.c (mono_arch_patch_code): Update after domain->code_mp changes.
14862 * tramp-sparc.c (mono_arch_create_jump_trampoline): Set ji->method.
14864 2004-02-19 Bernie Solomon <bernard@ugsolutions.com>
14866 * helpers.c (mono_disassemble_code): use Sun's dis if not using gcc
14868 * mini-sparc.c (flushi mono_arch_output_basic_block): make
14869 it compile using Sun's compiler.
14871 2004-02-19 Zoltan Varga <vargaz@freemail.hu>
14873 * 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.
14875 * basic-calls.cs basic-float.cs basic-long.cs objects.cs: New regression tests.
14877 Tue Feb 17 21:41:20 CET 2004 Paolo Molaro <lupus@ximian.com>
14879 * aot.c, mini-x86.c, mini.c: use the code manager instead of a mempool to hold native
14881 * mini-ppc.c: handle calls outside of the allowed range with thunks
14882 allocated using the code manager.
14883 * tramp-ppc.c: use the code manager to hold generated native code.
14884 Fixed the magic trampoline to just patch vtable entries.
14886 2004-02-17 Zoltan Varga <vargaz@freemail.hu>
14888 * inssel.brg inssel-x86.brg: Move call(immediate) rules to the platform
14891 2004-02-16 Zoltan Varga <vargaz@freemail.hu>
14893 * tramp-ppc.c (mono_arch_create_jump_trampoline): Fix compilation on
14896 * mini-x86.c: Call mono_arch_get_lmf_addr instead of mono_get_lmf_addr
14897 if we have a working __thread implementation.
14899 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Remove
14900 OP_CALL_IMM opcodes, since the CALL opcodes handles immediates as well.
14902 2004-02-15 Zoltan Varga <vargaz@freemail.hu>
14904 * mini-x86.c: Fix compilation under gcc 2.
14906 2004-02-14 Zoltan Varga <vargaz@freemail.hu>
14908 * mini.c (mono_codegen): Avoid infinite loop when an icall wrapper
14909 contains a call to the wrapped function.
14911 * mini-ops.h cpu-pentium.md mini-x86.c inssel-x86.brg: Add
14912 OP_<CALL>_IMM opcodes, and use them under X86.
14914 * mini.c (mono_jit_find_compiled_method): Fix warning.
14916 * cpu-pentium.md: Fix length of opcodes which use x86_alu_membase_imm.
14918 * jit-icalls.c (mono_ldftn_nosync): New JIT icall.
14920 * tramp-x86.c (mono_arch_create_jump_trampoline): Move arch independent
14921 functionality to mini.c.
14923 * mini.c (mono_create_jump_trampoline): New function to create a jump
14924 trampoline. Return a compiled method instead of a trampoline if it
14925 exists. Add a cache for jump trampolines.
14927 * mini.c (mono_jit_find_compiled_method): New function to return a
14928 compiled method if it exists.
14930 * mini-x86.c: Call mono_create_jump_trampoline instead of
14931 mono_arch_create_jit_trampoline.
14933 * jit-icalls.c (mono_ldftn): Do not compile the method. Instead, return
14934 a jump trampoline. Fixes #52092.
14936 2004-02-11 Zoltan Varga <vargaz@freemail.hu>
14938 * debug-mini.c (mono_init_debugger): Remove call to mono_verify_corlib,
14939 which is not up-to-date. Add check_corlib_version () instead.
14941 * mini.c (mini_init): Call mono_thread_attach () so embedders do not
14944 * mini.c (mono_runtime_install_handlers): Remove check for valgrind
14945 since newer valgrind versions do not need it.
14947 * mini.c (mono_jit_compile_method_with_opt): New helper function to
14948 compile a method with a given set of optimizations.
14950 * mini.c: Compile icall wrappers on-demand instead of at startup.
14952 * mini-sparc.c mini-ppc.c: Call mono_icall_get_wrapper to obtain the
14953 wrapper for an icall.
14955 2004-02-10 Zoltan Varga <vargaz@freemail.hu>
14957 * mini.c (mono_method_to_ir): Handle switch with non-empty stack. Fixes
14960 * iltests.il: Add test for non-empty stack before switch instruction.
14962 2004-02-02 Zoltan Varga <vargaz@freemail.hu>
14964 * mini.c: Add support for new stringbuilder marshalling conventions.
14966 * mini.c (mono_method_to_ir): Fix stack management of generic CEE_BOX.
14968 2004-02-01 Martin Baulig <martin@ximian.com>
14970 * mini.c (MTYPE_PARAM_TO_TYPE): Method type arguments are stored
14971 in `ginst->mtype_argv'.
14973 2004-01-31 Miguel de Icaza <miguel@ximian.com>
14975 * mini.c: Add comments, replace CEE_XXX+128 with OP_XXX to
14976 facilitate grepping.
14978 Wed Jan 28 14:04:58 CET 2004 Paolo Molaro <lupus@ximian.com>
14980 * mini.c: fixed buglet in initobj generic implementation for references.
14982 Fri Jan 23 16:10:44 EST 2004 Paolo Molaro <lupus@ximian.com>
14984 * Makefile.am: make the version script conditional.
14985 * jit-icalls.c: handle missing truncl().
14987 2004-01-23 Zoltan Varga <vargaz@freemail.hu>
14989 * exceptions.cs: Add more tests for double->int conversion.
14991 * jit-icalls.c (mono_fconv_ovf_i8): Call truncl before comparison, so
14992 we don't throw exceptions when converting 1.1 to a long. Fixes #53250.
14994 Fri Jan 23 17:12:08 CET 2004 Paolo Molaro <lupus@ximian.com>
14996 * driver.c: make --verbose --version emit an error
14997 if the loaded corlib doesn't match the runtime version.
14999 Mon Jan 19 17:44:50 CET 2004 Paolo Molaro <lupus@ximian.com>
15001 * mini-ppc.h: export ppc_patch().
15002 * mini-ppc.c: call convention fixes. Added assert in ppc_patch().
15003 * tramp-ppc.c: call convention fixes: Linux/PPC support should be
15004 on par or better than on MacOSX.
15006 2004-01-19 Zoltan Varga <vargaz@freemail.hu>
15008 * mini.c tramp-x86.c tramp-sparc.c: Updated after changes to
15009 mono_lookup_pinvoke_call.
15011 * mini-x86.c: Under windows, the default pinvoke calling convention is
15012 stdcall. Fixes #52834.
15014 * mini.c (optimize_branches): Add an upper bound to the number of
15015 iterations to prevent infinite loops on strange loops. Fixes #53003.
15017 2004-01-16 Zoltan Varga <vargaz@freemail.hu>
15019 * inssel.brg: Add vectors<->one dimensional array checking to CASTCLASS
15020 and ISINST. Fixes #52093.
15022 * objects.cs (test_0_vector_array_cast): New tests.
15024 2004-01-15 Zoltan Varga <vargaz@freemail.hu>
15026 * jit-icalls.c (helper_stelem_ref_check): New jit icall for array type
15027 checking in Array.Set ().
15029 * mini.c (method_to_ir): Add array type checking in Array.Set (). Fixes
15032 * object.cs (test_0_multi_array_cast): New regression test.
15034 Thu Jan 15 16:30:24 CET 2004 Paolo Molaro <lupus@ximian.com>
15036 * exceptions-ppc.c: fix build on Linux/PPC.
15038 2004-01-14 Zoltan Varga <vargaz@freemail.hu>
15040 * tramp-x86.c (x86_magic_trampoline): Disable code patching when
15041 running under valgrind.
15042 (x86_magic_trampoline): Fix build bustage.
15044 * debug-mini.c: Modify the debug info serialize/deserialize code so it handles
15045 negative values as well. This is needed for the encoding of the line number
15046 info, since sometimes the line numbers are not in increasing order.
15048 2004-01-13 Zoltan Varga <vargaz@freemail.hu>
15050 * cpu-pentium.md (localloc): Increase the size of the localloc
15051 instruction since it is a loop under Win32.
15053 * debug-mini.c (record_line_number): Get rid of unneccesary memory
15056 2004-01-09 Zoltan Varga <vargaz@freemail.hu>
15058 * exceptions-ppc.c exceptions-x86.c exceptions-sparc.c
15059 tramp-x86.c tramp-ppc.c tramp-sparc.c: Applied patch from
15060 Max Horn (max@quendi.de). Fix file names in comments.
15062 2004-01-03 Zoltan Varga <vargaz@freemail.hu>
15064 * ssa.c (mono_ssa_rename_vars): Allocate new_stack on the heap to
15065 avoid stack overflow.
15066 (replace_usage): Avoid uninitialized variable warnings.
15068 * mini.c (mono_method_to_ir): Avoid disabling SSA for array operations
15069 and taking the address of valuetype variables.
15071 2004-01-03 Patrik Torstensson
15073 * mini-x86.c: renamed fpflags to flags in RegTrack, going to be used
15074 for other purposes than FP later on.
15076 2004-01-02 Zoltan Varga <vargaz@freemail.hu>
15078 * mini.c (mono_method_to_ir): Prevent register allocation for arguments
15081 Fri Jan 2 13:37:25 CET 2004 Paolo Molaro <lupus@ximian.com>
15083 * mini-ops.h, mini.c, inssel.brg: Object.GetType () speedup.
15085 2003-12-30 Patrik Torstensson <p@rxc.se>
15087 * mini-x86.h: Decreased number of availiable fp regs.
15088 Solves corner cases with FP spilling.
15090 2003-12-23 Patrik Torstensson <p@rxc.se>
15092 * mini-x86.c, mini-ops.h, cpu-pentium.md: Added support
15093 for floating point stack tracking / spilling on x86.
15096 * basic-float.cs: added float mul overflow test.
15098 2003-12-23 Zoltan Varga <vargaz@freemail.hu>
15100 * mini.c (mono_method_to_ir): Add workaround for bug #51126.
15102 Sun Dec 21 19:53:16 CET 2003 Paolo Molaro <lupus@ximian.com>
15104 * mini.h, mini-ppc.c, mini-ppc.h: small cleanups and
15105 supports for cond branches that overflow the immediate
15106 overflow offset. mcs can compile simple programs.
15108 Fri Dec 19 21:17:16 CET 2003 Paolo Molaro <lupus@ximian.com>
15110 * exceptions-ppc.c: exception handling support wip:
15111 finally handlers get run on exception.
15113 2003-12-19 Zoltan Varga <vargaz@freemail.hu>
15115 * aot.c (mono_aot_get_method_inner): Avoid loading AOT code while
15118 Fri Dec 19 17:58:28 CET 2003 Paolo Molaro <lupus@ximian.com>
15120 * cpu-g4.md, mini-ppc.c, exceptions-ppc.c, mini-ppc.h:
15121 initial support for stack walking and unwinding.
15123 2003-12-18 Zoltan Varga <vargaz@freemail.hu>
15125 * driver.c (mono_main): Make corlib-out-of-sync message more
15126 descriptive. Also remove verify_corlib call.
15128 Wed Dec 17 15:31:41 CET 2003 Paolo Molaro <lupus@ximian.com>
15130 * mini.c: make CEE_NEWARR calls and other emulated opcodes
15131 not overlap with other call's arguments, too.
15133 Wed Dec 17 12:49:23 CET 2003 Paolo Molaro <lupus@ximian.com>
15135 * mini.h, mini.c, mini-ppc.c, mini-sparc.c, mini-x86.c:
15136 move to arch-specific code the choice of arch-specific
15137 intrinsics (from Laurent Morichetti (l_m@pacbell.net)).
15138 * mini.c: ensure emulation calls will not interleave
15141 Wed Dec 17 12:27:26 CET 2003 Paolo Molaro <lupus@ximian.com>
15143 * tramp-ppc.c, basic-calls.cs: rework trampolines so that
15144 the magic trampoline stack frame is dropped before executing
15147 Mon Dec 15 18:13:57 CET 2003 Paolo Molaro <lupus@ximian.com>
15149 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed some opcode lengths
15150 and integer to fp conversions. Added support for overflowing
15151 arguments on the stack. Reserve a couple more registers as temps.
15152 Added support for aot compilation (as output still needs to be
15155 Sat Dec 13 17:49:10 CET 2003 Paolo Molaro <lupus@ximian.com>
15157 * mini-ppc.c, basic-long.cs: fix jumps to known labels.
15158 Don't overwrite return register in some corner cases.
15160 2003-12-13 Zoltan Varga <vargaz@freemail.hu>
15162 * mini.h mini.c driver.c mini-x86.c mini-ppc.c aot.c: Do not run
15163 static constructors when AOT compiling.
15165 * driver.c (mono_main): Call mono_check_corlib_version.
15167 Sat Dec 13 10:31:12 CET 2003 Paolo Molaro <lupus@ximian.com>
15169 * cpu-g4.md, basic.cs: fixed div target register.
15171 Sat Dec 13 09:45:56 CET 2003 Paolo Molaro <lupus@ximian.com>
15173 * mini-ppc.c, basic.cs: shl_imm fix with test.
15175 Fri Dec 12 21:25:14 CET 2003 Paolo Molaro <lupus@ximian.com>
15177 * inssel-ppc.brg, mini-ppc.h, mini-ppc.c: support for passing
15178 structures by value. Misc fixes.
15179 * objects.cs: more tests.
15181 Fri Dec 12 10:11:49 CET 2003 Paolo Molaro <lupus@ximian.com>
15183 * mini-ppc.c: lconv.ovf.i implemented.
15185 2003-12-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15188 (mini_init): don't error out if someone already called g_thread_init.
15190 Tue Dec 9 17:27:14 CET 2003 Paolo Molaro <lupus@ximian.com>
15192 * exceptions-x86.c, exceptions-ppc.c: allow the exception object
15193 to be any type per the spec. Fix abnormal memory usage when
15194 the same object is repeatedly thrown.
15196 Tue Dec 9 15:39:54 CET 2003 Paolo Molaro <lupus@ximian.com>
15198 * mini.c: check for overruns in IL code.
15200 2003-12-09 Zoltan Varga <vargaz@freemail.hu>
15202 * TODO: Add/remove some todo entries.
15204 2003-12-08 Zoltan Varga <vargaz@freemail.hu>
15206 * driver.c (mono_main): Call mono_verify_corlib.
15208 2003-12-07 Lluis Sanchez Gual <lluis@ximian.com>
15210 * inssel.brg: In CEE_ISINST and CEE_CASTCLASS, removed check for proxy.
15211 This has been moved to mini.c
15212 * mini.c: in mono_method_to_ir, CEE_ISINST and CEE_CASTCLASS cases, if the
15213 type being casted is marshalbyref it could be a proxy, so instead of
15214 emitting the type check code, emit a call to a runtime method that will
15215 perform the check by calling CanCastTo if needed.
15217 2003-12-06 Zoltan Varga <vargaz@freemail.hu>
15219 * mini-x86.c (mono_arch_emit_prolog): Fix stack space allocation for
15220 methods with large stack frames under Win32.
15222 2003-12-04 Zoltan Varga <vargaz@freemail.hu>
15224 * Makefile.am: Distribute regression tests.
15226 * mini-x86.c (mono_arch_get_allocatable_int_vars): Sort the var list
15227 at the end instead of inserting each variable into the sorted list.
15229 * linear-scan.c (mono_varlist_sort): New helper function.
15231 Wed Dec 3 20:46:28 CET 2003 Paolo Molaro <lupus@ximian.com>
15233 * mini.c: ensure arguments and locals are within bounds.
15235 Wed Dec 3 17:59:10 CET 2003 Paolo Molaro <lupus@ximian.com>
15237 * mini-ppc.c, cpu-g4.md, basic.cs, basic-long.cs: more tests and
15240 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
15242 * mini.c (mono_cprop_copy_values): Fix crash.
15244 * aot.c: Set verbosity back to 0.
15246 Wed Dec 3 15:42:27 CET 2003 Paolo Molaro <lupus@ximian.com>
15248 * regalloc.c: complete memory leak fix by Laurent Morichetti
15251 2003-12-03 Zoltan Varga <vargaz@freemail.hu>
15253 * driver.c (main_thread_handler): Revert the previous patch.
15255 * tramp-x86.c (x86_class_init_trampoline): Avoid patching when running
15258 * mini-x86.c (mono_arch_local_regalloc): Do not allocate transient
15259 memory from the memory pool.
15261 * driver.c (main_thread_handler): Turn on all optimizations when
15264 * mini.c (mono_find_jit_opcode_emulation): Turn emul_opcode_hash into
15265 an array for better performance.
15267 * regalloc.c (mono_regstate_assign): Fix memory leak.
15269 * debug-mini.c (mono_debug_serialize_debug_info): New function to
15270 serialize the debug info.
15272 * debug-mini.c (mono_debug_add_aot_method): New function to load the
15273 debug info from the serialized representation.
15275 * aot.c: Save debug info into the generated file and load it when
15278 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
15280 Mon Dec 1 16:54:05 CET 2003 Paolo Molaro <lupus@ximian.com>
15282 * mini-ppc.c, tramp-ppc.c: save FP arguments in the trampoline.
15283 More FP-related fixes.
15285 Sun Nov 30 19:13:52 CET 2003 Paolo Molaro <lupus@ximian.com>
15287 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: fixed finally handlers
15288 and register allocation buglet. Hello world now runs.
15290 Fri Nov 28 23:03:05 CET 2003 Paolo Molaro <lupus@ximian.com>
15292 * cpu-g4.md, inssel-ppc.brg, mini-ppc.c: better long return support.
15293 * tramp-ppc.c: fixed class init trampoline.
15294 * inssel-ppc.brg, mini.c, jit-icalls.c, mini-ppc.h: more emulation.
15296 Fri Nov 28 16:36:29 CET 2003 Paolo Molaro <lupus@ximian.com>
15298 * cpu-g4.md, inssel-ppc.brg, jit-icalls.c, mini-ppc.c, mini-ppc.h,
15299 mini.c: more ppc changes/fixes.
15301 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
15303 * mini.c (mono_method_to_ir): Fix tail calls with valuetype arguments.
15304 Also optimize the case when the arguments are the same in the caller
15307 * iltests.il: Add tests for tail calls with valuetype arguments.
15309 Thu Nov 27 21:06:37 CET 2003 Paolo Molaro <lupus@ximian.com>
15311 * mini-ppc.c: fixes for struct return type.
15313 Thu Nov 27 19:02:07 CET 2003 Paolo Molaro <lupus@ximian.com>
15315 * mini.h, mini.c, mini-x86.c, mini-ppc.c, mini-sparc.c: move
15316 mono_spillvar_offset() to arch-specific code.
15318 Thu Nov 27 18:30:42 CET 2003 Paolo Molaro <lupus@ximian.com>
15320 * mini-ppc.h, mini-ppc.c: handle some different ABI call convention issues.
15322 2003-11-27 Zoltan Varga <vargaz@freemail.hu>
15324 * exceptions-x86.c: Fix stack space leaks.
15326 * exceptions-x86.c (mono_arch_find_jit_info): Restore callee saved
15327 registers from the lmf if the method has save_lmf set.
15329 2003-11-26 Zoltan Varga <vargaz@freemail.hu>
15331 * tramp-x86.c (x86_magic_trampoline): Avoid patching in the addresses
15332 of icall wrappers into InvokeInDomain, since these are now per-domain.
15334 Wed Nov 26 20:15:04 CET 2003 Paolo Molaro <lupus@ximian.com>
15336 * mini-ppc.h, mini-x86.h, mini.c, inssel-ppc.brg, jit-icalls.c:
15337 make some opcode emulation and intrinsic ops enabled/disabled
15338 according to the architecture. More fixes.
15340 Wed Nov 26 19:59:09 CET 2003 Paolo Molaro <lupus@ximian.com>
15342 * mini-ppc.c, mini-sparc.c, cpu-g4.md: more bug fixes.
15344 Wed Nov 26 19:18:29 CET 2003 Paolo Molaro <lupus@ximian.com>
15346 * mini.h, inssel.brg, mini-x86.c, mini-ppc.c, mini-sparc.c: move
15347 arch-specific handling for 'this' and struct return type to
15348 arch-specific code.
15350 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15352 * aot.c: prevent divide by zero error when reporting (it happened with
15353 Accessibility.dll).
15355 2003-11-25 Zoltan Varga <vargaz@freemail.hu>
15357 * mini.h (inst_switch): Remove unused macro.
15359 2003-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15362 (load_aot_module): free 'info->methods' and 'info' properly. No more
15363 "free(): invalid pointer blah" messages when you have an old aot
15366 2003-11-21 Lluis Sanchez Gual <lluis@ximian.com>
15368 * jit-icalls.c, mini.c: Added support for context static fields.
15370 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
15372 * mini.c (mono_method_blittable): Methods which set LastError are not
15373 blittable either. Fixes #51108.
15375 Tue Nov 18 16:41:37 CET 2003 Paolo Molaro <lupus@ximian.com>
15377 * mini.c: flush icache.
15378 * cpu-g4.md, mini-ppc.c, inssel.brg: more fixes. Trace support.
15380 2003-11-18 Zoltan Varga <vargaz@freemail.hu>
15382 * mini.c (mono_type_blittable): OBJECT is not blittable. Fixes #47842.
15384 2003-11-17 Zoltan Varga <vargaz@freemail.hu>
15386 * tramp-x86.c (x86_class_init_trampoline): Make code patching thread
15389 * mini-x86.c (mono_arch_call_opcode): Disable AOT for methods with
15392 * inssel.brg (CEE_MKREFANY): Fix AOT case.
15394 2003-11-16 Zoltan Varga <vargaz@freemail.hu>
15396 * mini-x86.c (mono_arch_local_regalloc): Fix regalloc for div
15397 instruction when the result is discarded.
15399 * iltests.il (test_0_div_regalloc): New regression test.
15401 * arrays.cs: Fix compilation error.
15403 Fri Nov 14 21:34:06 CET 2003 Paolo Molaro <lupus@ximian.com>
15405 * inssel-x86.brg, inssel-float.brg, mini-ops.h: move x86-specific
15406 float rules to inssel-x86.brg: sane architectures with FP registers
15407 don't need to implement these rules.
15409 Fri Nov 14 20:52:12 CET 2003 Paolo Molaro <lupus@ximian.com>
15411 * mini-ppc.c, cpu-g4.md, inssel-ppc.brg: updates and fixes to the ppc port.
15413 Fri Nov 14 17:58:27 CET 2003 Paolo Molaro <lupus@ximian.com>
15415 * mini.h, inssel-long32.brg: fixed endianess issues in int64
15416 implementation of 32 bit systems.
15418 Thu Nov 13 16:14:41 CET 2003 Paolo Molaro <lupus@ximian.com>
15420 * exceptions-ppc.c: fix build on Linux/ppc from Jeroen@xs4all.nl
15421 (Jeroen Zwartepoorte).
15423 2003-11-12 Zoltan Varga <vargaz@freemail.hu>
15425 * mini.c (mono_method_to_ir): Use CEE_JMP only if the signature of
15426 the caller and the callee matches.
15428 * mini.c (mono_method_to_ir): Add comment.
15430 * mini-x86.c (mono_arch_output_basic_block): Use mono_signbit, since
15431 signbit is missing on some platforms.
15433 2003-11-06 Zoltan Varga <vargaz@freemail.hu>
15435 * mini.h (mono_arch_setup_jit_tls_data): New arch specific function.
15437 * mini.c (setup_jit_tls_data): Call the new function.
15439 * mini-x86.c mini-ppc.c mini-sparc.c: Define the new function.
15441 * mini-x86.c: Add experimental support for fast access to the lmf
15442 structure under NPTL/Linux 2.6.x.
15444 2003-11-06 Martin Baulig <martin@ximian.com>
15446 * ldscript: Make `GC_push_all_stack', `GC_start_blocking',
15447 `GC_end_blocking' and 'gc_thread_vtable' public; they're used by
15450 2003-11-02 Martin Baulig <martin@ximian.com>
15452 * mini.c (inflate_generic_field): New static method.
15453 (mono_method_to_ir): In CEE_LDFLD and CEE_LDSFLD: if we're a
15454 generic instance and the field is declared in a generic type, call
15455 inflate_generic_field() to inflate it. Fixes gen-28.cs.
15457 2003-10-31 Zoltan Varga <vargaz@freemail.hu>
15459 * mini.h mini.c (mono_method_same_domain): New function to return
15460 whenever the caller and the callee are in the same domain.
15462 * tramp-x86.c (x86_magic_trampoline): Use the new function.
15464 2003-10-30 Martin Baulig <martin@ximian.com>
15466 * mini.c (MTYPE_PARAM_TO_TYPE, MTYPE_PARAM_TO_CLASS): New macros;
15467 similar to TYPE_PARAM_TO_TYPE and TYPE_PARAM_TO_CLASS, but for
15469 (mono_method_to_ir): Added support for MONO_TYPE_MVAR; similar to
15470 MONO_TYPE_VAR, we the actual types from MTYPE_PARAM_TO_CLASS().
15472 2003-10-29 Zoltan Varga <vargaz@freemail.hu>
15474 * mini.c mini-ops.h inssel.brg: Implement undeniable exception
15477 * mini.c (sigusr1_signal_handler): Move creation of the thread abort
15478 object here, so it is in the correct appdomain etc.
15480 2003-10-27 Zoltan Varga <vargaz@freemail.hu>
15482 * mini.c (mono_jit_compile_method_inner): Lookup icalls here if not
15484 (mono_method_to_ir): Avoid freeing the type created returned from
15485 mono_type_create_from_typespec, since it is put into an internal cache
15486 by the function. Fixes pointer.exe.
15488 * mini.c tramp-x86.c tramp-sparc.c tramp-ppc.c: Use the normal
15489 trampolines for icalls and pinvokes as well. Fixes #33569.
15491 2003-10-24 Zoltan Varga <vargaz@freemail.hu>
15493 * mini.c: Update after appdomain changes.
15495 * mini.c (mono_jit_compile_method_inner): Allways compile native
15496 method wrappers in the root domain, since there can only be one
15497 instance of them, whose address is stored in method->info.
15499 2003-10-16 Zoltan Varga <vargaz@freemail.hu>
15501 * mini.c (mono_runtime_install_handlers): Get rid of the MONO_VALGRIND
15502 environment variable. Instead detect automatically whenever running
15503 under valgrind using the magic macro RUNNING_ON_VALGRIND from
15506 2003-10-16 Miguel de Icaza <miguel@ximian.com>
15508 * trace.c, trace.h: New files that implement the new trace option
15511 * driver.c: Document new --trace options.
15513 * exceptions-ppc.c, exceptions-x86.c, mini-ppc.c, mini-sparc.c,
15516 - if (mono_jit_trace_calls)
15517 + if (mono_jit_trace_calls != NULL && mono_trace_eval (method))
15519 * mini.h: prototypes.
15521 2003-10-15 Zoltan Varga <vargaz@freemail.hu>
15523 * mini.c (mono_method_to_ir): Fix initialization of typedbyref locals.
15525 * mini.c inssel.brg: Implement typedefbyref opcodes.
15527 * mini.c (mono_jit_compile_method): Remove unused local variable.
15529 * mini.c (mono_jit_compile_method_inner): Ditto.
15531 2003-10-12 Zoltan Varga <vargaz@freemail.hu>
15533 * tramp-x86.c (x86_class_init_trampoline): Fix build.
15535 * tramp-x86.c (x86_class_init_trampoline): Thread safety fixes.
15537 2003-10-10 Zoltan Varga <vargaz@freemail.hu>
15539 * mini.c (mono_no_aot): Remove unused global variable.
15541 * mini.c: Thread safety fixes.
15543 2003-10-09 Zoltan Varga <vargaz@freemail.hu>
15545 * mini.c (mono_create_class_init_trampoline): Add a lock around
15546 class_init_hash_addr.
15548 * arrays.cs (test_0_newarr_emulation): Add new regression test for
15551 * mini.c: Decompose the NEWARR instruction before decomposing its
15552 arguments. Fixes #30073.
15554 2003-10-08 Zoltan Varga <vargaz@freemail.hu>
15556 * mini-x86.c (mono_arch_emit_epilog): Add support for stdcall calling
15559 2003-10-06 Zoltan Varga <vargaz@freemail.hu>
15561 * mini.c (mono_method_to_ir): Allow wrapper data for CEE_LDELEMA.
15563 * inssel-x86.brg (OP_LOCALLOC): Fix register assignment for localloc.
15565 * driver.c: Add support for compiling icall wrappers to --compile.
15567 2003-10-05 Zoltan Varga <vargaz@freemail.hu>
15569 * inssel.brg: The empty value in class->interface_offsets is -1, not
15572 2003-10-03 Zoltan Varga <vargaz@freemail.hu>
15574 * objects.cs: New test for 'is' operator on an array of interfaces.
15576 Wed Oct 1 19:40:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
15578 * tramp-ppc.c: update trampoline code to support jumps
15579 and class initialization.
15581 2003-09-30 Zoltan Varga <vargaz@freemail.hu>
15583 * mini.c (mono_jit_compile_method): Fix reading of freed memory.
15585 * inssel.brg (OP_UNBOXCAST): Fix #46027.
15587 * inssel.brg (OP_UNBOX): Remove unused rule.
15589 * mini.h mini.c inssel-x86.brg: Allocate one SP variable for each
15590 region instead of one for each method. Fixes #47813.
15592 2003-09-29 Zoltan Varga <vargaz@freemail.hu>
15594 * exceptions.cs (test_0_nested_finally): New regression test for
15595 nested exception handlers.
15597 * mini.c (mono_jit_runtime_invoke): Fix for the previous fix.
15599 * mini.c (mono_method_to_ir): Avoid inlining tail calls.
15601 * mini.c (mono_method_to_ir): Fix tail recursion in the presence of
15604 * mini.c (mono_method_check_inlining): Make the inlining limit
15605 configurable by an environment variable.
15607 * mini.c (mono_jit_runtime_invoke): Add Gonzalo's fix for #36545.
15609 * mini.h: Bump AOT file version.
15611 * mini.h mini.c aot.c mini-x86.c: For relocations which refer to a
15612 token, store the image along with the token, since the token might not
15613 refer to the same image as the method containing the relocation,
15614 because of inlining.
15616 2003-09-27 Zoltan Varga <vargaz@freemail.hu>
15618 * mini.c (mono_precompile_assemblies): New function to compile
15619 all methods in all loaded assemblies.
15621 * mini.h driver.c: Added new optimization flag MONO_OPT_PRECOMP.
15623 * regalloc.h regalloc.c (MonoRegState): Change the type of
15624 iassign and fassign to int*, since they can contain large negative
15625 values if the register is spilled. Also added some comments. Fixes
15628 * exceptions-x86.c (seh_handler): Fix handling of system exceptions
15629 under Win32. Fixes #42964.
15631 2003-09-26 Zoltan Varga <vargaz@freemail.hu>
15633 * mini.h (MONO_PATCH_INFO_WRAPPER): New patch type.
15635 * aot.c: Added support for AOT compiling methods which contain calls
15636 to wrappers. Currently, only remoting-invoke-with-check wrappers are
15639 * driver.c (compile_all_methods): Run the compilation in a thread
15640 managed by mono. Fixes #44023.
15642 * mini.c (mono_codegen): Print full method name in verbose output.
15644 * mini-x86.c (mono_arch_patch_code): Fix warning.
15646 * mini-x86.c (mono_arch_patch_code): Allways create a trampoline for
15647 jumps, since the method we are jumping to might be domain-specific.
15649 * aot.c: Added support for MONO_PATCH_INFO_METHOD_JUMP.
15651 Tue Sep 23 10:50:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
15653 * inssel.brg: string chars are unsigned.
15655 2003-09-15 Zoltan Varga <vargaz@freemail.hu>
15657 * TODO: New todo item.
15659 * tramp-x86.c (x86_class_init_trampoline): New trampoline function
15660 which calls mono_runtime_class_init and patches the call site to
15661 avoid further calls.
15662 (mono_arch_create_class_init_trampoline): New arch specific function
15663 to create a class init trampoline.
15664 (create_trampoline_code): Generalized so it can create
15665 class init trampolines as well.
15667 * mini.c (helper_sig_class_init_trampoline): New helper variable.
15668 (mono_create_class_init_trampoline): New function to create and cache
15669 class init trampolines.
15670 (mono_find_class_init_trampoline_by_addr): New function to lookup the
15671 vtable given the address of a class init trampoline. Used by the
15673 (mono_codegen): Generate a call to a trampoline instead of
15674 mono_runtime_class_init in LDSFLD[A].
15675 (mono_codegen): Add relocations for the new trampoline.
15677 * mini.h mini-x86.c aot.c: Added a new relocation type:
15678 MONO_PATCH_INFO_CLASS_INIT.
15680 * mini.h: Bump AOT version number.
15682 * aot.c: Create a copy of the loaded code instead of using the original
15683 so methods which call each other will be close in memory, improving
15686 * exceptions-x86.c (mono_arch_has_unwind_info): Back out the previous
15687 patch since it breaks the regression tests.
15689 * exceptions-x86.c (mono_arch_has_unwind_info): Added explicit check
15690 for the register saving instruction sequence since the
15691 frame_state_for function in glibc 2.3.2 don't seem to detect it.
15693 2003-09-14 Zoltan Varga <vargaz@freemail.hu>
15695 * TODO: Fix todo item && remove another.
15697 2003-09-12 Zoltan Varga <vargaz@freemail.hu>
15699 * mini-x86.c (mono_arch_patch_code): Fix tail calls broken by a
15702 * aot.c: Moved the check for MONO_LASTAOT into the initialization
15703 function of the module.
15705 * mini.h mini.c aot.c: Added a new optimization flag OPT_AOT for
15706 turning on/off the usage of AOT code. Got rid of mono_no_aot and the
15707 --no-aot command line option.
15709 2003-09-11 Zoltan Varga <vargaz@freemail.hu>
15711 * helpers.c (mono_disassemble_code): Make this work under cygwin. Patch
15712 by Bernie Solomon (bernard@ugsolutions.com).
15714 * inssel.brg: Refactor the interface offset table related code into
15715 its separate functions and add support for the AOT case.
15717 2003-09-10 Zoltan Varga <vargaz@freemail.hu>
15719 * aot.c (mono_aot_get_method_inner): Fix memory leak.
15721 * aot.c: Added mono_aot_verbose variable and made all debugging
15722 output depend on the value of this variable.
15724 * aot.c (mono_aot_get_method_inner): Avoid dynamic allocation of
15725 method_label and info_label.
15727 * mini.h mini-x86.c aot.c: Added a new relocation type
15728 MONO_PATCH_INFO_IID for klass->interface_id.
15730 * mini.h mini.c driver.c aot.c: Changed mono_aot_get_method to return
15731 the MonoJitInfo structure.
15733 * mini.c (mono_jit_compile_method): Avoid using non-shared AOT in
15734 a non-root appdomain in shared mode.
15736 Tue Sep 9 16:33:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
15738 * aot.c: make aot loader less verbose. Remove free of unused variable.
15740 2003-09-08 Zoltan Varga <vargaz@freemail.hu>
15742 * aot.c (mono_aot_get_method_inner): Fix MONO_PATCH_INFO_IMAGE.
15744 * .cvsignore: Added *.dll.
15746 * mini.c (mono_print_tree_nl): New function callable while debugging.
15748 * mini.c (mono_print_code): Export this.
15750 * tramp-x86.c (x86_magic_trampoline): Tell valgrind to recompile the
15753 2003-09-05 Zoltan Varga <vargaz@freemail.hu>
15755 * mini.h (MonoCompile): Added 'jit_info' field.
15757 * mini.c (mini_method_compile): Save the generated MonoJitInfo into
15758 the cfg structure, since it is needed by the AOT compiler.
15760 * mini.h (MONO_AOT_FILE_VERSION): Bump version number.
15762 * aot.c: A major rewrite. Changes include:
15763 - save exception tables for methods which have them.
15764 - cache failed lookups in aot_get_method () to avoid the (slow) calls
15765 to g_module_symbol.
15766 - reworked the file format so it is now much smaller and needs
15767 fewer relocation entries.
15769 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
15771 * aot.c (load_aot_module): Fix build bustage on platforms without
15774 2003-09-04 Martin Baulig <martin@ximian.com>
15776 * Makefile.am (INCLUDES): Added $(LIBGC_CFLAGS).
15778 2003-09-04 Zoltan Varga <vargaz@freemail.hu>
15780 * TODO: Some new optimization ideas.
15782 * aot.c: Move AOT module loading logic here from mono_assembly_open.
15784 * aot.c: Save the optimization flags used to compile the code into
15787 * mini.h mini-x86.c mini.c aot.c: Added new types of relocations to
15788 support emitting domain specific code.
15790 * mini.h mini.c aot.c: Modified the JIT so the generated AOT code is
15791 no longer domain neutral. It can be made domain neutral by compiling
15792 with --optimize=shared.
15794 * aot.c (mono_aot_get_method_inner): Allow sharing of AOT methods
15795 between appdomains.
15797 * driver.c mini.h mini.c: New --no-aot debugging option which disables
15798 loading of AOT code.
15800 * inssel-x86.brg: Added missing AOTCONST -> OUTARG_VT rule.
15802 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling method
15803 if there is no domain neutrality information.
15805 2003-09-01 Zoltan Varga <vargaz@freemail.hu>
15807 * aot.c (mono_compile_assembly): Emit a symbol containing the file
15808 format version into the generated library.
15810 * mini-x86.c (mono_arch_patch_code): Do not emit the address of the
15811 callee method into the caller since one of them could be shared.
15813 * mini.h mini-x86.c aot.c: Added two new relocations so throwing
15814 system exceptions from AOT code now works.
15816 * tramp-x86.c (x86_magic_trampoline): Avoid patching the calling
15817 method if it is domain neutral and the callee is not.
15819 * graph.c (cfg_emit_one_loop_level): Fix warning.
15821 2003-08-30 Zoltan Varga <vargaz@freemail.hu>
15823 * aot.c (mono_compile_assembly): Oops. Remove debugging cruft from
15826 2003-08-29 Zoltan Varga <vargaz@freemail.hu>
15828 * mini.c (mini_init): Call mono_marshal_init () explicitly since it
15829 is needed by code which is executed before mono_runtime_init ().
15830 Thanks to Bernie Solomon (bernard@ugsolutions.com) for noticing this.
15832 * mini.c (mono_thread_abort): Fix warning.
15833 (mono_jit_compile_method): Call static constructor in the AOT case too.
15835 * aot.c (mono_compile_assembly): Fix warning.
15837 2003-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15839 * mini.c: register a SIGINT handler if MONO_DEBUG is defined.
15841 2003-08-28 Zoltan Varga <vargaz@freemail.hu>
15843 * inssel.brg (OP_UNBOXCAST): Add support for the AOT case.
15845 * cpu-pentium.md: Fix the length of call opcodes so they include the
15846 ESP restoring instruction. Fixes #47968.
15848 2003-08-28 Martin Baulig <martin@ximian.com>
15850 * mini-x86.c (mono_arch_call_opcode): Added support for
15851 MONO_TYPE_GENERICINST.
15853 * mini.c (check_call_signature): Added support for MONO_TYPE_GENERICINST.
15855 2003-08-27 Zoltan Varga <vargaz@freemail.hu>
15857 * Makefile.am (BUILT_SOURCES): Fix compilation on platforms without
15858 a JIT. Patch by Bernie Solomon (bernard@ugsolutions.com).
15860 * mini.c jit-icalls.c tramp-x86.c tramp-ppc.c tramp-sparc.c: Get rid of
15863 2003-08-26 Martin Baulig <martin@ximian.com>
15865 * mini.c (get_basic_blocks): Added `unsigned char **pos' argument;
15866 when reporting an error, set this to the actual error location.
15867 (mono_method_to_ir): Report the correct error location if
15868 get_basic_blocks() returned an error.
15870 2003-08-25 Zoltan Varga <vargaz@freemail.hu>
15872 * mini.c (mono_type_blittable): OBJECT is not blittable.
15873 (mono_method_blittable): Methods which have marshalling descriptors
15874 are not blittable either. Fixes #47842.
15876 2003-08-22 Zoltan Varga <vargaz@freemail.hu>
15878 * driver.c mini.c: Use an environment variable instead of a global
15879 variable. Also fix the build.
15881 * mini.c (mini_init): Call g_thread_init () to make glib thread-safe.
15882 Fixes #47682. Thanks to Laurent Morichetti (l_m@pacbell.net) for
15885 * driver.c mini.c: Added --with-valgrind option to turn off some
15886 code which prevents mono from running under valgrind.
15888 * mini.c (mono_emit_call_args): Fixed warning.
15890 * mini.c (mono_emulate_opcode): Fixed warning.
15892 Thu Aug 21 19:10:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15894 * inssel.brg: 64bit fixes from Laurent Morichetti <l_m@pacbell.net>.
15895 * linear-scan.c, mini-ppc.h, mini-sparc.h, mini-x86.h, mini.h,
15896 regalloc.c, regalloc.h: specify available registers in arch-specific
15897 code and support floats in the regallocator (patch by Laurent Morichetti
15900 Wed Aug 20 19:02:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
15902 * mini.c: mono_thread_current() can be called only after
15903 mono_runtime_init(): rearrange code to not call it early on.
15905 Wed Aug 20 13:14:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
15907 * mini.c: allocate jump tables in the code mempools.
15909 Wed Aug 20 13:04:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
15911 * mini.c, mini.h: make sure per-thread data allocated by the jit is
15914 2003-08-10 Miguel de Icaza <miguel@ximian.com>
15916 * cpu-pentium.md (ldtoken): Change the length for mul.ovf.un from
15917 12 to 16. This fixes bug #47453.
15920 Thu Aug 7 15:59:35 CEST 2003 Paolo Molaro <lupus@ximian.com>
15922 * mini-ppc.c: fixed indexed load and unsigned compares.
15924 2003-08-06 Lluis Sanchez Gual <lluis@ximian.com>
15926 * mini.c: reenabled installation of handler for
15927 thread abort signal.
15929 Tue Aug 5 12:21:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15931 * cprop.c, mini-x86.c, cpu-pentium.md: fix buglets spotted
15932 by Laurent Morichetti <l_m@pacbell.net>. Disabled local cprop
15933 until it's fixed and actually useful.
15935 Mon Aug 4 12:12:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
15937 * inssel-long32.brg: couple more opcodes implemented.
15939 Thu Jul 31 22:43:02 EDT 2003 Mark Crichton <crichton@gimp.org>
15941 * mini-sparc.c: Even more opcodes implemeted.
15943 Thu Jul 31 19:36:03 EDT 2003 Mark Crichton <crichton@gimp.org>
15945 * mini-sparc.c: More opcodes implemented.
15947 Thu Jul 31 15:16:26 EDT 2003 Mark Crichton <crichton@gimp.org>
15949 * mini-sparc.c: More opcodes implemented.
15951 Wed Jul 30 22:31:02 EDT 2003 Mark Crichton <crichton@gimp.org>
15953 * inssel-sparc.brg: Add some needed rules. Direct
15955 * Makefile.am: Use inssel-sparc.brg
15956 * exceptions-sparc.c: 0xdeadbeef/0xdecafbad to keep
15957 an assert happy for now.
15959 Wed Jul 30 20:44:07 EDT 2003 Mark Crichton <crichton@gimp.org>
15961 * mini-sparc.c: Fixed compile errors.
15962 * exceptions-sparc.c: Same. We now produce a mono binary
15963 on sparc-linux. Yea.
15965 Wed Jul 30 14:10:12 EDT 2003 Mark Crichton <crichton@gimp.org>
15967 * mini-sparc.c: Renamed registers. Also some macro cleanups.
15968 * exceptions-sparc.c, tramp-sparc.c: Various compile fixes.
15969 They compile, but do not work.
15971 Wed Jul 30 17:52:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
15973 * Makefile.am, cpu-sparc.md, exceptions-sparc.c, mini-sparc.c,
15974 mini-sparc.h, tramp-sparc.c: Beginning of sparc support
15975 from Mark Crichton <crichton@gimp.org> and Christopher Taylor
15978 Tue Jul 29 12:43:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
15980 * mini.c: more opcodes implemented and better support for generics.
15982 Fri Jul 25 18:51:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
15984 * cpu-g4.md, cpu-pentium.md: updates for new instructions.
15985 * mini.c, mini.h: first cut at generics support: some new instructions
15986 added and changed the behaviour of some of the existing ones.
15988 2003-07-21 Miguel de Icaza <miguel@ximian.com>
15990 * mini.c: Removed definition of metadata_shared mutex here.
15992 Tue Jul 22 15:21:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
15994 * mini-x86.c: make vararg calls work for instance methods.
15996 Fri Jul 18 19:26:20 CEST 2003 Paolo Molaro <lupus@ximian.com>
15998 * mini.c, mini.h, mini-x86.c, mini-ppc.c: mono_arch_call_opcode()
15999 returns the arguments in a separte list, now.
16001 Fri Jul 18 13:16:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
16003 * aot.c, mini.c: updates for array type representation changes.
16005 Fri Jul 18 11:28:28 CEST 2003 Paolo Molaro <lupus@ximian.com>
16007 * mini.c: register function to perform jit shutdown.
16009 Thu Jul 17 16:02:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
16011 * mini.c: use a faster allocator if possible.
16013 Thu Jul 17 16:00:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
16015 * aot.c: some cleanups and portability changes.
16017 Wed Jul 2 11:08:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
16019 * mini.c: use faster allocation for CEE_BOX if possible.
16021 Mon Jun 30 19:16:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
16023 * mini.c, mini-ops.h, inssel.brg, mini-x86.c: optimized access to fields.
16024 Moved inlined mempcy code to its own function so that is can be
16025 reused. Added an inline memset function as well (optimized initobj).
16026 * cpu-pentium.md, inssel-x86.brg: add and use lea_membase.
16028 Fri Jun 27 11:19:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
16030 * mini.c, mini-ops.h, inssel.brg: optimized a couple of Array methods.
16032 Wed Jun 25 13:19:25 CEST 2003 Paolo Molaro <lupus@ximian.com>
16034 * mini.c, mini.h, mini.x86.c, mini-ppc.c: added facility so that
16035 arch code can setup the cpu for CLR execution, if needed.
16036 We use it on x86 to set the precision of FP operations.
16038 Tue Jun 17 19:02:55 CEST 2003 Paolo Molaro <lupus@ximian.com>
16040 * mini.c: disable some optimizations if we can guess they'll cost too
16041 much for a given method.
16043 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
16045 * mini.h mini.c: Rework last patch based on suggestions by Paolo.
16047 2003-06-17 Zoltan Varga <vargaz@freemail.hu>
16048 * mini.h mini.c mini-x86.c: Added instruction level coverage
16049 info collection support.
16051 Mon Jun 16 18:13:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16053 * driver.c, mini-ppc.c, mini-x86.c, mini.c, mini.h: the coverage stuff
16054 is now implemented in the profiling API. Get rid of a couple of
16055 unnecessary global variables.
16057 2003-06-15 Nick Drochak <ndrochak@gol.com>
16059 * basic-long.cs: tests for negative values for bigmul, and unsigned.
16060 * cpu-g4.md: add op_bigmul and op_bigmul_un
16061 * cpu_pentium.md: add op_bigmul_un
16062 * inssel-long32.brg: add rule for unsigned bigmul
16063 * mini-ops.h: define OP_BIGMUL_UN
16064 * mini-x86.c: THE BUG: handle (un)signed properly
16065 * mini.c: choose unsigned opcode if needed.
16066 This set of patches fixes bug #44291
16068 2003-06-13 Dietmar Maurer <dietmar@ximian.com>
16070 * mini.c (optimize_branches): improved to handle all kinds of
16071 conditional branches.
16073 Wed Jun 11 18:01:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
16075 * mini.c, mini.h, jit-icalls.c: speedup emulation of opcodes that
16076 don't raise exceptions.
16078 Tue Jun 10 19:00:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
16080 * tramp-x86.c, tramp-ppc.c, debug-mini.c: move arch-specific code
16081 to arch-specific files.
16083 2003-06-09 Martin Baulig <martin@ximian.com>
16085 * Makefile.am (libs): Added $(LIBGC_LIBS).
16087 Mon Jun 9 20:21:47 CEST 2003 Paolo Molaro <lupus@ximian.com>
16089 * cpu-pentium.md, mini-x86.c: fix (well, actually implement) OP_TAN
16090 and OP_ATAN (fixes bug#44293).
16092 Mon Jun 9 19:00:56 CEST 2003 Paolo Molaro <lupus@ximian.com>
16094 * Makefile.am, mini-x86.c: rename cpu description array to
16095 pentium_desc, since some compilers define the 'pentium' preprocessor
16098 2003-05-28 Dietmar Maurer <dietmar@ximian.com>
16100 * mini.c (mini_select_instructions): add explicit branch if the
16101 following block is not the false target of a conditional branch -
16102 we need this with any optimization that reorder or remove bblocks
16104 * mini.c (optimize_branches): bug fixes
16106 2003-06-06 Dietmar Maurer <dietmar@ximian.com>
16108 * mini.c (mono_method_to_ir): inline static readonly fields
16110 * ssa.c (fold_tree): start cfold support for long (very simple
16113 * cfold.c (mono_constant_fold_inst): opt. CEE_CONV_I8 (OP_ICONST)
16115 Fri Jun 6 11:41:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
16117 * inssel.brg: fixed memcpy (bug #44219).
16119 2003-06-05 Dick Porter <dick@ximian.com>
16121 * driver.c: Set the glib log levels to not abort if g_message
16124 g_set_prgname() has to happen before mini_init() so that the
16125 process handle gets the info.
16127 Thu Jun 5 20:11:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16129 * driver.c: add intrins to the default optimizations to get wider
16132 Wed Jun 4 19:47:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
16134 * mini.h: some large basic blocks will overflow a 16-bit
16135 integers for symbolic registers.
16137 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
16139 * mini-x86.c (mono_arch_output_basic_block): revert previous fprem changes.
16140 (mono_arch_output_basic_block): fix bug 43499
16142 Wed Jun 4 13:13:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
16144 * mini.c: kill duplicated definition of mono_debug_format.
16146 Wed Jun 4 13:09:51 CEST 2003 Paolo Molaro <lupus@ximian.com>
16148 * mini-x86.c, arrays.cs: fixed register allocation bug.
16150 2003-06-04 Dietmar Maurer <dietmar@ximian.com>
16152 * mini-x86.c (mono_arch_output_basic_block): use IEEE compatible fprem1
16154 * mini.c (mini_get_opcode_for_method): inline IEEERemainder
16156 2003-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16159 (print_method_from_ip): also print source location information if
16162 2003-06-02 Dietmar Maurer <dietmar@ximian.com>
16164 * mini.c (mono_find_block_region): bug fix in region code
16165 (mini_method_compile): enable removing unreachable code again, but
16166 only in methods without exception clauses.
16168 Fri May 30 18:40:24 CEST 2003 Paolo Molaro <lupus@ximian.com>
16170 * mini.c, mini-ops.h, cpu-pentium.md, inssel.brg, mini-x86.c, mini.h:
16171 Implemented arglist opcode and handling of TypedReference type.
16172 Fixed x86 call convention when a structure is returned.
16173 Minimal support for calling static vararg methods.
16175 2003-05-30 Dietmar Maurer <dietmar@ximian.com>
16177 * mini.c (mini_method_compile): always remove unreachable code,
16178 because the code in them may be inconsistent (access to dead
16179 variables for example).
16181 Thu May 29 11:44:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
16183 * driver.c, debug-mini.c: warning fixes.
16185 Wed May 28 11:19:15 CEST 2003 Paolo Molaro <lupus@ximian.com>
16187 * Makefile.am, jit.h, mini.h: install header for embedding mono.
16189 Tue May 27 17:56:12 CEST 2003 Paolo Molaro <lupus@ximian.com>
16191 * mini.c: thread-static fields are registered in mono_class_vtable(),
16192 so ensure the function is called before checking for them.
16194 2003-05-27 Dietmar Maurer <dietmar@ximian.com>
16196 * mini.c (optimize_branches): fix for bug 43586
16198 * jit-icalls.c (mono_llmult_ovf): added an additional check for
16199 overflow (fixes Bug #43639)
16201 Tue May 27 11:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16203 * mini.c, objects.cs: allow the use of stobj for primitive types.
16205 Tue May 27 10:33:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16207 * mini.c: be less strict about argument checking until we support
16208 running the verifier.
16210 2003-05-27 Nick Drochak <ndrochak@gol.com>
16212 * basic-long.cs: tests for (ulong)int * (ulong)int also
16213 * mini.c: use the same trick for (ulong)int * (ulong)int
16215 2003-05-27 Nick Drochak <ndrochak@gol.com>
16217 * basic-long.cs: add regression test for (long)int * (long)int
16218 * cpu-pentium.md: add op_bigmul specification
16219 * inssel-long32.brg: add OP_BIGMUL rule
16220 * mini-ops.h: add OP_BIGMUL
16221 * mini-x86.c: register allocator: handle case where src1 needs to be
16223 * mini.c: substitute special BIGMUL opcode in the tree for
16224 (long)int * (long)int
16226 Mon May 26 20:20:13 CEST 2003 Paolo Molaro <lupus@ximian.com>
16228 * jit-icalls.c: call the type ctor on field access if needed.
16230 Mon May 26 15:21:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
16232 * mini-ops.h, mini.c, inssel.brg, exceptions.cs: validate arguments passed
16233 to a method (including results of ldelema, bug#43207).
16235 2003-05-26 Dietmar Maurer <dietmar@ximian.com>
16237 * graph.c (cfg_emit_one_loop_level): loop over all blocks. use
16238 colors to show exception handler blocks.
16240 * inssel-x86.brg (OP_OUTARG_VT): dont push zero sized structures
16241 (fix for pinvoke7.cs).
16243 Mon May 26 12:11:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16245 * mini.h, mini.c: ensure correct initialization order for types that
16246 require it. Prepare for lazy compilation of jit icall wrappers.
16247 Provide a name for opcode emulation to reduce unneeded mallocing.
16249 Fri May 23 16:08:54 CEST 2003 Paolo Molaro <lupus@ximian.com>
16251 * mini-x86.c: better register restoring code and profiling
16252 support for tail calls.
16254 Fri May 23 15:30:53 CEST 2003 Paolo Molaro <lupus@ximian.com>
16256 * mini.h, driver.c: prepare for leaf methods optimization.
16258 Fri May 23 15:28:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
16260 * mini.c: get targets of branches before converting a method.
16262 2003-05-23 Dietmar Maurer <dietmar@ximian.com>
16264 * mini.c (optimize_branches): added some experimental code (disbaled)
16266 2003-05-22 Dietmar Maurer <dietmar@ximian.com>
16268 * mini.c (optimize_branches): fix branch to branch optimization
16270 * exceptions-x86.c (mono_arch_handle_exception): bug fix.
16272 * mini-x86.c (mono_arch_output_basic_block): cleanup up exception code
16274 * inssel-x86.brg: added OP_START_HANDLER, CEE_ENDFINALLY, OP_ENDFILTER
16276 * mini-x86.c (mono_arch_allocate_vars): only reserve space for lmf
16279 2003-05-21 Dietmar Maurer <dietmar@ximian.com>
16281 * mini.c (mono_method_to_ir): call handle_loaded_temps before inlining.
16282 enable use of interface variables again.
16284 * mini-x86.c (mono_arch_get_allocatable_int_vars): dont allocate
16285 I1 to registers because there is no simply way to sign extend 8bit
16286 quantities in caller saved registers on x86.
16288 * inssel-float.brg: set costs of some rules to 2 so
16289 that monobure always select the arch. specific ones if supplied,
16290 regardless of the order we pass the files to monoburg.
16292 Tue May 20 17:19:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
16294 * mini.c, mini-x86.c: since the magic trampoline for jumps
16295 can't patch the code directly, we do it as soon as the
16296 method gets compiled.
16298 Tue May 20 16:02:52 CEST 2003 Paolo Molaro <lupus@ximian.com>
16300 * mini-x86.c, mini.h: introduce a new patching method
16301 to support CEE_JMP and tail calls.
16302 * mini.c: obey tail.call. Don't precompile methods target
16304 * tramp-x86.c: new trampoline code to handle methods
16305 reached through a jump.
16307 2003-05-20 Dietmar Maurer <dietmar@ximian.com>
16309 * mini-x86.c (mono_arch_get_allocatable_int_vars): allocate 8/16
16310 bit values to registers
16312 2003-05-19 Dietmar Maurer <dietmar@ximian.com>
16314 * mini.c (mono_compile_get_interface_var): share interface
16315 variables if possible.
16317 2003-05-16 Martin Baulig <martin@ximian.com>
16319 * debug-mini.c (mono_init_debugger): New function to initialize
16320 the debugger. This is not in the debugger since it needs to
16321 access some of mini's internals.
16323 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
16325 * mini.c (mono_method_to_ir): inlining fixes/cleanups
16327 Fri May 16 13:27:23 CEST 2003 Paolo Molaro <lupus@ximian.com>
16329 * mini.c, mini-opts.h, inssel.brg: inline small memcpy
16330 for value type handling.
16332 2003-05-16 Dietmar Maurer <dietmar@ximian.com>
16334 * mini.c (mono_method_to_ir): inline LDFLD/STFLD wrappers
16335 (mono_method_check_inlining): enable inlining of all kinds of wrappers
16337 2003-05-15 Lluis Sanchez Gual <lluis@ideary.com>
16339 * mini.c: fixed little bug in CEE_NEWOBJ case when calling
16340 the constructor through a proxy.
16342 Thu May 15 17:17:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
16344 * jit-icalls.c, inssel.brg: fixes to array element address
16347 2003-05-15 Dietmar Maurer <dietmar@ximian.com>
16349 * mini-x86.c (is_regsize_var): allocate pointer to registers
16351 Thu May 15 13:04:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
16353 * driver.c: fixed typo, added intrins to the set of optimizations
16354 tested with regressions.
16356 Thu May 15 11:57:42 CEST 2003 Paolo Molaro <lupus@ximian.com>
16358 * mini-ops.h, mini.c, inssel.brg: optimize access to 2D arrays.
16359 * jit-icalls.c, exceptions.cs: fixed index out of range checks, added
16362 2003-05-14 Dietmar Maurer <dietmar@ximian.com>
16364 * inssel.brg: remove some common pop instructions without side effects
16366 Wed May 14 12:40:31 CEST 2003 Paolo Molaro <lupus@ximian.com>
16368 * inssel-x86.brg: fixed thinko in int to double conversions.
16370 Wed May 14 12:01:58 CEST 2003 Paolo Molaro <lupus@ximian.com>
16372 * mini.c, jit-icalls.c: added runtime thread-static variable support.
16374 Tue May 13 22:02:06 CEST 2003 Paolo Molaro <lupus@ximian.com>
16376 * inssel-long32.brg: two more missing instructions.
16378 2003-05-13 Dietmar Maurer <dietmar@ximian.com>
16380 * mini.c (mono_emit_call_args): set the cil_code for all arguments
16381 if not already set.
16383 2003-05-12 Zoltan Varga <vargaz@freemail.hu>
16385 * mini-x86.c (mono_arch_output_basic_block): Handle negative zero
16388 * basic-float.cs: Added tests for negative zero.
16390 Sun May 11 14:56:27 CEST 2003 Paolo Molaro <lupus@ximian.com>
16392 * inssel-long32.brg, basic-long.cs, exceptions.cs: handle
16393 a couple of missing operations for long casts, with test cases.
16395 2003-05-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16397 * exceptions-x86.c: fixed small leaks in mono_arch_handle_exception.
16399 2003-05-09 Dietmar Maurer <dietmar@ximian.com>
16401 * mini-x86.c (mono_arch_emit_prolog): avoid reallocs with better
16402 code size estimation.
16404 2003-05-08 Dietmar Maurer <dietmar@ximian.com>
16406 * mini.c (mono_jit_create_remoting_trampoline): make it work with
16407 abstract methods (fix bug 42542)
16409 * aot.c: add ability to handle array types
16411 2003-05-08 Zoltan Varga <vargaz@freemail.hu>
16413 * mini.c: Call the _specific versions of the object allocation
16414 functions if possible.
16416 Tue May 6 17:18:33 CEST 2003 Paolo Molaro <lupus@ximian.com>
16418 * driver.c: call setlocale ().
16420 Tue May 6 14:38:22 CEST 2003 Paolo Molaro <lupus@ximian.com>
16422 * mini.h, mini.c, aot.c, debug-mini.c, exceptions.c: build fixes for
16425 2003-05-05 Dietmar Maurer <dietmar@ximian.com>
16427 * mini.c (optimize_branches): dont touch code inside exception clauses (fix bug 38136)
16429 * exceptions-x86.c (ves_icall_get_frame_info): also skip remoting
16430 wrappers (fix bug 42122)
16432 2003-05-04 Martin Baulig <martin@ximian.com>
16434 * mini.h (mono_jit_init, mono_jit_cleanup): Added prototypes.
16436 * driver.c: s/MONO_OPT_SAHRED/MONO_OPT_SHARED/g.
16437 s/mini_set_defaults/mono_set_defaults/g.
16439 2003-05-04 Martin Baulig <martin@ximian.com>
16441 * driver.c: s/mini_parse_default_optimizations/mono_parse_default_optimizations/g.
16443 Sun May 4 11:48:08 CEST 2003 Paolo Molaro <lupus@ximian.com>
16445 * inssel-long32.brg: add missing lreg: OP_LCONV_TO_U8 (lreg) rule
16446 (reported by Don Roberts).
16448 Fri May 2 18:36:45 CEST 2003 Paolo Molaro <lupus@ximian.com>
16450 * mini.c: temporarily work around two bugs for this release.
16452 Fri May 2 17:37:29 CEST 2003 Paolo Molaro <lupus@ximian.com>
16454 * Makefile.am: avoid linking libmono with GMODULE_LIBS, because
16455 that contains -export-dynamic and it makes using the ld script
16457 * mini.h, main.c, driver.c: s/mini_main/mono_main/g.
16459 Fri May 2 12:52:32 CEST 2003 Paolo Molaro <lupus@ximian.com>
16461 * mini.h, mini-x86.c, driver.c: disable optimizations not available on a
16464 Thu May 1 15:28:21 CEST 2003 Paolo Molaro <lupus@ximian.com>
16466 * mini.c: make sure leave calls all the needed finally blocks,
16467 even when the target jumps out of multiple exception clauses.
16469 Thu May 1 15:18:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
16471 * ldscript, Makefile.am: add linker script to reduce the number of
16472 exported symbols (should also fix the issues with libwine defining
16473 some of the same symbols in io-layer).
16475 2003-05-01 Zoltan Varga <vargaz@freemail.hu>
16477 * driver.c (mini_main): Avoid assertion when no file name is given on
16480 Wed Apr 30 15:33:11 CEST 2003 Paolo Molaro <lupus@ximian.com>
16482 * driver.c: added --version/-V command line option.
16483 Added the inline optimization in the regression tests.
16485 Wed Apr 30 15:16:02 CEST 2003 Paolo Molaro <lupus@ximian.com>
16487 * mini.c, basic-calls.cs: when inlining, save arguments to locals according
16488 to the type in the method signature (fixes bug#42134).
16490 Wed Apr 30 12:38:44 CEST 2003 Paolo Molaro <lupus@ximian.com>
16492 * mini.c: when inlining, check this is not null only when needed (bug #42135).
16494 Wed Apr 30 11:44:36 CEST 2003 Paolo Molaro <lupus@ximian.com>
16496 * mini-ppc.h, tramp-pcc.c: type fixes from Max Horn <max@quendi.de>.
16498 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16500 * driver.c: fixed bug #42100.
16502 2003-04-29 Dietmar Maurer <dietmar@ximian.com>
16504 * mini.c (mono_method_to_ir): UNBOX need to CAST objects first
16506 Mon Apr 28 17:03:14 CEST 2003 Paolo Molaro <lupus@ximian.com>
16508 * mini.c: moved most of the code required to do inlining to its own
16509 function so it can be reused. Inline also ctors if appropriate.
16511 2003-04-28 Zoltan Varga <vargaz@freemail.hu>
16513 * Makefile.am: Link with -export-dynamic so shared libs loaded by
16514 the runtime can call mono API functions.
16516 2003-04-27 Martin Baulig <martin@ximian.com>
16518 * debug-mini.c (mono_debug_init_method): Added
16519 `guint32 breakpoint_id' argument; if the method has a breakpoint,
16520 send a notification to the debugger.
16522 * mini.c (mono_method_to_ir): Don't insert a breakpoint if we're
16523 running in the Mono Debugger, just pass the breakpoint number to
16524 mono_debug_init_method().
16526 * tramp-x86.c, tramp-ppc.c: Removed the breakpoint trampolines.
16528 Sun Apr 27 13:18:04 CEST 2003 Paolo Molaro <lupus@ximian.com>
16530 * mini.c: allow some more unsafe compares.
16532 Sat Apr 26 11:55:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
16534 * mini-x86.c, Makefile.am: make distcheck works (partially from
16535 a patch by Richard Lee <r.h.lee@attbi.com>).
16536 * regset.c, regset.h: removed, they are unused.
16538 2003-04-25 Dick Porter <dick@ximian.com>
16540 * driver.c: Usage reports the name as 'mono' not 'mini'
16541 * exceptions-x86.c: Build and run on freebsd
16543 Thu Apr 24 17:09:03 CEST 2003 Paolo Molaro <lupus@ximian.com>
16545 * Makefile.am: install the program with the 'mono' name and
16546 the library as libmono instead of mini and libmini.
16548 Thu Apr 24 17:08:07 CEST 2003 Paolo Molaro <lupus@ximian.com>
16550 * driver.c: provide the APIs for the embedding interface of the old jit.
16552 2003-04-23 Dietmar Maurer <dietmar@ximian.com>
16554 * jit-icalls.c (helper_stelem_ref): impl. (fix bug 41775)
16556 2003-04-23 Martin Baulig <martin@ximian.com>
16558 * tramp-x86.c, tramp-ppc.c: Reenable the debugger breakpoint interface.
16560 * driver.c: Added `--debug' command line argument to enable
16563 2003-04-23 Martin Baulig <martin@ximian.com>
16565 * debug.[ch]: Removed. The code is now in
16566 ../metadata/mono-debug.[ch] and mono-debug-debugger.[ch].
16568 * debug-stabs.c, debug-dwarf2.c: Removed; nobody used this for the
16571 2003-04-22 Dietmar Maurer <dietmar@ximian.com>
16573 * mini.c (mono_method_to_ir): set the cil_code address (fix bug 41525)
16575 2003-04-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
16578 (mini_cleanup): moved mono_runtime_cleanup call after the call to
16579 mono_domain_finalize.
16580 (mini_method_compile): use mono_method_profile* if the the option is
16583 2003-04-17 Zoltan Varga <vargaz@freemail.hu>
16585 * tramp-x86.c (mono_arch_create_jit_trampoline): Subsitute synchronized
16586 methods with their wrapper.
16588 * tramp-ppc.c (mono_arch_create_jit_trampoline): Subsitute synchronized
16589 methods with their wrapper.
16591 * jit-icalls.c (mono_ldvirtfn): Subsitute synchronized methods with
16594 * mini.c (mono_method_to_ir): Subsitute synchronized methods with their
16597 * mini.c (mono_method_check_inlining): Avoid inlining synchronized
16600 2003-04-17 Dietmar Maurer <dietmar@ximian.com>
16602 * exceptions-x86.c (mono_arch_handle_exception): fix for bug 36252
16604 2003-04-16 Dietmar Maurer <dietmar@ximian.com>
16606 * mini.c (mono_compile_create_var): use g_malloc/g_realloc instead
16607 of the mempool. This is slightly faster and uses less memory
16609 Wed Apr 16 12:53:10 CEST 2003 Paolo Molaro <lupus@ximian.com>
16611 * mini.c: avoid O(n) allocation for variables.
16613 Tue Apr 15 19:13:41 CEST 2003 Paolo Molaro <lupus@ximian.com>
16615 * mini.c: handle items on the stack after inlining methods.
16617 Tue Apr 15 14:17:57 CEST 2003 Paolo Molaro <lupus@ximian.com>
16619 * mini.c: make the method->opcode optimization dependent
16620 on MONO_OPT_INSTRINS and do it lazily.
16622 Tue Apr 15 14:15:39 CEST 2003 Paolo Molaro <lupus@ximian.com>
16624 * driver.c: print overall results at the end of regression run.
16626 Tue Apr 15 11:18:46 CEST 2003 Paolo Molaro <lupus@ximian.com>
16628 * inssel.brg: don't overwrite symbolic registers.
16630 Mon Apr 14 17:41:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
16632 * inssel-x86.brg: fix conversion from long to float.
16634 2003-04-11 Dietmar Maurer <dietmar@ximian.com>
16636 * mini.c (mini_init): use an opcode for get_Chars (OP_GETCHR)
16638 2003-04-10 Zoltan Varga <vargaz@freemail.hu>
16640 * mini.c (mono_type_blittable): MONO_TYPE_OBJECT is blittable.
16642 * driver.c: Added --print-vtable option as in the old JIT.
16644 Thu Apr 10 17:43:49 CEST 2003 Paolo Molaro <lupus@ximian.com>
16646 * inssel-long32.brg, exceptions.cs: fix conversions from long, too.
16648 Thu Apr 10 16:27:43 CEST 2003 Paolo Molaro <lupus@ximian.com>
16650 * inssel.brg, basic.cs: fixed checked conversions to byte and short.
16652 2003-04-09 Zoltan Varga <vargaz@freemail.hu>
16654 * mini.c regalloc.c regalloc.h: Fix memory leak.
16656 2003-04-09 Dietmar Maurer <dietmar@ximian.com>
16658 * aot.c (mono_aot_get_method): register all used strings
16660 Wed Apr 9 15:22:18 CEST 2003 Paolo Molaro <lupus@ximian.com>
16662 * mini.c: always intern strings references with ldstr at compile time.
16664 Tue Apr 8 11:41:26 CEST 2003 Paolo Molaro <lupus@ximian.com>
16666 * Makefile.am: add BUILT_SOURCES.
16668 Mon Apr 7 16:31:34 CEST 2003 Paolo Molaro <lupus@ximian.com>
16670 * driver.c: give a better error message when the assembly to execute
16671 doesn't have an entry point.
16673 2003-04-07 Dietmar Maurer <dietmar@ximian.com>
16675 * Makefile.am: added hack for automake
16677 * mono/mini/mini.c (mono_save_args): always copy arguments to keep
16680 * mono/mini/ssa.c (mono_ssa_avoid_copies): don't optimize calls
16682 22003-04-07 Martin Baulig <martin@ximian.com>
16684 * Makefile.am: Added Makefile.am.
16686 * debugger-main.c: Removed, this is now in the debugger where it
16689 * mini.pc.in: Call this package `mini' for the moment.