Compare commits

..
Author SHA1 Message Date
Zoltan Varga db39bf4937 2008-07-22 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Rename the COUNT env variable to
	MONO_COUNT.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108449
2008-07-22 10:28:37 +00:00
Zoltan Varga e69505ce7e Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=108396
2008-07-21 18:04:28 +00:00
Zoltan Varga dbcd6bfaab 2008-07-21 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_load_intf_bit_reg_class): Fix the aot case.

	* debug-mini.c (mono_debug_close_method): Use cfg->locals/args instead of
	indexing into the varinfo array.
	(write_variable): Handle dead variables more gracefully.

	* method-to-ir.c (UNVERIFIED): Sync with the version in mini.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108395
2008-07-21 17:58:37 +00:00
Zoltan Varga f5c7674018 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=108368
2008-07-21 16:13:16 +00:00
Zoltan Varga 8d5b97e1c8 2008-07-21 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge all the remaining mini.c changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108345
2008-07-21 14:21:07 +00:00
Zoltan Varga 88eaa3b38d 2008-07-16 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Merge ldtoken sharing changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108083
2008-07-16 19:34:29 +00:00
Zoltan Varga 6e15e7cc94 2008-07-16 Zoltan Varga <[email protected]>
* mini.c method-to-ir.c mini-amd64.c: More generic sharing updates.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108082
2008-07-16 19:19:29 +00:00
Zoltan Varga 851b6d558e 2008-07-16 Zoltan Varga <[email protected]>
* mini.c jit-icalls.h jit-icalls.c: Move mono_object_castclass () to
	jit-icalls.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108049
2008-07-16 15:45:46 +00:00
Zoltan Varga d65ffcd876 2008-07-16 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge unbox sharing changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=108026
2008-07-16 13:16:05 +00:00
Zoltan Varga db8f861d24 2008-07-15 Zoltan Varga <[email protected]>
* method-to-ir.c (emit_get_rgctx): Fix some FIXMEs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=107938
2008-07-15 10:25:27 +00:00
Zoltan Varga 1d23cf4603 2008-07-14 Zoltan Varga <[email protected]>
* method-to-ir.c: Clean up the get_runtime_generic_context functions a bit:
	rename them to emit_get_rgctx_..., reduce number of parameters, pass the
	important parameters last.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=107912
2008-07-14 21:58:26 +00:00
Zoltan Varga 9fe8127292 Merge some of the generic sharing changes.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=107909
2008-07-14 21:31:01 +00:00
Zoltan Varga fb276e9c81 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=107904
2008-07-14 20:41:06 +00:00
Zoltan Varga 2829e1c9c3 2008-06-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Handle cases when ldfld is called with
	a vtype on the stack, instead of an address.

	* iltests.il.in (HAS_VALUE): Add a test.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=106684
2008-06-26 20:56:11 +00:00
Zoltan Varga bd6b57c749 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=106677
2008-06-26 20:02:54 +00:00
Zoltan Varga a0839a37b6 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=105508
2008-06-10 22:26:43 +00:00
Zoltan Varga c93c6dcb39 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=104647
2008-06-02 10:26:15 +00:00
Zoltan Varga b01cdd4f72 2008-05-30 Zoltan Varga <[email protected]>
* ir-emit.h (NEW_VARLOADA): Mark the component vars of a long var INDIRECT
	as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=104520
2008-05-30 13:55:07 +00:00
Zoltan Varga b937cc95bb 2008-05-30 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Fix some issues related to fixed sreg2
	allocation.

	* Makefile.am: Don't run bench.exe on make check, it takes too much time.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=104514
2008-05-30 13:38:36 +00:00
Zoltan Varga 324255795e 2008-05-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Merge more generic sharing changes missed
	earlier.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=103805
2008-05-22 16:33:31 +00:00
Zoltan Varga 36963777d7 2008-05-19 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Remove non-vtype restriction for
	generic sharing of NEWARR.

	* mini.c (mini_method_compile): Use cfg->args [0] for accessing the this 
	argument.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=103434
2008-05-18 23:33:42 +00:00
Zoltan Varga 372fcb7b55 2008-05-19 Zoltan Varga <[email protected]>
* mini.h (get_vreg_to_inst): Use braces around the argument.

	* method-to-ir.c: Check unverifiable status after calls to handle_stack_args ().
	Update FIXMEs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=103433
2008-05-18 23:08:39 +00:00
Zoltan Varga 4213167b49 2008-05-19 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge --debug=casts support.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=103431
2008-05-18 22:50:22 +00:00
Zoltan Varga 33d387f065 2008-05-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Merge generic sharing changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=103428
2008-05-18 21:11:00 +00:00
Zoltan Varga bd2a5787a7 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=103425
2008-05-18 19:11:50 +00:00
Zoltan Varga 8ef2943e88 2008-05-07 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Optimize ldobj+stobj pairs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=102739
2008-05-07 16:30:22 +00:00
Zoltan Varga dc8de752d2 2008-04-17 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Remove some restrictions which are not
	 needed.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100957
2008-04-16 23:26:04 +00:00
Zoltan Varga 5d8cd8a1e8 2008-04-14 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Free the hreg of a dreg even if the
	dreg is alive since the branches inside bblocks problem doesn't exist on
	the linear IR branch.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100634
2008-04-14 12:16:03 +00:00
Zoltan Varga 20941b9e22 2008-04-14 Zoltan Varga <[email protected]>
* branch-opts.c (mono_if_conversion): Re-run the if conversion on merged blocks
	too. Rerun local optimizations if there was an if-conversion.

	* local-propagation.c (mono_local_deadce): Use MONO_INS_HAS_NO_SIDE_EFFECT.

	* mini.h (MONO_INS_HAS_NO_SIDE_EFFECT): Moved here from branch-opts.c, renamed from
	INS_HAS_NO_SIDE_EFFECT, added more instructions.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100615
2008-04-14 00:35:10 +00:00
Zoltan Varga 549e9e15d2 2008-04-14 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Eliminate OP_IADD_IMM/OP_ISUB_IMM
	as well.
	(mono_local_cprop2): Allow further iterations after a constant fold. Also
	special case ISUB/IADD pairs.

	* mini-codegen.c (mono_local_regalloc): If CLOB is '1', try to allocate
	sreg1 to the same hreg as dreg, to avoid a copy later.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100614
2008-04-13 23:52:43 +00:00
Zoltan Varga f850c091e9 2008-04-13 Zoltan Varga <[email protected]>
* method-to-ir.c (type_from_op): Set ins->klass if ins->type is STACK_MP.
	(mono_spill_global_vars): Handle soft float.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100584
2008-04-13 18:45:55 +00:00
Zoltan Varga 265e667831 2008-04-13 Zoltan Varga <[email protected]>
* mini-arm.c (mono_arch_emit_call): Fix passing of r4 arguments on the stack in
	the soft float case.

	* mini.c (mono_op_imm_to_op): Use OP_IADD/OP_LADD instead of OP_PADD since the
	later is mapped to CEE_ADD.

	* method-to-ir.c (mono_handle_soft_float): Fix a typo.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100552
2008-04-13 13:20:23 +00:00
Zoltan Varga cf8e05c0a0 2008-04-11 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Set cfg->opt by disabling SSAPRE instead of
	enabling everything.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100465
2008-04-11 18:56:16 +00:00
Zoltan Varga fe5e127c24 2008-04-11 Zoltan Varga <[email protected]>
* mini-ppc.c (NEW_INS): Use mono_bblock_insert_after_ins ().

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100462
2008-04-11 18:38:30 +00:00
Paolo Molaro 069f0ce2c5 Fri Apr 11 18:44:31 CEST 2008 Paolo Molaro <[email protected]>
* cpu-ppc.md, mini-ppc.c, mini-ppc.h, mini.h, decompose.c: first cut
	of powerpc port.


svn path=/branches/vargaz/mini-linear-il/mono/; revision=100454
2008-04-11 16:45:47 +00:00
Zoltan Varga a38a9a8d66 2008-04-11 Zoltan Varga <[email protected]>
* mini-arm.c (NEW_INS): Fix this after the ins_list changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100440
2008-04-11 15:20:37 +00:00
Zoltan Varga e3c5aabf6c 2008-04-11 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove a FIXME, we are now faster on scimark as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100430
2008-04-11 13:12:16 +00:00
Zoltan Varga c2e8cce063 2008-04-11 Zoltan Varga <[email protected]>
* mini-amd64.h (MONO_ARCH_EMIT_BOUNDS_CHECK): Add MONO_ARCH_EMIT_BOUNDS_CHECK
	definition which somehow got missing.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100429
2008-04-11 13:08:12 +00:00
Zoltan Varga fff996aae3 2008-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c (MONO_ARCH_EMIT_BOUNDS_CHECK): Move the arch-specific definitions
	to mini-amd64.h/mini-x86.h.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=100024
2008-04-07 15:48:09 +00:00
Zoltan Varga 3df8dbd498 2008-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c: Add a FIXME.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99988
2008-04-06 23:14:43 +00:00
Zoltan Varga 7794268a51 2008-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c: Move the branch+bblock macros to ir-emit.h as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99987
2008-04-06 23:02:43 +00:00
Zoltan Varga e32f635d7f 2008-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c: Split up this now giant file a bit: Move the instruction 
	emission macros to ir-emit.h, and the various decompose functions to 
	decompose.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99986
2008-04-06 22:52:56 +00:00
Zoltan Varga e8fbd6100c 2008-04-05 Zoltan Varga <[email protected]>
* local-propagation.c: Move the if-conversion pass to branch-opts.c where it belongs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99902
2008-04-05 10:35:42 +00:00
Zoltan Varga b5996d4d56 2008-04-05 Zoltan Varga <[email protected]>
* mini.c: Enable MONO_OPT_SSA if abcrem or ssapre is enabled, so code only needs to
	check whenever SSA is enabled.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99901
2008-04-05 10:33:02 +00:00
Zoltan Varga ab05d88d85 2008-04-02 Zoltan Varga <[email protected]>
* local-propagation.c (mono_branch_to_cmov): Rename this to mono_if_conversion ().

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99695
2008-04-02 21:41:56 +00:00
Zoltan Varga 64f8723ff7 2008-04-02 Zoltan Varga <[email protected]>
* mini.h mini.c method-to-ir.c: Rename cfg->disable_extended_bblocks to 
	cfg->enable_extended_bblocks. Add some comments as to why it is currently 
	disabled.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99692
2008-04-02 21:23:46 +00:00
Zoltan Varga 1b47579f1f 2008-04-01 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Make the component vregs of a long
	vreg volatile if the IR also uses the original vreg.

	* mini.c (mono_compile_create_var_for_vreg): Only make the component vregs of
	a long vreg volatile if it is needed by optimizations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99574
2008-04-01 20:15:05 +00:00
Zoltan Varga c667560e5e 2008-04-01 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_inst_for_method): Add support for Min/Max.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99567
2008-04-01 19:39:03 +00:00
Zoltan Varga dda1fa727c 2008-04-01 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop2): Avoid copy propagation if it would
	make it impossible to use reverse copy propagation later.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99566
2008-04-01 19:38:15 +00:00
Zoltan Varga 25c754f99d 2008-04-01 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop2): Make def_index a gint32, so the
	def_index checks actually work. Also, disable copy propagation for floats.

	* method-to-ir.c (mono_spill_global_vars): Avoid using a previous lvreg for the
	destination, since this makes little sense, and it makes the liveness interval of
	the lvreg longer, leading to worse generated code.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99559
2008-04-01 18:36:04 +00:00
Zoltan Varga c6be527773 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=99550
2008-04-01 17:08:37 +00:00
Zoltan Varga 2971a77ea3 2008-04-01 Zoltan Varga <[email protected]>
* mini-s390.c (add_stackParm): Increase sz->stack_size.
	(mono_arch_allocate_vars): Handle vtype addresses passed on the stack.
	(mono_arch_output_basic_block): Fix OP_ADDCC.
	(mono_arch_decompose_long_opts): Remove OP_LADD, the generic code works for that
	too.

	* object.cs: Add tests for passing a vtype addr on the stack on s390.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99539
2008-04-01 16:05:34 +00:00
Zoltan Varga a18944c912 2008-04-01 Zoltan Varga <[email protected]>
* mini-s390.c (mono_arch_output_basic_block): Fix OP_ICONV_TO_I1/I2.

	* basic.cs: Add new tests.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99484
2008-03-31 22:40:22 +00:00
Zoltan Varga d5db38f930 2008-03-31 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_inst_for_method): Use LEA in the get_Chars 
	implementation.

	* mini-amd64.c (mono_arch_output_basic_block): Avoid a rex prefix in
	LOADU1/LOADU2_MEMBASE.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99432
2008-03-31 16:06:53 +00:00
Zoltan Varga 47ee6f6b0d 2008-03-31 Zoltan Varga <[email protected]>
* mini-s390.c (mono_arch_emit_call): Fix a problem when passing a vtype address 
	on the stack.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99421
2008-03-31 13:41:15 +00:00
Zoltan Varga d446baf6df 2008-03-31 Zoltan Varga <[email protected]>
* mini-s390.c (mono_arch_output_basic_block): Fix SUBCC implementation.
	(mono_arch_decompose_long_opts): Remove LSUB, the generic code works on s390 too.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99417
2008-03-31 12:36:04 +00:00
Zoltan Varga 147e8a0e8f 2008-03-30 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Add asserts for some situations which are
	not yet handled.

	* cpu-s390.md: Remove clob:1 from some opcodes where it is not needed to avoid
	tripping up the local register allocator.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99348
2008-03-30 16:29:26 +00:00
Zoltan Varga f0be15f518 2008-03-30 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Handle OP_LCONV_TO_OVF_U8_UN.

	* mini.c (mono_decompose_op_imm): Set bb->max_vreg.

	* mini-s390.c: Fix build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99316
2008-03-30 10:21:04 +00:00
Zoltan Varga 590f425785 2008-03-29 Zoltan Varga <[email protected]>
* mini-s390.c: Fix build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99308
2008-03-29 21:19:31 +00:00
Zoltan Varga 53767b2294 2008-03-29 Zoltan Varga <[email protected]>
* mini-s390x.c (mono_arch_allocate_vars): Fix vararg calls which return a 
	vtype.

	* cpu-s390x.md: Avoid clob:1 on some opcodes, since mono_arch_output_basic_block
	already handles them.

	* mini-s390.c (get_call_info): Fix passing of small float/double structures.
	
	* mini-s390x.c (get_call_info): Fix passing of small float/double structures.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99305
2008-03-29 19:22:01 +00:00
Zoltan Varga cbfd23cf41 2008-03-29 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Add sign extension to the SWITCH 
	implementation just as in inssel.brg.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99292
2008-03-29 16:23:29 +00:00
Zoltan Varga a402181ea7 2008-03-29 Zoltan Varga <[email protected]>
* cpu-s390x.md mini-s390x.c: Add int_conv_to_r_un.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99270
2008-03-29 05:06:49 +00:00
Zoltan Varga 68e9866d6c 2008-03-28 Zoltan Varga <[email protected]>
* inssel-s390x.brg cpu-s390x.md mini-s390x.h mini-s390x.c: Finish S390 port.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99229
2008-03-28 18:00:59 +00:00
Zoltan Varga 31f07bcf5f 2008-03-28 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Print a different message when a shared method is
	compiled.

	* mini-s390.c (emit_load_volatile_registers): Fix a merge problem.

	* method-to-ir.c (mono_method_to_ir2): Fix build on platforms without
	MONO_ARCH_VTABLE_REG defined.

	* cpu-s390x.md mini-s390x.h mini-s390x.c: Implement long/float/call support.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99185
2008-03-28 11:36:39 +00:00
Zoltan Varga 551e4073dd 2008-03-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Fix generic sharing support in ldtoken.

	* gshared.cs: Add new tests.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99043
2008-03-26 17:22:40 +00:00
Zoltan Varga c8ea79a789 2008-03-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Ongoing generic sharing work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=99000
2008-03-26 00:17:26 +00:00
Zoltan Varga c29ddc5aea 2008-03-25 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Implement generic sharing of NEWOBJ and
	LDTOKEN.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98992
2008-03-25 20:12:32 +00:00
Zoltan Varga 83e83befee 2008-03-25 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Simplify the newobj vtype code a bit.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98989
2008-03-25 19:20:23 +00:00
Zoltan Varga d80a88ab66 2008-03-25 Zoltan Varga <[email protected]>
* method-to-ir.c: Disable generic sharing for most opcodes to avoid running into
	not-implemented parts.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98986
2008-03-25 18:52:25 +00:00
Zoltan Varga 952d650bd9 2008-03-25 Zoltan Varga <[email protected]>
* method-to-ir.c: Port some of the generic sharing changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98977
2008-03-25 16:06:08 +00:00
Zoltan Varga a4f96fc6d0 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=98948
2008-03-25 09:23:50 +00:00
Zoltan Varga 28279efc6c 2008-03-25 Zoltan Varga <[email protected]>
* mini-amd64.c (add_valuetype): Fix handling of vtypes in the managed case.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98939
2008-03-25 07:37:11 +00:00
Zoltan Varga d046baba56 2008-03-24 Zoltan Varga <[email protected]>
* method-to-ir.c (NEW_I8CONST): Set ins->type.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98923
2008-03-24 21:43:28 +00:00
Zoltan Varga 60eb63cb61 2008-03-24 Zoltan Varga <[email protected]>
* cpu-amd64.md (lcompare_imm): Move the _membase_imm opcodes to one place.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98916
2008-03-24 21:07:29 +00:00
Zoltan Varga f4493b5cb9 2008-03-24 Zoltan Varga <[email protected]>
* method-to-ir.c (op_to_op_src1_membase): Disable OP_X86_COMPARE_MEMBASE8_IMM on
	amd64 as well.
	(decompose_opcode): Add some missing opcodes.

	* cpu-amd64.md: Add amd64_sub_membase_imm, fix the lengths of the load_mem 
	opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98915
2008-03-24 21:01:17 +00:00
Zoltan Varga b98f9a9770 2008-03-24 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Fix the amd64 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98905
2008-03-24 19:24:09 +00:00
Zoltan Varga bb86d1ae82 2008-03-24 Zoltan Varga <[email protected]>
* mini-<ARCH>.c (mono_arch_emit_call): Remove the unused 'is_virtual' argument.

	* mini-x86.c method-to-ir.c mini.c local-propagation.c: Fix some small bugs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98904
2008-03-24 19:22:39 +00:00
Zoltan Varga 228b794298 2008-03-24 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_call): Fix win32 and apple support.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98872
2008-03-24 14:25:27 +00:00
Zoltan Varga 993e2006bf 2008-03-24 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_decompose_long_opts): Handle OP_LCONV_TO_OVF_U and
	OP_LCONV_TO_OVF_U_UN.

	* mini-x86.c: Fix x86 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98856
2008-03-24 12:16:21 +00:00
Zoltan Varga cab239fbc1 2008-03-23 Zoltan Varga <[email protected]>
* mini-s390.c (mono_arch_emit_call): Remove some dead code.

	* mini-s390x.h mini-s390x.c cpu-s390x.md: Ongoing S390x porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98835
2008-03-23 18:41:06 +00:00
Zoltan Varga d3a68ca7da Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=98832
2008-03-23 15:58:06 +00:00
Zoltan Varga 6424a77dec 2008-03-22 Zoltan Varga <[email protected]>
* mini-s390.h mini-s390.c: Avoid using the same registers for local and global 
	reg allocation. Finish the S390 port.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98776
2008-03-21 23:59:58 +00:00
Zoltan Varga 078b428610 2008-03-21 Zoltan Varga <[email protected]>
* inssel.brg: Use MONO_INST_NEW in MONO_EMIT_NEW_ICONST () since that is called
	by the backends.

	* method-to-ir.c (mini_emit_inst_for_method): Fix an assert on 32 bit platforms.
	(mono_method_to_ir2): Fix the LDLOCA+INITOBJ optimization in case of primitive types.

	* mini-s390.c mini-ops.h cpu-s390.md: Ongoing S390 porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98773
2008-03-21 21:27:41 +00:00
Zoltan Varga f39cfca18c 2008-03-21 Zoltan Varga <[email protected]>
* abcremoval2.c (mono_perform_abc_removal2): Fix reading of invalid memory.

	* method-to-ir.c (MONO_INST_NEW): Initialize ins->type as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98760
2008-03-21 18:39:50 +00:00
Zoltan Varga c84225f927 2008-03-21 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Call an arch-specific decompose function if
	defined.
	(mono_spill_global_vars): Fix a bug when converting moves into stores.

	* mini.c (mono_op_imm_to_op): Handle LOCALLOC_IMM.

	* mini-ops.h mini-s390.h mini-s390.c cpu-s390.md: Ongoing S390 porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98749
2008-03-21 17:06:59 +00:00
Zoltan Varga c466b866be Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=98673
2008-03-20 14:44:50 +00:00
Zoltan Varga 10157d6d4f 2008-03-19 Zoltan Varga <[email protected]>
* mini-x86.c: Fix the x86 port after the ins list changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98623
2008-03-19 19:09:43 +00:00
Zoltan Varga 908338ed49 2008-03-19 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_peephole_pass_2): Remove some dead code.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98620
2008-03-19 18:47:46 +00:00
Zoltan Varga 8810665a8e 2008-03-19 Zoltan Varga <[email protected]>
* mini-s390.c (calculate_sizes): Rename this to get_call_info for consistency
	with the other architectures, add an 'mp' argument, fold 'sz' argument into the
	return value.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98619
2008-03-19 18:28:13 +00:00
Zoltan Varga f6c598d72a 2008-03-19 Zoltan Varga <[email protected]>
* mini-s390.c (mono_arch_peephole_pass_2): Fix this after the ins list changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98611
2008-03-19 18:16:17 +00:00
Zoltan Varga 876ad302da 2008-03-19 Zoltan Varga <[email protected]>
* mini.c (mono_replace_ins): Fix some issues after the ins list changes.

	* regalloc2.c: Fix compilation on non-amd64 platforms.

	* mini-s390.c: Ongoing porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98607
2008-03-19 16:56:32 +00:00
Zoltan Varga 5d5eb8da74 2008-03-19 Zoltan Varga <[email protected]>
* method-to-ir.c (MONO_EMIT_BOUNDS_CHECK): Decompose this early if abcrem is
	disabled to help some local optimizations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98599
2008-03-19 14:56:57 +00:00
Zoltan Varga 481d770f90 2008-03-19 Zoltan Varga <[email protected]>
* mini-codegen.c: Remove some dead code and add micro optimizations from HEAD.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98592
2008-03-19 13:16:11 +00:00
Zoltan Varga f516f33648 2008-03-19 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop2): Clean up the div/rem strength 
	reduction stuff.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98590
2008-03-19 12:38:18 +00:00
Zoltan Varga f648837255 2008-03-19 Zoltan Varga <[email protected]>
* *.h *.c: Transition to using prev-next pointers on MonoInst's using more user
	friendly APIs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98588
2008-03-19 12:25:00 +00:00
Zoltan Varga 319b1c1f25 2008-03-17 Zoltan Varga <[email protected]>
* mini-amd64.h mini-amd64.c: Emit the IMT argument right before the call to make
	it easier for mono_arch_find_imt_method () to find it.

	* regalloc2.c: New unified local/global register allocator implementation.

	* mini.h mini.c mini-amd64.c: Changes required by the new register allocator.

	* tests.cs: Tests for the new register allocator.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98493
2008-03-17 20:56:48 +00:00
Zoltan Varga 1cc761e82d 2008-03-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm): Handle OP_LOCALLOC as well.
	(mono_method_to_ir2): Don't convert OP_LOCALLOC to OP_LOCALLOC_IMM here, it is
	done automatically by the constant propagation pass.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98192
2008-03-13 17:50:47 +00:00
Zoltan Varga 791a25ab22 2008-03-12 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_TAILCALL.
	
	* mini.h (MonoCallInst): Add a 'tail_call' flag.

	* mini.h (MONO_IS_CALL): Consider OP_TAILCALL as well.

	* method-to-ir.c: Handle tail calls similarly to normal calls by emitting argument
	passing code in mono_arch_emit_call (). This eliminates the need to mark arguments
	as volatile and also eliminates emit_load_volatile_arguments ().

	* mini-amd64.c cpu-amd64.md: Add support for OP_TAILCALL.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=98041
2008-03-12 12:29:33 +00:00
Zoltan Varga 8756e99a2b 2008-03-08 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop2): Optimize the sext+storei1/storei2
	instruction combination.
	(mono_local_deadce): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97749
2008-03-08 12:18:14 +00:00
Zoltan Varga e29d2b0cb8 2008-03-07 Zoltan Varga <[email protected]>
* cpu-amd64.md: Add clob:1 to some float opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97708
2008-03-07 17:36:59 +00:00
Zoltan Varga 8f81bc5524 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=97685
2008-03-07 13:06:46 +00:00
Zoltan Varga df2f145eb7 2008-03-05 Zoltan Varga <[email protected]>
* mini-ops.h: Add some new s390 opcodes.

	* method-to-ir.c (mono_decompose_long_opts): Add a new arch-specific function to
	decompose some long opcodes.

	* mini-s390.h mini-s390.c cpu-s390.md: Ongoing s390 work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97418
2008-03-05 17:05:39 +00:00
Zoltan Varga deb6a69d00 2008-03-04 Zoltan Varga <[email protected]>
* mini-amd64.c mini.h mini.c: Add support for passing small valuetypes in
	registers in managed methods.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97299
2008-03-04 13:45:04 +00:00
Zoltan Varga 2198893997 2008-03-04 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Do reverse copyprop for OP_VMOVE as
	well.

	* mini-amd64.c (mono_arch_get_this_arg_reg): New arch-specific function used
	to return the index of the register holding the this argument for a call.

	* tramp-amd64.c (mono_arch_get_unbox_trampoline): Use mono_arch_get_this_arg_reg.

	* mini-amd64.c method-to-ir.c mini.c: Add support for returning small valuetypes 
	in registers in managed methods.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97286
2008-03-04 11:39:13 +00:00
Zoltan Varga 327e3d216f 2008-03-04 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Add special support for a few opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97265
2008-03-04 02:09:52 +00:00
Zoltan Varga 4bda4ad9ac 2008-03-04 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Avoid treating the inputs of
	eliminated instructions as used.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97262
2008-03-04 00:53:55 +00:00
Zoltan Varga a67ffdfcf3 2008-03-04 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Optimize the ldloca+initobj combination.

	* generics.cs: Add a test for the ldloca+initobj optimization.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97249
2008-03-03 22:32:03 +00:00
Zoltan Varga 8ea4979701 2008-03-03 Zoltan Varga <[email protected]>
* local-propagation.c (mono_branch_to_cmov): Fix checking of whenever negation
	of the condition is needed.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97222
2008-03-03 19:45:46 +00:00
Zoltan Varga e4466d9011 2008-03-02 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Avoid reverse copyprop on hard
	registers.

	* method-to-ir.c (mono_method_check_inlining): Avoid disabling inlining if the
	called methods class has no cctor.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97140
2008-03-02 18:22:40 +00:00
Zoltan Varga c392ee6831 2008-03-02 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_call): Emit most parameters in non-reverse order.
	(mono_arch_emit_prolog): Re-enable the first bblock optimization.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97137
2008-03-02 17:13:04 +00:00
Zoltan Varga 9093e4963c 2008-03-02 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Make the reverse copyprop optimization
	more generic.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=97120
2008-03-02 10:12:44 +00:00
Zoltan Varga f8fa2262b8 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=96987
2008-02-29 16:39:30 +00:00
Zoltan Varga 6bab05b864 2008-02-29 Zoltan Varga <[email protected]>
* mini-ops.h mini-s390.c inssel-s390.brg: Ongoing S390 work.

	* method-to-ir.c (mono_spill_global_vars): Fix a comment.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=96955
2008-02-29 11:56:22 +00:00
Zoltan Varga 56850a7131 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=96068
2008-02-18 16:19:48 +00:00
Zoltan Varga 236fd96e77 2008-02-16 Zoltan Varga <[email protected]>
* mini-s390.c cpu-s390.md: Ongoing s390 work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95899
2008-02-16 16:26:48 +00:00
Zoltan Varga ebe33a4f92 2008-02-15 Zoltan Varga <[email protected]>
* mini-s390.h mini-s390.c cpu-s390.md mini-ops.h: Ongoing s390 work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95758
2008-02-15 14:48:17 +00:00
Zoltan Varga aaba542d2d 2008-02-15 Zoltan Varga <[email protected]>
* exceptions-arm.c mini-arm.c cpu-arm.md: Fix arm build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95743
2008-02-15 12:16:38 +00:00
Zoltan Varga c5f77e70fa 2008-02-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_inst_for_method): Fix 64 bit issues in array access
	implementation.
	(mini_emit_ldelema_1_ins): Ditto.

	* mini-ia64.c cpu-ia64.md: Fix ia64 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95734
2008-02-15 11:52:35 +00:00
Zoltan Varga d8968fd609 2008-02-14 Zoltan Varga <[email protected]>
* cpu-sparc.md mini-sparc.c: Fix sparc build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95672
2008-02-14 17:56:04 +00:00
Zoltan Varga 046ec6ac45 2008-02-14 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_outarg_vt): Pass a reasonable alignment to
	mini_emit_memcpy2 ().

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95651
2008-02-14 17:02:44 +00:00
Zoltan Varga 729e6679af 2008-02-14 Zoltan Varga <[email protected]>
* cpu-x86.md mini-x86.c: Fix x86 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95647
2008-02-14 16:58:38 +00:00
Zoltan Varga c86794f081 2008-02-13 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_outarg_vt): Pass a reasonable alignment to
	mini_emit_memcpy2 ().

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95596
2008-02-13 20:48:27 +00:00
Zoltan Varga 8dad606832 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=95547
2008-02-12 19:29:39 +00:00
Zoltan Varga bb2d55478f 2008-02-06 Zoltan Varga <[email protected]>
* mini-s390.c cpu-s390.md: Preliminary S390 port work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95056
2008-02-06 17:56:48 +00:00
Zoltan Varga 52c1e83d9b 2008-02-06 Zoltan Varga <[email protected]>
* linear-scan.c (mono_linear_scan2): Avoid using GMAXINT32 which is not
	defined in older glib versions.

	* local-propagation.c: Add a default definition for MONO_ARCH_IS_OP_MEMBASE ()
	if not defined.

	* mini-<ARCH>.h: Remove MONO_ARCH_IS_OP_MEMBASE () definition.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=95027
2008-02-06 14:44:06 +00:00
Zoltan Varga 3d64c600c8 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=95002
2008-02-06 08:50:25 +00:00
Zoltan Varga 9bf91b4feb 2008-02-06 Zoltan Varga <[email protected]>
* mini-s390.c mini-s390x.c: Get rid of CEE_ opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94970
2008-02-05 23:05:18 +00:00
Zoltan Varga 9207376076 2008-02-06 Zoltan Varga <[email protected]>
* cpu-<ARCH>.md mini-<ARCH>.c: Get rid of the unused CEE_LDIND/STIND opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94967
2008-02-05 22:48:07 +00:00
Zoltan Varga f9dbaee0fe Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=94963
2008-02-05 21:48:54 +00:00
Zoltan Varga 76a62bb09b Merge tests missed earlier.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=94961
2008-02-05 21:41:16 +00:00
Zoltan Varga bfce304e49 2008-02-05 Zoltan Varga <[email protected]>
* cpu-<ARCH>.md mini-<ARCH>.md: Get rid of CEE_ opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94960
2008-02-05 21:40:06 +00:00
Zoltan Varga d9fe12e558 2008-02-05 Zoltan Varga <[email protected]>
* cpu-amd64.md mini-amd64.c: Remove unused opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94945
2008-02-05 20:35:35 +00:00
Zoltan Varga 10eefa8410 2008-02-05 Zoltan Varga <[email protected]>
* mini.c (mono_normalize_opcodes): New pass to get rid of CEE_ opcodes.

	* mini-amd64.c mini-amd64.c: Get rid of CEE_ opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94930
2008-02-05 19:26:45 +00:00
Zoltan Varga 68aa9c4146 2008-02-05 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix x86_mul_membase.

	* inssel.brg: Pass OP_CALL to backends instead of CEE_CALL.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94925
2008-02-05 19:10:54 +00:00
Zoltan Varga ff5bdc0608 2008-02-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Add a missing assert.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94715
2008-02-03 19:13:04 +00:00
Zoltan Varga 05f47b9cef 2008-02-03 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_prolog): Increase the prolog size.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94714
2008-02-03 19:10:47 +00:00
Zoltan Varga 00a3294c55 2008-02-03 Zoltan Varga <[email protected]>
* local-propagation.c (mono_branch_to_cmov): Fix some asserts.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94702
2008-02-03 17:33:27 +00:00
Zoltan Varga 21c4c05ded 2008-02-03 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Disable extended bblocks for now.
	(mono_replace_ins): Fix unlinking of bblocks.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94699
2008-02-03 17:03:46 +00:00
Zoltan Varga 1bfc685eac 2008-02-03 Zoltan Varga <[email protected]>
* local-propagation.c: Fix the div_imm strength reduction optimization.

	* mini-sparc.c (mono_arch_allocate_vars): Fix build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94698
2008-02-03 16:21:50 +00:00
Zoltan Varga d00c87d510 2008-02-03 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Merge the cctor call before alloc workaround
	from mini.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94694
2008-02-03 15:27:13 +00:00
Zoltan Varga d44b3b9cc5 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=94009
2008-01-26 18:42:30 +00:00
Zoltan Varga 02f3f27e5f 2008-01-26 Zoltan Varga <[email protected]>
* mini-sparc.c mini-ia64.c: Fix build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94004
2008-01-26 18:20:03 +00:00
Zoltan Varga 8d0d9f49c7 2008-01-26 Zoltan Varga <[email protected]>
* *.md: Remove op_ opcode prefixes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=94000
2008-01-26 18:12:18 +00:00
Zoltan Varga 04f50be0c5 2008-01-26 Zoltan Varga <[email protected]>
* method-to-ir.c: Implement the delegate ctor optimization.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93994
2008-01-26 16:16:10 +00:00
Zoltan Varga c1a48dc4b4 2008-01-26 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Use the mono_helper_ldstr_mscorlib opt
	in the non AOT case as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93989
2008-01-26 14:58:34 +00:00
Zoltan Varga d765ba339d 2008-01-26 Zoltan Varga <[email protected]>
* mini-amd64.c (peephole_pass): Ignore NOPs in the instruction stream.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93988
2008-01-26 14:29:39 +00:00
Zoltan Varga a44448070c 2008-01-26 Zoltan Varga <[email protected]>
* mini.h: Remove some duplicate declarations which crept in during merges.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93986
2008-01-26 13:59:39 +00:00
Zoltan Varga 58b959e8ea 2008-01-26 Zoltan Varga <[email protected]>
* mini.h mini.c method-to-ir.c: Only run the local opts pass after 
	spill_global_vars if it is useful.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93985
2008-01-26 13:52:37 +00:00
Zoltan Varga 606b6694e7 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=93839
2008-01-24 21:21:52 +00:00
Zoltan Varga 0c60df0482 2008-01-24 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove some macros which are in mini.h.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=93806
2008-01-24 15:36:36 +00:00
Zoltan Varga 517bb1122b Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=93801
2008-01-24 15:23:25 +00:00
Zoltan Varga f66359c448 Partial merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=93796
2008-01-24 14:17:46 +00:00
Zoltan Varga e04bca4458 2008-01-02 Zoltan Varga <[email protected]>
* method-to-ir.c (MONO_EMIT_NEW_BRANCH_BLOCK): Don't start a new basic block here.
	(mono_op_to_op_imm): Add OP_AMD64_ICOMPARE_MEMBASE_IMM.

	* mini.h (MonoBasicBlock): Add an 'extended' flag to mark whenever this bblock
	is extended.

	* mini.h (MonoCompile): Add a 'disable_extended_bblocks' flag.

	* mini.c (optimize_branches): Add an optimization for merging basic blocks into
	an extended basic block.

	* local-propagation.c ssa2.c mini-codegen.c: Add support for extended basic 
	blocks.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=92117
2008-01-02 16:55:59 +00:00
Zoltan Varga 40fca8ff0c 2007-12-22 Zoltan Varga <[email protected]>
* cpu-amd64.md: Fix the size of int opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91803
2007-12-22 02:07:16 +00:00
Zoltan Varga 85be7629a3 2007-12-22 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_decompose_long_opts): Fix a typo.

	* mini.c mini-ops.h inssel-long.brg inssel-long32.brg simple-mini-ops.h:
	Rename OP_LONG_SHRUN_32 to OP_LSHR_UN_32 for consistency.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91801
2007-12-22 01:58:07 +00:00
Zoltan Varga 887f84c05b 2007-12-20 Zoltan Varga <[email protected]>
* mini-amd64.c: Use OP_FMOVE instead of OP_AMD64_SET_XMMREG_R8 if possible.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91717
2007-12-20 16:35:53 +00:00
Zoltan Varga 24918e87d3 2007-12-20 Zoltan Varga <[email protected]>
* mini-amd64.c (add_outarg_reg2): Get rid of the 'arg' argument.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91669
2007-12-19 23:44:40 +00:00
Zoltan Varga 103368eca8 2007-12-19 Zoltan Varga <[email protected]>
* mini-ia64.c mini-sparc.c: Get rid of mono_arch_break (), use mono_break ()
	instead.

	* method-to-ir.c: Fix build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91663
2007-12-19 21:34:34 +00:00
Zoltan Varga 187ec8f8cc 2007-12-19 Zoltan Varga <[email protected]>
* *: Add soft-float support.

	* driver.c: Add a new debug option --break-at-bb to insert breakpoints at a
	specified bblock.

	* helpers.c: Fix disassembly on arm.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91659
2007-12-19 21:07:05 +00:00
Zoltan Varga 6c1c2cf55c 2007-12-18 Zoltan Varga <[email protected]>
* mempool.c (mono_mempool_destroy): Remove some debug cruft.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91507
2007-12-18 01:21:27 +00:00
Zoltan Varga 4261092d46 2007-12-16 Zoltan Varga <[email protected]>
* Add preliminary ARM port.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91397
2007-12-16 20:41:17 +00:00
Zoltan Varga 7555b4156c 2007-12-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Fix crashes on 32 bit systems.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91365
2007-12-15 22:14:33 +00:00
Zoltan Varga fd8196551d 2007-12-15 Zoltan Varga <[email protected]>
* method-to-ir.c (MINI_OP): Fix	breakage.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91364
2007-12-15 20:49:37 +00:00
Zoltan Varga a5d0cc42be 2007-12-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Compress the varinfo tables as
	lots of variables might be made dead by this pass.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91359
2007-12-15 19:25:28 +00:00
Zoltan Varga d52c8e9f1f 2007-12-15 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Move the check for too-large methods later.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91358
2007-12-15 19:19:09 +00:00
Zoltan Varga c7acca34e3 2007-12-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Optimize this a little.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91353
2007-12-15 16:44:48 +00:00
Zoltan Varga ffd2295671 2007-12-15 Zoltan Varga <[email protected]>
* liveness.c (mono_analyze_liveness): Reorganize this to improve data locality
	a bit.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91352
2007-12-15 14:55:08 +00:00
Zoltan Varga 01a610385f 2007-12-14 Zoltan Varga <[email protected]>
* mini.h (MonoInst): Reorder members so frequently used members come first.

	* method-to-ir.c mini.c: Add flags to MonoCompile and MonoBasicBlock so the
	decompose_array_access_opts () pass is only run when needed.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91329
2007-12-14 21:05:07 +00:00
Zoltan Varga 89da65fa10 2007-12-14 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Disable some code which slows down
	compilation too much.

	* liveness.c (mono_analyze_liveness): Disable the new liveness code as it slows
	down compilation too much.

	* mini-codegen.c (mono_regstate_assign): Remove an unnecessary memset.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91301
2007-12-14 17:32:38 +00:00
Zoltan Varga d2d097a4f4 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=91293
2007-12-14 15:32:49 +00:00
Zoltan Varga 6808cf4f0a 2007-12-14 Zoltan Varga <[email protected]>
* mini-<ARCH>.c: Add a 'src' argument to mono_arch_emit_outarg_vt () to remove
	some duplicated code.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91288
2007-12-14 14:36:35 +00:00
Zoltan Varga 565a2cd8a5 2007-12-12 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Handle OP_FCONV_TO_R8 here.

	* mini-<ARCH>.c cpu-<ARCH>.md: Remove OP_FCONV_TO_R8.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=91159
2007-12-12 15:58:47 +00:00
Zoltan Varga b40839ac01 2007-12-04 Zoltan Varga <[email protected]>
* local-propagation.c (mono_branch_to_cmov): Only run this if MONO_ARCH_HAVE_CMOV_OPTS is defined.

	* mini-amd64.h mini-x86.h: Define the cmov define.

	* mini-ops.h: Add OP_SWITCH opcode.

	* mini.h: Move the IS_JUMP_INFO defines here from mini.c.

	* ssa2.c (visit_inst): Handle OP_SWITCH.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90713
2007-12-04 21:06:53 +00:00
Zoltan Varga d39f7be3a6 2007-12-04 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm): Add more opcodes.
	
	* mini-amd64.c (mono_arch_lowering_pass): Use mono_op_to_op_imm () here.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90699
2007-12-04 17:03:08 +00:00
Zoltan Varga c3ad8125e8 2007-12-04 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_emit_call): Move some small stuff to arch independent
	code.

	* mini-sparc.c (mono_arch_emit_call): Ditto.

	* mini-amd64.c (mono_arch_emit_call): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90688
2007-12-04 16:03:40 +00:00
Zoltan Varga 984d68baf7 2007-11-29 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm): Add more opcodes.

	* mini-x86.c (mono_arch_lowering_pass): Lower some div/rem opcodes here.
	(mono_arch_output_basic_block): Remove opcodes lowered earlier.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90451
2007-11-29 18:14:16 +00:00
Zoltan Varga eb61b825f6 2007-11-28 Zoltan Varga <[email protected]>
* mini.c (mono_bblock_insert_after_ins): New helper function.

	* mini-x86.c mini-amd64.c mini-ia64.c: Use the new helper function.

	* mini-x86.c cpu-x86.md: Add cmov opcodes.

	* local-propagation.c: Add div imm optimizations from the current JIT.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90395
2007-11-28 17:43:38 +00:00
Zoltan Varga 05a2d66932 2007-11-21 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_unbox_nullable): Disable AOT here since we can't encode
	the method reference.
	(handle_box): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90096
2007-11-21 17:29:59 +00:00
Zoltan Varga 9b8d3cc5fd 2007-11-21 Zoltan Varga <[email protected]>
* local-propagation.c (mono_branch_to_cmov): Implement another form
	of branch->cmov conversion.

	* mini.c (mini_method_compile): Reorder order of optimizations a bit.

	* mini.c: Export some bblock related functions.

	* basic.cs: Add more branch->cmov tests.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90092
2007-11-21 16:52:58 +00:00
Zoltan Varga df455992b7 2007-11-21 Zoltan Varga <[email protected]>
* mini-ops.h: Add CMOV opcodes.

	* cpu-amd64.md mini-amd64.c: Implement CMOV opcodes.

	* local-propagation.c: Add a branch->conditional move transformation pass.

	* driver.c: Add CMOV to default optimizations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90057
2007-11-21 01:52:09 +00:00
Zoltan Varga a14418ee56 2007-11-20 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_IMIN,OP_IMAX,OP_LMIN,OP_LMAX opcodes.

	* mini-amd64.c: Implement cpuid function. Implement min/max intrinsics based
	on conditional moves.

	* basic-math.cs: Add min/max tests.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=90010
2007-11-20 18:44:40 +00:00
Zoltan Varga ac8f008e4f 2007-11-19 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop2): Fix detection of MONO_ARCH_USE_FPSTACK. Allow the result of a call to be copy propagated.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89912
2007-11-19 04:37:12 +00:00
Zoltan Varga 04c7025aa6 2007-11-19 Zoltan Varga <[email protected]>
* method-to-ir.c (handle_isinst): Remove unused ip argument.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89911
2007-11-19 00:28:21 +00:00
Zoltan Varga 713ea6f2b9 2007-11-18 Zoltan Varga <[email protected]>
* mini-ops.h: Add new opcode OP_NOT_NULL.

	* mini.h: Add MONO_CFG_HAS_CHECK_THIS cfg flag.

	* method-to-ir.c: Emit OP_NOT_NULL instructions in a few places. Set
	the CHECK_THIS flag when emitting OP_CHECK_THIS instructions.

	* abcremoval2.c (process_block): Eliminate needless OP_CHECK_THIS instructions.

	* cpu-<ARCH>.md mini-<ARCH>.c: Add support for OP_NOT_NULL instruction.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89902
2007-11-18 20:23:12 +00:00
Zoltan Varga 8f2279a65a 2007-11-18 Zoltan Varga <[email protected]>
* abcremoval2.c (remove_abc_from_inst): Derive relations from bounds check
	instructions in order to optimize array accesses made with the same index
	variable.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89900
2007-11-18 18:14:49 +00:00
Zoltan Varga c0327f0f50 2007-11-18 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge generic sharing changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89880
2007-11-18 01:02:03 +00:00
Zoltan Varga ef733eeed7 2007-11-18 Zoltan Varga <[email protected]>
* mini-amd64.c mini-x86.c mini-ia64.c: Remove usage of OP_ICONV_TO_I4 which is
	never passed to the back ends.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=89879
2007-11-18 00:22:09 +00:00
Zoltan Varga 29c77cd0ff Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=89864
2007-11-17 17:13:34 +00:00
Zoltan Varga ea6af8b79a Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=89824
2007-11-17 01:13:47 +00:00
Zoltan Varga 5c1f284b62 2007-09-03 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_allocate_vars): Fix sparc build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85232
2007-09-03 14:42:19 +00:00
Zoltan Varga ddfa475f63 2007-09-03 Zoltan Varga <[email protected]>
* mini.c (mono_compile_create_var_for_vreg): Handle enums whose basetype is i8.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85204
2007-09-02 22:05:58 +00:00
Zoltan Varga 970c942354 2007-09-03 Zoltan Varga <[email protected]>
* mini-x86.c cpu-x86.md: Fix x86 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85203
2007-09-02 21:38:51 +00:00
Zoltan Varga cf28984e4f 2007-09-02 Zoltan Varga <[email protected]>
* cpu-sparc.md (endfilter): Add missing src1:i argument.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85202
2007-09-02 20:53:40 +00:00
Zoltan Varga 484e2bec5c 2007-09-02 Zoltan Varga <[email protected]>
* mini-sparc.c (mono_arch_output_basic_block): Fix OP_IDIV_IMM.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85200
2007-09-02 20:04:04 +00:00
Zoltan Varga 0e60bd47c0 2007-09-01 Zoltan Varga <[email protected]>
* ssa2.c (mono_ssa_compute2): Increase the stack history size.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85177
2007-09-01 20:20:56 +00:00
Zoltan Varga 045c3aea88 2007-08-31 Zoltan Varga <[email protected]>
* method-to-ir.c: Fix the CAS functionality.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85142
2007-08-31 16:34:22 +00:00
Zoltan Varga 831ae6261e 2007-08-30 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove the can_access_ functions and use the 
	mono_method_can_access_ functions instead.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85070
2007-08-30 19:48:20 +00:00
Zoltan Varga 2bbb6155a6 2007-08-30 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge the memcpy/memset changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=85067
2007-08-30 19:10:57 +00:00
Zoltan Varga 0af8b3422d Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=85066
2007-08-30 19:03:01 +00:00
Zoltan Varga c0759cfa4a Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=81358
2007-07-04 22:41:37 +00:00
Zoltan Varga 1d6f8750e5 2007-07-04 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge r81282.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=81356
2007-07-04 21:27:09 +00:00
Zoltan Varga c2609195b3 2007-06-07 Zoltan Varga <[email protected]>
* mini-amd64.c (peephole_pass): Merge the peephole_pass () from HEAD.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78849
2007-06-07 15:19:53 +00:00
Zoltan Varga c8092bd0c2 2007-06-07 Zoltan Varga <[email protected]>
* arrays.cs: Add new regression test.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78841
2007-06-07 14:33:09 +00:00
Zoltan Varga e49ff0c74e 2007-06-07 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge r78640.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78840
2007-06-07 14:24:53 +00:00
Zoltan Varga d93412a781 2007-06-05 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove a FIXME.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78666
2007-06-05 19:33:48 +00:00
Zoltan Varga 3e97f03f46 2007-06-05 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge 77433.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78664
2007-06-05 19:07:50 +00:00
Zoltan Varga fe760be8a3 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=78653
2007-06-05 17:45:35 +00:00
Zoltan Varga 180674b76a 2007-05-31 Zoltan Varga <[email protected]>
* tramp-ia64.c (mono_arch_create_trampoline_code): Revert this.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78330
2007-05-31 13:57:02 +00:00
Zoltan Varga c1ea6216d6 2007-05-31 Zoltan Varga <[email protected]>
* tramp-ia64.c (mono_arch_create_trampoline_code): Fix ia64 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78329
2007-05-31 13:55:16 +00:00
Zoltan Varga 1a12c25791 2007-05-28 Zoltan Varga <[email protected]>
* mini.c (mini_select_instructions): Add MONO_INST_NEW in one place.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78078
2007-05-28 17:08:44 +00:00
Zoltan Varga b41410c253 2007-05-28 Zoltan Varga <[email protected]>
* mini-codegen.c: Remove unused regstate2 functions.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78072
2007-05-28 16:40:12 +00:00
Zoltan Varga 20eb9b1dfa 2007-05-28 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Fix loading of static fields of type i8.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78068
2007-05-28 15:44:03 +00:00
Zoltan Varga 7f29417833 2007-05-27 Zoltan Varga <[email protected]>
* abcremoval2.c (mono_perform_abc_removal2): Avoid using alloca.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=78013
2007-05-27 15:30:00 +00:00
Zoltan Varga f7d71dbc54 2007-05-20 Zoltan Varga <[email protected]>
* mini-amd64.c (peephole_pass_1): Handle OP_LCOMPARE_IMM as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77729
2007-05-20 19:40:01 +00:00
Zoltan Varga 781e368c6e 2007-05-19 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Fix long-shift-regalloc on amd64.
	(mono_local_regalloc): Clean up the code a bit.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77697
2007-05-19 19:51:12 +00:00
Zoltan Varga 03199d3013 2007-05-18 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Clean up int->long conversion a bit.

	* mini-amd64.c (mono_arch_output_basic_block): Clean up int->long conversion a bit.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77659
2007-05-18 17:51:05 +00:00
Zoltan Varga 4aff0a311b 2007-05-14 Zoltan Varga <[email protected]>
* method-to-ir.c: Merge r72357.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77342
2007-05-14 12:41:27 +00:00
Zoltan Varga e49e22eb09 2007-05-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Remove redundant setting of ins->cil_code.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77323
2007-05-13 16:15:34 +00:00
Zoltan Varga 1ba578b77a 2007-05-13 Zoltan Varga <[email protected]>
* method-to-ir.c: Remove some fixmes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77320
2007-05-13 16:07:40 +00:00
Zoltan Varga 0304e67009 2007-05-13 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Merge r71065 (Optimize InitArray () calls).

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77313
2007-05-13 14:54:26 +00:00
Zoltan Varga 0c63d2b3c0 2007-05-12 Zoltan Varga <[email protected]>
* mini-x86.c: Remove old definition of INST_IGNORES_CFLAGS.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77289
2007-05-12 17:44:43 +00:00
Zoltan Varga e5917b9b58 2007-05-12 Zoltan Varga <[email protected]>
* mini-x86.c: Merge apple changes missed earlier.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77288
2007-05-12 17:41:47 +00:00
Zoltan Varga 1de430b251 2007-05-12 Zoltan Varga <[email protected]>
* mini-codegen.c: Fix x86 build.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77283
2007-05-12 17:07:16 +00:00
Zoltan Varga 52891ff9ed 2007-05-10 Zoltan Varga <[email protected]>
* linear-scan.c (mono_linear_scan): Update mono_jit_stats.regvars.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77139
2007-05-10 15:22:21 +00:00
Zoltan Varga 70a9bee68d 2007-05-09 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Fix OP_ICONV_TO_I8.

	* basic-long.cs: Add new test.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77085
2007-05-09 19:20:01 +00:00
Zoltan Varga 14ca5efab7 2007-05-09 Zoltan Varga <[email protected]>
* linear-scan.c (compare_by_interval_start_pos_func): Fix here too.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77039
2007-05-09 17:03:54 +00:00
Zoltan Varga f31fc60903 2007-05-09 Zoltan Varga <[email protected]>
* mini.c (compare_by_interval_start_pos_func): Fix comparison of empty intervals.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77036
2007-05-09 16:50:46 +00:00
Zoltan Varga fb86580a94 2007-05-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_spillvar_offset): Avoid an assert here.

	* method-to-ir.c (mono_method_to_ir2): Don't print after-method-to-ir IR in inlined
	methods.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77027
2007-05-09 15:12:57 +00:00
Zoltan Varga cac7518cc3 2007-05-09 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Remove unused coalesce_pass.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=77000
2007-05-09 11:46:03 +00:00
Zoltan Varga 62c9f4d928 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=76999
2007-05-09 11:44:26 +00:00
Zoltan Varga 06cdbbfecf 2007-05-09 Zoltan Varga <[email protected]>
* method-to-ir.c (emit_stobj): Get rid of ip argument.
	(mono_emit_call_args): Ditto.
	(mono_emit_calli): Ditto.
	(mono_emit_method_call_full): Ditto.
	(mono_emit_method_call): Ditto.
	(mono_emit_native_call): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76974
2007-05-08 22:15:43 +00:00
Zoltan Varga fa52a4fa4a 2007-05-09 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Set cfg->ip while iterating through
	the IL code. Fixes debugging support.

	* mini.h (MONO_INST_NEW): Set ins->cil_code automatically using cfg->ip.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76973
2007-05-08 22:05:05 +00:00
Zoltan Varga 00935c4a4f Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=76949
2007-05-08 17:48:23 +00:00
Zoltan Varga 4a514c05b4 2007-05-07 Zoltan Varga <[email protected]>
* mini.c (mini_method_compile): Only decompose_array_access_opts in the new IR.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76876
2007-05-07 21:49:14 +00:00
Zoltan Varga be57f6b5e6 2007-05-04 Zoltan Varga <[email protected]>
* abcremoval2.c (get_relation_from_ins): Handle OP_IREM_UN as in bug #71576.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76725
2007-05-04 20:17:37 +00:00
Zoltan Varga 4cb279d5bd 2007-05-04 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_NEWARR.

	* method-to-ir.c: Decompose CEE_NEWARR after abcrem.

	* abcremoval2.c (summarize_integer_value): Handle CEE_NEWARR too.

	* abcremoval2.c (get_relations_from_previous_bb): Handle OP_ICOMPARE_IMM too.
	
	* abcremoval2.c (mono_perform_abc_removal2): Add symmetric relations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76723
2007-05-04 19:54:51 +00:00
Zoltan Varga b999b3dcf6 2007-05-04 Zoltan Varga <[email protected]>
* abcremoval2.c (mono_perform_abc_removal2): Compute variable_value_kind as in the
	original implementation.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76713
2007-05-04 16:06:20 +00:00
Zoltan Varga a4bf552b52 2007-05-02 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_LDLEN and OP_BOUNDS_CHECK.

	* method-to-ir.c: Decompose ldlen and bounds checks after abcrem in a separate
	pass.

	* abcremoval2.c: Port the abcrem pass to linear IR.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76585
2007-05-02 18:40:47 +00:00
Zoltan Varga e3b5e53232 2007-04-29 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Remove debug printf.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76468
2007-04-29 18:32:42 +00:00
Zoltan Varga bc00904dac 2007-04-29 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Fix printing of lowered opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=76467
2007-04-29 18:31:49 +00:00
Zoltan Varga c5222f9d8b Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=76260
2007-04-25 16:36:06 +00:00
Zoltan Varga 25cff7231d 2007-04-09 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_class_check_branch): New helper function.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=75537
2007-04-09 15:40:46 +00:00
Zoltan Varga b773326d0b Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=73554
2007-02-28 14:38:27 +00:00
Zoltan Varga 0806c840a0 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=73549
2007-02-28 14:09:09 +00:00
Zoltan Varga 61074d1708 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=73546
2007-02-28 14:03:54 +00:00
Zoltan Varga 1c0da4329d Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72904
2007-02-15 12:10:49 +00:00
Zoltan Varga ae63739d49 2007-02-15 Zoltan Varga <[email protected]>
* mini-x86.c (emit_load_volatile_arguments): Fix another merge problem.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=72903
2007-02-15 12:04:34 +00:00
Zoltan Varga 16a46697ed 2007-02-14 Zoltan Varga <[email protected]>
* method-to-ir.c (type_to_eval_stack_type): Fix bug introduced by merge.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=72849
2007-02-14 18:00:04 +00:00
Zoltan Varga c8c3d089ff 2007-02-14 Zoltan Varga <[email protected]>
* cpu-x86.md: Resurrect x86 support.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=72848
2007-02-14 17:52:27 +00:00
Zoltan Varga 29e77c4e06 2007-02-14 Zoltan Varga <[email protected]>
* mini-x86.c local-propagation.c mini-codegen.c: Resurrect x86 support.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=72834
2007-02-14 14:50:17 +00:00
Zoltan Varga 05efe1b3bc 2007-02-09 Zoltan Varga <[email protected]>
* method-to-ir.c (mini_emit_class_check): New helper function.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=72550
2007-02-09 17:52:46 +00:00
Zoltan Varga b58f9ed7c3 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72549
2007-02-09 17:23:03 +00:00
Zoltan Varga b1802a2da5 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72548
2007-02-09 17:22:42 +00:00
Zoltan Varga 9b92bf15c2 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72315
2007-02-05 17:46:57 +00:00
Zoltan Varga 55d23bf13b Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72311
2007-02-05 17:18:25 +00:00
Zoltan Varga 18fe3ba482 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72308
2007-02-05 17:04:53 +00:00
Zoltan Varga 6b04851f8e Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72307
2007-02-05 16:53:26 +00:00
Zoltan Varga adad70b7d0 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72306
2007-02-05 16:47:20 +00:00
Zoltan Varga cd824e97da Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72218
2007-02-03 13:17:39 +00:00
Zoltan Varga a930c3118b Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72217
2007-02-03 12:59:49 +00:00
Zoltan Varga 9b2e33f61d Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72115
2007-02-01 17:38:31 +00:00
Zoltan Varga e69749f927 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72114
2007-02-01 17:30:49 +00:00
Zoltan Varga e35102e995 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=72112
2007-02-01 17:07:15 +00:00
Zoltan Varga 8962ce85b9 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=66842
2006-10-20 18:01:56 +00:00
Zoltan Varga 7c530f8d05 2006-09-27 Zoltan Varga <[email protected]>
* method-to-ir.c: Add some new comments.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65945
2006-09-27 09:04:53 +00:00
Zoltan Varga 60afe7defb 2006-09-26 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_print_ins_index): Handle OP_LADD_IMM as well.

	* method-to-ir.c: Add a FIXME.

	* local-propagation.c: Add a new rule for optimizing op_ladd_imm + load_membase.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65922
2006-09-26 16:03:22 +00:00
Zoltan Varga 8669079ca7 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=65916
2006-09-26 12:22:02 +00:00
Zoltan Varga bc1a06afb3 2006-09-26 Zoltan Varga <[email protected]>
* mini-exceptions.c (mono_handle_exception): Special case ia64 too when determining
	whenever an exception is caught by a try block.

	* mini-ia64.c (mono_arch_allocate_vars): Fix an assert.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65908
2006-09-26 09:13:34 +00:00
Zoltan Varga b127149ecd 2006-09-26 Zoltan Varga <[email protected]>
* interlocked-2.2.cs: Fix problem with previous change.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65907
2006-09-26 09:08:05 +00:00
Zoltan Varga cc11906b28 Merge from HEAD. Fix up ia64 atomic ops.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=65906
2006-09-26 08:56:40 +00:00
Zoltan Varga a85aae1f0c 2006-09-26 Zoltan Varga <[email protected]>
* interlocked-2.2.cs: Fix long tests and add Interlocked.Exchange(long) test.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65902
2006-09-26 08:47:15 +00:00
Zoltan Varga eec8890307 2006-09-26 Zoltan Varga <[email protected]>
* method-to-ir.c mini-x86.h mini-x86.c mini-amd64.h mini-amd64.c: Move the rest of
	the Interlocked instrins creation code to mini_emit_inst_for_method () as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65900
2006-09-26 06:47:16 +00:00
Zoltan Varga 4b0d3705db 2006-09-26 Zoltan Varga <[email protected]>
* mini-amd64.c mini-amd64.c mini-x86.c mini-sparc.: Move check for OP_MEMORY_BARRIER
	from mini_emit_inst_for_method () to mini_emit_inst_for_method ().

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65898
2006-09-26 06:27:24 +00:00
Zoltan Varga bdd27a61b1 2006-09-24 Zoltan Varga <[email protected]>
* method-to-ir.c: Add a comment.

	* mini-codegen.c (mono_local_regalloc): Remove some unused variables.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65849
2006-09-24 13:00:39 +00:00
Zoltan Varga cbfcbd9fb0 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=65847
2006-09-24 12:20:48 +00:00
Zoltan Varga 1c780b4d1a 2006-09-22 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_inst_for_method): Add OP_MEMORY_BARRIER.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65810
2006-09-22 10:00:58 +00:00
Zoltan Varga 8721e312a1 2006-09-22 Zoltan Varga <[email protected]>
* *.h *.c: Unify int/fp vregs in the old JIT as well. Use this to simplify and 
	speed up the local register allocator.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65808
2006-09-22 06:38:30 +00:00
Zoltan Varga 48ca4f5393 2006-09-22 Zoltan Varga <[email protected]>
* inssel-amd64.brg (OP_OUTARG_VT): Use state->left->reg1 instead of state->left->dreg.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65807
2006-09-22 06:20:17 +00:00
Zoltan Varga 3b1f1ce903 2006-09-22 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_cprop_bb): Fix some warnings.

	* ssa2.c (mono_ssa_rename_vars2): Fix a warning.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65806
2006-09-22 05:52:41 +00:00
Zoltan Varga 0d2d623982 2006-09-21 Zoltan Varga <[email protected]>
* method-to-ir.c: Add some TODOs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65794
2006-09-21 20:06:49 +00:00
Zoltan Varga c1f22693fe 2006-09-09 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_lowering_pass): Handle OP_IDIV_UN_IMM/OP_IREM_UN_IMM as well.

	* *: Change bb->dominated to a GSList. Allocate the list items from the cfg mempool.
	
	* mini.c (replace_out_block_in_code): Handle the AOT case of jump tables as well.
	(mono_merge_basic_blocks): Ditto.

	* method-to-ir.c (mono_spill_global_vars): Get rid of an allocation.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65146
2006-09-09 11:56:20 +00:00
Zoltan Varga fb996bb222 2006-09-09 Zoltan Varga <[email protected]>
* method-to-ir.c: Avoid the op->op_imm optimization for opcodes which are emulated.

	* mini-ia64.c (mono_arch_emit_call): Port the vararg changes to ia64.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65145
2006-09-09 10:53:51 +00:00
Zoltan Varga 54cac13960 2006-09-09 Zoltan Varga <[email protected]>
* mini-sparc.c (emit_sig_cookie2): Port the vararg changes to sparc.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65144
2006-09-09 10:20:43 +00:00
Zoltan Varga b09cf46ef1 2006-09-09 Zoltan Varga <[email protected]>
* *: More rationalizing of opcodes: Get rid of the CEE_... versions of some
	opcodes, use OP_... versions everywhere.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=65138
2006-09-08 22:52:04 +00:00
Zoltan Varga ae25d9d76d Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=65123
2006-09-08 18:23:32 +00:00
Zoltan Varga 8bb5267bc1 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=64795
2006-09-03 10:06:58 +00:00
Zoltan Varga 2c1856150b Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=63680
2006-08-13 13:33:03 +00:00
Zoltan Varga 1e1b63b161 2006-06-24 Zoltan Varga <[email protected]>
* interlocked-2.2.cs: Add Interlocked.Read (long) test.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=62023
2006-06-24 19:13:53 +00:00
Zoltan Varga 19afb00c1a 2006-06-24 Zoltan Varga <[email protected]>
* mini-<ARCH>.c (mono_arch_emit_inst_for_method): Move Thread.MemoryBarrier () and
	Interlocked.Read (long) implementation to mini_emit_inst_for_emit () since it
	is the same for all platforms.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=62022
2006-06-24 19:12:45 +00:00
Zoltan Varga 68a6211030 2006-06-24 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_emit_inst_for_method): Fix Interlocked.Add.

	* mini-ops.h: Fix OP_ATOMIC_ADD_NEW_I8.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=62019
2006-06-24 17:52:06 +00:00
Zoltan Varga dc440f6392 2006-06-23 Zoltan Varga <[email protected]>
* ssa.c: Revert this to the version from HEAD since all the new code is in ssa2.c.

	* *.c: Use OP_NOP everywhere instead of CEE_NOP.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61996
2006-06-23 21:22:27 +00:00
Zoltan Varga a5542cb6af 2006-06-23 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Spill fp regs on calls even on x86.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61984
2006-06-23 17:00:01 +00:00
Zoltan Varga 4ebd599daf 2006-06-23 Zoltan Varga <[email protected]>
* mini-x86.c (mono_arch_emit_inst_for_method): Fix Interlocked.Add.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61983
2006-06-23 16:26:23 +00:00
Zoltan Varga e777f5a6cb Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=61921
2006-06-21 22:10:30 +00:00
Zoltan Varga 555b42294b 2006-06-21 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_to_op_imm): Enable div/rem -> div_imm/rem_imm conversion.

	* mini-x86.c cpu-pentium.md: Finish support for div/rem imm.

	* mini-codegen.c (mono_local_regalloc): When emitting a copy to put sreg1 in the
	proper fixed reg, update ins->sreg1 as well.

	* basic.cs: Add tests.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61918
2006-06-21 20:58:40 +00:00
Zoltan Varga 88181bc767 2006-06-19 Zoltan Varga <[email protected]>
* local-propagation.c (mono_local_deadce): Fix a typo in reverse copyprop.

	* method-to-ir.c local-propagation.c mini-x86.c cpu-pentium.md cfold.c: Add
	beginnings of support for DIV/REM_IMM opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61842
2006-06-19 14:36:02 +00:00
Zoltan Varga 8d4f0d1a9a 2006-06-15 Zoltan Varga <[email protected]>
* linear-scan.c (compare_by_interval_start_pos_func): Fix sorting of variables.

	* liveness.c (mono_analyze_liveness): Fix an assert when COUNT=0 is used.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61768
2006-06-15 19:22:10 +00:00
Zoltan Varga 416e7d3dab 2006-05-29 Zoltan Varga <[email protected]>
* mini.c local-propagation.c: Move local cprop/copyprop/deadce to local-propagation.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=61233
2006-05-29 15:05:35 +00:00
Zoltan Varga b94f833d2c Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=61214
2006-05-28 17:17:15 +00:00
Zoltan Varga 01030d3c43 2006-05-19 Zoltan Varga <[email protected]>
* linear-scan.c (mono_linear_scan2): Avoid negative 'gains'.

	* mini.h (MonoJitStats): Add a 'regvars' statistics.

	* liveness.c linear-scan.c: Improve debug output.

	* mini.c (mono_allocate_stack_slots_full2): Fix some problems with the original
	code, add comments and debug code.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60878
2006-05-19 20:17:46 +00:00
Zoltan Varga b442ebdc98 Fix merge error.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=60869
2006-05-19 15:29:58 +00:00
Zoltan Varga b7738e7af9 2006-05-19 Zoltan Varga <[email protected]>
* mini.c (mono_allocate_stack_slots_full2): A variant of the original 
	allocate_stack_slots () function using the interval based liveness information.

	* method-to-ir.c (mono_spill_global_vars): Handle dead I8/U8 variables without
	asserting.

	* mini.h (MonoJitStats): Add a new statistics 'locals_stack_size'.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60868
2006-05-19 15:28:44 +00:00
Zoltan Varga 67ead555a0 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=60842
2006-05-18 21:32:42 +00:00
Zoltan Varga 12777dc0ab 2006-05-13 Zoltan Varga <[email protected]>
* liveness.c (mono_analyze_liveness2): Make this work on 64 bit machines.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60677
2006-05-13 13:57:01 +00:00
Zoltan Varga 01ca8a9870 2006-05-13 Zoltan Varga <[email protected]>
* liveness.c (mono_analyze_liveness2): Optimize this a bit.

	* linear-scan.c: Add a variant of the linear scan allocator which operates on
	liveness intervals, not ranges.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60672
2006-05-12 23:08:53 +00:00
Zoltan Varga 8e285f653b 2006-05-10 Zoltan Varga <[email protected]>
* mini.h (MonoLiveInternal): New structure for representing liveness intervals
	by a list of liveness ranges.

	* liveness.c (mono_analyze_liveness2): A variant of the liveness computation
	algorithm which uses liveness intervals instead of just one liveness range.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60555
2006-05-10 20:36:11 +00:00
Zoltan Varga d7d8b22c24 2006-05-07 Zoltan Varga <[email protected]>
* liveness.c (optimize_initlocals): Eliminate R8CONST as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60390
2006-05-07 21:02:14 +00:00
Zoltan Varga 16aac1dcdf 2006-05-07 Zoltan Varga <[email protected]>
* liveness.c (optimize_initlocals): A new, simple optimization pass to eliminate
	some of the redundant initialization code added by 'locals init'.

	* mini-amd64.c (mono_arch_compute_omit_fp): Omit fp for vtype returns as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60389
2006-05-07 20:42:47 +00:00
Zoltan Varga 1f2264e345 2006-05-04 Zoltan Varga <[email protected]>
* mini.h (MonoCompile): Add 'cil_offset_to_bb' field.

	* mini.c method-to-ir.c ssa2.c branch-opts.c: Use an array instead of a hash
	table for storing the cil offset->bblock associations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60259
2006-05-04 13:56:09 +00:00
Zoltan Varga 4df381a138 2006-05-03 Zoltan Varga <[email protected]>
* monobitset.c: Fix mono_bitset_sub again: Use src->size instead of dest->size.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60237
2006-05-03 21:05:32 +00:00
Zoltan Varga ddf9d1e10e 2006-05-03 Zoltan Varga <[email protected]>
* mini.h *.c: Make cfg->vars an array of structures instead of pointers to 
	cut back on the number of indirections.

	* liveness.c dominators.: Use the new mono_bitset_<XXX>_fast functions.

	* mini.c (mono_local_cprop2): Allocate memory from the cfg mempool.

	* mini.c (mono_local_deadce): Allocate memory from the cfg mempool.	

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60228
2006-05-03 16:48:13 +00:00
Zoltan Varga ea9865e9f7 2006-05-03 Zoltan Varga <[email protected]>
* monobitset.h monobitset.c: Add new macros for performing copy/union operations
	with little overhead.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60223
2006-05-03 15:58:01 +00:00
Zoltan Varga aab000379e 2006-05-02 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Fix printing of instruction specs.

	* mini.c (mono_local_cprop2): Fix cprop of I8CONST on 32 bit platforms.

	* mini-ops.h: Add some missing OP_L<XXX>_IMM opcodes for consistency.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=60194
2006-05-02 20:05:18 +00:00
Zoltan Varga b9a93c9402 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=60047
2006-04-28 17:53:10 +00:00
Zoltan Varga db2154869c 2006-04-24 Zoltan Varga <[email protected]>
* mini.h *.c: Convert ins_info from an array of strings to an array of characters.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59803
2006-04-24 10:00:13 +00:00
Zoltan Varga 63039e7682 2006-04-20 Zoltan Varga <[email protected]>
* mini-sparc.c (emit_pass_vtype): Fix passing of vtype addresses on the stack.

	* objects.cs: Add test for passing vtype addresses on the stack on sparc.	

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59708
2006-04-20 19:01:25 +00:00
Zoltan Varga 846a69ca81 2006-04-20 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_check_inlining): Fix warnings.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59692
2006-04-20 12:00:46 +00:00
Zoltan Varga a38f1cb11b 2006-04-19 Zoltan Varga <[email protected]>
* mini.c (mono_local_cprop2): Allow copy propagation of OP_VMOVEs across calls.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59651
2006-04-19 16:29:28 +00:00
Zoltan Varga 3a0e532091 2006-04-19 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_check_inlining): Remove some inlining restrictions.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59649
2006-04-19 16:00:46 +00:00
Zoltan Varga 6516d02466 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=59646
2006-04-19 15:24:53 +00:00
Zoltan Varga 0e314c33e3 2006-04-18 Zoltan Varga <[email protected]>
* mini.h method-to-ir.c mini-<ARCH>.c: Put back the 'is_virtual' argument to
	mono_arch_emit_call () as it is needed on x86.

	* method-to-ir.c (mono_spill_global_vars): Reenable the lvreg optimization.

	* mini-x86.c mini-x86.h: Enable the second argument of div/rem opcodes to be
	allocated to %edx, and handle this case in the opcodes themselves.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59595
2006-04-18 15:14:55 +00:00
Zoltan Varga 630fa7a498 2006-04-18 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Disable the lvreg optimization for
	now since it leads to unsolvable situations in the local register allocator.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59590
2006-04-18 14:09:57 +00:00
Zoltan Varga f36459fbfa 2006-04-16 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_VTARG_ADDR opcode.

	* method-to-ir.c (mono_spill_global_vars): Add support for architectures where
	vtypes are passed by reference, i.e. their address is passed as a parameter.

	* mini-codegen.c (mono_local_regalloc): Clear rs->iassign[] entry for vregs clobbered
	by a call.

	* cpu-sparc.md mini-sparc.c: Sparc porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59530
2006-04-16 22:06:02 +00:00
Zoltan Varga 6ff559c27a 2006-04-16 Zoltan Varga <[email protected]>
* mini-sparc.c: Sparc porting work.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59527
2006-04-16 18:08:31 +00:00
Zoltan Varga 5a655dfc01 2006-04-16 Zoltan Varga <[email protected]>
* mini-<ARCH>.c: Rename mono_arch_call_opcode2 () to mono_arch_emit_call () and simplify its signature.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59526
2006-04-16 16:50:36 +00:00
Zoltan Varga 99ca92c254 2006-04-16 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_call_opcode2): Simplify the code a bit.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59525
2006-04-16 16:36:22 +00:00
Zoltan Varga 281a76e668 2006-04-16 Zoltan Varga <[email protected]>
* mini-ia64.c: Remove opcode_to_type () which is now in mini-codegen.c.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59524
2006-04-16 16:11:44 +00:00
Zoltan Varga 252a0ee332 2006-04-16 Zoltan Varga <[email protected]>
* mini.c (mono_compile_create_vars): Print the definitions of the arguments etc.
	when in verbose mode.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59523
2006-04-16 16:00:39 +00:00
Zoltan Varga 7b0cb8935a 2006-04-16 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_decompose_long_opts): Add LNEG implementation for sparc.

	* cpu-sparc.md mini-sparc.h mini-sparc.c: Sparc porting work.	

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59522
2006-04-16 15:17:11 +00:00
Zoltan Varga e614a0c943 2006-04-16 Zoltan Varga <[email protected]>
* cpu-sparc.md mini-sparc.c: Sparc porting work.

	* method-to-ir.c (mono_method_to_ir2): Avoid transforming long shift to shift_imm 
	if long shifts need to be emulated.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59516
2006-04-16 01:35:41 +00:00
Zoltan Varga 957beea092 2006-04-16 Zoltan Varga <[email protected]>
* mini-ops.h: Correct metadata of OP_SETFRET.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59515
2006-04-16 00:54:52 +00:00
Zoltan Varga 04961c5299 2006-04-16 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Fix handling of long vregs on 
	big-endian platforms.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59514
2006-04-16 00:23:28 +00:00
Zoltan Varga 995572c1b9 2006-04-16 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_opcode_to_type): New helper function.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59513
2006-04-15 22:48:48 +00:00
Zoltan Varga cf9807e75d 2006-04-15 Zoltan Varga <[email protected]>
* mini-ia64.c (mono_arch_allocate_vars): Fix the computation of some stack slots
	when fp is eliminated.

	* method-to-ir.c: Add a FIXME.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59511
2006-04-15 20:40:48 +00:00
Zoltan Varga 4ed7b6c20e 2006-04-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Optimize the lvreg optimization, and fix
	some small bugs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59509
2006-04-15 19:28:11 +00:00
Zoltan Varga 9ea44fb478 Beginnings of SPARC support.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=59505
2006-04-15 03:58:16 +00:00
Zoltan Varga 0fa8cdce35 2006-04-15 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Fix yet another bug in the handling of
	fixed sreg1.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59503
2006-04-15 02:27:28 +00:00
Zoltan Varga b89f112003 2006-04-15 Zoltan Varga <[email protected]>
* method-to-ir.c (MONO_EMIT_BOUNDS_CHECK): Add a correct amd64 version.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59502
2006-04-15 01:53:08 +00:00
Zoltan Varga 43858207cb 2006-04-15 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_spill_global_vars): Fix a bug in the lvreg optimization.

	* mini-ops.h cpu-amd64.md mini-amd64.c: Add some membase_reg/membase_imm opcodes.

	* method-to-ir.c (op_to_op_dest_membase): Add amd64 membase_reg/membase_imm rules.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59501
2006-04-15 01:26:00 +00:00
Zoltan Varga 3f7d977e2d 2006-04-15 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Fix a bug in the handling of fixed
	sreg1.

	* method-to-ir.c (mono_spill_global_vars): Disable the lvreg optimization for
	volatile variables.

	* mini-amd64.c (peephole_pass_1): Add sub_imm -> lea optimization.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59500
2006-04-14 23:51:58 +00:00
Zoltan Varga 8dbf4265d3 2006-04-15 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_spillvar_offset): Allocate separate spill offsets for
	fp and non-fp variables.

	* method-to-ir.c (mono_spill_global_vars): Implement an optimization to get rid of
	redundant loads and stores.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59499
2006-04-14 22:23:38 +00:00
Zoltan Varga ab98403bbc 2006-04-14 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_handle_global_vregs): Avoid the global->local vreg
	optimization if the liveness internal of the vreg contains a call.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59498
2006-04-14 20:04:34 +00:00
Zoltan Varga 495e4c57a6 2006-04-14 Zoltan Varga <[email protected]>
* liveness.c (analyze_liveness_bb): Increment ins_index by 2s so the destination 
	and the source operands of an instruction no longer have overlapping live ranges.

	* mini.c (mono_local_cprop2): Avoid treating the destbasereg argument of a store
	as a definition.

	* ssa2.c (mono_ssa_remove): Add back the coalescing optimization of the current
	JIT.

	* method-to-ir.c: Remove obsolete FIXMEs.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59497
2006-04-14 18:46:08 +00:00
Zoltan Varga efd55b0142 2006-04-12 Zoltan Varga <[email protected]>
* cfold.c (mono_constant_fold_ins2): Merge mono_constant_fold_new () into this
	function.

	* mini-x86.c (mono_arch_output_basic_block): Add some micro-optimizations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59400
2006-04-12 13:33:07 +00:00
Zoltan Varga d0a4d16d31 2006-04-11 Zoltan Varga <[email protected]>
* mini-ops.h cpu-amd64.md mini-amd64.c: Add some new reg-membase rules.
	
	* method-to-ir.c (op_to_op_src2_membase): Use the new rules.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59381
2006-04-11 21:39:39 +00:00
Zoltan Varga b0725e5ec1 2006-04-11 Zoltan Varga <[email protected]>
* mini.c method-to-ir.c mini-amd64.c mini-ia64.c mini-x86.c mini-codegen.c:
	Reduce allocations and other minor JIT performance improvements.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59379
2006-04-11 21:23:39 +00:00
Zoltan Varga dfae6cb8b2 2006-04-11 Zoltan Varga <[email protected]>
* mini-ops.h cpu-pentium.md mini-x86.c: Add some new reg-membase rules.
	
	* method-to-ir.c (op_to_op_src2_membase): Use the new rules.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59369
2006-04-11 17:27:33 +00:00
Zoltan Varga fbc585311e 2006-04-10 Zoltan Varga <[email protected]>
* mini.c (mono_local_cprop2): Fix the previous change.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59297
2006-04-10 12:59:42 +00:00
Zoltan Varga 209ff21711 2006-04-10 Zoltan Varga <[email protected]>
* mini.c (mono_local_cprop2): Enable copy propagation for floats on non-x86
	platforms.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59285
2006-04-10 02:00:01 +00:00
Zoltan Varga 3acdad7208 2006-04-10 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Relax a condition which was too strict.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59284
2006-04-10 01:58:42 +00:00
Zoltan Varga 4ce608df96 2006-04-10 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_method_to_ir2): Remove the special handling of
	ia64, do it in the arch specific code instead.

	* mini-ia64.c (mono_arch_lowering_pass): Add special handling for float_setcc
	opcodes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59278
2006-04-09 23:04:02 +00:00
Zoltan Varga 95117c9823 2006-04-10 Zoltan Varga <[email protected]>
* mini.c (move_basic_block_to_end): Handle CEE_BR as well.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59277
2006-04-09 22:24:13 +00:00
Zoltan Varga 6ecb3a6dfe 2006-04-09 Zoltan Varga <[email protected]>
* mini-ia64.h mini-ia64.c cpu-ia64.md: Port the ia64 backend to the new IR.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59275
2006-04-09 21:57:16 +00:00
Zoltan Varga 0ec234e1c5 2006-04-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_spillvar_offset): More alignment fixes.
	(mono_local_regalloc): Only do the OP_MOVE optimization if ins->dreg is a local
	hreg, not when its !global, since on ia64, there is a third category: stacked
	registers.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59274
2006-04-09 21:49:56 +00:00
Zoltan Varga 2149a25280 2006-04-09 Zoltan Varga <[email protected]>
* method-to-ir.c (mono_op_imm_to_op): New helper function.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59273
2006-04-09 21:48:16 +00:00
Zoltan Varga 9816c6e097 2006-04-09 Zoltan Varga <[email protected]>
* mini-codegen.c: Remove mono_opcode_to_stack_type which is only used by the
	ia64 backend.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59268
2006-04-09 17:26:22 +00:00
Zoltan Varga 791a6e2044 2006-04-09 Zoltan Varga <[email protected]>
* mini-ppc.c mini-arm.c: Remove NOT_IMPLEMENTED macro which is now in mini.h.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59267
2006-04-09 17:23:40 +00:00
Zoltan Varga 583a938c94 2006-04-09 Zoltan Varga <[email protected]>
* cpu-pentium.md mini-x86.c: Update x86 backend after latest changes.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59259
2006-04-09 03:13:09 +00:00
Zoltan Varga c7b80c5d97 2006-04-09 Zoltan Varga <[email protected]>
* mini-amd64.c (mono_arch_create_vars): Remove some redundant checks.
	(mono_arch_allocate_vars): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59258
2006-04-09 03:00:47 +00:00
Zoltan Varga 0eaa6ca2da 2006-04-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_opcode_to_cond): Add more opcodes.

	* mini-amd64.c (mono_arch_create_vars): Move creation of cfg->var from here...

	* mini.c (mono_compile_create_vars): To here.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59257
2006-04-09 02:38:01 +00:00
Zoltan Varga dd49e96b89 2006-04-09 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_opcode_to_cond): Add more opcodes.

	* mini-amd64.c: Use mono_opcode_to_cond to simplify the emitting of conditional
	branches.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59256
2006-04-09 02:06:38 +00:00
Zoltan Varga 462e61d3a3 2006-04-09 Zoltan Varga <[email protected]>
* mini-ops.h: Add OP_VCALL2_... opcodes.

	* mini.h (MonoCompile): Add 'vret_addr' field.

	* method-to-ir.c mini-amd64.c: Use OP_VCALL2 opcodes for the decomposed 
	valuetype calls.

	* method-to-ir.c mini-amd64.c: Make cfg->ret a 'real' variable and use the
	new 'vret_addr' variable for representing the vtype return address.

	* mini-codegen.c (mono_opcode_to_cond): New helper function, moved here from
	mini-ia64.c.

	* mini-codegen.c (mono_opcode_to_stack_type): Ditto.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59255
2006-04-09 01:38:54 +00:00
Zoltan Varga ba02c83d6a 2006-04-09 Zoltan Varga <[email protected]>
* mini-*.c: Move definition of NOT_IMPLEMENTED to mini.h.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59254
2006-04-09 01:35:23 +00:00
Zoltan Varga eb004ccc21 2006-04-08 Zoltan Varga <[email protected]>
* mini.c (mini_init): Add missing opcode emulations.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59248
2006-04-08 18:06:14 +00:00
Zoltan Varga ba49ee774c 2006-04-08 Zoltan Varga <[email protected]>
* mini.h: Add a few new opcode classification macros.
	
	* mini-codegen.c (mono_spillvar_offset): Fix alignment issues.
	(mono_print_ins_index): Fix compilation on non-x86 platforms.

	* method-to-ir.c: Add a few FIXMEs.

	* method-to-ir.c: Fix compilation on non-x86 platforms.

	* method-to-ir.c (mono_method_to_ir2): Add support for architectures where
	fceq and its friends need an fcompare.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59247
2006-04-08 18:03:24 +00:00
Zoltan Varga ed163ea7f9 2006-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Fix OP_LCONV_TO_OVF_I4_UN.

	* iltests.il: Delete a test which only worked on 32 bit machines.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59165
2006-04-07 00:14:12 +00:00
Zoltan Varga 65dad6f715 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=59161
2006-04-06 23:42:09 +00:00
Zoltan Varga f3f86debeb 2006-04-07 Zoltan Varga <[email protected]>
* ssa2.c (evaluate_ins): Fix the computation of the new variable state.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59159
2006-04-06 23:41:01 +00:00
Zoltan Varga d83f24a4f3 2006-04-07 Zoltan Varga <[email protected]>
* method-to-ir.c (decompose_opcode): Add some missing opcodes.

	* cpu-pentium.md: Add missing op_call opcode.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59154
2006-04-06 23:00:22 +00:00
Zoltan Varga 6e8b92ba33 2006-04-06 Zoltan Varga <[email protected]>
* mini.c (mono_local_deadce): Add some support for eliminating dead assignments
	to global vregs as well.

	* ssa2.c (mono_ssa_compute2): Use pruned SSA.

	* method-to-ir.c (mono_handle_global_vregs): Add ceq + store -> setcc-membase
	rules.

	* mini.c (mono_method_to_ir): Replace an OP_CALL with CEE_CALL which was missed
	earlier.

	* exceptions.cs: Add a test for the inline+throw problem.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59131
2006-04-06 17:58:49 +00:00
Zoltan Varga 27a4bde81a 2006-04-06 Zoltan Varga <[email protected]>
* mini-codegen.c (mono_local_regalloc): Don't set dreg_mask based on
	dest_dreg since the former is mandatory, while the later is not.

	* mini-codegen.c (mono_local_regalloc): Set preferred_mask with the result of
	MONO_ARCH_INST_FIXED_MASK too.

	* method-to-ir.c (mono_decompose_long_opts): Add missing long->u conversion.

	* iltests.il: Add new test for long->u conversion.

	* mini.h (MonoCompile): Add new 'ret_var_set' flag.
	
	* method-to-ir.c (inline_method): Handle the case when the inlined method
	doesn't set the return var.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=59115
2006-04-06 14:47:15 +00:00
Zoltan Varga 6d6de8f13c Revert to using CEE_CALL instead of OP_CALL in the old JIT.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=59101
2006-04-05 18:32:12 +00:00
Zoltan Varga 3bf547de0b Fix some branch optimizations. Remove reduntant printing of method names from some optimizations. Declare all new SSA variables as OP_LOCAL, since OP_ARG is ignored by optimizations.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58921
2006-04-02 20:59:27 +00:00
Zoltan Varga e444c648aa Fix a bug
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58827
2006-03-31 00:40:41 +00:00
Zoltan Varga cf75e7833c AMD64 optimizations.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58826
2006-03-31 00:21:06 +00:00
Zoltan Varga 8a6946b4f5 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58822
2006-03-30 21:31:32 +00:00
Zoltan Varga 944fbc010d Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58820
2006-03-30 21:15:17 +00:00
Zoltan Varga e60388aac2 Remove a FIXME
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58782
2006-03-30 14:33:48 +00:00
Zoltan Varga 4976c58126 General cleanup + implement SSA over valuetypes.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58780
2006-03-30 14:21:52 +00:00
Zoltan Varga 53fd5306f9 Part III of the valuetype reorganization: use vtype opcodes when passing/receiving vtypes in calls, and decompose them later. enable local copyprop/deadce for valuetypes.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58767
2006-03-29 22:56:12 +00:00
Zoltan Varga 6885553439 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58681
2006-03-28 22:10:37 +00:00
Zoltan Varga 6052ef7187 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58654
2006-03-28 14:40:27 +00:00
Zoltan Varga a4bf9168a3 Fix some bugs and FIXMEs.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58653
2006-03-28 13:36:24 +00:00
Zoltan Varga 30c510fa48 Fix some performance regression wrt the old JIT. Fix some FIXMEs.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58623
2006-03-27 22:06:13 +00:00
Zoltan Varga e3bac4d0b2 Remove some fp rules not needed by the new regalloc
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58556
2006-03-26 23:34:30 +00:00
Zoltan Varga bf9b06af8c Rewrite the handling of the fp stack within the local register allocator to
enable it to handle the code produced by the new JIT.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=58554
2006-03-26 22:59:44 +00:00
Zoltan Varga 07653b02de Cleanup the fp spill code a bit. Add OP_X86_FXCH. Fix fp stack leakage in CKFINITE
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58543
2006-03-26 13:36:20 +00:00
Zoltan Varga a5e0c55f99 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58484
2006-03-24 20:10:23 +00:00
Zoltan Varga 8419e52906 Some amd64 updates
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58481
2006-03-24 19:38:09 +00:00
Zoltan Varga ed591d9434 Merge from HEAD.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58240
2006-03-21 19:06:21 +00:00
Zoltan Varga 5801dc6493 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58230
2006-03-21 17:14:04 +00:00
Zoltan Varga a40b1ad699 More vtype fixes/optimizations && amd64 fixes.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58222
2006-03-21 15:22:37 +00:00
Zoltan Varga 227b7078d5 Small vtype optimizations.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58208
2006-03-21 00:21:41 +00:00
Zoltan Varga a9d3290aba Beginnings of vtype optimizations.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58191
2006-03-20 17:21:56 +00:00
Zoltan Varga 001c19d6ad Part 2 of the vtype reorganization: remove code which is no longer needed.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58189
2006-03-20 16:01:06 +00:00
Zoltan Varga ff13dfd58f First part of the Big Valuetype Reorganization: Make vtypes first class
entities in the IR and decompose them later in a separate pass.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=58116
2006-03-17 18:49:00 +00:00
Zoltan Varga 6ba13ff395 2006-03-15 Zoltan Varga <[email protected]>
* mini-amd64.c (peephole_pass): Use OP_LXOR instead of CEE_XOR.

	* method-to-ir.c (mono_method_to_ir2): Fix a verification error with
	mkrefany.

	* ssa2.c (mono_ssa_compute2): Optimize the lvreg_stack stuff.

svn path=/branches/vargaz/mini-linear-il/mono/; revision=58014
2006-03-15 13:47:20 +00:00
Zoltan Varga e618fc272c Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=58009
2006-03-15 12:09:24 +00:00
Zoltan Varga 7c98a03bd1 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57918
2006-03-13 22:41:40 +00:00
Zoltan Varga b24f42f144 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57787
2006-03-10 19:11:42 +00:00
Zoltan Varga 61a04dda5f Small fix
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57706
2006-03-08 19:16:18 +00:00
Zoltan Varga db5bdd0dd6 Fix some bugs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57692
2006-03-08 15:00:15 +00:00
Zoltan Varga 0b07e9c6c6 Fix some bugs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57681
2006-03-08 01:25:05 +00:00
Zoltan Varga f3b5cfcdb9 Implement long_beq/bne without branches
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57677
2006-03-07 23:15:30 +00:00
Zoltan Varga c1080fdc53 Finish SSA consprop support
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57675
2006-03-07 22:36:47 +00:00
Zoltan Varga 85d8c2db9a x86 updates
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57614
2006-03-06 15:28:57 +00:00
Zoltan Varga 31dc821a50 Preliminary SSA constant propagation support
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57602
2006-03-05 22:33:53 +00:00
Zoltan Varga f5edc77d43 Small fixes
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57601
2006-03-05 18:52:31 +00:00
Zoltan Varga 2b2975c755 More perf improvements
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57600
2006-03-05 17:54:50 +00:00
Zoltan Varga 45a37da259 Perform another set of local optimizations after SSA
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57585
2006-03-04 19:40:26 +00:00
Zoltan Varga 97eff27fc4 Small perf improvements
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57561
2006-03-03 23:52:10 +00:00
Zoltan Varga 707b46648c Optimize mempool_alloc/alloc0 a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57560
2006-03-03 23:49:30 +00:00
Zoltan Varga 4fb392ae7b Optimize floats on non-x86 platforms
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57528
2006-03-03 02:00:57 +00:00
Zoltan Varga 4034421a5f Simplify handle_global_vregs () and generalize local cprop and deadce to non-int types
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57526
2006-03-02 23:00:58 +00:00
Zoltan Varga 2abc877b89 Remove some dead code
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57524
2006-03-02 21:14:11 +00:00
Zoltan Varga 1f72b4d82a fix some FIXMEs and add support for SSA on floats
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57523
2006-03-02 21:09:54 +00:00
Zoltan Varga 4214aa6705 Fix a FIXME
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57512
2006-03-02 18:40:39 +00:00
Zoltan Varga 51feb3940f Add mono_bitset_get_fast () macro
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57500
2006-03-02 12:24:50 +00:00
Zoltan Varga 3ef00627a7 Optimize SSA construction some more + various other stuff
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57492
2006-03-02 00:05:21 +00:00
Zoltan Varga ef653fb04c Cleanup handling of CEE_SWITCH
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57471
2006-03-01 19:06:34 +00:00
Zoltan Varga 915eb474e7 Remove the compile_iterated_dfrontier2 function as it is no longer needed
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57458
2006-03-01 10:31:13 +00:00
Zoltan Varga 373821b1ec Small optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57456
2006-03-01 01:01:56 +00:00
Zoltan Varga 53f61023bd Add amd64 optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57455
2006-03-01 01:01:25 +00:00
Zoltan Varga 27b1f76522 Some minor optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57451
2006-02-28 23:25:51 +00:00
Zoltan Varga 2e24a939ed Optimize SSA construction a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57444
2006-02-28 23:02:30 +00:00
Zoltan Varga 258edeed0e Optimize some perf critical functions
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57443
2006-02-28 23:01:26 +00:00
Zoltan Varga 12ea0ba6e0 Move SSA support for the new IR into a new file ssa2.c
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57294
2006-02-25 19:52:42 +00:00
Zoltan Varga 9eaed98931 Move SSA support for the new IR into a new file ssa2.c
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57293
2006-02-25 19:52:06 +00:00
Zoltan Varga 3259b60ab6 Remove SSA restrictions
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57279
2006-02-25 15:27:06 +00:00
Zoltan Varga e1d305621a Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57276
2006-02-25 14:41:43 +00:00
Zoltan Varga 6d6453173b amd64 updates
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57269
2006-02-25 02:35:35 +00:00
Zoltan Varga 162b1c133a Store vregs inside phi nodes instead of indexes. Implement SSA deadce
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57263
2006-02-24 22:17:56 +00:00
Zoltan Varga 3a6961242d Optimize branch optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57240
2006-02-24 17:00:07 +00:00
Zoltan Varga 7f998d0fa0 Various optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57219
2006-02-23 22:14:39 +00:00
Zoltan Varga 92cdf5a2e2 Finish conversion to-and-from SSA form
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57215
2006-02-23 20:55:18 +00:00
Zoltan Varga d0eed5a776 More SSA work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57211
2006-02-23 18:17:29 +00:00
Zoltan Varga e055e6022a Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57186
2006-02-22 23:46:54 +00:00
Zoltan Varga 9d794fd553 Ongoing work. Place locals into cfg->locals
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57180
2006-02-22 22:35:54 +00:00
Zoltan Varga f370fee9cd Fix a merge problem
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57059
2006-02-19 22:44:43 +00:00
Zoltan Varga e392ac4a1a Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57057
2006-02-19 22:07:50 +00:00
Zoltan Varga 99a407b03b Use printf instead of g_print as its faster. Also speed up disassembly a bit.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57055
2006-02-19 19:37:36 +00:00
Zoltan Varga e7d434fd2e Get rid of the aliasing between the two vregs used to implement longs on 32 bit machines, and the original long vreg. Simplify vreg_to_inst () as a result
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57054
2006-02-19 18:12:49 +00:00
Zoltan Varga 17c8ec4c44 Fix a FIXME
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57024
2006-02-17 22:42:20 +00:00
Zoltan Varga ec0d52819b Fix some amd64 issues
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57021
2006-02-17 22:31:13 +00:00
Zoltan Varga 882577dc26 Partly merge vfregs and viregs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=57019
2006-02-17 21:06:43 +00:00
Zoltan Varga 13c1cce325 Add some todos
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56996
2006-02-17 17:47:36 +00:00
Zoltan Varga a550d3af3a Preliminary SSA work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56994
2006-02-17 17:44:55 +00:00
Zoltan Varga 17cf4b8d7a Lazily compile icall wrappers
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56895
2006-02-15 18:29:17 +00:00
Zoltan Varga a517aa1ff2 Add a trampoline field to MonoJitICallInfo and initi it
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56894
2006-02-15 17:59:01 +00:00
Zoltan Varga e812606938 Implement the box+brtrue optimization
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56833
2006-02-13 15:34:47 +00:00
Zoltan Varga 1e21bb2dba amd64 updates
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56783
2006-02-11 02:42:47 +00:00
Zoltan Varga 9d32028420 Merge OP_STR_CHAR_ADDR optimization
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56777
2006-02-10 21:29:39 +00:00
Zoltan Varga 950176f7c4 Merge OP_STR_CHAR_ADDR optimization
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56776
2006-02-10 20:55:13 +00:00
Zoltan Varga f8b3efbcfe Kill some FIXMEs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56773
2006-02-10 20:34:03 +00:00
Zoltan Varga 20711c0bf8 Add LOCALLOC_IMM optimization
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56765
2006-02-10 17:41:55 +00:00
Zoltan Varga 433e6b437e Kill all NOT_IMPLEMENTEDs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56761
2006-02-10 16:34:20 +00:00
Zoltan Varga a010e9b91c Clean up aot code
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56758
2006-02-10 15:24:31 +00:00
Zoltan Varga c92f81de9e Implement AOT support
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56734
2006-02-09 23:25:43 +00:00
Zoltan Varga e42bef2476 Rename generics.2.cs to generics.cs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56711
2006-02-09 15:43:40 +00:00
Zoltan Varga d24c3db73f Handle nullable types in UNBOX
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56710
2006-02-09 15:43:07 +00:00
Zoltan Varga fa951d47a5 Fix some FIXMEs and bugs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56656
2006-02-07 23:32:54 +00:00
Zoltan Varga 7affefe26e Fix a few FIXMEs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56625
2006-02-07 17:30:18 +00:00
Zoltan Varga ff24fa07b2 Add this to the branch as well
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56623
2006-02-07 16:54:21 +00:00
Zoltan Varga 12b962ecc5 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56618
2006-02-07 15:52:48 +00:00
Zoltan Varga 0350a9428a More small x86 optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56617
2006-02-07 14:56:08 +00:00
Zoltan Varga 855e02e38a Add x86 optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56615
2006-02-07 13:47:00 +00:00
Zoltan Varga 37dbbd9774 Add small amd64 optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56602
2006-02-06 23:02:43 +00:00
Zoltan Varga 092531e45a Optimize local cprop a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56574
2006-02-05 18:41:47 +00:00
Zoltan Varga a9be514615 Merge handle_local_vregs () into handle_global_vregs () so it is done earlier.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56566
2006-02-04 18:43:02 +00:00
Zoltan Varga e8cbf83e7b Add a small optimization
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56565
2006-02-04 17:45:04 +00:00
Zoltan Varga 7d9c6eb659 Remove some debugging output
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56547
2006-02-03 22:13:46 +00:00
Zoltan Varga f637e5cacb Rewrite the local deadce pass and add other optimizations
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56546
2006-02-03 22:11:38 +00:00
Zoltan Varga 904b878c73 Implement constant folding
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56543
2006-02-03 20:38:04 +00:00
Zoltan Varga cdc2720f40 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56253
2006-01-30 14:47:50 +00:00
Zoltan Varga 1b58cc0d09 Completely replace the dominator algorithms with faster ones from a paper
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56212
2006-01-29 01:01:35 +00:00
Zoltan Varga 6303fc4e92 Optimize local regalloc a bit more
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56205
2006-01-28 15:45:51 +00:00
Zoltan Varga 439c1f4dc8 Optimize amd64 generated code
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56197
2006-01-27 23:06:44 +00:00
Zoltan Varga 6c4d4ac83c Optimize compute_natural_loops
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56173
2006-01-27 17:58:19 +00:00
Zoltan Varga 62509cf04e Perform the local optimizations before ssa and its friends
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56123
2006-01-26 21:59:45 +00:00
Zoltan Varga 68340b5735 Avoid large log files when using -v -v
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56115
2006-01-26 18:33:10 +00:00
Zoltan Varga 0b11fbd50d Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56051
2006-01-25 17:42:48 +00:00
Zoltan Varga 5ce4233c8e Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56050
2006-01-25 17:29:30 +00:00
Zoltan Varga dd853d17a1 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56044
2006-01-25 14:59:28 +00:00
Zoltan Varga 2df32d8d41 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56016
2006-01-24 23:43:50 +00:00
Zoltan Varga bb1911d488 Cleanup inlining code
svn path=/branches/vargaz/mini-linear-il/mono/; revision=56012
2006-01-24 22:16:43 +00:00
Zoltan Varga d1624d62f9 Add a global->local vreg optimization and turn on inlining
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55994
2006-01-24 17:29:54 +00:00
Zoltan Varga ae02604918 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55963
2006-01-23 22:23:22 +00:00
Zoltan Varga 695a6bd995 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55961
2006-01-23 21:24:00 +00:00
Zoltan Varga 19fe2573df Optimize optimize_branches a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55955
2006-01-23 18:22:52 +00:00
Zoltan Varga 5b4bfc60a2 Get rid of NOPs during the local copyprop deadce passes
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55954
2006-01-23 17:53:22 +00:00
Zoltan Varga 5644fa9955 Optimize local regalloc a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55953
2006-01-23 17:52:31 +00:00
Zoltan Varga 899fa2669c Optimize local regalloc a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55952
2006-01-23 17:52:07 +00:00
Zoltan Varga 9737c80b42 Optimize liveness analysis
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55919
2006-01-23 00:38:15 +00:00
Zoltan Varga 85fe62e973 Optimize liveness analysis and dominator computation
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55893
2006-01-21 20:55:29 +00:00
Zoltan Varga 44f0ed5a50 Optimize monobitset a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55892
2006-01-21 20:54:42 +00:00
Zoltan Varga 1bef46492e Update the amd64 port
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55868
2006-01-21 00:33:33 +00:00
Zoltan Varga 56101869f0 Optimize this a bit more
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55867
2006-01-21 00:32:48 +00:00
Zoltan Varga e226c1a8c3 Optimize things a bit more
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55864
2006-01-20 22:45:46 +00:00
Zoltan Varga 5fdeca75f7 Get rid of usage of CEE_NOP too
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55853
2006-01-20 18:15:25 +00:00
Zoltan Varga 3743980735 Get rid of CEE_BR too
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55852
2006-01-20 17:32:19 +00:00
Zoltan Varga c1f7232151 Get rid of usage of most of the CEE_ opcodes in the IR
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55849
2006-01-20 17:18:25 +00:00
Zoltan Varga 988f9ad089 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55848
2006-01-20 17:17:25 +00:00
Zoltan Varga 7e23372a06 Optimize local deadce a bit more
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55839
2006-01-20 16:35:59 +00:00
Zoltan Varga 3d6b93833c Optimize local copyprop+deadce
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55800
2006-01-19 22:25:21 +00:00
Zoltan Varga 7e5809aba1 Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55798
2006-01-19 19:49:51 +00:00
Zoltan Varga f7cbb88ddc Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55797
2006-01-19 18:46:34 +00:00
Zoltan Varga f3f0dc371e Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55784
2006-01-19 14:55:02 +00:00
Zoltan Varga 115baa2b1d Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55763
2006-01-18 22:48:37 +00:00
Zoltan Varga d42553c15b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55759
2006-01-18 22:22:59 +00:00
Zoltan Varga 94b9a85de1 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55757
2006-01-18 21:18:15 +00:00
Zoltan Varga 631e7539e0 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55744
2006-01-18 17:45:35 +00:00
Zoltan Varga f67c64bb11 Improve copyprop && add constant propagation
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55743
2006-01-18 17:44:59 +00:00
Zoltan Varga 3f7c39c54a Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55692
2006-01-17 20:48:25 +00:00
Zoltan Varga 26fac782bf Fix some FIXMEs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55682
2006-01-17 17:14:01 +00:00
Zoltan Varga c712855c41 Implement copy propagation
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55657
2006-01-16 21:43:55 +00:00
Zoltan Varga 3bb25fca02 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55637
2006-01-16 16:42:12 +00:00
Zoltan Varga 41bd9eb16c Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55611
2006-01-15 23:28:02 +00:00
Zoltan Varga 96c31ae231 Optimize things a bit
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55589
2006-01-15 01:21:30 +00:00
Zoltan Varga ad6fea93e0 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55587
2006-01-14 21:07:59 +00:00
Zoltan Varga 5481fe1ee1 Comment out unused fields to reduce the table size
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55586
2006-01-14 21:07:45 +00:00
Zoltan Varga 024b8c2cbb Use memset instead of a loop
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55585
2006-01-14 21:07:04 +00:00
Zoltan Varga d8c0b4b97d Implement liveness analysis
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55576
2006-01-14 17:47:06 +00:00
Zoltan Varga 60f418fff3 Get rid of compute_vreg_to_inst
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55561
2006-01-13 23:19:20 +00:00
Zoltan Varga c90b0902ad Infrastructure work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55552
2006-01-13 21:53:42 +00:00
Zoltan Varga 7f2d795efc svn path=/branches/vargaz/mini-linear-il/mono/; revision=55457 2006-01-12 20:47:04 +00:00
Zoltan Varga 23b3b56992 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55358
2006-01-11 00:38:24 +00:00
Zoltan Varga 00f762f331 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55347
2006-01-10 22:14:25 +00:00
Zoltan Varga 62f095256c Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55343
2006-01-10 21:20:32 +00:00
Zoltan Varga a362db55a5 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55339
2006-01-10 20:13:23 +00:00
Zoltan Varga b212ee1f99 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55265
2006-01-09 22:01:29 +00:00
Zoltan Varga 358bdb0888 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55263
2006-01-09 21:38:48 +00:00
Zoltan Varga 5fc4cabfe2 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55241
2006-01-09 16:22:54 +00:00
Zoltan Varga efb9d4fc30 Finish getting rid of labels and branches inside bbs
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55237
2006-01-09 16:08:10 +00:00
Zoltan Varga 303cffc993 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55229
2006-01-09 15:25:35 +00:00
Zoltan Varga 5a4d2928af Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55180
2006-01-06 22:23:46 +00:00
Zoltan Varga a7fd6b118c Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55179
2006-01-06 22:13:42 +00:00
Zoltan Varga 237d2effae Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55174
2006-01-06 20:32:56 +00:00
Zoltan Varga 79fbd4c77b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55123
2006-01-05 22:51:35 +00:00
Zoltan Varga 75f26d45ff Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=55087
2006-01-04 23:05:17 +00:00
Zoltan Varga d9adc60235 More infrastructure work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54665
2005-12-20 20:40:19 +00:00
Zoltan Varga 035586f107 Infrastructure work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54661
2005-12-20 17:30:20 +00:00
Zoltan Varga 8307f7acf8 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54603
2005-12-19 14:52:37 +00:00
Zoltan Varga 4b95721a6b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54602
2005-12-19 14:39:44 +00:00
Zoltan Varga c33a123ad3 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54582
2005-12-18 18:44:06 +00:00
Zoltan Varga 0d86be7c88 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54581
2005-12-18 17:21:28 +00:00
Zoltan Varga 064b186e7c Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54565
2005-12-17 15:07:47 +00:00
Zoltan Varga 1ddd37b999 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54556
2005-12-16 23:11:17 +00:00
Zoltan Varga 11e45e33c1 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54553
2005-12-16 22:41:00 +00:00
Zoltan Varga 6a3727bb9d Implemented missing opcodes. Fixed lots of bugs. Cleaned up lots of stuff.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54504
2005-12-15 23:59:18 +00:00
Zoltan Varga d49a37b18e Implement more opcodes, do some cleanups
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54492
2005-12-15 19:51:36 +00:00
Zoltan Varga a2ceb306e8 Remove unused stuff
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54412
2005-12-14 21:23:40 +00:00
Zoltan Varga af0aba2d25 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54267
2005-12-12 23:55:20 +00:00
Zoltan Varga 308745461f Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54258
2005-12-12 20:37:07 +00:00
Zoltan Varga cb40d42334 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54248
2005-12-12 17:15:02 +00:00
Zoltan Varga 6d778c41d7 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54241
2005-12-12 14:59:38 +00:00
Zoltan Varga a680c04509 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54215
2005-12-11 20:50:24 +00:00
Zoltan Varga 0626309f27 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54211
2005-12-11 15:40:28 +00:00
Zoltan Varga caa8eb7d0a Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54208
2005-12-11 01:16:32 +00:00
Zoltan Varga a824b417ec Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54191
2005-12-10 13:16:05 +00:00
Zoltan Varga 4db90a3595 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54182
2005-12-10 00:09:28 +00:00
Zoltan Varga 550da36b9b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54173
2005-12-09 22:41:10 +00:00
Zoltan Varga 25a0ba4d73 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54162
2005-12-09 13:16:11 +00:00
Zoltan Varga 6338bebce6 Continue adding support for object model opcodes
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54119
2005-12-08 20:40:11 +00:00
Zoltan Varga 33040218af Merge from HEAD
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54110
2005-12-08 12:32:18 +00:00
Zoltan Varga 0a80220cb1 svn path=/branches/vargaz/mini-linear-il/mono/; revision=54060 2005-12-07 20:23:57 +00:00
Zoltan Varga 8705f0bd29 Finish array support
svn path=/branches/vargaz/mini-linear-il/mono/; revision=54051
2005-12-07 17:11:33 +00:00
Zoltan Varga 0bcca4d1b0 svn path=/branches/vargaz/mini-linear-il/mono/; revision=53960 2005-12-06 00:20:40 +00:00
Zoltan Varga a314febfc7 Add array support.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53958
2005-12-05 23:17:30 +00:00
Zoltan Varga d331a12820 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53907
2005-12-04 20:04:20 +00:00
Zoltan Varga 705d7806d7 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53895
2005-12-04 01:46:37 +00:00
Zoltan Varga ed602a754b svn path=/branches/vargaz/mini-linear-il/mono/; revision=53894 2005-12-03 20:55:21 +00:00
Zoltan Varga 1499b1a04c Cleanups
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53877
2005-12-03 03:02:50 +00:00
Zoltan Varga 3f315b1480 Beginnings of object model support
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53856
2005-12-02 22:56:45 +00:00
Zoltan Varga 206efef4bd Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53793
2005-12-01 20:18:38 +00:00
Zoltan Varga ba6633eb73 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53732
2005-12-01 00:47:21 +00:00
Zoltan Varga ad33d3f04b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53726
2005-11-30 23:44:43 +00:00
Zoltan Varga 1130600b0e Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53692
2005-11-30 15:45:45 +00:00
Zoltan Varga f84b903428 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53648
2005-11-29 23:46:28 +00:00
Zoltan Varga 62d2ba6b0b Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53646
2005-11-29 22:29:40 +00:00
Zoltan Varga 2b6e7aa111 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53636
2005-11-29 15:33:16 +00:00
Zoltan Varga 14b825cc91 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53531
2005-11-27 21:59:45 +00:00
Zoltan Varga f87fee9d53 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53528
2005-11-27 19:17:17 +00:00
Zoltan Varga 4e411aaf74 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53521
2005-11-27 01:43:47 +00:00
Zoltan Varga 7902069c2b svn path=/branches/vargaz/mini-linear-il/mono/; revision=53499 2005-11-26 03:00:27 +00:00
Zoltan Varga 1547bf0247 svn path=/branches/vargaz/mini-linear-il/mono/; revision=53488 2005-11-25 23:30:19 +00:00
Zoltan Varga 727a9f12e2 Ongoing work
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53486
2005-11-25 23:00:25 +00:00
Zoltan Varga 7ba47cce99 Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53485
2005-11-25 21:27:38 +00:00
Zoltan Varga bfb14aa07b Ongoing work.
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53482
2005-11-25 15:54:08 +00:00
Zoltan Varga c0fee57975 svn path=/branches/vargaz/mini-linear-il/mono/; revision=53464 2005-11-24 22:26:48 +00:00
Zoltan Varga c54945dd66 svn path=/branches/vargaz/mini-linear-il/mono/; revision=53462 2005-11-24 20:28:16 +00:00
Zoltan Varga 39d0bf75dd Refactor method_to_ir into a separate file
svn path=/branches/vargaz/mini-linear-il/mono/; revision=53330
2005-11-21 22:54:07 +00:00
64682 changed files with 2514182 additions and 11199814 deletions

No files matched your search

-75
View File
@@ -1,75 +0,0 @@
# diff settings
*.cs diff=csharp
# ensure LF endings on all checkouts
configure.ac crlf=input
config.rpath crlf=input
configure.host crlf=input
mkinstalldirs crlf=input
*.sh crlf=input
*.sources crlf=input
.gitattributes crlf=input
*akefile* crlf=input
m4/mono-output.m4 crlf=input
# ensure native line endings on checkout
*.c crlf
*.h crlf
*.cs crlf
*.il crlf
*.sln crlf
*.*proj* crlf
*.bat text eol=crlf
*.cmd text eol=crlf
# don't do anything to line-endings. Let CRLFs/LFs go into the repo, and CRLF/LFs on checkout
*.xml -crlf
# CRLF Handling
# -------------
#
# The ideal situation would be to do no EOL normalization. Each file
# would have a default EOL, and tools on Windows and Linux would handle
# both EOL formats.
#
# We're not in the ideal world. A popular editor on Windows (possibly
# Visual Studio) silently introduces EOL corruption -- it displays an
# LF-file normally, but any newly added lines have CRLF. On Linux,
# Emacs and versions of VI handle LF-files and CRLF-files properly.
# However, emacs doesn't like files with both LF and CRLF EOLs. Editing
# the file without additional action will increase the EOL corruption
# in the file.
#
# Another vector for mixed EOLs is scripts. We mostly don't have scripts
# that add new lines -- so we rarely see this. However, one major event
# in the tree was the addition of copyright headers using a script. That
# script introduced EOL corruption.
#
# Any automated EOL normalization of files already in the repository will
# cause difficulties in traversing histories, assigning blame, etc. So, we
# don't want to change what's in the repository significantly, even if it
# causes trouble.
#
# What we do now:
#
# a) we ensure that there's no further corruption of LF-files. So, we use
# git's 'crlf' attribute on those files to ensure that things are fine
# when we work on Windows. We could use 'crlf=input', but it doesn't buy
# us much -- we might as well be working with consistent EOLs for files in
# working directories as well as in the repository
#
# b) if the file already of CRLFs, we don't do any normalization. We use '-crlf'
# so that git doesn't do any EOL-conversion of the file. As I said, this
# is mostly harmless on Linux. We can't mark these files as 'crlf' or use
# the new (git 1.7.2) 'eol=crlf' attribute, since it changes the contents
# _inside_ the repository [1], and hence makes history traversal annoying.
# So, we live with occasional EOL corruption.
#
# c) We can handle mixed-EOL files on a case-by-case basis, converting them to
# LF- or CRLF-files based on which causes fewer lines to change
#
# d) We try to ensure no further headaches, by declaring EOL normalization on
# code files, and Unix-flavoured files, like shell-scripts, makefiles, etc.
#
# [1] GIT use LFs as the normalized internal representation.
-162
View File
@@ -1,162 +0,0 @@
# Mono Code Owners File
#
# GitHub uses this file to determine who to assign for reviews
# on pull requests. Please keep this file alphabetically sorted.
#
# References:
#
# https://github.com/blog/2392-introducing-code-owners
# https://help.github.com/articles/about-codeowners
# These owners will be the default owners for everything in the repo.
* @marek-safar
# Order is important. The last matching pattern has the most precedence.
/acceptance-tests @akoeplinger @kg
/acceptance-tests/profiler-stress* @BrzVlad @akoeplinger
/data @directhex @akoeplinger
/data/gdb @vargaz
/data/lldb @vargaz
/docs @marek-safar @akoeplinger
/docs/riscv.md @alexrp
/docs/sources/mono-api-profiler.html @BrzVlad
/external @akoeplinger @marek-safar
/external/api-snapshot @marek-safar @akoeplinger
/external/binary-reference-assemblies @marek-safar @akoeplinger
/external/bockbuild @akoeplinger @alexischr
/external/boringssl @baulig
/external/cecil @marek-safar @akoeplinger
/external/corefx @akoeplinger @marek-safar @egorbo @steveisok
/external/corert @akoeplinger @marek-safar @egorbo @steveisok
/external/linker @marek-safar
/external/llvm-project @SamMonoRT @vargaz @imhameed
/external/nuget-buildtasks @radical @akoeplinger
/external/roslyn-binaries @kg @marek-safar @akoeplinger @lewing
/libgc @BrzVlad @vargaz @naricc
/llvm @vargaz @SamMonoRT @imhameed
/man @marek-safar @miguel
/man/*prof* @BrzVlad
/mcs @marek-safar @akoeplinger @egorbo
/mcs/build @marek-safar @akoeplinger
/mcs/class @steveisok @akoeplinger
/mcs/class/corlib/System.Reflection*/ @vargaz @lambdageek
/mcs/class/corlib/System.Security.Cryptography.X509Certificates @baulig @steveisok
/mcs/class/Mono.Btls.Interface @baulig @steveisok
/mcs/class/Mono.Data.Tds @egorbo
/mcs/class/Mono.Debugger.Soft @vargaz @thaystg
/mcs/class/Mono.Options @jonpryor @marek-safar
/mcs/class/Mono.Profiler.Log @lambdageek
/mcs/class/Mono.Security/Mono.Security/Interface @baulig @steveisok
/mcs/class/System/Mono.AppleTls @baulig @rolf
/mcs/class/System/Mono.Btls @baulig @marek-safar
/mcs/class/System/Mono.Net.Security @baulig @steveisok
/mcs/class/System/Mono.Security.Interface @baulig @steveisok
/mcs/class/System/System.Security.Cryptography.X509Certificates @baulig @steveisok
/mcs/class/System.Data* @egorbo @steveisok
/mcs/errors @marek-safar
/mcs/ilasm @marek-safar
/mcs/jay @marek-safar
/mcs/mcs @marek-safar
/mcs/tests @marek-safar
/mcs/tools @marek-safar @akoeplinger @steveisok
/mcs/tools/gensources @kg @akoeplinger
/mcs/tools/resx2sr @baulig
/mcs/tools/upload-to-sentry @directhex @akoeplinger
/mono/arch @vargaz
/mono/btls @baulig @marek-safar
/mono/dis @lambdageek @vargaz
/mono/eglib @vargaz @lambdageek
/mono/benchmark @SamMonoRT
/mono/metadata @vargaz @lambdageek @thaystg
/mono/metadata/*profiler* @lambdageek
/mono/metadata/handle* @lambdageek @vargaz
/mono/metadata/monitor* @brzvlad @vargaz
/mono/metadata/sgen* @brzvlad @vargaz @naricc
/mono/metadata/thread* @lateralusX @lambdageek
/mono/metadata/w32* @lateralusX @lambdageek
/mono/metadata/*-win* @lateralusX @lambdageek
/mono/metadata/appdomain* @vargaz @lambdageek @CoffeeFlux
/mono/metadata/assembly* @vargaz @lambdageek @CoffeeFlux
/mono/metadata/domain* @vargaz @lambdageek @CoffeeFlux
/mono/metadata/loader* @vargaz @lambdageek @CoffeeFlux
/mono/metadata/native-library* @vargaz @lambdageek @CoffeeFlux
/mono/metadata/*-unix* @lambdageek @CoffeeFlux
/mono/mini @vargaz @lambdageek @SamMonoRT
/mono/mini/*cfgdump* @vargaz
/mono/mini/*exceptions* @vargaz @BrzVlad
/mono/mini/*ppc* @lewurm @vargaz
/mono/mini/*riscv* @alexrp @lewurm
/mono/mini/*type-check* @lambdageek
/mono/mini/*llvm* @vargaz @imhameed
/mono/mini/interp/* @BrzVlad
/mono/mini/*profiler* @BrzVlad @lambdageek
/mono/mini/debugger-agent.c @vargaz @thaystg @DavidKarlas @lambdageek
/mono/native @baulig @egorbo @alexischr @marek-safar
/mono/profiler @BrzVlad @lambdageek
/mono/sgen @BrzVlad @lambdageek
/mono/tools/offsets-tool @rolfbjarne
/mono/utils @vargaz @lambdageek
/mono/utils/atomic* @vargaz
/mono/utils/mono-hwcap* @vargaz
/mono/utils/mono-mem* @vargaz
/mono/utils/mono-merp* @alexischr @lambdageek
/mono/utils/mono-state* @alexischr @lambdageek
/mono/utils/mono-threads* @lambdageek @vargaz
/mono/utils/*-win* @lateralusX @lambdageek
/msvc @lateralusX @kg @akoeplinger
/msvc/scripts @akoeplinger @kg
/netcore @marek-safar @akoeplinger @egorbo @vargaz @steveisok
/packaging @alexischr @akoeplinger @directhex
/packaging/MacSDK/msbuild.py @radical @akoeplinger
/runtime @akoeplinger @marek-safar
/samples @lambdageek
/samples/profiler @BrzVlad @lambdageek
/samples/size @alexrp @lambdageek
/scripts @akoeplinger @directhex
/scripts/ci @akoeplinger @directhex
/sdks @marek-safar @vargaz @lambdageek
/sdks/builds/android* @alexischr @jonpryor
/sdks/builds/mxe* @alexischr @jonpryor
/sdks/builds/ios* @vargaz @rolfbjarne
/sdks/builds/wasm* @vargaz @kjpou1 @lewing
/sdks/wasm @vargaz @kjpou1 @kg @lewing
/sdks/ios @vargaz @rolfbjarne
/sdks/android @alexischr @jonpryor
/support @lambdageek @vargaz
/tools @lambdageek @vargaz
/tools/locale-builder @marek-safar @egorbo
/tools/nuget-hash-extractor @marek-safar @radical @akoeplinger
/tools/pedump @lambdageek
/tools/sgen @brzvlad @vargaz @naricc
-78
View File
@@ -1,78 +0,0 @@
Guidelines
==========
When contributing to the Mono project, please follow the [Mono Coding
Guidelines][1]. We have been using a coding style for many years,
please make your patches conform to these guidelines.
[1]: http://www.mono-project.com/community/contributing/coding-guidelines/
Etiquette
=========
In general, we do not accept patches that merely shuffle code around,
split classes in multiple files, reindent the code or are the result
of running a refactoring tool on the source code. This is done for
three reasons: (a) we have our own coding guidelines; (b) Some modules
are imported from upstream sources and we want to respect their coding
guidelines and (c) it destroys valuable history that is often used to
investigate bugs, regressions and problems.
License
=======
The Mono runtime, compilers, and tools and most of the class libraries
are licensed under the MIT license. But include some bits of code
licensed under different licenses. The exact list is [available here](https://github.com/mono/mono/blob/master/LICENSE).
Different parts of Mono use different licenses. The actual details of
which licenses are used for which parts are detailed on the LICENSE
file in this directory.
CLA
=======
Contributions are now taken under the [.NET Foundation CLA](https://cla.dotnetfoundation.org/).
Code Review
=======
We are requiring code reviews before merging a pull request.
GitHub won't let you merge a PR until someone from the Mono team approves it.
Testing
=======
Pull requests go through testing on our [Jenkins server][2]. We will
usually only merge a pull request if it causes no regressions in a
test run there.
When you submit a pull request, one of two things happens:
* If you are a new contributor, Jenkins will ask for permissions (on
the pull request) to test it. A maintainer will reply to approve
the test run if they find the patch appropriate. After you have
submitted a few patches, a maintainer will whitelist you so that
all of your future pull requests are tested automatically.
* If you are a well-known, whitelisted contributor, Jenkins will go
ahead and test your pull request as soon as a test machine is
available.
When your pull request has been built, Jenkins will update the build
status of your pull request. If it succeeded and we like the changes,
a maintainer will likely merge it. Otherwise, you can amend your pull
request to fix build breakage and Jenkins will test it again.
[2]: http://jenkins.mono-project.com/
# Inactivity
Occasionally, a pull request sits for several months without any
response from the author. This isn't necessarily an issue, but we may
sometimes decide to close pull requests that have not seen any
progress for a long time. This is in interest of keeping the pull
request list clean so that other pull requests don't get lost in the
clutter.
If we do close your pull request due to inactivity, you're more than
welcome to submit it anew after you address any comments or issues that
were brought up on the original pull request.
-47
View File
@@ -1,47 +0,0 @@
<!--
If you are new to the project get yourself familiar with https://www.mono-project.com/community/bugs/make-a-good-bug-report/ before filling the issue
-->
## Steps to Reproduce
1.
2.
3.
<!--
You may drag & drop the attachment (repro code/solution, screenshot, etc.) onto the issue.
-->
### Current Behavior
<!--
What is the current behavior?
-->
### Expected Behavior
<!--
Please describe the behavior you are expecting
-->
## On which platforms did you notice this
[ ] macOS
[ ] Linux
[ ] Windows
**Version Used**:
<!--
You can use `mono --version` or About dialog to obtain this information.
-->
## Stacktrace
```
Please paste the stack trace here if available.
```
<!--
You can join us on Discord (https://aka.ms/dotnet-discord) in the #monovm channel to discuss your reported issue
-->
-9
View File
@@ -1,9 +0,0 @@
<!--
Thank you for your Pull Request!
If you are new to contributing to Mono, please try to do your best at conforming to our coding guidelines http://www.mono-project.com/community/contributing/coding-guidelines/ but don't worry if you get something wrong. One of the project members will help you to get things landed.
Does your pull request fix any of the existing issues? Please use the following format: Fixes #issue-number
-->
-150
View File
@@ -1,150 +0,0 @@
##############################################################################
# General
##############################################################################
# OS junk files
[Tt]humbs.db
*.DS_Store
# Visual Studio / MonoDevelop
*.[Oo]bj
*.exe
*.dll
*.pdb
*.user
*.aps
*.pch
*.vspscc
*.vssscc
*_i.c
*_p.c
*.mdb
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.ilk
*.lib
*.sbr
*.sdf
*.opensdf
*.resources
*.res
ipch/
obj/
[Bb]in
[Dd]ebug*/
[Rr]elease*/
Ankh.NoLoad
*.gpState
.vscode/
*.exp
.vs/
# Tooling
_ReSharper*/
*.resharper
.idea/*
[Tt]est[Rr]esult*
*.orig
*.rej
# NuGet packages
!.nuget/*
[Pp]ackages/*
![Pp]ackages/repositories.config
# Temporary Files
~.*
~$*
# Autotools-generated files
/Makefile
Makefile.in
aclocal.m4
autom4te.cache
/build/
config.cache
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
configure.scan
cygconfig.h
depcomp
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
releases
stamp-h
stamp-h1
stamp-h.in
/test-driver
*~
*.swp
*.o
*.dylib
.deps
.libs
# Libtool
libtool.m4
lt~obsolete.m4
ltoptions.m4
ltsugar.m4
ltversion.m4
# Dolt (libtool replacement)
doltlibtool
doltcompile
# pkg-config
*.pc
# Emacs
semantic.cache
# gtags
GPATH
GRTAGS
GSYMS
GTAGS
# Doxygen
docs/doxygen*
docs/perlmod*
##############################################################################
# Mono-specific patterns
##############################################################################
.dirstamp
compile
mono.h
mono-*.tar.*
mono_crash*
tmpinst-dir.stamp
msvc/scripts/inputs/
extensions-config.h
*.dylib.dSYM
*.mlpd
llvm/build/
llvm/usr/
sdks/builds/llvm-*/
sdks/builds/android-*/
mcs/build/compiler-server.log
##############################################################################
# Arcade output directories
##############################################################################
.packages
artifacts
.dotnet
-73
View File
@@ -1,73 +0,0 @@
[submodule "external/aspnetwebstack"]
path = external/aspnetwebstack
url = git://github.com/mono/aspnetwebstack.git
[submodule "external/Newtonsoft.Json"]
path = external/Newtonsoft.Json
url = git://github.com/mono/Newtonsoft.Json.git
[submodule "external/cecil"]
path = external/cecil
url = git://github.com/mono/cecil.git
[submodule "external/rx"]
path = external/rx
url = git://github.com/mono/rx.git
branch = rx-oss-v2.2
[submodule "external/ikvm"]
path = external/ikvm
url = git://github.com/mono/ikvm-fork.git
[submodule "external/ikdasm"]
path = external/ikdasm
url = git://github.com/mono/ikdasm.git
[submodule "external/reference-assemblies"]
path = external/binary-reference-assemblies
url = git://github.com/mono/reference-assemblies.git
[submodule "external/nunit-lite"]
path = external/nunit-lite
url = git://github.com/mono/NUnitLite.git
[submodule "external/nuget-buildtasks"]
path = external/nuget-buildtasks
url = git://github.com/mono/NuGet.BuildTasks
[submodule "external/cecil-legacy"]
path = external/cecil-legacy
url = git://github.com/mono/cecil.git
branch = mono-legacy-0.9.5
[submodule "external/boringssl"]
path = external/boringssl
url = git://github.com/mono/boringssl.git
branch = mono
[submodule "external/corefx"]
path = external/corefx
url = git://github.com/mono/corefx.git
[submodule "external/bockbuild"]
path = external/bockbuild
url = git://github.com/mono/bockbuild.git
[submodule "external/linker"]
path = external/linker
url = git://github.com/mono/linker.git
[submodule "external/roslyn-binaries"]
path = external/roslyn-binaries
url = git://github.com/mono/roslyn-binaries.git
[submodule "external/corert"]
path = external/corert
url = git://github.com/mono/corert.git
[submodule "external/xunit-binaries"]
path = external/xunit-binaries
url = git://github.com/mono/xunit-binaries.git
[submodule "external/api-doc-tools"]
path = external/api-doc-tools
url = git://github.com/mono/api-doc-tools.git
[submodule "external/api-snapshot"]
path = external/api-snapshot
url = git://github.com/mono/api-snapshot.git
[submodule "external/helix-binaries"]
path = external/helix-binaries
url = git://github.com/mono/helix-binaries.git
[submodule "external/illinker-test-assets"]
path = external/illinker-test-assets
url = git://github.com/mono/illinker-test-assets.git
[submodule "external/llvm-project"]
path = external/llvm-project
url = git://github.com/dotnet/llvm-project.git
branch = release/6.x
[submodule "external/bdwgc"]
path = external/bdwgc
url = git://github.com/Unity-Technologies/bdwgc.git
-90
View File
@@ -1,90 +0,0 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${default}",
"/usr/local/include",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${default}",
"/usr/local/include",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"macFrameworkPath": [
"${default}",
"/System/Library/Frameworks",
"/Library/Frameworks"
]
},
{
"name": "Linux",
"includePath": [
"${default}",
"/usr/include",
"/usr/local/include",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${default}",
"/usr/include",
"/usr/local/include",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
},
{
"name": "Win32",
"includePath": [
"${default}",
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "msvc-x64",
"browse": {
"path": [
"${default}",
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/*",
"${workspaceRoot}",
"${workspaceRoot}/mono",
"${workspaceRoot}/mono/eglib",
"${workspaceRoot}/support"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 4
}
+3
View File
@@ -0,0 +1,3 @@
Miguel de Icaza ([email protected])
Paolo Molaro ([email protected])
Dietmar Maurer ([email protected])
+485 -1
View File
@@ -1 +1,485 @@
See LICENSE file in the project root for full license information.
The Mono runtime is licensed under the terms of the GNU
Library General Public License, version 2.
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
675 Mass Ave, Cambridge, MA 02139, USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
Appendix: How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
+4390
View File
File diff suppressed because it is too large. Load diff
+82 -1406
View File
File diff suppressed because it is too large. Load diff
+61 -118
View File
@@ -1,145 +1,88 @@
ACLOCAL_AMFLAGS = -I m4
AUTOMAKE_OPTIONS = foreign
ACLOCAL_AMFLAGS = -I .
AM_CFLAGS = $(WERROR_CFLAGS)
SUBDIRS = $(libgc_dir) $(eglib_dir) mono $(ikvm_native_dir) support docs data runtime scripts man samples web msvc
SUBDIRS = @MONO_SUBDIRS@
noinst_SUBDIRS = @MONO_NOINST_SUBDIRS@
DIST_SUBDIRS = $(SUBDIRS) m4 netcore
# Keep in sync with SUBDIRS
## 'tools' is not normally built
DIST_SUBDIRS = libgc $(eglib_dir) mono ikvm-native support docs data runtime scripts man samples web tools msvc
if !ENABLE_NETCORE
EXTRA_DIST= mono-uninstalled.pc.in LICENSE
all: $(update_submodules)
update_submodules:
@cd $(srcdir) && scripts/update_submodules.sh
.PHONY: update_submodules
EXTRA_DIST= \
README.md \
LICENSE \
autogen.sh \
mkinstalldirs \
mono-uninstalled.pc.in \
winconfig.h \
code_of_conduct.md \
external \
netcore/Makefile \
mcs/class/referencesource
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_RUNTIME=false
DISTCHECK_CONFIGURE_FLAGS = EXTERNAL_MCS=false EXTERNAL_RUNTIME=false
# Distribute the 'mcs' tree too
GIT_DIR ?= $(srcdir)/.git
dist-hook:
test -d $(distdir)/mcs || mkdir $(distdir)/mcs
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) distdir=$$d dist-recursive
rm -rf `find $(top_distdir)/external -path '*\.git'`
rm -rf `find $(top_distdir)/external -path '*\.libs'`
rm -rf `find $(top_distdir)/external -path '*\.deps'`
rm -f `find $(top_distdir)/external -path '*\.o'`
rm -f `find $(top_distdir)/external -path '*\.so'`
rm -f `find $(top_distdir)/external -path '*\.lo'`
rm -f `find $(top_distdir)/external -path '*\.Plo'`
rm -f `find $(top_distdir)/external -name '\.dirstamp'`
rm -f `find $(top_distdir)/external -path '*\.exe' -not -path '*/roslyn-binaries/*'`
rm -f `find $(top_distdir)/external -path '*\.dll' -not -path '*/binary-reference-assemblies/*' -not -path '*/roslyn-binaries/*' -not -path '*/helix-binaries/*'`
rm -rf "$(top_distdir)/external/linker/test"
rm -rf "$(top_distdir)/external/llvm-project/lldb/test"
rm -rf "$(top_distdir)/external/llvm-project/libcxx/test"
rm -rf "$(top_distdir)/external/llvm-project/clang/test"
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=default distdir=$$d dist-recursive
d=`cd $(distdir)/mcs && pwd`; cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 distdir=$$d dist-recursive
pkgconfigdir = $(libdir)/pkgconfig
noinst_DATA = mono-uninstalled.pc
DISTCLEANFILES= mono-uninstalled.pc
.PHONY: get-monolite-latest mcs-do-compiler-tests compiler-tests bootstrap-world
# building with monolite
.PHONY: get-monolite-latest
mcslib = $(mcs_topdir)/class/lib
monolite = $(mcslib)/monolite
monolite_url = http://mono.ximian.com/daily/monolite-latest.tar.gz
get-monolite-latest:
$(MAKE) -C $(mcs_topdir)/class get-monolite-latest
-rm -fr $(mcslib)/monolite-*
-mkdir -p $(mcslib)
test ! -d $(monolite) || test ! -d $(monolite).old || rm -fr $(monolite).old
test ! -d $(monolite) || mv -f $(monolite) $(monolite).old
cd $(mcslib) && { (wget -O- $(monolite_url) || curl $(monolite_url)) | gzip -d | tar xf - ; }
cd $(mcslib) && mv -f monolite-* monolite
if BITCODE
BITCODE_CHECK=yes
endif
if DEFAULT_TESTS
CI_TEST_SCRIPT=$(srcdir)/scripts/ci/run-test-default.sh
else
CI_TEST_SCRIPT=$(srcdir)/scripts/ci/run-test-$(TEST_PROFILE).sh
endif
.PHONY: check-ci
check-ci:
MONO_LLVMONLY=$(BITCODE_CHECK) $(CI_TEST_SCRIPT)
.PHONY: validate do-build-mono-mcs mcs-do-clean mcs-do-tests
validate: do-build-mono-mcs
$(MAKE) mcs-do-tests
do-build-mono-mcs: mcs-do-clean
compiler-tests: mcs-do-clean
$(MAKE) all
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
mcs-do-tests:
cd runtime && $(MAKE) check-local
cd mono/tests && $(MAKE) check
$(MAKE) mcs-do-compiler-tests
.PHONY: compiler-tests mcs-do-compiler-tests
compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' validate
mcs-do-compiler-tests:
$(MAKE) test_select='TEST_SUBDIRS="tests errors"' mcs-do-tests
compiler-tests-net_2_0:
-rm -f $(mcs_topdir)/build/common/Consts.cs.save
-mv -f $(mcs_topdir)/build/common/Consts.cs $(mcs_topdir)/build/common/Consts.cs.save
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0_bootstrap clean
cd $(mcs_topdir) && $(MAKE) PROFILE=net_2_0 clean
-mv -f $(mcs_topdir)/build/common/Consts.cs.save $(mcs_topdir)/build/common/Consts.cs
$(MAKE) all
$(MAKE) build_profiles=net_2_0 mcs-do-compiler-tests
.PHONY: bootstrap-world
bootstrap-world: compiler-tests
$(MAKE) install
install:
for mydir in $(filter-out $(noinst_SUBDIRS),$(SUBDIRS)); do \
(cd $${mydir} && ${MAKE} install) \
done
bootstrap-world-net_2_0: compiler-tests-net_2_0
$(MAKE) install
update-csproj:
-rm msvc/scripts/order
-rm msvc/scripts/order.xml
-rm -rf msvc/scripts/inputs
-mkdir msvc/scripts/inputs
(cd runtime; $(MAKE) V=1 extra_targets=csproj-local)
# internal targets
mcs-do-clean:
cd runtime && $(MAKE) clean-local
cd mono/tests && $(MAKE) clean
mcs-do-compiler-tests:
cd runtime && $(MAKE) test_select='TEST_SUBDIRS="tests errors"' check-local
cd mono/tests && $(MAKE) check
package-inputs:
echo '<?xml version="1.0" encoding="utf-8"?>' > msvc/scripts/order.xml
echo '<root>' >> msvc/scripts/order.xml
for i in `cat msvc/scripts/order`; do \
set `echo $$i | sed -e 's/:/ /' -e 's/.input//'`; \
cat msvc/scripts/inputs/$$2.input | sed -e 's/\\\\/\\/g' -e 's/\\/\\\\/g' | \
(echo " <project dir=\"$$1\" library=\"$$2\">"; \
read boot; echo " <boot>$$boot</boot>"; \
read flags; echo " <flags>$$flags</flags>"; \
read sources;echo " <sources>$$sources</sources>"; \
read output; echo " <output>$$output</output>"; \
read built; echo " <built_sources>`echo $$built | sed 's/\\\/\\\\/g'`</built_sources>"; \
read libou; echo " <library_output>$$libou</library_output>"; \
read fx_ver; echo " <fx_version>$$fx_ver</fx_version>"; \
read profile; echo " <profile>$$profile</profile>"; \
read resxt; echo " <resources>$$resxt</resources>"; \
read resp; echo " <response>$$resp</response>"; \
echo " </project>") >> msvc/scripts/order.xml; \
done
echo "</root>" >> msvc/scripts/order.xml
win32getdeps:
wget http://www.go-mono.com/archive/pkgconfig-0.11-20020310.zip
wget http://www.go-mono.com/archive/glib-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/glib-dev-2.0.4-20020703.zip
wget http://www.go-mono.com/archive/libiconv-1.7.zip
wget http://www.go-mono.com/archive/libiconv-dev-1.7.zip
wget http://www.go-mono.com/archive/libintl-0.10.40-20020101.zip
unzip -n -d / pkgconfig-0.11-20020310.zip
unzip -n -d / glib-2.0.4-20020703.zip
unzip -n -d / glib-dev-2.0.4-20020703.zip
unzip -n -d / libiconv-1.7.zip
unzip -n -d / libiconv-dev-1.7.zip
unzip -n -d / libintl-0.10.40-20020101.zip
# Update llvm version in configure.ac to the output of $LLVM_DIR/bin/llvm-config --version
update-llvm-version:
if test "x$$LLVM_DIR" = "x"; then echo "Set the make variable LLVM_DIR to the directory containing the LLVM installation."; exit 1; fi
REV=`$(LLVM_DIR)/bin/llvm-config --version` && sed -e "s,expected_llvm_version=.*,expected_llvm_version=\"$$REV\"," < configure.ac > tmp && mv tmp configure.ac && echo "Version set to $$REV."
win32setup:
makensis /DMILESTONE=$(VERSION) /DSOURCE_INSTALL_DIR=$(SOURCE_INSTALL_DIR) /DBUILDNUM=$(BUILDNUM) monowiz.win32.nsi
bootstrap: all
@echo "*** 'make bootstrap' is obsolete. Just run 'make' to perform a combined mono+mcs build"
exit 1
update-solution-files:
cd msvc/scripts && $(MAKE) genproj.exe || exit $$?;
$(MAKE) update-csproj
$(MAKE) package-inputs
(cd msvc/scripts; mono --debug genproj.exe $(GENPROJ_ARGS))
update-solution-files-with-tests:
$(MAKE) "GENPROJ_ARGS=2012 true true" update-solution-files
endif
patch-quiet:
find mono -name Makefile -exec scripts/patch-quiet.sh {} \;
find libgc -name Makefile -exec scripts/patch-quiet.sh {} \;
+6 -1
View File
@@ -1,3 +1,8 @@
Release notes for Mono are hosted on the web, please see:
http://www.mono-project.com/docs/about-mono/releases/
http://www.go-mono.com/archive/VERSION
Where version is the version of this Mono package, for example:
http://www.go-mono.com/archive/1.1.9
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
-44
View File
@@ -1,44 +0,0 @@
Microsoft Patent Promise for Mono
Microsoft Corporation and its affiliates (“Microsoft”) promise not to
assert any Applicable Patents against you for making, using, selling,
offering for sale, importing, or distributing Mono.
If you file, maintain, or voluntarily participate in any claim in a
lawsuit alleging direct or contributory patent infringement by Mono,
or inducement of patent infringement by Mono, then your rights under
this promise will automatically terminate.
This promise is not an assurance that (i) any Applicable Patents are
valid or enforceable or (ii) Mono does not infringe patents or other
intellectual property rights of any third party. No rights except
those expressly stated in this promise are granted, waived or received
by Microsoft, whether by implication, exhaustion, estoppel or
otherwise. This is a personal promise directly from Microsoft to you,
and you agree as a condition of benefitting from it that no Microsoft
rights are received from suppliers, distributors, or otherwise in
connection with this promise.
Definitions:
“Mono” means those portions of the software development technology, as
originally distributed by Xamarin, Inc. or the .NET Foundation under
the name “Mono,” that implement .NET Framework Functionality, provided
that such portions at a minimum implement all of the required parts of
the mandatory provisions of Standard ECMA-335 – Common Language
Infrastructure (CLI).
“.NET Framework Functionality” means any functionality in Microsoft’s
.NET Framework as described in Microsoft’s API documentation on
Microsoft’s MSDN website, including the functionality in
Windowsbase.dll, but excluding all other functionality in the Windows
Presentation Foundation component of .NET Framework.
“Applicable Patents” are those patent claims, currently owned by
Microsoft and acquired in the future, that are necessarily infringed
by Mono. For clarity, Applicable Patents do not include any patent
claims that are infringed (x) by any underlying or enabling technology
that may be used, combined, or distributed in connection with Mono
(such as hardware, operating systems, or applications that run on
Mono), (y) only as a consequence of modification of Mono, or (z) only
by the combination of Mono with third party code.
+480
View File
@@ -0,0 +1,480 @@
This is Mono.
1. Installation
2. Using Mono
3. Directory Roadmap
1. Compilation and Installation
===============================
a. Build Requirements
---------------------
To build Mono, you will need the following components:
* pkg-config
Available from: http://www.freedesktop.org/Software/pkgconfig
* glib 2.4
Available from: http://www.gtk.org/
On Itanium, you must obtain libunwind:
http://www.hpl.hp.com/research/linux/libunwind/download.php4
On Solaris, make sure that you used GNU tar to unpack this package, as
Solaris tar will not unpack this correctly, and you will get strange errors.
On Solaris, make sure that you use the GNU toolchain to build the software.
Optional dependencies:
* libgdiplus
If you want to get support for System.Drawing, you will need to get
Libgdiplus.
* libzlib
This library and the development headers are required for compression
file support in the 2.0 profile.
b. Building the Software
------------------------
If you obtained this package as an officially released tarball,
this is very simple, use configure and make:
./configure --prefix=/usr/local
make
make install
Mono supports a JIT engine on x86, SPARC, SPARCv9, S/390,
S/390x, AMD64, ARM and PowerPC systems.
If you obtained this as a snapshot, you will need an existing
Mono installation. To upgrade your installation, unpack both
mono and mcs:
tar xzf mcs-XXXX.tar.gz
tar xzf mono-XXXX.tar.gz
mv mono-XXX mono
mv mcs-XXX mcs
cd mono
./autogen.sh --prefix=/usr/local
make
c. Building the software from SVN
---------------------------------
If you are building the software from SVN, make sure that you
have up-to-date mcs and mono sources:
svn co svn+ssh://[email protected]/source/trunk/mono
svn co svn+ssh://[email protected]/source/trunk/mcs
Then, go into the mono directory, and configure:
cd mono
./autogen.sh --prefix=/usr/local
make
For people with non-standard installations of the auto* utils and of
pkg-config (common on misconfigured OSX and windows boxes), you could get
an error like this:
./configure: line 19176: syntax error near unexpected token `PKG_CHECK_MODULES(BASE_DEPENDENCIES,' ...
This means that you need to set the ACLOCAL_FLAGS environment var
when invoking autogen.sh, like this:
ACLOCAL_FLAGS="-I $acprefix/share/aclocal" ./autogen.sh --prefix=/usr/loca
where $acprefix is the prefix where aclocal has been installed.
This will automatically go into the mcs/ tree and build the
binaries there.
This assumes that you have a working mono installation, and that
there's a C# compiler named 'mcs', and a corresponding IL
runtime called 'mono'. You can use two make variables
EXTERNAL_MCS and EXTERNAL_RUNTIME to override these. e.g., you
can say
make EXTERNAL_MCS=/foo/bar/mcs EXTERNAL_RUNTIME=/somewhere/else/mono
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, an obvious choice
is to install the latest released packages of 'mono' for your
distribution and running autogen.sh; make; make install in the
mono module directory.
You can also try a slightly more risky approach: this may not work,
so start from the released tarball as detailed above.
This works by first getting the latest version of the 'monolite'
distribution, which contains just enough to run the 'mcs'
compiler. You do this with:
make get-monolite-latest
This will download and automatically gunzip and untar the
tarball, and place the files appropriately so that you can then
just run:
make
To ensure that you're using the 'monolite' distribution, you can
also try passing EXTERNAL_MCS=false on the make command-line.
Testing and Installation
------------------------
You can run (part of) the mono and mcs testsuites with the command:
make check
All tests should pass.
If you want more extensive tests, including those that test the
class libraries, you need to re-run 'configure' with the
'--enable-nunit-tests' flag, and try
make -k check
Expect to find a few testsuite failures. As a sanity check, you
can compare the failures you got with
http://go-mono.com/tests/displayTestResults.php
You can now install mono with:
make install
Failure to follow these steps may result in a broken installation.
d. Common Configuration Options
-------------------------------
The following are the configuration options that someone
building Mono might want to use:
--with-gc=[boehm, included, sgen, none]
Selects the garbage collector engine to use, the
default is the "included" value.
included:
This is the default value, and its
the most feature complete, it will allow Mono
to use typed allocations and support the
debugger.
It is essentially a slightly modified Boehm GC
boehm:
This is used to use a system-install Boehm GC,
it is useful to test new features available in
Boehm GC, but we do not recommend that people
use this, as it disables a few features.
sgen:
The under-development Generational GC for
Mono, do not use this in production.
none:
Disables the inclusion of a garbage
collector.
--with-tls=__thread,pthread
Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a
problem.
--with-sigaltstack=yes,no
Experimental: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
"yes", it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
--with-static_mono=yes,no
This controls whether `mono' should link against a
static library (libmono.a) or a shared library
(libmono.so).
This defaults to yes, and will improve the performance
of the `mono' program.
This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
--with-xen-opt=yes,no
The default value for this is `yes', and it makes Mono
generate code which might be slightly slower on
average systems, but the resulting executable will run
faster under the Xen virtualization system.
--with-large-heap=yes,no
Enable support for GC heaps larger than 3GB.
This value is set to `no' by default.
--with-ikvm-native=yes,no
Controls whether the IKVM JNI interface library is
built or not. This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
This defaults to `yes'.
--with-preview=yes,no
Whether you want to build libraries that are still not
completed (The 2.0 APIs). It defaults to `yes'.
--with-moonlight=yes,no
Whether you want to generate the Silverlight/Moonlight
libraries and toolchain in addition to the default
(1.1 and 2.0 APIs).
This will produce the `smcs' compiler which will reference
the Silvelright modified assemblies (mscorlib.dll,
System.dll, System.Code.dll and System.Xml.Core.dll) and turn
on the LINQ extensions for the compiler.
This option defaults to `no' and it is considered pre-alpha.
--with-libgdiplus=installed,sibling,<path>
This is used to configure where should Mono look for
libgdiplus when running the System.Drawing tests.
It defaults to `installed', which means that the
library is available to Mono through the regular
system setup.
`sibling' can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
Or you can specify a path to a libgdiplus.
--disable-shared-memory
Use this option to disable the use of shared memory in
Mono (this is equivalent to setting the MONO_DISABLE_SHM
environment variable, although this removes the feature
completely).
Disabling the shared memory support will disable certain
features like cross-process named mutexes.
--enable-minimal=LIST
Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
The list is a comma-separated list of components that
should be removed, these are:
aot:
Disables support for the Ahead of Time
compilation.
profiler:
Disables support for the default profiler.
decimal:
Disables support for System.Decimal.
pinvoke:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
debug:
Drop debugging support.
reflection_emit:
Drop System.Reflection.Emit support
large_code:
Disables support for large assemblies.
logging:
Disables support for debug logging.
com:
Disables COM support.
ssa:
Disables compilation for the SSA optimization
framework, and the various SSA-based
optimizations.
generics:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
--enable-big-arrays
This enables the use arrays whose indexes are larger
than Int32.MaxValue.
By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
--enable-parallel-mark
Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
This option is not currently the default as we have
not done much testing with Mono.
--enable-dtrace
On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
--disable-dev-random
Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
There are a number of runtime options to control this
also, see the man page.
2. Using Mono
=============
Once you have installed the software, you can run a few programs:
* runtime engine
mono program.exe
* C# compiler
mcs program.cs
* CIL Disassembler
monodis program.exe
See the man pages for mono(1), mint(1), monodis(1) and mcs(2)
for further details.
3. Directory Roadmap
====================
docs/
Technical documents about the Mono runtime.
data/
Configuration files installed as part of the Mono runtime.
mono/
The core of the Mono Runtime.
metadata/
The object system and metadata reader.
mini/
The Just in Time Compiler.
dis/
CIL executable Disassembler
cli/
Common code for the JIT and the interpreter.
io-layer/
The I/O layer and system abstraction for
emulating the .NET IO model.
cil/
Common Intermediate Representation, XML
definition of the CIL bytecodes.
interp/
Interpreter for CLI executables (obsolete).
arch/
Architecture specific portions.
man/
Manual pages for the various Mono commands and programs.
samples/
Some simple sample programs on uses of the Mono
runtime as an embedded library.
scripts/
Scripts used to invoke Mono and the corresponding program.
runtime/
A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
../olive/
If the directory ../olive is present (as an
independent checkout) from the Mono module, that
directory is automatically configured to share the
same prefix than this module gets.
-606
View File
@@ -1,606 +0,0 @@
Mono is a software platform designed to allow developers to easily
create cross platform applications. It is an open source
implementation of Microsoft's .NET Framework based on the ECMA
standards for C# and the Common Language Runtime.
The Mono project is part of the [.NET Foundation](https://www.dotnetfoundation.org/)
Join us on [Discord](https://aka.ms/dotnet-discord) in the `#monovm` channel:
<a href="https://aka.ms/dotnet-discord">
<img src="https://img.shields.io/discord/732297728826277939?style=flat-square&label=Discord&logo=discord&logoColor=white&color=7289DA">
</a>
### Contents
1. [Compilation and Installation](#compilation-and-installation)
2. [Using Mono](#using-mono)
3. [Directory Roadmap](#directory-roadmap)
4. [Contributing to Mono](#contributing-to-mono)
5. [Reporting bugs](#reporting-bugs)
6. [Configuration Options](#configuration-options)
7. [Working with Submodules](#working-with-submodules)
### Build Status
| OS | Architecture | Status |
|--------------|--------------------|------------------------------|
| Debian 9 | amd64 | [![debian-9-amd64][1]][2] |
| Debian 9 | i386 | [![debian-9-i386][3]][4] |
| Debian 9 | armel | [![debian-9-armel][5]][6] |
| Debian 9 | armhf | [![debian-9-armhf][7]][8] |
| Debian 9 | arm64 | [![debian-9-arm64][9]][10] |
| OS X | amd64 | [![osx-amd64][11]][12] |
| OS X | i386 | [![osx-i386][13]][14] |
| Windows | amd64 | [![windows-amd64][15]][16] |
| Windows | i386 | [![windows-i386][17]][18] |
| CentOS | s390x (cs) | [![centos-s390x][19]][20] |
| Debian 9 | ppc64el (cs) | [![debian-9-ppc64el][21]][22]|
| AIX 6.1 | ppc64 (cs) | [![aix-ppc64][23]][24] |
| FreeBSD 12 | amd64 (cs) | [![freebsd-amd64][25]][26] |
_(cs) = community supported architecture_
[1]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-amd64/badge/icon
[2]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-amd64
[3]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-i386/badge/icon
[4]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-i386/
[5]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-armel/badge/icon
[6]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-armel/
[7]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-armhf/badge/icon
[8]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-armhf/
[9]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-arm64/badge/icon
[10]: https://jenkins.mono-project.com/job/test-mono-mainline-linux/label=debian-9-arm64/
[11]: https://jenkins.mono-project.com/job/test-mono-mainline/label=osx-amd64/badge/icon
[12]: https://jenkins.mono-project.com/job/test-mono-mainline/label=osx-amd64/
[13]: https://jenkins.mono-project.com/job/test-mono-mainline/label=osx-i386/badge/icon
[14]: https://jenkins.mono-project.com/job/test-mono-mainline/label=osx-i386/
[15]: https://jenkins.mono-project.com/job/z/label=w64/badge/icon
[16]: https://jenkins.mono-project.com/job/z/label=w64/
[17]: https://jenkins.mono-project.com/job/z/label=w32/badge/icon
[18]: https://jenkins.mono-project.com/job/z/label=w32/
[19]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=centos-s390x/badge/icon
[20]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=centos-s390x
[21]: https://jenkins.mono-project.com/job/test-mono-mainline-community-chroot/label=debian-9-ppc64el/badge/icon
[22]: https://jenkins.mono-project.com/job/test-mono-mainline-community-chroot/label=debian-9-ppc64el
[23]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=aix-ppc64/badge/icon
[24]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=aix-ppc64
[25]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=freebsd-12-amd64/badge/icon
[26]: https://jenkins.mono-project.com/job/test-mono-mainline-community/label=freebsd-12-amd64
Compilation and Installation
============================
Building the Software
---------------------
Please see our guides for building Mono on
[Mac OS X](https://www.mono-project.com/docs/compiling-mono/mac/),
[Linux](https://www.mono-project.com/docs/compiling-mono/linux/) and
[Windows](https://www.mono-project.com/docs/compiling-mono/windows/).
Note that building from Git assumes that you already have Mono installed,
so please download and [install the latest Mono release](https://www.mono-project.com/download/)
before trying to build from Git. This is required because the Mono build
relies on a working Mono C# compiler to compile itself
(also known as [bootstrapping](https://en.wikipedia.org/wiki/Bootstrapping_(compilers))).
If you don't have a working Mono installation
---------------------------------------------
If you don't have a working Mono installation, you can try a slightly
more risky approach: getting the latest version of the 'monolite' distribution,
which contains just enough to run the 'mcs' compiler. You do this with:
# Run the following line after ./autogen.sh
make get-monolite-latest
This will download and place the files appropriately so that you can then
just run:
make
The build will then use the files downloaded by `make get-monolite-latest`.
Testing and Installation
------------------------
You can run the mono and mcs test suites with the command: `make check`.
Expect to find a few test suite failures. As a sanity check, you
can compare the failures you got with [https://jenkins.mono-project.com/](https://jenkins.mono-project.com/).
You can now install mono with: `make install`
You can verify your installation by using the mono-test-install
script, it can diagnose some common problems with Mono's install.
Failure to follow these steps may result in a broken installation.
Using Mono
==========
Once you have installed the software, you can run a few programs:
* `mono program.exe` runtime engine
* `mcs program.cs` C# compiler
* `monodis program.exe` CIL Disassembler
See the man pages for mono(1), mcs(1) and monodis(1) for further details.
Directory Roadmap
=================
* `acceptance-tests/` - Optional third party test suites used to validate Mono against a wider range of test cases.
* `data/` - Configuration files installed as part of the Mono runtime.
* `docs/` - Technical documents about the Mono runtime.
* `external/` - Git submodules for external libraries (Newtonsoft.Json, ikvm, etc).
* `ikvm-native/` - Glue code for ikvm.
* `libgc/` - The (deprecated) Boehm GC implementation.
* `llvm/` - Utility Makefiles for integrating the Mono LLVM fork.
* `m4/` - General utility Makefiles.
* `man/` - Manual pages for the various Mono commands and programs.
* `mcs/` - The class libraries, compiler and tools
* `class/` - The class libraries (like System.*, Microsoft.Build, etc.)
* `mcs/` - The Mono C# compiler written in C#
* `tools/` - Tools like gacutil, ikdasm, mdoc, etc.
* `mono/` - The core of the Mono Runtime.
* `arch/` - Architecture specific portions.
* `benchmark/` - A collection of benchmarks.
* `btls/` - Build files for the BTLS library which incorporates BoringSSL.
* `cil/` - Common Intermediate Representation, XML
definition of the CIL bytecodes.
* `dis/` - CIL executable Disassembler.
* `eglib/` - Independent implementation of the glib API.
* `metadata/` - The object system and metadata reader.
* `mini/` - The Just in Time Compiler.
* `profiler/` - The profiler implementation.
* `sgen/` - The SGen Garbage Collector implementation.
* `tests/` - The main runtime tests.
* `unit-tests/` - Additional runtime unit tests.
* `utils/` - Utility functions used across the runtime codebase.
* `msvc/` - Logic for the MSVC / Visual Studio based runtime and BCL build system.
The latter is experimental at the moment.
* `packaging/` - Packaging logic for the OS X and Windows Mono packages.
* `po/` - Translation files.
* `runtime/` - A directory that contains the Makefiles that link the
mono/ and mcs/ build systems.
* `samples/` - Some simple sample programs on uses of the Mono
runtime as an embedded library.
* `scripts/` - Scripts used to invoke Mono and the corresponding program.
* `sdks/` - A new way of embedding Mono into Xamarin.iOS, Xamarin.Android and other products.
* `support/` - Various support libraries.
* `tools/` - A collection of tools, mostly used during Mono development.
Contributing to Mono
====================
Before submitting changes to Mono, please review the [contribution
guidelines](https://www.mono-project.com/community/contributing/).
Please pay particular attention to the [Important
Rules](https://www.mono-project.com/community/contributing/#important-rules)
section.
Reporting bugs
==============
To submit bug reports, please [open an issue on the mono GitHub repo](https://github.com/mono/mono/issues/new).
Please use the search facility to ensure the same bug hasn't already
been submitted and follow our
[guidelines](https://www.mono-project.com/community/bugs/make-a-good-bug-report/)
on how to make a good bug report.
Configuration Options
=====================
The following are the configuration options that someone building Mono
might want to use:
* `--with-sgen=yes,no` - Generational GC support: Used to enable or
disable the compilation of a Mono runtime with the SGen garbage
collector.
* On platforms that support it, after building Mono, you will have
both a `mono-boehm` binary and a `mono-sgen` binary. `mono-boehm` uses Boehm,
while `mono-sgen` uses the Simple Generational GC.
* `--with-libgc=[included, none]` - Selects the default Boehm
garbage collector engine to use.
* *included*: (*slightly modified Boehm GC*) This is the default
value for the Boehm GC, and it's the most feature complete, it will
allow Mono to use typed allocations and support the debugger.
* *none*:
Disables the inclusion of a Boehm garbage collector.
* This defaults to `included`.
* `--enable-cooperative-suspend`
* If you pass this flag the Mono runtime is configured to only use
the cooperative mode of the garbage collector. If you do not pass
this flag, then you can control at runtime the use of the
cooperative GC mode by setting the `MONO_ENABLE_COOP_SUSPEND` flag.
* `--with-tls=__thread,pthread`
* Controls how Mono should access thread local storage,
pthread forces Mono to use the pthread APIs, while
__thread uses compiler-optimized access to it.
* Although __thread is faster, it requires support from
the compiler, kernel and libc. Old Linux systems do
not support with __thread.
* This value is typically pre-configured and there is no
need to set it, unless you are trying to debug a problem.
* `--with-sigaltstack=yes,no`
* **Experimental**: Use at your own risk, it is known to
cause problems with garbage collection and is hard to
reproduce those bugs.
* This controls whether Mono will install a special
signal handler to handle stack overflows. If set to
`yes`, it will turn stack overflows into the
StackOverflowException. Otherwise when a stack
overflow happens, your program will receive a
segmentation fault.
* The configure script will try to detect if your
operating system supports this. Some older Linux
systems do not support this feature, or you might want
to override the auto-detection.
* `--with-static_mono=yes,no`
* This controls whether `mono` should link against a
static library (libmono.a) or a shared library
(libmono.so).
* This defaults to `yes`, and will improve the performance
of the `mono` program.
* This only affects the `mono' binary, the shared
library libmono.so will always be produced for
developers that want to embed the runtime in their
application.
* `--with-xen-opt=yes,no` - Optimize code for Xen virtualization.
* It makes Mono generate code which might be slightly
slower on average systems, but the resulting executable will run
faster under the Xen virtualization system.
* This defaults to `yes`.
* `--with-large-heap=yes,no` - Enable support for GC heaps larger than 3GB.
* This only applies only to the Boehm garbage collector, the SGen garbage
collector does not use this configuration option.
* This defaults to `no`.
* `--enable-small-config=yes,no` - Enable some tweaks to reduce memory usage
and disk footprint at the expense of some capabilities.
* Typically this means that the number of threads that can be created
is limited (256), that the maximum heap size is also reduced (256 MB)
and other such limitations that still make mono useful, but more suitable
to embedded devices (like mobile phones).
* This defaults to `no`.
* `--with-ikvm-native=yes,no` - Controls whether the IKVM JNI interface library is
built or not.
* This is used if you are planning on
using the IKVM Java Virtual machine with Mono.
* This defaults to `yes`.
* `--with-profile4=yes,no` - Whether you want to build the 4.x profile libraries
and runtime.
* This defaults to `yes`.
* `--with-libgdiplus=installed,sibling,<path>` - Configure where Mono
searches for libgdiplus when running System.Drawing tests.
* It defaults to `installed`, which means that the
library is available to Mono through the regular
system setup.
* `sibling` can be used to specify that a libgdiplus
that resides as a sibling of this directory (mono)
should be used.
* Or you can specify a path to a libgdiplus.
* `--enable-minimal=LIST`
* Use this feature to specify optional runtime
components that you might not want to include. This
is only useful for developers embedding Mono that
require a subset of Mono functionality.
* The list is a comma-separated list of components that
should be removed, these are:
* `aot`:
Disables support for the Ahead of Time compilation.
* `attach`:
Support for the Mono.Management assembly and the
VMAttach API (allowing code to be injected into
a target VM)
* `com`:
Disables COM support.
* `debug`:
Drop debugging support.
* `decimal`:
Disables support for System.Decimal.
* `full_messages`:
By default Mono comes with a full table
of messages for error codes. This feature
turns off uncommon error messages and reduces
the runtime size.
* `generics`:
Generics support. Disabling this will not
allow Mono to run any 2.0 libraries or
code that contains generics.
* `jit`:
Removes the JIT engine from the build, this reduces
the executable size, and requires that all code
executed by the virtual machine be compiled with
Full AOT before execution.
* `large_code`:
Disables support for large assemblies.
* `logging`:
Disables support for debug logging.
* `pinvoke`:
Support for Platform Invocation services,
disabling this will drop support for any
libraries using DllImport.
* `portability`:
Removes support for MONO_IOMAP, the environment
variables for simplifying porting applications that
are case-insensitive and that mix the Unix and Windows path separators.
* `profiler`:
Disables support for the default profiler.
* `reflection_emit`:
Drop System.Reflection.Emit support
* `reflection_emit_save`:
Drop support for saving dynamically created
assemblies (AssemblyBuilderAccess.Save) in
System.Reflection.Emit.
* `shadow_copy`:
Disables support for AppDomain's shadow copies
(you can disable this if you do not plan on
using appdomains).
* `simd`:
Disables support for the Mono.SIMD intrinsics
library.
* `ssa`:
Disables compilation for the SSA optimization
framework, and the various SSA-based optimizations.
* `--enable-llvm`
* This enables the use of LLVM as a code generation engine
for Mono. The LLVM code generator and optimizer will be
used instead of Mono's built-in code generator for both
Just in Time and Ahead of Time compilations.
* See https://www.mono-project.com/docs/advanced/mono-llvm/ for the
full details and up-to-date information on this feature.
* You will need to have an LLVM built that Mono can link
against.
* `--enable-big-arrays` - Enable use of arrays with indexes larger
than Int32.MaxValue.
* By default Mono has the same limitation as .NET on
Win32 and Win64 and limits array indexes to 32-bit
values (even on 64-bit systems).
* In certain scenarios where large arrays are required,
you can pass this flag and Mono will be built to
support 64-bit arrays.
* This is not the default as it breaks the C embedding
ABI that we have exposed through the Mono development
cycle.
* `--enable-parallel-mark`
* Use this option to enable the garbage collector to use
multiple CPUs to do its work. This helps performance
on multi-CPU machines as the work is divided across CPUS.
* This option is not currently the default on OSX
as it runs into issues there.
* This option only applies to the Boehm GC.
* `--enable-dtrace`
* On Solaris and MacOS X builds a version of the Mono
runtime that contains DTrace probes and can
participate in the system profiling using DTrace.
* `--disable-dev-random`
* Mono uses /dev/random to obtain good random data for
any source that requires random numbers. If your
system does not support this, you might want to
disable it.
* There are a number of runtime options to control this
also, see the man page.
* `--with-csc=roslyn,mcs,default`
* Use this option to configure which C# compiler to use. By default
the configure script will pick Roslyn, except on platforms where
Roslyn does not work (Big Endian systems) where it will pick mcs.
If you specify "mcs", then Mono's C# compiler will be used. This
also allows for a complete bootstrap of Mono's core compiler and
core libraries from source.
  If you specify "roslyn", then Roslyn's C# compiler will be used.
This currently uses Roslyn binaries.
* `--enable-nacl`
* This configures the Mono compiler to generate code
suitable to be used by Google's Native Client:
https://code.google.com/p/nativeclient/
* Currently this is used with Mono's AOT engine as
Native Client does not support JIT engines yet.
* `--enable-wasm`
* Use this option to configure mono to run on WebAssembly. It will
set both host and target to the WebAssembly triplet. This overrides
the values passed to `--host` or `--target` and ignored what config.sub guesses.
This is a workaround to enable usage of old automake versions that don't
recognize the wasm triplet.
Working With Submodules
=======================
Mono references several external git submodules, for example
a fork of Microsoft's reference source code that has been altered
to be suitable for use with the Mono runtime.
This section describes how to use it.
An initial clone should be done recursively so all submodules will also be
cloned in a single pass:
$ git clone --recursive git@github.com:mono/mono
Once cloned, submodules can be updated to pull down the latest changes.
This can also be done after an initial non-recursive clone:
$ git submodule update --init --recursive
To pull external changes into a submodule:
$ cd <submodule>
$ git pull origin <branch>
$ cd <top-level>
$ git add <submodule>
$ git commit
By default, submodules are detached because they point to a specific commit.
Use `git checkout` to move back to a branch before making changes:
$ cd <submodule>
$ git checkout <branch>
# work as normal; the submodule is a normal repo
$ git commit/push new changes to the repo (submodule)
$ cd <top-level>
$ git add <submodule> # this will record the new commits to the submodule
$ git commit
To switch the repo of a submodule (this should not be a common or normal thing
to do at all), first edit `.gitmodules` to point to the new location, then:
$ git submodule sync -- <path of the submodule>
$ git submodule update --recursive
$ git checkout <desired new hash or branch>
The desired output diff is a change in `.gitmodules` to reflect the
change in the remote URL, and a change in /<submodule> where you see
the desired change in the commit hash.
License
=======
See the LICENSE file for licensing information, and the PATENTS.TXT
file for information about Microsoft's patent grant.
Mono Trademark Use Policy
=========================
The use of trademarks and logos for Mono can be found [here](https://www.dotnetfoundation.org/legal/mono-tm).
Maintaining the Class Library Solution Files
============================================
Mono now ships with a solution file that can be used to build the
assemblies from an IDE. Either by opening the topmost `net_4_x.sln`
file, or to by loading one of the individual `csproj` files located in
each directory.
These are maintained by extracting the configuration information from
our Makefiles, which as of May 2016 remain the canonical location for
configuration information.
When changes are made to the Makefiles, a user would need to run the
following command to re-generate the solution files at the top level:
$ make update-solution-files
+120
View File
@@ -0,0 +1,120 @@
README.vsnet Last updated: 2006-02-01
SVN includes a Visual Studio .NET 2005 solution, mono.sln, and some
projects files to build most of the unmanaged parts in Mono.
The "mono.sln" solution file contains the VC projects files for:
* Embedded Samples
* test-invoke.vcproj
* test-metadata.vcproj
* teste.vcproj
* Libraries
* libgc.vcproj
* libmono.vcproj
* Tools
* genmdesc.vcproj
* monoburg.vcproj
* monodiet.vcproj
* monodis.vcproj
* monograph.vcproj
* pedump.vcproj
* mono.vcproj
REQUIREMENTS
* A working (i.e. where you could succesfully build mono) cygwin
(http://www.cygwin.com/) setup! This is required to:
* generate some files (via monoburg and genmdesc);
* build the class libraries; and
* test for regressions.
* Visual Studio .NET 2005. Previous Visual Studio versions may work or
requires, hopefully minimal, changes.
* VSDependencies.zip must be decompressed under the /mono/ directory
(otherwise you will need to edit all the projects files). This file can
be downloaded from http://www.go-mono.com/archive/VSDependencies.zip
LOCAL CHANGES
Sadly solution/projects files aren't easy to move from computers to
computers (well unless everyone follow the same naming convention) so
you'll likely have to changes some options in order to compile the
solution.
* each executed assembly (i.e. the EXE) must be able to find a
working mscorlib.dll (and all the other required assemblies).
This can be done in different ways. My preference is to use the
project "properties pages" in the "Configuration Properties
\Debugging\Environment" options and set MONO_PATH to the class
libraries directory build by cygwin (local) or on Linux
(remote).
e.g. MONO_PATH=z:\svn\mcs\class\lib\default\
allows me to use the class libs build under Linux, while
MONO_PATH=C:\cygwin\opt\mono\lib\mono\1.0
use the one built from cygwin (after a make install)
Some useful informations to adapt the solution/project files...
* My cygwin root dir is: c:\cygwin\
* My username is: poupou
* My mono install prefix is: /opt/mono
BUILDING
Once everything is installed (and edited) you can right-click on the
"mono" solution (in the "Solution Explorer"), select "Clean
Solution" (for the first time) then "Build Solution".
KNOWN ISSUES
[1] Most, BUT NOT ALL, the regressions tests pass under this build. The
failures seems limited to some mathematical differences and to code
relying on the stack walking functions. The hacks to replace the GCC
functions (__builtin_frame_address and __builtin_return_address) are
incomplete;
[2] The solution doesn't provide complete (i.e. from scratch) build. It
requires a working cygwin environment to create some files (e.g. via
genmdesc, monoburg). This isn't so bad as without cygwin you wouldn't be
able to test Mono properly (see REQUIREMENTS);
[3] Only the Debug target is configured properly (that would be easy to
fix, but would require turning off some optimizations like omitting
stack frames). Anyway there are other issues [1] to fix before switching
to Release and IMHO the _biggest_ advantage to VS.NET is it's debugger/
debugging tools;
[4] The C compiler emits _lots_ of warning during compilation. Some
warnings have been turned off for some projects (there was so much that
it slowed down compilation). You can bring them back (or hide more of
them) using the project "properties pages" windows, "Configuration
Properties\C/C++\Advanced\Disable Specific Warnings";
[5] Visual Studio 2005 should have all the latest header files required,
but if not (or if you're using an older version of VS) then install MS
Platform SDK (Windows Server 2003 is the latest) to ensure you have the
latest Windows header files. You can download it from:
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
[6] Not everyone has VS.NET so it is possible you may have to add some
(new) files to the build from time to time. See "more informations" for
reporting those changes.
[7] Probably a lot more I didn't discover... or has changed since.
MORE INFORMATION
Please email <[email protected]> if you have any problem
and/or if there's something wrong/missing in the instructions.
An online version of this file is available at
http://www.mono-project.com/Compiling_Mono_VSNET
-185
View File
@@ -1,185 +0,0 @@
Mono uses third-party libraries or other resources that may be
distributed under licenses different than the Mono software.
Attributions and license notices for test cases originally authored by
third parties can be found in the respective test directories.
In the event that we accidentally failed to list a required notice, please
bring it to our attention. Post an issue or email us:
[email protected]
The attached notices are provided for information only.
License notice for Mono
-----------------------
Note: multiple license notices are provided that occure in source code.
They are equivalent forms of the the MIT license from various copyright holders.
// Dual licensed under the terms of the MIT X11 or GNU GPL
// Copyright 2003-2011 Novell, Inc.
// Copyright 2011 Xamarin Inc
/**
*
* Copyright 2001-2003 Ximian, Inc
* Copyright 2003-2010 Novell, Inc.
* Copyright (C) 2012 Xamarin Inc
*
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
/******************************************************************************
* The MIT License
* Copyright (c) 2003 Novell Inc. www.novell.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the Software), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*******************************************************************************/
License notice for Apple
-------------------------
Content: https://github.com/mono/mono/blob/435f968102d0820ca65d63e1e741e4130b4d1303/support/ios/net/route.h
License: https://opensource.apple.com/apsl/
License for GCC
---------------
License: http://gcc.gnu.org/onlinedocs/gcc-4.6.4/libstdc++/manual/manual/license.html
Content: https://github.com/mono/mono/blob/c398e19d3515c6bbb6046ed014b2095594a15229/mono/mini
Example: https://github.com/mono/mono/blob/c398e19d3515c6bbb6046ed014b2095594a15229/mono/mini/decompose.c#L967
GCC RUNTIME LIBRARY EXCEPTION
Version 3.1, 31 March 2009
Copyright (C) 2009 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
This GCC Runtime Library Exception ("Exception") is an additional
permission under section 7 of the GNU General Public License, version
3 ("GPLv3"). It applies to a given file (the "Runtime Library") that
bears a notice placed by the copyright holder of the file stating that
the file is governed by GPLv3 along with this Exception.
When you use GCC to compile a program, GCC may combine portions of
certain GCC header files and runtime libraries with the compiled
program. The purpose of this Exception is to allow compilation of
non-GPL (including proprietary) programs to use, in this way, the
header files and runtime libraries covered by this Exception.
0. Definitions.
A file is an "Independent Module" if it either requires the Runtime
Library for execution after a Compilation Process, or makes use of an
interface provided by the Runtime Library, but is not otherwise based
on the Runtime Library.
"GCC" means a version of the GNU Compiler Collection, with or without
modifications, governed by version 3 (or a specified later version) of
the GNU General Public License (GPL) with the option of using any
subsequent versions published by the FSF.
"GPL-compatible Software" is software whose conditions of propagation,
modification and use would permit combination with GCC in accord with
the license of GCC.
"Target Code" refers to output from any compiler for a real or virtual
target processor architecture, in executable form or suitable for
input to an assembler, loader, linker and/or execution
phase. Notwithstanding that, Target Code does not include data in any
format that is used as a compiler intermediate representation, or used
for producing a compiler intermediate representation.
The "Compilation Process" transforms code entirely represented in
non-intermediate languages designed for human-written code, and/or in
Java Virtual Machine byte code, into Target Code. Thus, for example,
use of source code generators and preprocessors need not be considered
part of the Compilation Process, since the Compilation Process can be
understood as starting with the output of the generators or
preprocessors.
A Compilation Process is "Eligible" if it is done using GCC, alone or
with other GPL-compatible software, or if it is done without using any
work based on GCC. For example, using non-GPL-compatible Software to
optimize any GCC intermediate representations would not qualify as an
Eligible Compilation Process.
1. Grant of Additional Permission.
You have permission to propagate a work of Target Code formed by
combining the Runtime Library with Independent Modules, even if such
propagation would otherwise violate the terms of GPLv3, provided that
all Target Code was generated by Eligible Compilation Processes. You
may then convey such a combination under terms of your choice,
consistent with the licensing of the Independent Modules.
2. No Weakening of GCC Copyleft.
The availability of this Exception does not imply any general
presumption that third-party software is unaffected by the copyleft
requirements of the license of GCC.
Hopefully that text is self-explanatory. If it isn't, you need to speak to your lawyer, or the Free Software Foundation.
License notice for Silicon Graphics and HP
------------------------------------------
/*
* Copyright (c) 1996-1997
* Silicon Graphics Computer Systems, Inc.
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. Silicon Graphics makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied warranty.
*
* Copyright (c) 2002
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear
* in supporting documentation. Hewlett-Packard Company makes no
* representations about the suitability of this software for any
* purpose. It is provided "as is" without express or implied warranty.
*/
/*
* This implements standard-conforming allocators that interact with
* the garbage collector. Gc_alloctor<T> allocates garbage-collectable
* objects of type T. Traceable_allocator<T> allocates objects that
* are not temselves garbage collected, but are scanned by the
* collector for pointers to collectable objects. Traceable_alloc
* should be used for explicitly managed STL containers that may
* point to collectable objects.
*
* This code was derived from an earlier version of the GNU C++ standard
* library, which itself was derived from the SGI STL implementation.
*/
Content: https://github.com/mono/mono/blob/d58dfa185af1d48fb93efdef1d046762f214f0a7/libgc/include/gc_allocator.h
-7
View File
@@ -1,7 +0,0 @@
Makefile.in
Makefile
*.exe
*.dll
*.mdb
coreclr-testlist.txt
microbench-perf.sh
@@ -1,41 +0,0 @@
using System;
using System.IO;
using System.Reflection;
namespace System.Runtime.Loader
{
public abstract class AssemblyLoadContext
{
protected abstract Assembly Load(AssemblyName assemblyName);
protected Assembly LoadFromAssemblyPath(string assemblyPath)
{
if (assemblyPath == null)
throw new ArgumentNullException("assemblyPath");
if (!Path.IsPathRooted(assemblyPath))
throw new ArgumentException("Gimme an absolute path " + assemblyPath + " XXX " + Path.GetPathRoot(assemblyPath), "assemblyPath");
return Assembly.LoadFrom (assemblyPath);
}
public Assembly LoadFromAssemblyName(AssemblyName assemblyName)
{
// AssemblyName is mutable. Cache the expected name before anybody gets a chance to modify it.
string requestedSimpleName = assemblyName.Name;
Assembly assembly = Load(assemblyName);
if (assembly == null)
throw new FileLoadException("File not found", requestedSimpleName);
return assembly;
}
public static AssemblyName GetAssemblyName(string assemblyPath)
{
if (!File.Exists (assemblyPath))
throw new Exception ("file not found");
return new AssemblyName (Path.GetFileName (assemblyPath));
}
}
}
-29
View File
@@ -1,29 +0,0 @@
ACCEPTANCE_TESTS_PATH=external
BENCHMARKER_PATH=$(ACCEPTANCE_TESTS_PATH)/benchmarker
ROSLYN_PATH=$(ACCEPTANCE_TESTS_PATH)/roslyn
CORECLR_PATH=$(ACCEPTANCE_TESTS_PATH)/coreclr
MSTESTSUITE_PATH=$(ACCEPTANCE_TESTS_PATH)/ms-test-suite
DEBIANSHOOTOUTMONO_PATH=$(ACCEPTANCE_TESTS_PATH)/DebianShootoutMono
CLEANFILES = *.dll *.exe *.mdb
EXTRA_DIST=README.md SUBMODULES.json microbench.mk versions.mk profiler-stress.mk roslyn.mk coreclr.mk ms-test-suite.mk
CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
TOOLS_CLASS=$(mcs_topdir)/class/lib/build
RUNTIME = MONO_PATH=$(CLASS) $(abs_top_builddir)/runtime/mono-wrapper --debug
TOOLS_RUNTIME = MONO_PATH=$(TOOLS_CLASS) $(abs_top_builddir)/runtime/mono-wrapper --debug
MCS = $(TOOLS_RUNTIME) $(CSC) -nologo -noconfig -lib:$(CLASS) -r:System.dll -r:System.Core.dll -r:System.Xml.dll -r:Microsoft.CSharp.dll
ILASM = $(TOOLS_RUNTIME) $(TOOLS_CLASS)/ilasm.exe
XUNIT = $(RUNTIME) $(abs_top_builddir)/external/xunit-binaries/xunit.console.exe
include versions.mk
include microbench.mk
include profiler-stress.mk
include roslyn.mk
include coreclr.mk
include ms-test-suite.mk
check-full: check-profiler-stress check-roslyn check-coreclr check-ms-test-suite
clean-local: clean-local-coreclr
-35
View File
@@ -1,35 +0,0 @@
Acceptance tests
================
This directory contains acceptance tests, which are third party test suites and frameworks that are used to validate Mono against a wider range of test cases that go beyond the Mono unit tests that run as part of CI.
In order to make checking out those test suites optional we don't use traditional git submodules, but instead clone them on demand when needed. The custom submodule repositories are checked out into the acceptance-tests/external/ directory.
## Usage
Running all test suites is possible via "make check-full". There are also targets for running individual test suites, see below.
Some of the test suites require an installed Mono (i.e. they don't work with the in-tree build), those will ask you to pass in the PREFIX variable pointing to the installation directory when invoking make. Note that this directory needs to be writable as we overwrite some files there as part of testing.
## Individual test suites and targets
* `make check-ms-test-suite` - Runs tests that were shared with Xamarin, those are not available publically and will be skipped when the repository is not accessible.
* `make check-roslyn` - Runs the Roslyn test suite.
* `make check-coreclr` - Runs the CoreCLR test suite.
* `make coreclr-runtest-coremanglib` - Runs only the CoreMangLib portion of the CoreCLR tests, those tests mostly target the BCL behavior.
* `make coreclr-runtest-basic` - Runs only the CoreCLR tests that target runtime behavior and stability.
* `make coreclr-compile-tests` - Convenience target that precompiles all the test cases in parallel.
* `make coreclr-gcstress` - Runs the CoreCLR GC stress tests.
## Updating submodules
The SUBMODULES.json file stores information about the submodules, and make targets are used to check out submodules, check their versions, and update the submodule information:
* `make validate-<module>` - Checks whenever `<module>` is checked out and matches the version in the info file.
* `make reset-<module>` - Clones `<module>` if neccesary and checks out the revision specified in the info file.
* `make bump-<module>` - Updates the revision stored in the info file for `<module>`.
* `make bump-current-<module>` - Updates the revision stored in the info file for `<module>` to the current revision.
* `make commit-bump-<module>` - Same as `make bump-<module>`, but commits the change.
* `make commit-bump-current-<module>` - Same as `make bump-current-<module>`, but commits the change.
Example: when making a change in the CoreCLR submodule (like disabling something on Mono), you'd commit the change there and then run `make bump-current-coreclr` or `make commit-bump-current-coreclr` to update the version in SUBMODULES.json.
-42
View File
@@ -1,42 +0,0 @@
[
{
"name": "roslyn",
"url": "git://github.com/mono/roslyn.git",
"rev": "6bfcd4e770609a38b8523e83ce1ec943162f30bb",
"remote-branch": "origin/mono-testing",
"branch": "mono-testing",
"directory": "roslyn"
},
{
"name": "coreclr",
"url": "git://github.com/mono/coreclr.git",
"rev": "90f7060935732bb624e1f325d23f63072433725f",
"remote-branch": "origin/mono",
"branch": "mono",
"directory": "coreclr"
},
{
"name": "ms-test-suite",
"url": "[email protected]:xamarin/ms-test-suite.git",
"rev": "39b1b222e8a3690a1b8ea018ce54d2a826f5246e",
"remote-branch": "origin/master",
"branch": "master",
"directory": "ms-test-suite"
},
{
"name": "benchmarker",
"url": "git://github.com/xamarin/benchmarker.git",
"rev": "97f618cd585af549dd861b7c142656c496f6a89b",
"remote-branch": "origin/master",
"branch": "master",
"directory": "benchmarker"
},
{
"name": "DebianShootoutMono",
"url": "https://github.com/alexanderkyte/DebianShootoutMono.git",
"rev": "3fde2ced806c1fe7eed81120a40d99474fa009f0",
"remote-branch": "origin/release_11_15_2018",
"branch": "release_11_15_2018",
"directory": "DebianShootoutMono"
}
]
File diff suppressed because it is too large. Load diff
-2
View File
@@ -1,2 +0,0 @@
*
!.gitignore
-17
View File
@@ -1,17 +0,0 @@
#! /bin/sh
r='@mono_build_root@'
aotpattern="--aot="
# if this is an aot invoke
if [[ $@ =~ $aotpattern ]];
then
# just aot the code
echo "$r/runtime/mono-wrapper $@"
exec $r/runtime/mono-wrapper $@
else
# else run it under perf
echo "$MONO_PERF_BINARY record -o $r/acceptance-tests/perf.data -v -s -g -- $r/mono/mini/mono-sgen $@"
exec $MONO_PERF_BINARY record -o $r/acceptance-tests/perf.data -v -s -g $r/mono/mini/mono-sgen $@
fi
-119
View File
@@ -1,119 +0,0 @@
check-microbench: DebianShootoutMono.stamp
@$(MAKE) test-run-microbench
DebianShootoutMono.stamp:
@$(MAKE) validate-DebianShootoutMono RESET_VERSIONS=1
@$(MAKE) prepare-dlls
@touch $@
abs_top_srcdir = $(abspath $(top_srcdir))
TEST_EXE_PATH=$(abs_top_srcdir)/acceptance-tests/external/DebianShootoutMono/release/
NET_4_X_RUNTIME=MONO_PATH=$(TEST_EXE_PATH):$(abs_top_srcdir)/mcs/class/lib/net_4_x $(abs_top_srcdir)/runtime/mono-wrapper
FULL_AOT_RUNTIME=MONO_PATH=$(abs_top_srcdir)/mcs/class/lib/testing_aot_full $(abs_top_srcdir)/runtime/mono-wrapper
PERF_BINARY=$(if $(MONO_PERF_BINARY),$(MONO_PERF_BINARY),perf)
PERF_RUNTIME=$(abs_top_srcdir)/acceptance-tests/microbench-perf.sh
define BenchmarkDotNetTemplate
run-microbench-$(1):: DebianShootoutMono.stamp
MONO_BENCH_AOT_RUN="$(AOT_RUN_FLAGS)" \
MONO_BENCH_AOT_BUILD="$(AOT_BUILD_FLAGS)" \
MONO_BENCH_EXECUTABLE="$(abs_top_srcdir)/runtime/mono-wrapper" \
MONO_BENCH_PATH="$(abs_top_srcdir)/mcs/class/lib/$(TEST_PROFILE)" \
MONO_BENCH_INPUT="$(2)" \
$(NET_4_X_RUNTIME) \
$(TEST_EXE_PATH)/DebianShootoutMono.exe $(1)
test-run-microbench:: run-microbench-$(1)
run-microbench-debug-$(1):: DebianShootoutMono.stamp
echo MONO_PATH="$(abs_top_srcdir)/mcs/class/lib/$(TEST_PROFILE)" $(abs_top_srcdir)/runtime/mono-wrapper $(AOT_BUILD_FLAGS) $(TEST_EXE_PATH)/DebianShootoutMono.exe
MONO_BENCH_INPUT="$(2)" \
MONO_PATH="$(abs_top_srcdir)/mcs/class/lib/$(TEST_PROFILE)" \
$(abs_top_srcdir)/runtime/mono-wrapper $(AOT_RUN_FLAGS) $(TEST_EXE_PATH)/DebianShootoutMono.exe Run $(1)
test-run-microbench-debug:: run-microbench-debug-$(1)
if HOST_LINUX
run-microbench-profiled-$(1):: microbench-results/$(1).perf.data
microbench-results/$(1).perf.data: DebianShootoutMono.stamp
mkdir -p microbench-results
MONO_PERF_BINARY="$(PERF_BINARY)" \
MONO_BENCH_EXECUTABLE="$(PERF_RUNTIME)" \
MONO_BENCH_AOT_RUN="$(AOT_RUN_FLAGS)"\
MONO_BENCH_AOT_BUILD="$(AOT_BUILD_FLAGS)"\
MONO_BENCH_PATH="$(abs_top_srcdir)/mcs/class/lib/$(TEST_PROFILE)" \
MONO_BENCH_INPUT="$(2)" \
$(NET_4_X_RUNTIME) \
$(TEST_EXE_PATH)/DebianShootoutMono.exe $(1) $(2)
mv perf.data microbench-results/$(1).perf.data
microbench-results/$(1).tmp.perf: microbench-results/$(1).perf.data
$(PERF_BINARY) script -i microbench-results/$(1).perf.data > microbench-results/$(1).tmp.perf
microbench-results/$(1).perf-flame.svg: microbench-results/$(1).tmp.perf
cat microbench-results/$(1).tmp.perf | ./external/DebianShootoutMono/FlameGraph/stackcollapse-perf.pl > microbench-results/$(1).perf-folded
./external/DebianShootoutMono/FlameGraph/flamegraph.pl microbench-results/$(1).perf-folded > microbench-results/$(1).perf-flame.svg
rm microbench-results/$(1).tmp.perf
rm microbench-results/$(1).perf-folded
MONO_PERF_FLAGS=--show-cpu-utilization -n --hierarchy -T $(MONO_PERF_ADDITIONAL_FLAGS)
microbench-results/$(1).perf.report: microbench-results/$(1).perf.data
$(PERF_BINARY) report -i microbench-results/$(1).perf.data $(MONO_PERF_FLAGS) > microbench-results/$(1).perf.report
test-run-microbench-profiled:: run-microbench-profiled-$(1)
test-run-microbench-publish-collect:: microbench-results/$(1).perf.data microbench-results/$(1).perf.report microbench-results/$(1).perf-flame.svg
endif
endef
if HOST_LINUX
test-run-microbench-perf-check:
$(PERF_BINARY) record -a -o perf.data -- echo "testing"
rm perf.data
microbench-results/perf-data.zip:
zip microbench-results/perf-data.zip microbench-results/*.perf.data
rm microbench-results/*.perf.data
perf-report: microbench-results/perf-data.zip
perf-report-total: test-run-microbench-publish-collect
@$(MAKE) perf-report
endif
.PHONY: prepare-dlls
if FULL_AOT_TESTS
prepare-dlls:
$(FULL_AOT_RUNTIME) $(AOT_BUILD_FLAGS) $(TEST_EXE_PATH)/*.{dll,exe}
else
prepare-dlls:
endif
FIXTURE_DIR=$(abs_top_srcdir)/acceptance-tests/external/DebianShootoutMono/fixtures
$(eval $(call BenchmarkDotNetTemplate,Mandelbrot,))
$(eval $(call BenchmarkDotNetTemplate,RegexRedux,$(FIXTURE_DIR)/regexredux-input.txt))
$(eval $(call BenchmarkDotNetTemplate,KNucleotide,$(FIXTURE_DIR)/knucleotide-input.txt))
$(eval $(call BenchmarkDotNetTemplate,BinaryTrees,))
$(eval $(call BenchmarkDotNetTemplate,NBodyTest,))
$(eval $(call BenchmarkDotNetTemplate,SpectralNorm,))
$(eval $(call BenchmarkDotNetTemplate,Fannkuchredux,))
$(eval $(call BenchmarkDotNetTemplate,Fasta,))
$(eval $(call BenchmarkDotNetTemplate,RevComp,$(FIXTURE_DIR)/revcomp-input.txt))
#$(eval $(call BenchmarkDotNetTemplate,GistBenchmark,$(MONO_BENCH_GIST_URL))) broken in BDN, bug filed
-15
View File
@@ -1,15 +0,0 @@
check-ms-test-suite: $(CLASS)/nunitlite.dll
@if $(MAKE) validate-ms-test-suite RESET_VERSIONS=1; then \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/System.Linq.Expressions build MCS="$(MCS) -debug:portable -t:library -warn:1 -r:$(CLASS)/nunitlite.dll" && \
$(MAKE) -C $(MSTESTSUITE_PATH)/conformance run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-conformance.xml" || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/systemruntimebringup run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-systemruntimebringup.xml" || EXIT_CODE=1; \
$(MAKE) -C $(MSTESTSUITE_PATH)/System.Linq.Expressions run NUNIT-CONSOLE="$(RUNTIME) $(CLASS)/nunit-lite-console.exe -exclude=MonoBug,BadTest -format:nunit2" NUNIT_XML_RESULT="-result:$(abs_top_builddir)/acceptance-tests/TestResult-ms-test-suite-systemlinqexpressions.xml" || EXIT_CODE=1; \
exit $$EXIT_CODE; \
else \
echo "*** [ms-test-suite] Getting the repository failed, you probably don't have access to this Xamarin-internal resource. Skipping."; \
fi
$(CLASS)/nunitlite.dll:
$(MAKE) -C $(mcs_topdir)/tools/nunit-lite
-13
View File
@@ -1,13 +0,0 @@
SYS_REFS = \
System.dll \
System.Core.dll \
System.Data.dll \
System.Runtime.Serialization.dll \
System.Xml.dll \
System.Xml.Linq.dll \
Mono.Posix.dll
check-profiler-stress:
@$(MAKE) validate-benchmarker RESET_VERSIONS=1
cd profiler-stress && $(MCS) -debug -define:ARCH_$(arch_target) -target:exe $(addprefix -r:, $(SYS_REFS)) -out:runner.exe @runner.exe.sources
cd profiler-stress && $(RUNTIME) runner.exe
-374
View File
@@ -1,374 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Xml;
using Mono.Unix.Native;
using Newtonsoft.Json;
// Shut up CLS compliance warnings from Json.NET.
[assembly: CLSCompliant (true)]
namespace Mono.Profiling.Tests.Stress {
// https://github.com/xamarin/benchmarker/blob/master/tools/libdbmodel/Benchmark.cs
sealed class Benchmark {
public string Name { get; set; }
public string TestDirectory { get; set; }
public bool OnlyExplicit { get; set; }
public string[] CommandLine { get; set; }
public string[] ClientCommandLine { get; set; }
public string[] AOTAssemblies { get; set; }
public static Benchmark Load (string file)
{
return JsonConvert.DeserializeObject<Benchmark> (File.ReadAllText (file));
}
}
sealed class TestResult {
public Benchmark Benchmark { get; set; }
public ProcessStartInfo StartInfo { get; set; }
public Stopwatch Stopwatch { get; set; } = new Stopwatch ();
public int? ExitCode { get; set; }
public string StandardOutput { get; set; }
public string StandardError { get; set; }
}
static class Program {
static readonly string[] _options = new [] {
"exception",
"monitor",
"gc",
"gcalloc",
"gcmove",
"gcroot",
"gchandle",
"finalization",
"counter",
"jit",
};
static readonly TimeSpan _timeout = TimeSpan.FromHours (6);
const RegexOptions _regexOptions = RegexOptions.Compiled | RegexOptions.Singleline;
static readonly Dictionary<string, Predicate<Benchmark>> _filters = new Dictionary<string, Predicate<Benchmark>> {
{ "ironjs-v8", FilterNotOnArm },
{ "msbiology", FilterNever },
};
static bool FilterNever (Benchmark benchmark)
{
return false;
}
static bool FilterNotOnArm (Benchmark benchmark)
{
#if ARCH_arm || ARCH_arm64
return false;
#else
return true;
#endif
}
static bool IsSupported (Benchmark benchmark)
{
return _filters.TryGetValue (benchmark.Name, out var filter) ? filter (benchmark) : true;
}
static string ReplaceInvalidXmlChars (string text) {
return Regex.Replace (text, @"[^\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD\u10000-\u10FFFF]", string.Empty);
}
static int Main ()
{
var regex = new Regex (".*", _regexOptions);
if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_REGEX") is string envRegex)
regex = new Regex (envRegex, _regexOptions);
var depDir = Path.Combine ("..", "external", "benchmarker");
var benchDir = Path.Combine (depDir, "benchmarks");
var testDir = Path.Combine (depDir, "tests");
var benchmarks = Directory.EnumerateFiles (benchDir, "*.benchmark")
.Select (Benchmark.Load)
.Where (b => !b.OnlyExplicit && b.ClientCommandLine == null && IsSupported (b) && regex.IsMatch (b.Name))
.OrderBy (b => b.Name)
.ToArray ();
var monoPath = Path.GetFullPath (Path.Combine ("..", "..", "runtime", "mono-wrapper"));
var classDir = Path.GetFullPath (Path.Combine ("..", "..", "mcs", "class", "lib", "net_4_x"));
var seed = Environment.TickCount;
if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_SEED") is string envSeed)
seed = int.Parse (envSeed);
var timeout = (int) _timeout.TotalMilliseconds;
if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_TIMEOUT") is string envTimeout)
timeout = (int) TimeSpan.Parse (envTimeout).TotalMilliseconds;
string options = null;
if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_OPTIONS") is string envOptions)
options = envOptions;
var suspend = false;
if (Environment.GetEnvironmentVariable ("MONO_PROFILER_STRESS_SUSPEND") is string envSuspend)
suspend = bool.Parse (envSuspend);
var rand = new Random (seed);
var cpus = Environment.ProcessorCount;
var sw = Stopwatch.StartNew ();
Console.ForegroundColor = ConsoleColor.Magenta;
Console.WriteLine ($"[{sw.Elapsed.ToString ("G")}] Starting test session with seed: {seed}");
Console.ResetColor ();
var results = new List<TestResult> (benchmarks.Length);
for (var i = 0; i < benchmarks.Length; i++) {
var bench = benchmarks [i];
var sampleFreq = rand.Next (-1000, 1001);
var sampleMode = rand.Next (0, 2) == 1 ? "-real" : string.Empty;
var maxSamples = rand.Next (0, cpus * 2000 + 1);
var heapShotFreq = rand.Next (-10, 11);
var maxFrames = rand.Next (0, 33);
var flags = _options.ToDictionary (x => x, _ => rand.Next (0, 2) == 1)
.Select (x => (x.Value ? string.Empty : "no") + x.Key)
.ToArray ();
var profOptions = "nodefaults,output=/dev/null,";
if (options == null) {
profOptions += $"maxframes={maxFrames},";
if (sampleFreq > 0)
profOptions += $"sample{sampleMode}={sampleFreq},maxsamples={maxSamples},";
if (heapShotFreq > 0)
profOptions += $"heapshot={heapShotFreq}gc,";
profOptions += string.Join (",", flags);
} else
profOptions += options;
var info = new ProcessStartInfo {
UseShellExecute = false,
WorkingDirectory = Path.Combine (testDir, bench.TestDirectory),
FileName = monoPath,
Arguments = $"--debug --profile=log:{profOptions} " + string.Join (" ", bench.CommandLine),
RedirectStandardOutput = true,
RedirectStandardError = true,
};
info.EnvironmentVariables.Clear ();
info.EnvironmentVariables.Add ("MONO_PATH", classDir);
if (suspend)
info.EnvironmentVariables.Add ("MONO_DEBUG", "suspend-on-native-crash,suspend-on-unhandled");
var progress = $"({i + 1}/{benchmarks.Length})";
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine ($"[{sw.Elapsed.ToString ("G")}] {progress} Running {bench.Name} with profiler options: {profOptions}");
Console.ResetColor ();
var result = new TestResult {
Benchmark = bench,
StartInfo = info,
};
using (var proc = new Process ()) {
proc.StartInfo = info;
var stdout = new StringBuilder ();
var stderr = new StringBuilder ();
proc.OutputDataReceived += (sender, args) => {
if (args.Data != null)
lock (result)
stdout.AppendLine (args.Data);
};
proc.ErrorDataReceived += (sender, args) => {
if (args.Data != null)
lock (result)
stderr.AppendLine (args.Data);
};
result.Stopwatch.Start ();
proc.Start ();
proc.BeginOutputReadLine ();
proc.BeginErrorReadLine ();
if (!proc.WaitForExit (timeout)) {
// Force a thread dump.
Syscall.kill (proc.Id, Signum.SIGQUIT);
Thread.Sleep (1000);
try {
proc.Kill ();
} catch (Exception) {
}
} else
result.ExitCode = proc.ExitCode;
result.Stopwatch.Stop ();
lock (result) {
result.StandardOutput = stdout.ToString ();
result.StandardError = stderr.ToString ();
}
}
var resultStr = result.ExitCode == null ? "timed out" : $"exited with code: {result.ExitCode}";
Console.ForegroundColor = result.ExitCode != 0 ? ConsoleColor.Red : ConsoleColor.Green;
Console.WriteLine ($"[{sw.Elapsed.ToString ("G")}] {progress} {bench.Name} took {result.Stopwatch.Elapsed.ToString ("G")} and {resultStr}");
Console.ResetColor ();
if (result.ExitCode != 0) {
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine ("===== stdout =====");
Console.ResetColor ();
Console.WriteLine (result.StandardOutput);
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine ("===== stderr =====");
Console.ResetColor ();
Console.WriteLine (result.StandardError);
}
results.Add (result);
}
sw.Stop ();
var successes = results.Count (r => r.ExitCode == 0);
var failures = results.Count (r => r.ExitCode != null && r.ExitCode != 0);
var timeouts = results.Count (r => r.ExitCode == null);
var settings = new XmlWriterSettings {
NewLineOnAttributes = true,
Indent = true,
};
using (var writer = XmlWriter.Create ("TestResult-profiler-stress.xml", settings)) {
writer.WriteStartDocument ();
writer.WriteComment ($"This file represents the results of running a test suite (seed: {seed})");
writer.WriteStartElement ("test-results");
writer.WriteAttributeString ("name", "profiler-stress-tests.dummy");
writer.WriteAttributeString ("total", results.Count.ToString ());
writer.WriteAttributeString ("failures", failures.ToString ());
writer.WriteAttributeString ("not-run", "0");
writer.WriteAttributeString ("date", DateTime.Now.ToString ("yyyy-MM-dd"));
writer.WriteAttributeString ("time", DateTime.Now.ToString ("HH:mm:ss"));
writer.WriteStartElement ("environment");
writer.WriteAttributeString ("nunit-version", "2.4.8.0");
writer.WriteAttributeString ("clr-version", Environment.Version.ToString ());
writer.WriteAttributeString ("os-version", Environment.OSVersion.ToString ());
writer.WriteAttributeString ("platform", Environment.OSVersion.Platform.ToString ());
writer.WriteAttributeString ("cwd", Environment.CurrentDirectory);
writer.WriteAttributeString ("machine-name", Environment.MachineName);
writer.WriteAttributeString ("user", Environment.UserName);
writer.WriteAttributeString ("user-domain", Environment.UserDomainName);
writer.WriteEndElement ();
writer.WriteStartElement ("culture-info");
writer.WriteAttributeString ("current-culture", CultureInfo.CurrentCulture.Name);
writer.WriteAttributeString ("current-uiculture", CultureInfo.CurrentUICulture.Name);
writer.WriteEndElement ();
writer.WriteStartElement ("test-suite");
writer.WriteAttributeString ("name", "profiler-stress-tests.dummy");
writer.WriteAttributeString ("success", (failures + timeouts == 0).ToString ());
writer.WriteAttributeString ("time", ((int) sw.Elapsed.TotalSeconds).ToString ());
writer.WriteAttributeString ("asserts", (failures + timeouts).ToString ());
writer.WriteStartElement ("results");
writer.WriteStartElement ("test-suite");
writer.WriteAttributeString ("name", "MonoTests");
writer.WriteAttributeString ("success", (failures + timeouts == 0).ToString ());
writer.WriteAttributeString ("time", ((int) sw.Elapsed.TotalSeconds).ToString ());
writer.WriteAttributeString ("asserts", (failures + timeouts).ToString ());
writer.WriteStartElement ("results");
writer.WriteStartElement ("test-suite");
writer.WriteAttributeString ("name", "profiler-stress");
writer.WriteAttributeString ("success", (failures + timeouts == 0).ToString ());
writer.WriteAttributeString ("time", ((int) sw.Elapsed.TotalSeconds).ToString ());
writer.WriteAttributeString ("asserts", (failures + timeouts).ToString ());
writer.WriteStartElement ("results");
foreach (var result in results) {
var timeoutStr = result.ExitCode == null ? "_timeout" : string.Empty;
writer.WriteStartElement ("test-case");
writer.WriteAttributeString ("name", $"MonoTests.profiler-stress.{result.Benchmark.Name}{timeoutStr}");
writer.WriteAttributeString ("executed", "True");
writer.WriteAttributeString ("success", (result.ExitCode == 0).ToString ());
writer.WriteAttributeString ("time", ((int) result.Stopwatch.Elapsed.TotalSeconds).ToString ());
writer.WriteAttributeString ("asserts", result.ExitCode == 0 ? "0" : "1");
if (result.ExitCode != 0) {
writer.WriteStartElement ("failure");
writer.WriteStartElement ("message");
writer.WriteCData (ReplaceInvalidXmlChars (result.StandardOutput));
writer.WriteEndElement ();
writer.WriteStartElement ("stack-trace");
writer.WriteCData (ReplaceInvalidXmlChars (result.StandardError));
writer.WriteEndElement ();
writer.WriteEndElement ();
}
writer.WriteEndElement ();
}
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndElement ();
writer.WriteEndDocument ();
}
var failureStr = failures + timeouts != 0 ? $" ({failures} failures, {timeouts} timeouts)" : string.Empty;
Console.ForegroundColor = failures + timeouts != 0 ? ConsoleColor.Red : ConsoleColor.Green;
Console.WriteLine ($"[{sw.Elapsed.ToString ("G")}] Finished with {successes}/{results.Count} passing tests{failureStr}");
Console.ResetColor ();
return failures + timeouts;
}
}
}
@@ -1,156 +0,0 @@
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonBinaryType.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonToken.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonType.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonObjectId.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/BinaryConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DataSetConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DataTableConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/CustomCreationConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DateTimeConverterBase.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/EntityKeyMemberConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/ExpandoObjectConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/KeyValuePairConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/RegexConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/StringEnumConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ConstructorHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/VersionConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DateFormatHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DateTimeZoneHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Formatting.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConstructorAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonPosition.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPropertyKeyedCollection.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicProxy.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPath.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JRaw.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Required.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonDynamicContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonFormatterConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonISerializableContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonLinqContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DynamicValueProvider.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ErrorEventArgs.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/PreserveReferencesHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/IJsonLineInfo.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonArrayAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonContainerAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DefaultValueHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverterAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonObjectAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializerSettings.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonValidatingReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/IJEnumerable.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/MemberSerialization.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ObjectCreationHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/JavaScriptDateTimeConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonTextReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonPropertyAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonIgnoreAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonTextWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriterException.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReaderException.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverterCollection.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConvert.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializationException.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializer.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/Extensions.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JConstructor.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JContainer.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JEnumerable.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JObject.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JArray.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JToken.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JProperty.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenType.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JValue.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/Extensions.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaException.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaModel.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaModelBuilder.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaNodeCollection.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaNode.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/UndefinedSchemaIdHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/ValidationEventArgs.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/ValidationEventHandler.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/CamelCasePropertyNamesContractResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultSerializationBinder.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ErrorContext.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IContractResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IValueProvider.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonDictionaryContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonProperty.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonPropertyCollection.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/MissingMemberHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/NullValueHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ReferenceLoopHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchema.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaConstants.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IReferenceResolver.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaType.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonObjectContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalBase.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerProxy.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonStringContract.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/CachedAttributeGetter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/LateBoundMetadataTypeAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ReflectionValueProvider.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/OnErrorAttribute.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/Base64Encoder.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicWrapper.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ObjectConstructor.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ILGeneratorExtensions.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ReflectionDelegateFactory.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MethodCall.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringReference.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ThreadSafeStore.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/TypeNameHandling.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/BidirectionalDictionary.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DateTimeUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumValue.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumValues.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/JavaScriptUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonToken.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriter.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringBuffer.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/CollectionUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ListWrapper.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MathUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MiscellaneousUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ValidationUtils.cs
../../external/Newtonsoft.Json/Src/Newtonsoft.Json/WriteState.cs
runner.cs
-7
View File
@@ -1,7 +0,0 @@
check-roslyn:
@echo "Runnning roslyn tests using mono from PATH:"
mono --version
@$(MAKE) validate-roslyn RESET_VERSIONS=1
cd $(ROSLYN_PATH); \
./build.sh --restore --build --test --mono || exit; \
echo "done"
-64
View File
@@ -1,64 +0,0 @@
.PHONY: validate-versions reset-versions
SUBMODULES_CONFIG_FILE = $(top_srcdir)/acceptance-tests/SUBMODULES.json
include $(top_srcdir)/scripts/submodules/versions.mk
$(eval $(call ValidateVersionTemplate,benchmarker,BENCHMARKER))
$(eval $(call ValidateVersionTemplate,roslyn,ROSLYN))
$(eval $(call ValidateVersionTemplate,coreclr,CORECLR))
$(eval $(call ValidateVersionTemplate,ms-test-suite,MSTESTSUITE))
$(eval $(call ValidateVersionTemplate,DebianShootoutMono,DEBIANSHOOTOUTMONO))
# Bump the given submodule to the revision given by the REV make variable
# If COMMIT is 1, commit the change
bump-benchmarker: __bump-benchmarker
bump-roslyn: __bump-version-roslyn
bump-coreclr: __bump-version-coreclr
bump-ms-test-suite: __bump-version-ms-test-suite
bump-DebianShootoutMono: __bump-version-DebianShootoutMono
# Bump the given submodule to the branch given by the BRANCH/REMOTE_BRANCH make variables
# If COMMIT is 1, commit the change
bump-branch-benchmarker: __bump-branch-benchmarker
bump-branch-roslyn: __bump-branch-roslyn
bump-branch-coreclr: __bump-branch-coreclr
bump-branch-ms-test-suite: __bump-branch-ms-test-suite
bump-branch-DebianShootoutMono: __bump-branch-DebianShootoutMono
# Bump the given submodule to its current GIT version
# If COMMIT is 1, commit the change
bump-current-benchmarker: __bump-current-benchmarker
bump-current-roslyn: __bump-current-version-roslyn
bump-current-coreclr: __bump-current-version-coreclr
bump-current-ms-test-suite: __bump-current-version-ms-test-suite
bump-current-DebianShootoutMono: __bump-current-version-DebianShootoutMono
commit-bump-benchmarker:
$(MAKE) bump-benchmarker COMMIT=1
commit-bump-roslyn:
$(MAKE) bump-roslyn COMMIT=1
commit-bump-coreclr:
$(MAKE) bump-coreclr COMMIT=1
commit-bump-ms-test-suite:
$(MAKE) bump-ms-test-suite COMMIT=1
commit-bump-DebianShootoutMono:
$(MAKE) bump-DebianShootoutMono COMMIT=1
commit-bump-current-benchmarker:
$(MAKE) bump-current-benchmarker COMMIT=1
commit-bump-current-roslyn:
$(MAKE) bump-current-roslyn COMMIT=1
commit-bump-current-coreclr:
$(MAKE) bump-current-coreclr COMMIT=1
commit-bump-current-ms-test-suite:
$(MAKE) bump-current-ms-test-suite COMMIT=1
commit-bump-current-DebianShootoutMono:
$(MAKE) bump-current-DebianShootoutMono COMMIT=1
+3 -7
View File
@@ -22,14 +22,11 @@ if test x$GCC != xyes; then
dolt_supported=no
fi
case $host in
i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux* \
|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*)
pic_options='-fPIC'
;;
?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
pic_options='-DDLL_EXPORT'
;;
i?86-apple-darwin*|arm-apple-darwin*)
i?86-apple-darwin*)
pic_options='-fno-common'
;;
*)
@@ -158,7 +155,6 @@ modeok=false
tagok=false
for arg in "$[]@"; do
case "$arg" in
--silent) ;;
--mode=compile) modeok=true ;;
--tag=CC|--tag=CXX) tagok=true ;;
--quiet) ;;
+25 -75
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
# Ripped off from GNOME macros version
@@ -30,25 +30,25 @@ fi
DIE=1
}
if [ -z "$LIBTOOLIZE" ]; then
LIBTOOLIZE=`which glibtoolize 2>/dev/null`
if [ ! -x "$LIBTOOLIZE" ]; then
LIBTOOLIZE=`which libtoolize`
if [ -z "$LIBTOOL" ]; then
LIBTOOL=`which glibtool 2>/dev/null`
if [ ! -x "$LIBTOOL" ]; then
LIBTOOL=`which libtool`
fi
fi
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.ac >/dev/null) && {
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
(grep "^AM_PROG_LIBTOOL" $srcdir/configure.in >/dev/null) && {
($LIBTOOL --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`libtoolize' installed to compile Mono."
echo "Get ftp://ftp.gnu.org/gnu/libtool/libtool-1.2.tar.gz"
echo "**Error**: You must have \`libtool' installed to compile Mono."
echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-1.2d.tar.gz"
echo "(or a newer version if it is available)"
DIE=1
}
}
grep "^AM_GNU_GETTEXT" $srcdir/configure.ac >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.ac >/dev/null || \
grep "^AM_GNU_GETTEXT" $srcdir/configure.in >/dev/null && {
grep "sed.*POTFILES" $srcdir/configure.in >/dev/null || \
(gettext --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`gettext' installed to compile Mono."
@@ -82,58 +82,28 @@ if test "$DIE" -eq 1; then
exit 1
fi
if test x$NOCONFIGURE = x && test -z "$*"; then
if test -z "$*"; then
echo "**Warning**: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line."
echo
fi
am_opt="--add-missing --copy --gnu -Wno-portability -Wno-obsolete"
case $CC in
xlc )
am_opt="$am_opt --include-deps";;
am_opt=--include-deps;;
esac
if grep "^AM_PROG_LIBTOOL" configure.ac >/dev/null; then
if grep "^AM_PROG_LIBTOOL" configure.in >/dev/null; then
if test -z "$NO_LIBTOOLIZE" ; then
echo "Running libtoolize..."
$LIBTOOLIZE --force --copy
${LIBTOOL}ize --force --copy
fi
fi
# Parse parameters
has_ext_mod=false
ext_mod_args=''
has_disable_boehm=false
for PARAM; do
if [[ $PARAM =~ "--enable-extension-module" ]] ; then
has_ext_mod=true
if [[ $PARAM =~ "=" ]] ; then
ext_mod_args=`echo $PARAM | cut -d= -f2`
fi
fi
if [[ $PARAM =~ "--disable-boehm" ]] ; then
has_disable_boehm=true
fi
done
#
# Plug in the extension module
#
if test x$has_ext_mod = xtrue; then
pushd $top_srcdir../mono-extensions/scripts
sh ./prepare-repo.sh $ext_mod_args || exit 1
popd
else
cat mono/mini/Makefile.am.in > mono/mini/Makefile.am
fi
echo "Running aclocal -I m4 -I . $ACLOCAL_FLAGS ..."
aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
echo "Running aclocal $ACLOCAL_FLAGS ..."
aclocal $ACLOCAL_FLAGS || {
echo
echo "**Error**: aclocal failed. This may mean that you have not"
echo "installed all of the packages you need, or you may need to"
@@ -143,45 +113,25 @@ aclocal -Wnone -I m4 -I . $ACLOCAL_FLAGS || {
exit 1
}
if grep "^AC_CONFIG_HEADERS" configure.ac >/dev/null; then
if grep "^AM_CONFIG_HEADER" configure.in >/dev/null; then
echo "Running autoheader..."
autoheader || { echo "**Error**: autoheader failed."; exit 1; }
fi
echo "Running automake $am_opt ..."
automake $am_opt ||
echo "Running automake --gnu $am_opt ..."
automake --add-missing --gnu $am_opt ||
{ echo "**Error**: automake failed."; exit 1; }
echo "Running autoconf ..."
autoconf || { echo "**Error**: autoconf failed."; exit 1; }
# Update all submodules recursively to ensure everything is checked out
if test -e $srcdir/scripts/update_submodules.sh; then
(cd $srcdir && scripts/update_submodules.sh)
if test -d $srcdir/libgc; then
echo Running libgc/autogen.sh ...
(cd $srcdir/libgc ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running libgc/autogen.sh ...
fi
if test x$has_disable_boehm = xfalse -a -d $srcdir/external/bdwgc; then
echo Running external/bdwgc/autogen.sh ...
(cd $srcdir/external/bdwgc ; NOCONFIGURE=1 ./autogen.sh "$@")
echo Done running external/bdwgc/autogen.sh ...
fi
if test x$MONO_EXTRA_CONFIGURE_FLAGS != x; then
echo "MONO_EXTRA_CONFIGURE_FLAGS is $MONO_EXTRA_CONFIGURE_FLAGS"
fi
host_conf_flag=
build_uname_all=`(uname -a) 2>/dev/null`
case "$build_uname_all" in
CYGWIN*)
if [[ "$@" != *"--host="* ]]; then
echo "Missing --host parameter, configure using ./configure --host=i686-w64-mingw32 or --host=x86_64-w64-mingw32"
echo "Falling back using --host=x86_64-w64-mingw32 as default."
host_conf_flag="--host=x86_64-w64-mingw32"
fi
;;
esac
conf_flags="$MONO_EXTRA_CONFIGURE_FLAGS --enable-maintainer-mode --enable-compile-warnings $host_conf_flag" #--enable-iso-c
conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ...
-11183
View File
File diff suppressed because it is too large. Load diff
+38
View File
@@ -0,0 +1,38 @@
#!/bin/sh
ASPEN_ROOT=/Developer/Platforms/iPhoneOS.platform/Developer
ASPEN_SDK=$ASPEN_ROOT/SDKs/iPhoneOS2.0.sdk/
export PATH=$ASPEN_ROOT/usr/bin:$PATH
export C_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CPLUS_INCLUDE_PATH="$ASPEN_SDK/usr/lib/gcc/arm-apple-darwin9/4.0.1/include:$ASPEN_SDK/usr/include"
export CC=arm-apple-darwin9-gcc-4.0.1
export CXX=arm-apple-darwin9-g++-4.0.1
export CPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export CXXPP="cpp-4.0 -nostdinc -U__powerpc__ -U__i386__ -D__arm__"
export LD=$CC
export LDFLAGS=-Wl,-syslibroot,$ASPEN_SDK
export mono_cv_uscore=yes
export cv_mono_sizeof_sunpath=104
export ac_cv_func_posix_getpwuid_r=yes
export ac_cv_func_backtrace_symbols=no
pushd eglib
./autogen.sh --host=arm-apple-darwin9
popd
./autogen.sh --disable-mcs-build --host=arm-apple-darwin9 --disable-shared-handles --with-tls=pthread --with-sigaltstack=no --with-glib=embedded --with-gc=none $@
curl -o mono/mini/inssel.c http://primates.ximian.com/~gnorton/iphone/inssel.c
curl -o mono/mini/inssel.h http://primates.ximian.com/~gnorton/iphone/inssel.h
make
# We dont use monoburg since I nicely provided the inssel's pregenerated above.
pushd mono/monoburg
touch monoburg
touch sample.c
popd
make
-7
View File
@@ -1,7 +0,0 @@
@echo off
cd mcs\jay
vcbuild jay.vcxproj
cd msvc\scripts
csc prepare.cs
prepare.exe ..\..\mcs core
msbuild net_4_x.sln
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
(cd mcs/jay; make)
(cd msvc/scripts/; make prepare.exe; mono prepare.exe ../../mcs core)
msbuild net_4_x.sln
-6
View File
@@ -1,6 +0,0 @@
# Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant
to clarify expected behavior in our community.
For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
-672
View File
@@ -1,672 +0,0 @@
#! /bin/sh
# Output a system dependent set of variables, describing how to set the
# run time search path of shared libraries in an executable.
#
# Copyright 1996-2010 Free Software Foundation, Inc.
# Taken from GNU libtool, 2001
# Originally by Gordon Matzigkeit <[email protected]>, 1996
#
# This file is free software; the Free Software Foundation gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# The first argument passed to this file is the canonical host specification,
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or
# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld
# should be set by the caller.
#
# The set of defined variables is at the end of this script.
# Known limitations:
# - On IRIX 6.5 with CC="cc", the run time search patch must not be longer
# than 256 bytes, otherwise the compiler driver will dump core. The only
# known workaround is to choose shorter directory names for the build
# directory and/or the installation directory.
# All known linkers require a `.a' archive for static linking (except MSVC,
# which needs '.lib').
libext=a
shrext=.so
host="$1"
host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
# Code taken from libtool.m4's _LT_CC_BASENAME.
for cc_temp in $CC""; do
case $cc_temp in
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
\-*) ;;
*) break;;
esac
done
cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'`
# Code taken from libtool.m4's _LT_COMPILER_PIC.
wl=
if test "$GCC" = yes; then
wl='-Wl,'
else
case "$host_os" in
aix*)
wl='-Wl,'
;;
darwin*)
case $cc_basename in
xlc*)
wl='-Wl,'
;;
esac
;;
mingw* | cygwin* | pw32* | os2* | cegcc*)
;;
hpux9* | hpux10* | hpux11*)
wl='-Wl,'
;;
irix5* | irix6* | nonstopux*)
wl='-Wl,'
;;
newsos6)
;;
linux* | k*bsd*-gnu)
case $cc_basename in
ecc*)
wl='-Wl,'
;;
icc* | ifort*)
wl='-Wl,'
;;
lf95*)
wl='-Wl,'
;;
pgcc | pgf77 | pgf90)
wl='-Wl,'
;;
ccc*)
wl='-Wl,'
;;
como)
wl='-lopt='
;;
*)
case `$CC -V 2>&1 | sed 5q` in
*Sun\ C*)
wl='-Wl,'
;;
esac
;;
esac
;;
osf3* | osf4* | osf5*)
wl='-Wl,'
;;
rdos*)
;;
solaris*)
wl='-Wl,'
;;
sunos4*)
wl='-Qoption ld '
;;
sysv4 | sysv4.2uw2* | sysv4.3*)
wl='-Wl,'
;;
sysv4*MP*)
;;
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
wl='-Wl,'
;;
unicos*)
wl='-Wl,'
;;
uts4*)
;;
esac
fi
# Code taken from libtool.m4's _LT_LINKER_SHLIBS.
hardcode_libdir_flag_spec=
hardcode_libdir_separator=
hardcode_direct=no
hardcode_minus_L=no
case "$host_os" in
cygwin* | mingw* | pw32* | cegcc*)
# FIXME: the MSVC++ port hasn't been tested in a loooong time
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
if test "$GCC" != yes; then
with_gnu_ld=no
fi
;;
interix*)
# we just hope/assume this is gcc and not c89 (= MSVC++)
with_gnu_ld=yes
;;
openbsd*)
with_gnu_ld=no
;;
esac
ld_shlibs=yes
if test "$with_gnu_ld" = yes; then
# Set some defaults for GNU ld with shared library support. These
# are reset later if shared libraries are not supported. Putting them
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
case "$host_os" in
aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# Samuel A. Falvo II <[email protected]> reports
# that the semantics of dynamic libraries on AmigaOS, at least up
# to version 4, is to share data among multiple programs linked
# with the same dynamic library. Since this doesn't match the
# behavior of shared libraries on other platforms, we cannot use
# them.
ld_shlibs=no
;;
beos*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
cygwin* | mingw* | pw32* | cegcc*)
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec='-L$libdir'
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
interix[3-9]*)
hardcode_direct=no
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
gnu* | linux* | k*bsd*-gnu)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
netbsd*)
;;
solaris*)
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
ld_shlibs=no
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
case `$LD -v 2>&1` in
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
ld_shlibs=no
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
else
ld_shlibs=no
fi
;;
esac
;;
sunos4*)
hardcode_direct=yes
;;
*)
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
:
else
ld_shlibs=no
fi
;;
esac
if test "$ld_shlibs" = no; then
hardcode_libdir_flag_spec=
fi
else
case "$host_os" in
aix3*)
# Note: this linker hardcodes the directories in LIBPATH if there
# are no directories specified by -L.
hardcode_minus_L=yes
if test "$GCC" = yes; then
# Neither direct hardcoding nor static linking is supported with a
# broken collect2.
hardcode_direct=unsupported
fi
;;
aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
aix_use_runtimelinking=no
else
aix_use_runtimelinking=no
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
break
fi
done
;;
esac
fi
hardcode_direct=yes
hardcode_libdir_separator=':'
if test "$GCC" = yes; then
case $host_os in aix4.[012]|aix4.[012].*)
collect2name=`${CC} -print-prog-name=collect2`
if test -f "$collect2name" && \
strings "$collect2name" | grep resolve_lib_name >/dev/null
then
# We have reworked collect2
:
else
# We have old collect2
hardcode_direct=unsupported
hardcode_minus_L=yes
hardcode_libdir_flag_spec='-L$libdir'
hardcode_libdir_separator=
fi
;;
esac
fi
# Begin _LT_AC_SYS_LIBPATH_AIX.
echo 'int main () { return 0; }' > conftest.c
${CC} ${LDFLAGS} conftest.c -o conftest
aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
if test -z "$aix_libpath"; then
aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
}'`
fi
if test -z "$aix_libpath"; then
aix_libpath="/usr/lib:/lib"
fi
rm -f conftest.c conftest
# End _LT_AC_SYS_LIBPATH_AIX.
if test "$aix_use_runtimelinking" = yes; then
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
else
if test "$host_cpu" = ia64; then
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
else
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
fi
fi
;;
amigaos*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
# see comment about different semantics on the GNU ld section
ld_shlibs=no
;;
bsdi[45]*)
;;
cygwin* | mingw* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
# Microsoft Visual C++.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
hardcode_libdir_flag_spec=' '
libext=lib
;;
darwin* | rhapsody*)
hardcode_direct=no
if test "$GCC" = yes ; then
:
else
case $cc_basename in
xlc*)
;;
*)
ld_shlibs=no
;;
esac
fi
;;
dgux*)
hardcode_libdir_flag_spec='-L$libdir'
;;
freebsd1*)
ld_shlibs=no
;;
freebsd2.2*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
freebsd2*)
hardcode_direct=yes
hardcode_minus_L=yes
;;
freebsd* | dragonfly*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
hpux9*)
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
hpux10*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
fi
;;
hpux11*)
if test "$with_gnu_ld" = no; then
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
hardcode_libdir_separator=:
case $host_cpu in
hppa*64*|ia64*)
hardcode_direct=no
;;
*)
hardcode_direct=yes
# hardcode_minus_L: Not really in the search PATH,
# but as the default location of the library.
hardcode_minus_L=yes
;;
esac
fi
;;
irix5* | irix6* | nonstopux*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
netbsd*)
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
;;
newsos6)
hardcode_direct=yes
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
openbsd*)
if test -f /usr/libexec/ld.so; then
hardcode_direct=yes
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
else
case "$host_os" in
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
hardcode_libdir_flag_spec='-R$libdir'
;;
*)
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
;;
esac
fi
else
ld_shlibs=no
fi
;;
os2*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_minus_L=yes
;;
osf3*)
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
hardcode_libdir_separator=:
;;
osf4* | osf5*)
if test "$GCC" = yes; then
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
else
# Both cc and cxx compiler support -rpath directly
hardcode_libdir_flag_spec='-rpath $libdir'
fi
hardcode_libdir_separator=:
;;
solaris*)
hardcode_libdir_flag_spec='-R$libdir'
;;
sunos4*)
hardcode_libdir_flag_spec='-L$libdir'
hardcode_direct=yes
hardcode_minus_L=yes
;;
sysv4)
case $host_vendor in
sni)
hardcode_direct=yes # is this really true???
;;
siemens)
hardcode_direct=no
;;
motorola)
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
;;
esac
;;
sysv4.3*)
;;
sysv4*MP*)
if test -d /usr/nec; then
ld_shlibs=yes
fi
;;
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
;;
sysv5* | sco3.2v5* | sco5v6*)
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
hardcode_libdir_separator=':'
;;
uts4*)
hardcode_libdir_flag_spec='-L$libdir'
;;
*)
ld_shlibs=no
;;
esac
fi
# Check dynamic linker characteristics
# Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER.
# Unlike libtool.m4, here we don't care about _all_ names of the library, but
# only about the one the linker finds when passed -lNAME. This is the last
# element of library_names_spec in libtool.m4, or possibly two of them if the
# linker has special search rules.
library_names_spec= # the last element of library_names_spec in libtool.m4
libname_spec='lib$name'
case "$host_os" in
aix3*)
library_names_spec='$libname.a'
;;
aix[4-9]*)
library_names_spec='$libname$shrext'
;;
amigaos*)
library_names_spec='$libname.a'
;;
beos*)
library_names_spec='$libname$shrext'
;;
bsdi[45]*)
library_names_spec='$libname$shrext'
;;
cygwin* | mingw* | pw32* | cegcc*)
shrext=.dll
library_names_spec='$libname.dll.a $libname.lib'
;;
darwin* | rhapsody*)
shrext=.dylib
library_names_spec='$libname$shrext'
;;
dgux*)
library_names_spec='$libname$shrext'
;;
freebsd1*)
;;
freebsd* | dragonfly*)
case "$host_os" in
freebsd[123]*)
library_names_spec='$libname$shrext$versuffix' ;;
*)
library_names_spec='$libname$shrext' ;;
esac
;;
gnu*)
library_names_spec='$libname$shrext'
;;
hpux9* | hpux10* | hpux11*)
case $host_cpu in
ia64*)
shrext=.so
;;
hppa*64*)
shrext=.sl
;;
*)
shrext=.sl
;;
esac
library_names_spec='$libname$shrext'
;;
interix[3-9]*)
library_names_spec='$libname$shrext'
;;
irix5* | irix6* | nonstopux*)
library_names_spec='$libname$shrext'
case "$host_os" in
irix5* | nonstopux*)
libsuff= shlibsuff=
;;
*)
case $LD in
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;;
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;;
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;;
*) libsuff= shlibsuff= ;;
esac
;;
esac
;;
linux*oldld* | linux*aout* | linux*coff*)
;;
linux* | k*bsd*-gnu)
library_names_spec='$libname$shrext'
;;
knetbsd*-gnu)
library_names_spec='$libname$shrext'
;;
netbsd*)
library_names_spec='$libname$shrext'
;;
newsos6)
library_names_spec='$libname$shrext'
;;
nto-qnx*)
library_names_spec='$libname$shrext'
;;
openbsd*)
library_names_spec='$libname$shrext$versuffix'
;;
os2*)
libname_spec='$name'
shrext=.dll
library_names_spec='$libname.a'
;;
osf3* | osf4* | osf5*)
library_names_spec='$libname$shrext'
;;
rdos*)
;;
solaris*)
library_names_spec='$libname$shrext'
;;
sunos4*)
library_names_spec='$libname$shrext$versuffix'
;;
sysv4 | sysv4.3*)
library_names_spec='$libname$shrext'
;;
sysv4*MP*)
library_names_spec='$libname$shrext'
;;
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
library_names_spec='$libname$shrext'
;;
uts4*)
library_names_spec='$libname$shrext'
;;
esac
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"`
shlibext=`echo "$shrext" | sed -e 's,^\.,,'`
escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"`
LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <<EOF
# How to pass a linker flag through the compiler.
wl="$escaped_wl"
# Static library suffix (normally "a").
libext="$libext"
# Shared library suffix (normally "so").
shlibext="$shlibext"
# Format of library name prefix.
libname_spec="$escaped_libname_spec"
# Library names that the linker finds when passed -lNAME.
library_names_spec="$escaped_library_names_spec"
# Flag to hardcode \$libdir into a binary during linking.
# This must work even if \$libdir does not exist.
hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
# Whether we need a single -rpath flag with a separated argument.
hardcode_libdir_separator="$hardcode_libdir_separator"
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
# resulting binary.
hardcode_direct="$hardcode_direct"
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
# resulting binary.
hardcode_minus_L="$hardcode_minus_L"
EOF
-7232
View File
File diff suppressed because it is too large. Load diff
+2416
View File
File diff suppressed because it is too large. Load diff
-7
View File
@@ -1,7 +0,0 @@
/Makefile.in
/Makefile
/config
/.cvsignore
/*.pc
/gdb/mono-sgen-gdb.py
/mono-sgen-gdb.py
-1
View File
@@ -1 +0,0 @@
/Compat.browser -crlf
+11 -28
View File
@@ -1,44 +1,27 @@
SUBDIRS = net_2_0 net_4_0 net_4_5
SUBDIRS = net_1_1 net_2_0
monodir = $(sysconfdir)/mono
monolldbdir = $(libdir)/mono/lldb
EXTRA_DIST = \
config.in \
browscap.ini mono.supp mono.d README \
mono.pc.in mono-2.pc.in monosgen-2.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in wcf.pc.in monodoc.pc.in \
mono-cairo.pc.in mono-options.pc.in cecil.pc.in \
mono-lineeditor.pc.in system.web.extensions_1.0.pc.in system.web.extensions.design_1.0.pc.in\
dtrace-prelink.sh system.web.mvc.pc.in system.web.mvc2.pc.in system.web.mvc3.pc.in aspnetwebstack.pc.in \
reactive.pc.in xbuild12.pc \
net_1_1/machine.config \
gdb/mono-gdb.py \
gdb/gdb-python.diff \
lldb/mono.py \
lldb/monobt.py
mono.pc.in mint.pc.in dotnet.pc.in dotnet35.pc.in \
mono-cairo.pc.in cecil.pc.in smcs.pc.in
pkgconfigdir = $(libdir)/pkgconfig
if SUPPORT_SGEN
SGENPCFILE=monosgen-2.pc
if JIT_SUPPORTED
if INTERP_SUPPORTED
pkgconfig_DATA= mono.pc mint.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
else
SGENPCFILE=
pkgconfig_DATA= mono.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
endif
else
pkgconfig_DATA= mint.pc mono-cairo.pc cecil.pc smcs.pc
endif
pkgconfig_DATA= mono.pc mono-2.pc dotnet.pc dotnet35.pc wcf.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc xbuild12.pc $(SGENPCFILE)
DISTCLEANFILES= mono-2.pc mono.pc mint.pc dotnet.pc dotnet35.pc wcf.pc mono-cairo.pc mono-options.pc cecil.pc monodoc.pc mono-lineeditor.pc system.web.extensions_1.0.pc \
system.web.extensions.design_1.0.pc system.web.mvc.pc system.web.mvc2.pc system.web.mvc3.pc aspnetwebstack.pc reactive.pc $(SGENPCFILE) mono-sgen-gdb.py
DISTCLEANFILES= mono.pc mint.pc dotnet.pc dotnet35.pc mono-cairo.pc cecil.pc smcs.pc
mono_DATA = config \
browscap.ini
monolldb_DATA = lldb/mono.py
gdbdir = $(bindir)
mono-sgen-gdb.py: gdb/mono-gdb.py
cp $< $@
gdb_DATA = gdb/mono-gdb.py mono-sgen-gdb.py
-4
View File
@@ -1,4 +0,0 @@
Name: AspNetWebStack
Description: References Microsoft ASP.NET Web Stack
Version: @VERSION@
Libs: -r:@prefix@/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll -r:@prefix@/lib/mono/gac/System.Web.Http/4.0.0.0__31bf3856ad364e35/System.Web.Http.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages.Razor/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Razor.dll -r:@prefix@/lib/mono/gac/System.Web.WebPages.Deployment/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Deployment.dll
+6723 -5094
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1,5 +1,5 @@
assemblies_dir=@prefix@/lib/mono
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.9.5.0__0738eb9f132ed756/Mono.Cecil.dll
Libraries=${assemblies_dir}/gac/Mono.Cecil/0.6.8.8607__0738eb9f132ed756/Mono.Cecil.dll
Name: Mono Internal -- Do not use.
Description: Mono Internal Libraries -- Do not use
+2 -22
View File
@@ -6,41 +6,21 @@
<dllmap dll="libintl" name="bind_textdomain_codeset" target="@LIBC@" os="solaris"/>
<dllmap dll="libintl" target="@INTL@" os="!windows"/>
<dllmap dll="i:libxslt.dll" target="libxslt@libsuffix@" os="!windows"/>
<dllmap dll="i:odbc32.dll" target="@ODBC@" os="!windows"/>
<dllmap dll="i:odbc32.dll" target="libodbc@libsuffix@" os="!windows"/>
<dllmap dll="i:odbc32.dll" target="libiodbc.dylib" os="osx"/>
<dllmap dll="oci" target="libclntsh@libsuffix@" os="!windows"/>
<dllmap dll="db2cli" target="libdb2_36@libsuffix@" os="!windows"/>
<dllmap dll="MonoPosixHelper" target="$mono_libdir/libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="System.Native" target="$mono_libdir/@MONO_NATIVE_LIBRARY_NAME@@libsuffix@" os="!windows" />
<dllmap dll="System.Net.Security.Native" target="$mono_libdir/@MONO_NATIVE_LIBRARY_NAME@@libsuffix@" os="!windows" />
<dllmap dll="System.Security.Cryptography.Native.Apple" target="$mono_libdir/@MONO_NATIVE_LIBRARY_NAME@@libsuffix@" os="osx" />
<dllmap dll="libmono-btls-shared" target="$mono_libdir/libmono-btls-shared@libsuffix@" os="!windows" />
<dllmap dll="MonoPosixHelper" target="libMonoPosixHelper@libsuffix@" os="!windows" />
<dllmap dll="i:msvcrt" target="@LIBC@" os="!windows"/>
<dllmap dll="i:msvcrt.dll" target="@LIBC@" os="!windows"/>
<dllmap dll="sqlite" target="@SQLITE@" os="!windows"/>
<dllmap dll="sqlite3" target="@SQLITE3@" os="!windows"/>
<dllmap dll="libX11" target="@X11@" os="!windows" />
<dllmap dll="libgdk-x11-2.0" target="@GDKX11@" os="!windows"/>
<dllmap dll="libgdk_pixbuf-2.0" target="libgdk_pixbuf-2.0.so.0" os="!windows"/>
<dllmap dll="libgtk-x11-2.0" target="@GTKX11@" os="!windows"/>
<dllmap dll="libglib-2.0" target="libglib-2.0.so.0" os="!windows"/>
<dllmap dll="libgobject-2.0" target="libgobject-2.0.so.0" os="!windows"/>
<dllmap dll="libgnomeui-2" target="libgnomeui-2.so.0" os="!windows"/>
<dllmap dll="librsvg-2" target="librsvg-2.so.2" os="!windows"/>
<dllmap dll="libXinerama" target="@XINERAMA@" os="!windows" />
<dllmap dll="libasound" target="libasound.so.2" os="!windows" />
<dllmap dll="libcairo-2.dll" target="libcairo.so.2" os="!windows"/>
<dllmap dll="libcairo-2.dll" target="libcairo.2.dylib" os="osx"/>
<dllmap dll="libcups" target="libcups.so.2" os="!windows"/>
<dllmap dll="libcups" target="libcups.dylib" os="osx"/>
<dllmap dll="i:kernel32.dll">
<dllentry dll="__Internal" name="CopyMemory" target="mono_win32_compat_CopyMemory"/>
<dllentry dll="__Internal" name="FillMemory" target="mono_win32_compat_FillMemory"/>
<dllentry dll="__Internal" name="MoveMemory" target="mono_win32_compat_MoveMemory"/>
<dllentry dll="__Internal" name="ZeroMemory" target="mono_win32_compat_ZeroMemory"/>
</dllmap>
<dllmap dll="gdiplus" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdiplus.dll" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32" target="@libgdiplus_install_loc@" os="!windows"/>
<dllmap dll="gdi32.dll" target="@libgdiplus_install_loc@" os="!windows"/>
</configuration>
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Xml.Linq.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll
+1 -1
View File
@@ -2,4 +2,4 @@
Name: Standard libraries in a .NET setup
Description: References all the standard .NET libraries for compilation (.NET Framework 3.5 compatibility)
Version: @VERSION@
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.VisualC.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll -r:System.Data.Linq.dll -r:System.Data.Services.dll -r:System.Web.Abstractions.dll -r:System.Web.Routing.dll -r:System.Web.DynamicData.dll -r:System.ComponentModel.DataAnnotations.dll
Libs: -r:Accessibility.dll -r:cscompmgd.dll -r:Microsoft.JScript.dll -r:Microsoft.VisualC.dll -r:Microsoft.Vsa.dll -r:System.Configuration.Install.dll -r:System.Data.dll -r:System.Data.OracleClient.dll -r:System.Design.dll -r:System.DirectoryServices.dll -r:System.dll -r:System.Drawing.Design.dll -r:System.Drawing.dll -r:System.EnterpriseServices.dll -r:System.Management.dll -r:System.Messaging.dll -r:System.Runtime.Remoting.dll -r:System.Runtime.Serialization.Formatters.Soap.dll -r:System.Security.dll -r:System.ServiceProcess.dll -r:System.Web.dll -r:System.Web.Services.dll -r:System.Windows.Forms.dll -r:System.Xml.dll -r:System.Configuration.dll -r:System.Core.dll -r:System.Xml.Linq.dll -r:System.Data.DataSetExtensions.dll
-163
View File
@@ -1,163 +0,0 @@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 640998b..fb73e9d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-03 Zoltan Varga <[email protected]>
+
+ * cil-script.c python/python-cmd.c: Allow registration of pre/post hooks from
+ python.
+
+ * symfile.c (add_symbol_file_command): Comment out verbose messages.
+
2009-02-03 Thiago Jung Bauermann <[email protected]>
* gdb/c-lang.c (c_get_string): Remove superfluous parenthesis from
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 835d29c..3941aa5 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -299,6 +299,13 @@ execute_user_command (struct cmd_list_element *c, char *args)
static int user_call_depth = 0;
extern int max_user_call_depth;
+ /* Might be a user defined command implemented in Python */
+ if (!c->user_commands && c->func)
+ {
+ (*c->func) (c, args, FALSE);
+ return;
+ }
+
old_chain = setup_user_args (args);
cmdlines = c->user_commands;
diff --git a/gdb/python/python-cmd.c b/gdb/python/python-cmd.c
index 61d5e5d..a3fbc08 100644
--- a/gdb/python/python-cmd.c
+++ b/gdb/python/python-cmd.c
@@ -339,7 +339,8 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
/* Object initializer; sets up gdb-side structures for command.
- Use: __init__(NAME, CMDCLASS, [COMPLETERCLASS, [PREFIX]]).
+ Use: __init__(NAME, CMDCLASS, [completerclass=COMPLETERCLASS, prefix=PREFIX,
+ pre_hook_of=PREHOOK_OF, post_hook_of=POSTHOOK_OF]).
NAME is the name of the command. It may consist of multiple words,
in which case the final word is the name of the new command, and
@@ -354,6 +355,11 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
If PREFIX is True, then this command is a prefix command.
+ PREHOOK_OF is the name of a gdb command this command becomes a
+ pre-execution hook of, same as if this command was defined using
+ "define hook-<cmdname>"
+ POSTHOOK_OF is the same for post-execution hooks.
+
The documentation for the command is taken from the doc string for
the python class.
@@ -362,15 +368,18 @@ static int
cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
{
cmdpy_object *obj = (cmdpy_object *) self;
- char *name;
+ char *name, *pre_hook_of = NULL, *post_hook_of = NULL;
int cmdtype;
int completetype = -1;
char *docstring = NULL;
volatile struct gdb_exception except;
struct cmd_list_element **cmd_list;
+ struct cmd_list_element *pre_hookc = NULL, *post_hookc = NULL;
char *cmd_name, *pfx_name;
PyObject *is_prefix = NULL;
int cmp;
+ static char *kwlist[] = {"name", "cmdclass", "completerclass", "prefix",
+ "pre_hook_of", "post_hook_of", NULL};
if (obj->command)
{
@@ -381,8 +390,9 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
- if (! PyArg_ParseTuple (args, "si|iO", &name, &cmdtype,
- &completetype, &is_prefix))
+ if (! PyArg_ParseTupleAndKeywords (args, kwds, "si|iOss", kwlist, &name, &cmdtype,
+ &completetype, &is_prefix, &pre_hook_of,
+ &post_hook_of))
return -1;
if (cmdtype != no_class && cmdtype != class_run
@@ -402,6 +412,30 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
+ if (pre_hook_of)
+ {
+ char *text = pre_hook_of;
+
+ pre_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! pre_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by pre_hook argument not found"));
+ return -1;
+ }
+ }
+
+ if (post_hook_of)
+ {
+ char *text = post_hook_of;
+
+ post_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! post_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by post_hook argument not found"));
+ return -1;
+ }
+ }
+
cmd_name = gdbpy_parse_command_name (name, &cmd_list, &cmdlist);
if (! cmd_name)
return -1;
@@ -470,6 +504,18 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
cmd->func = cmdpy_function;
cmd->destroyer = cmdpy_destroyer;
+ if (pre_hookc)
+ {
+ pre_hookc->hook_pre = cmd;
+ cmd->hookee_pre = pre_hookc;
+ }
+
+ if (post_hookc)
+ {
+ post_hookc->hook_post = cmd;
+ cmd->hookee_post = post_hookc;
+ }
+
obj->command = cmd;
set_cmd_context (cmd, self);
set_cmd_completer (cmd, ((completetype == -1) ? cmdpy_completer
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 14cb7b8..6d0bb40 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2196,7 +2196,7 @@ add_symbol_file_command (char *args, int from_tty)
statements because hex_string returns a local static
string. */
- printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename);
+ /* printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename); */
section_addrs = alloc_section_addr_info (section_index);
make_cleanup (xfree, section_addrs);
for (i = 0; i < section_index; i++)
@@ -2211,7 +2211,7 @@ add_symbol_file_command (char *args, int from_tty)
entered on the command line. */
section_addrs->other[sec_num].name = sec;
section_addrs->other[sec_num].addr = addr;
- printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr));
+ /* printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr)); */
sec_num++;
/* The object's sections are initialized when a
-248
View File
@@ -1,248 +0,0 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for a python-enabled gdb:
# http://sourceware.org/gdb/wiki/PythonGdb
# Usage:
# - copy/symlink this file, plus mono-gdbinit to the directory where the mono
# executable lives.
# - run mono under gdb, or attach to a mono process using gdb
# - Type 'xdb' in gdb to load/reload the debugging info emitted by the runtime.
# - The debug info is emitted to a file called xdb.s in the current working directory.
# When attaching to a mono process, make sure you are in the same directory.
#
from __future__ import print_function
import os
class StringPrinter:
"Print a C# string"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.lookup_type ("MonoString").pointer ()).dereference ()
len = obj ['length']
chars = obj ['chars']
i = 0
res = ['"']
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = "\u%X".format (val)
else:
c = chr (val)
res.append (c)
i = i + 1
res.append ('"')
return ''.join (res)
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "{0}.{1}".format (ns, name)
class ArrayPrinter:
"Print a C# array"
def __init__(self, val, class_ns, class_name):
self.val = val
self.class_ns = class_ns
self.class_name = class_name
def to_string(self):
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "{0} [{1}]".format (stringify_class_name (self.class_ns, self.class_name [0:len (self.class_name) - 2]), int (length))
class ObjectPrinter:
"Print a C# object"
def __init__(self, val):
if str(val.type)[-1] == "&":
self.val = val.address.cast (gdb.lookup_type ("MonoObject").pointer ())
else:
self.val = val.cast (gdb.lookup_type ("MonoObject").pointer ())
class _iterator:
def __init__(self,obj):
self.obj = obj
self.iter = self.obj.type.fields ().__iter__ ()
pass
def __iter__(self):
return self
def next(self):
field = self.iter.next ()
try:
if str(self.obj [field.name].type) == "object":
# Avoid recursion
return (field.name, self.obj [field.name].cast (gdb.lookup_type ("void").pointer ()))
else:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("{0}".format (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
# It would also be better if we could return None
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return {}.__iter__ ()
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
gdb_type = gdb.lookup_type ("struct {0}_{1}".format (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_ns == "System" and class_name == "String":
return StringPrinter (self.val).to_string ()
if class_name [-2:len(class_name)] == "[]":
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.lookup_type ("struct {0}.{1}".format (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "{0}.{1}".format (class_ns, class_name)
#return obj.cast (gdb_type)
return "{0}.{1}".format (class_ns, class_name)
return class_name
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.lookup_type ("guint64"))
class MonoMethodPrinter:
"Print a MonoMethod structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{0}:{1} ()\"".format (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"{0}\"".format (gdb.parse_and_eval ("mono_method_full_name ({0}, 1)".format (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{0}\"".format (class_name)
# This returns more info but requires calling into the inferior
#return "\"{0}\"".format (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*){0})->byval_arg)".format (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
return ObjectPrinter (val)
if t[0:5] == "class" and t[-1] == "&":
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
return None
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
if obj == None:
obj = gdb
obj.pretty_printers.append (lookup_pretty_printer)
register_csharp_printers (gdb.current_objfile())
class MonoSupport(object):
def __init__(self):
self.s_size = 0
def run_hook(self):
if os.access ("xdb.s", os.F_OK):
os.remove ("xdb.s")
gdb.execute ("set environment MONO_XDEBUG gdb")
def stop_hook(self):
# Called when the program is stopped
# Need to recompile+reload the xdb.s file if needed
# FIXME: Need to detect half-written files created when the child is
# interrupted while executing the xdb.s writing code
# FIXME: Handle appdomain unload
if os.access ("xdb.s", os.F_OK):
new_size = os.stat ("xdb.s").st_size
if new_size > self.s_size:
sofile = "xdb.so"
gdb.execute ("shell as -o xdb.o xdb.s && ld -shared -o {} xdb.o".format (sofile))
# FIXME: This prints messages which couldn't be turned off
gdb.execute ("add-symbol-file {} 0".format (sofile))
self.s_size = new_size
class RunHook (gdb.Command):
def __init__ (self):
super (RunHook, self).__init__ ("hook-run", gdb.COMMAND_NONE,
gdb.COMPLETE_COMMAND, pre_hook_of="run")
def invoke(self, arg, from_tty):
mono_support.run_hook ()
print ("Mono support loaded.")
mono_support = MonoSupport ()
# This depends on the changes in gdb-python.diff to work
#RunHook ()
# Register our hooks
# This currently cannot be done from python code
exec_file = gdb.current_objfile ().filename
# FIXME: Is there a way to detect symbolic links ?
if os.stat (exec_file).st_size != os.lstat (exec_file).st_size:
exec_file = os.readlink (exec_file)
exec_dir = os.path.dirname (exec_file)
gdb.execute ("source {0}/{1}-gdbinit".format (exec_dir, os.path.basename (exec_file)))
-20
View File
@@ -1,20 +0,0 @@
# Loaded by mono-gdb.py
# FIXME: According to gdb docs, this is called _before_ anything is printed
# Got broken by this patch:
# http://sourceware.org/ml/gdb-patches/2008-09/msg00193.html
# FIXME: This seems to cause crashes inside gdb
#define hook-stop
# python mono_support.stop_hook ()
#end
define hook-backtrace
python mono_support.stop_hook ()
end
define hook-run
python mono_support.run_hook ()
end
define xdb
python mono_support.stop_hook ()
end
-19
View File
@@ -1,19 +0,0 @@
# Tester script for the xdb functionality
# Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
import sys
gdb.execute ("file %s".format (sys.argv [0]))
gdb.execute ("r --break *:* %s".format (" ".join (sys.argv [1:len (sys.argv)])))
while True:
try:
if gdb.threads () == None:
break
gdb.execute("xdb")
gdb.execute("bt")
gdb.execute("info args")
gdb.execute("info locals")
gdb.execute("c")
except:
gdb.execute ("quit")
-163
View File
@@ -1,163 +0,0 @@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 640998b..fb73e9d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-03 Zoltan Varga <[email protected]>
+
+ * cil-script.c python/python-cmd.c: Allow registration of pre/post hooks from
+ python.
+
+ * symfile.c (add_symbol_file_command): Comment out verbose messages.
+
2009-02-03 Thiago Jung Bauermann <[email protected]>
* gdb/c-lang.c (c_get_string): Remove superfluous parenthesis from
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c
index 835d29c..3941aa5 100644
--- a/gdb/cli/cli-script.c
+++ b/gdb/cli/cli-script.c
@@ -299,6 +299,13 @@ execute_user_command (struct cmd_list_element *c, char *args)
static int user_call_depth = 0;
extern int max_user_call_depth;
+ /* Might be a user defined command implemented in Python */
+ if (!c->user_commands && c->func)
+ {
+ (*c->func) (c, args, FALSE);
+ return;
+ }
+
old_chain = setup_user_args (args);
cmdlines = c->user_commands;
diff --git a/gdb/python/python-cmd.c b/gdb/python/python-cmd.c
index 61d5e5d..a3fbc08 100644
--- a/gdb/python/python-cmd.c
+++ b/gdb/python/python-cmd.c
@@ -339,7 +339,8 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
/* Object initializer; sets up gdb-side structures for command.
- Use: __init__(NAME, CMDCLASS, [COMPLETERCLASS, [PREFIX]]).
+ Use: __init__(NAME, CMDCLASS, [completerclass=COMPLETERCLASS, prefix=PREFIX,
+ pre_hook_of=PREHOOK_OF, post_hook_of=POSTHOOK_OF]).
NAME is the name of the command. It may consist of multiple words,
in which case the final word is the name of the new command, and
@@ -354,6 +355,11 @@ gdbpy_parse_command_name (char *text, struct cmd_list_element ***base_list,
If PREFIX is True, then this command is a prefix command.
+ PREHOOK_OF is the name of a gdb command this command becomes a
+ pre-execution hook of, same as if this command was defined using
+ "define hook-<cmdname>"
+ POSTHOOK_OF is the same for post-execution hooks.
+
The documentation for the command is taken from the doc string for
the python class.
@@ -362,15 +368,18 @@ static int
cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
{
cmdpy_object *obj = (cmdpy_object *) self;
- char *name;
+ char *name, *pre_hook_of = NULL, *post_hook_of = NULL;
int cmdtype;
int completetype = -1;
char *docstring = NULL;
volatile struct gdb_exception except;
struct cmd_list_element **cmd_list;
+ struct cmd_list_element *pre_hookc = NULL, *post_hookc = NULL;
char *cmd_name, *pfx_name;
PyObject *is_prefix = NULL;
int cmp;
+ static char *kwlist[] = {"name", "cmdclass", "completerclass", "prefix",
+ "pre_hook_of", "post_hook_of", NULL};
if (obj->command)
{
@@ -381,8 +390,9 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
- if (! PyArg_ParseTuple (args, "si|iO", &name, &cmdtype,
- &completetype, &is_prefix))
+ if (! PyArg_ParseTupleAndKeywords (args, kwds, "si|iOss", kwlist, &name, &cmdtype,
+ &completetype, &is_prefix, &pre_hook_of,
+ &post_hook_of))
return -1;
if (cmdtype != no_class && cmdtype != class_run
@@ -402,6 +412,30 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
+ if (pre_hook_of)
+ {
+ char *text = pre_hook_of;
+
+ pre_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! pre_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by pre_hook argument not found"));
+ return -1;
+ }
+ }
+
+ if (post_hook_of)
+ {
+ char *text = post_hook_of;
+
+ post_hookc = lookup_cmd_1 (&text, cmdlist, NULL, 1);
+ if (! post_hookc)
+ {
+ PyErr_Format (PyExc_RuntimeError, _("command name given by post_hook argument not found"));
+ return -1;
+ }
+ }
+
cmd_name = gdbpy_parse_command_name (name, &cmd_list, &cmdlist);
if (! cmd_name)
return -1;
@@ -470,6 +504,18 @@ cmdpy_init (PyObject *self, PyObject *args, PyObject *kwds)
cmd->func = cmdpy_function;
cmd->destroyer = cmdpy_destroyer;
+ if (pre_hookc)
+ {
+ pre_hookc->hook_pre = cmd;
+ cmd->hookee_pre = pre_hookc;
+ }
+
+ if (post_hookc)
+ {
+ post_hookc->hook_post = cmd;
+ cmd->hookee_post = post_hookc;
+ }
+
obj->command = cmd;
set_cmd_context (cmd, self);
set_cmd_completer (cmd, ((completetype == -1) ? cmdpy_completer
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 14cb7b8..6d0bb40 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2196,7 +2196,7 @@ add_symbol_file_command (char *args, int from_tty)
statements because hex_string returns a local static
string. */
- printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename);
+ /* printf_unfiltered (_("add symbol table from file \"%s\" at\n"), filename); */
section_addrs = alloc_section_addr_info (section_index);
make_cleanup (xfree, section_addrs);
for (i = 0; i < section_index; i++)
@@ -2211,7 +2211,7 @@ add_symbol_file_command (char *args, int from_tty)
entered on the command line. */
section_addrs->other[sec_num].name = sec;
section_addrs->other[sec_num].addr = addr;
- printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr));
+ /* printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr)); */
sec_num++;
/* The object's sections are initialized when a
-352
View File
@@ -1,352 +0,0 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for gdb 7.0 and later
# Usage:
# - copy/symlink this file to the directory where the mono executable lives.
# - run mono under gdb, or attach to a mono process started with --debug=gdb using gdb.
#
from __future__ import print_function
import os
class StringPrinter:
"Print a C# string"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
obj = self.val.cast (gdb.lookup_type ("MonoString").pointer ()).dereference ()
len = obj ['length']
chars = obj ['chars']
i = 0
res = ['"']
while i < len:
val = (chars.cast(gdb.lookup_type ("gint64")) + (i * 2)).cast(gdb.lookup_type ("gunichar2").pointer ()).dereference ()
if val >= 256:
c = unichr (val)
else:
c = chr (val)
res.append (c)
i = i + 1
res.append ('"')
return ''.join (res)
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "{0}.{1}".format (ns, name)
class ArrayPrinter:
"Print a C# array"
def __init__(self, val, class_ns, class_name):
self.val = val
self.class_ns = class_ns
self.class_name = class_name
def to_string(self):
obj = self.val.cast (gdb.lookup_type ("MonoArray").pointer ()).dereference ()
length = obj ['max_length']
return "{0} [{1}]".format (stringify_class_name (self.class_ns, self.class_name [0:len(self.class_name) - 2]), int(length))
class ObjectPrinter:
"Print a C# object"
def __init__(self, val):
if str(val.type)[-1] == "&":
self.val = val.address.cast (gdb.lookup_type ("MonoObject").pointer ())
else:
self.val = val.cast (gdb.lookup_type ("MonoObject").pointer ())
class _iterator:
def __init__(self,obj):
self.obj = obj
self.iter = self.obj.type.fields ().__iter__ ()
pass
def __iter__(self):
return self
def next(self):
field = self.iter.next ()
try:
if str(self.obj [field.name].type) == "object":
# Avoid recursion
return (field.name, self.obj [field.name].cast (gdb.lookup_type ("void").pointer ()))
else:
return (field.name, self.obj [field.name])
except:
# Superclass
return (field.name, self.obj.cast (gdb.lookup_type ("{0}".format (field.name))))
def children(self):
# FIXME: It would be easier if gdb.Value would support iteration itself
# It would also be better if we could return None
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return {}.__iter__ ()
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_name [-2:len(class_name)] == "[]":
return {}.__iter__ ()
try:
gdb_type = gdb.lookup_type ("struct {0}_{1}".format (class_ns.replace (".", "_"), class_name))
return self._iterator(obj.cast (gdb_type))
except:
return {}.__iter__ ()
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
return {}.__iter__ ()
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "null"
try:
obj = self.val.dereference ()
class_ns = obj ['vtable'].dereference ()['klass'].dereference ()['name_space'].string ()
class_name = obj ['vtable'].dereference ()['klass'].dereference ()['name'].string ()
if class_ns == "System" and class_name == "String":
return StringPrinter (self.val).to_string ()
if class_name [-2:len(class_name)] == "[]":
return ArrayPrinter (self.val,class_ns,class_name).to_string ()
if class_ns != "":
try:
gdb_type = gdb.lookup_type ("struct {0}.{1}".format (class_ns, class_name))
except:
# Maybe there is no debug info for that type
return "{0}.{1}".format (class_ns, class_name)
#return obj.cast (gdb_type)
return "{0}.{1}".format (class_ns, class_name)
return class_name
except:
print (sys.exc_info ()[0])
print (sys.exc_info ()[1])
# FIXME: This can happen because we don't have liveness information
return self.val.cast (gdb.lookup_type ("guint64"))
class MonoMethodPrinter:
"Print a MonoMethod structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
val = self.val.dereference ()
klass = val ["klass"].dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
return "\"{0}:{1} ()\"".format (class_name, val ["name"].string ())
# This returns more info but requires calling into the inferior
#return "\"{0}\"".format (gdb.parse_and_eval ("mono_method_full_name ({0}, 1)".format (str (int (self.val.cast (gdb.lookup_type ("guint64")))))).string ())
class MonoClassPrinter:
"Print a MonoClass structure"
def __init__(self, val):
self.val = val
def to_string_inner(self, add_quotes):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
klass = self.val.dereference ()
class_name = stringify_class_name (klass ["name_space"].string (), klass ["name"].string ())
if add_quotes:
return "\"{0}\"".format (class_name)
else:
return class_name
# This returns more info but requires calling into the inferior
#return "\"{0}\"".format (gdb.parse_and_eval ("mono_type_full_name (&((MonoClass*){0})->byval_arg)".format (str (int ((self.val).cast (gdb.lookup_type ("guint64")))))))
def to_string(self):
try:
return self.to_string_inner (True)
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoGenericInstPrinter:
"Print a MonoGenericInst structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
inst = self.val.dereference ()
inst_len = inst ["type_argc"]
inst_args = inst ["type_argv"]
inst_str = ""
for i in range(0, inst_len):
# print (inst_args)
type_printer = MonoTypePrinter (inst_args [i])
if i > 0:
inst_str = inst_str + ", "
inst_str = inst_str + type_printer.to_string ()
return inst_str
class MonoGenericClassPrinter:
"Print a MonoGenericClass structure"
def __init__(self, val):
self.val = val
def to_string_inner(self):
gclass = self.val.dereference ()
container_str = str(gclass ["container_class"])
class_inst = gclass ["context"]["class_inst"]
class_inst_str = ""
if int(class_inst.cast (gdb.lookup_type ("guint64"))) != 0:
class_inst_str = str(class_inst)
method_inst = gclass ["context"]["method_inst"]
method_inst_str = ""
if int(method_inst.cast (gdb.lookup_type ("guint64"))) != 0:
method_inst_str = str(method_inst)
return "{0}, [{1}], [{2}]>".format (container_str, class_inst_str, method_inst_str)
def to_string(self):
try:
return self.to_string_inner ()
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
return str(self.val.cast (gdb.lookup_type ("gpointer")))
class MonoTypePrinter:
"Print a MonoType structure"
def __init__(self, val):
self.val = val
def to_string_inner(self, csharp):
try:
t = self.val.referenced_value ()
kind = str (t ["type"]).replace ("MONO_TYPE_", "").lower ()
info = ""
if kind == "class":
p = MonoClassPrinter(t ["data"]["klass"])
info = p.to_string ()
elif kind == "genericinst":
info = str(t ["data"]["generic_class"])
if info != "":
return "{{{0}, {1}}}".format (kind, info)
else:
return "{{{0}}}".format (kind)
except:
#print (sys.exc_info ()[0])
#print (sys.exc_info ()[1])
return str(self.val.cast (gdb.lookup_type ("gpointer")))
def to_string(self):
return self.to_string_inner (False)
class MonoMethodRgctxPrinter:
"Print a MonoMethodRgctx structure"
def __init__(self, val):
self.val = val
def to_string(self):
rgctx = self.val.dereference ()
klass = rgctx ["class_vtable"].dereference () ["klass"]
klass_printer = MonoClassPrinter (klass)
inst = rgctx ["method_inst"].dereference ()
inst_len = inst ["type_argc"]
inst_args = inst ["type_argv"]
inst_str = ""
for i in range(0, inst_len):
# print (inst_args)
type_printer = MonoTypePrinter (inst_args [i])
if i > 0:
inst_str = inst_str + ", "
inst_str = inst_str + type_printer.to_string ()
return "MRGCTX[{0}, [{1}]]".format (klass_printer.to_string(), inst_str)
class MonoVTablePrinter:
"Print a MonoVTable structure"
def __init__(self, val):
self.val = val
def to_string(self):
if int(self.val.cast (gdb.lookup_type ("guint64"))) == 0:
return "0x0"
vtable = self.val.dereference ()
klass = vtable ["klass"]
klass_printer = MonoClassPrinter (klass)
return "vtable({0})".format (klass_printer.to_string ())
def lookup_pretty_printer(val):
t = str (val.type)
if t == "object":
return ObjectPrinter (val)
if t[0:5] == "class" and t[-1] == "&":
return ObjectPrinter (val)
if t == "string":
return StringPrinter (val)
if t == "MonoString *":
return StringPrinter (val)
if t == "MonoMethod *":
return MonoMethodPrinter (val)
if t == "MonoClass *":
return MonoClassPrinter (val)
if t == "MonoType *":
return MonoTypePrinter (val)
if t == "MonoGenericInst *":
return MonoGenericInstPrinter (val)
if t == "MonoGenericClass *":
return MonoGenericClassPrinter (val)
if t == "MonoMethodRuntimeGenericContext *":
return MonoMethodRgctxPrinter (val)
if t == "MonoVTable *":
return MonoVTablePrinter (val)
return None
def register_csharp_printers(obj):
"Register C# pretty-printers with objfile Obj."
if obj == None:
obj = gdb
obj.pretty_printers.append (lookup_pretty_printer)
# This command will flush the debugging info collected by the runtime
class XdbCommand (gdb.Command):
def __init__ (self):
super (XdbCommand, self).__init__ ("xdb", gdb.COMMAND_NONE,
gdb.COMPLETE_COMMAND)
def invoke(self, arg, from_tty):
gdb.execute ("call mono_xdebug_flush ()")
register_csharp_printers (gdb.current_objfile())
XdbCommand ()
gdb.execute ("set environment MONO_XDEBUG gdb")
print ("Mono support loaded.")
-19
View File
@@ -1,19 +0,0 @@
# Tester script for the xdb functionality
# Run using gdb -P test-xdb.py <NORMAL GDB COMMAND LINE>
import sys
gdb.execute ("file %s".format (sys.argv [0]))
gdb.execute ("r --break *:* %s".format (" ".join (sys.argv [1:len (sys.argv)])))
while True:
try:
if gdb.threads () == None:
break
gdb.execute("xdb")
gdb.execute("bt")
gdb.execute("info args")
gdb.execute("info locals")
gdb.execute("c")
except:
gdb.execute ("quit")
-174
View File
@@ -1,174 +0,0 @@
#
# Author: Zoltan Varga ([email protected])
# License: MIT/X11
#
#
# This is a mono support mode for lldb
#
# Comments about the lldb python api:
# - there are no accessors, i.e. valobj["name"]
# - http://lldb.llvm.org/python_reference/index.html seems to be outdated
# - there is no autoload support, i.e. can't load this file automatically
# when 'mono' is the debugger target.
import lldb
# FIXME: Generate enums from runtime enums
MONO_TYPE_END = 0x00
MONO_TYPE_VOID = 0x01
MONO_TYPE_BOOLEAN = 0x02
MONO_TYPE_CHAR = 0x03
MONO_TYPE_I1 = 0x04
MONO_TYPE_U1 = 0x05
MONO_TYPE_I2 = 0x06
MONO_TYPE_U2 = 0x07
MONO_TYPE_I4 = 0x08
MONO_TYPE_U4 = 0x09
MONO_TYPE_I8 = 0x0a
MONO_TYPE_U8 = 0x0b
MONO_TYPE_R4 = 0x0c
MONO_TYPE_R8 = 0x0d
MONO_TYPE_STRING = 0x0e
MONO_TYPE_PTR = 0x0f
MONO_TYPE_BYREF = 0x10
MONO_TYPE_VALUETYPE = 0x11
MONO_TYPE_CLASS = 0x12
MONO_TYPE_VAR = 0x13
MONO_TYPE_ARRAY = 0x14
MONO_TYPE_GENERICINST= 0x15
MONO_TYPE_TYPEDBYREF = 0x16
MONO_TYPE_I = 0x18
MONO_TYPE_U = 0x19
MONO_TYPE_FNPTR = 0x1b
MONO_TYPE_OBJECT = 0x1c
MONO_TYPE_SZARRAY = 0x1d
MONO_TYPE_MVAR = 0x1e
primitive_type_names = {
MONO_TYPE_BOOLEAN : "bool",
MONO_TYPE_CHAR : "char",
MONO_TYPE_I1 : "sbyte",
MONO_TYPE_U1 : "byte",
MONO_TYPE_I2 : "short",
MONO_TYPE_U2 : "ushort",
MONO_TYPE_I4 : "int",
MONO_TYPE_U4 : "uint",
MONO_TYPE_I8 : "long",
MONO_TYPE_U8 : "ulong",
MONO_TYPE_R4 : "float",
MONO_TYPE_R8 : "double",
MONO_TYPE_STRING : "string"
}
#
# Helper functions for working with the lldb python api
#
def member(val, member_name):
return val.GetChildMemberWithName (member_name)
def string_member(val, member_name):
return val.GetChildMemberWithName (member_name).GetSummary ()[1:-1]
def isnull(val):
return val.deref.addr.GetOffset () == 0
def stringify_class_name(ns, name):
if ns == "System":
if name == "Byte":
return "byte"
if name == "String":
return "string"
if ns == "":
return name
else:
return "{0}.{1}".format (ns, name)
#
# Pretty printers for mono runtime types
#
def stringify_type (type):
"Print a MonoType structure"
ttype = member(type, "type").GetValueAsUnsigned()
if primitive_type_names.has_key (ttype):
return primitive_type_names [ttype]
else:
return "<MonoTypeEnum 0x{0:x}>".format (ttype)
def stringify_ginst (ginst):
"Print a MonoGenericInst structure"
len = int(member(ginst, "type_argc").GetValue())
argv = member(ginst, "type_argv")
res=""
for i in range(len):
t = argv.GetChildAtIndex(i, False, True)
if i > 0:
res += ", "
res += stringify_type(t)
return res
def print_type(valobj, internal_dict):
type = valobj
if isnull (type):
return ""
return stringify_type (type)
def print_class (valobj, internal_dict):
klass = valobj
if isnull (klass):
return ""
aname = member (member (member (klass, "image"), "assembly"), "aname")
basename = "[{0}]{1}".format (string_member (aname, "name"), (stringify_class_name (string_member (klass, "name_space"), string_member (klass, "name"))))
gclass = member (klass, "generic_class")
if not isnull (gclass):
ginst = member (member (gclass, "context"), "class_inst")
return "{0}<{1}>".format (basename, stringify_ginst (ginst))
return basename
def print_method (valobj, internal_dict):
method = valobj
if isnull (method):
return ""
klass = member (method, "klass")
return "{0}:{1}()".format (print_class (klass, None), string_member (valobj, "name"))
def print_domain(valobj, internal_dict):
domain = valobj
if isnull (domain):
return ""
target = domain.target
root = target.FindFirstGlobalVariable("mono_root_domain")
name = string_member (domain, "friendly_name")
if root.IsValid () and root.deref.addr.GetOffset () == root.deref.addr.GetOffset ():
return "[root]"
else:
return "[{0}]".format (name)
def print_object(valobj, internal_dict):
obj = valobj
if isnull (obj):
return ""
domain = member (member (obj, "vtable"), "domain")
klass = member (member (obj, "vtable"), "klass")
return print_domain (domain, None) + print_class (klass, None)
# Register pretty printers
# FIXME: This cannot pick up the methods define in this module, leading to warnings
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_method MonoMethod")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_class MonoClass")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_type MonoType")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_domain MonoDomain")
lldb.debugger.HandleCommand ("type summary add -w mono -F mono.print_object MonoObject")
lldb.debugger.HandleCommand ("type category enable mono")
# Helper commands for runtime debugging
# These resume the target
# Print the method at the current ip
lldb.debugger.HandleCommand ("command alias pip p mono_print_method_from_ip((void*)$pc)")
# Print the method at the provided ip
lldb.debugger.HandleCommand ("command regex pmip 's/^$/p mono_print_method_from_ip((void*)$pc)/' 's/(.+)/p mono_print_method_from_ip((void*)(%1))/'")
print "Mono support mode loaded."
-79
View File
@@ -1,79 +0,0 @@
import lldb
import traceback
def print_frames(thread, num_frames, current_thread):
# TODO: Make output header similar to bt.
print('%c thread #%i' % ('*' if current_thread else ' ', thread.idx))
if current_thread:
selected_frame = thread.GetSelectedFrame()
for frame in thread.frames[:+num_frames]:
pc = str(frame.addr)
var = frame
function_name = frame.GetFunctionName()
if function_name == "interp_exec_method_full":
try:
s = 'frame->imethod->method'
methoddesc = frame.EvaluateExpression('(char*) mono_method_full_name (' + s + ', 1)').summary[1:-1]
ipoffset = frame.EvaluateExpression('ip').GetValueAsUnsigned()
insn = ''
if ipoffset != 0:
ipoffset -= frame.EvaluateExpression('frame->imethod->code').GetValueAsUnsigned()
insn = "\"" + frame.EvaluateExpression('mono_interp_opname (*ip)').summary[1:-1] + "\""
var = '%s @ %d %s || %s' % (methoddesc, ipoffset, insn, frame)
except Exception as e:
traceback.print_exc()
elif function_name == "mono_interp_transform_method":
try:
s = 'runtime_method->method'
klassname = frame.EvaluateExpression('(char*) ' + s + '->klass->name').summary[1:-1]
methodname = frame.EvaluateExpression('(char*) ' + s + '->name').summary[1:-1]
var = 'transforming %s::%s || %s' % (klassname, methodname, frame)
except Exception as e:
print("DBG: transformfail:" + str(e))
elif pc[0] == '0':
try:
framestr = frame.EvaluateExpression('(char*)mono_pmip((void*)%s)' % pc).summary[1:-1]
var = 'frame #%i: %s%s' % (frame.idx, pc, framestr)
except:
pass
print(' %c %s' % ('*' if current_thread and frame.idx == selected_frame.idx else ' ', var))
def monobt(debugger, command, result, dict):
opts = {'all_bt': False, 'num_frames': None}
if command == 'all':
opts['all_bt'] = True
elif command.isdigit():
opts['num_frames'] = int(command)
elif command != '':
print('error: monobt [<number>|all]')
return
target = debugger.GetSelectedTarget()
process = target.process
if not process.IsValid():
print('error: invalid process')
return
if opts['all_bt']:
for thread in process.threads:
print_frames(thread, len(thread), process.selected_thread == thread)
print('')
else:
thread = process.selected_thread
num_frames = len(thread) if opts['num_frames'] is None else opts['num_frames']
print_frames(thread, num_frames, True)
return None
def __lldb_init_module (debugger, dict):
# This initializer is being run from LLDB in the embedded command interpreter
# Add any commands contained in this module to LLDB
debugger.HandleCommand('command script add -f monobt.monobt monobt')
debugger.HandleCommand('command alias mbt monobt')
print('"monobt" command installed')
-585
View File
@@ -1,585 +0,0 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Globalization;
using System.Runtime.InteropServices;
public enum Record {
MustNotHoldAny,
MustNotHoldOne,
MustHoldOne,
LockAcquired,
LockReleased
}
public struct LockRecord {
public SimLock lk;
public string frame;
public LockRecord (SimLock lk, string frame) {
this.lk = lk;
this.frame = frame;
}
}
public class SimThread
{
int thread;
List <LockRecord> locks = new List <LockRecord> ();
public SimThread (int t)
{
this.thread = t;
}
public bool HoldsLock (SimLock lk) {
foreach (var l in locks) {
if (l.lk == lk)
return true;
}
return false;
}
public int HoldCount (SimLock lk) {
int res = 0;
foreach (var l in locks)
if (l.lk == lk)
++res;
return res;
}
public void Lock (SimLock lk, string frame) {
foreach (LockRecord lr in locks) {
if (lk.WarnAbout (this, lr.lk))
Console.WriteLine ("WARNING: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetWarningMessage (this, lr.lk));
else if (!lk.IsValid (this, lr.lk))
Console.WriteLine ("ERROR: tried to acquire lock {0} at {1} while holding {2} at {3}: {4}", lk, frame, lr.lk, lr.frame, lk.GetErrorMessage (this, lr.lk));
}
locks.Add (new LockRecord (lk, frame));
}
public void Release (SimLock lk, string frame) {
if (locks.Count == 0) {
Console.WriteLine ("ERROR: released lock {0} at {1} while holding no locks!", lk, frame);
return;
}
LockRecord top = locks [locks.Count - 1];
if (top.lk != lk && !(lk.IsGlobalLock && HoldCount (lk) > 1)) {
Console.WriteLine ("WARNING: released lock {0} at {1} out of order with {2} at {3}!", lk, frame, top.lk, top.frame);
}
for (int i = locks.Count -1; i >= 0; --i) {
if (locks [i].lk == lk) {
locks.RemoveAt (i);
break;
}
}
}
}
/*
LOCK RULES
Simple locks:
Can be acquired at any point regardless of which locks are taken or not.
No other locks can be acquired or released while holding a simple lock.
Reentrancy is not recommended. (warning)
Simple locks are leaf locks on the lock lattice.
Complex locks:
Must respect locking order, which form a lattice.
IOW, to take a given lock, only it's parents might have been taken.
Reentrancy is ok.
Locks around resources count as separate instances of the hierarchy.
Global locks:
Must respect locking order.
Must be the at the botton of the locking lattice.
Can be taken out-of-order by other locks given that it was previously acquired.
Adding global locks is not to be taken lightly.
The current lock hierarchy:
loader lock (global)
domain lock (complex)
domain jit lock (complex)
marshal lock
simple locks
Examples:
You can take the loader lock without holding a domain lock.
You can take the domain load while holding the loader lock
You cannot take the loader lock if only the domain lock is held.
You cannot take a domain lock while holding the lock to another domain.
TODO:
We have a few known ok violation. We need a way to whitelist them.
Known ok issues:
ERROR: tried to acquire lock DomainLock at mono_domain_code_reserve_align while holding DomainLock at mono_class_create_runtime_vtable: Hierarchy violation.
This is triggered when building the vtable of a non-root domain and fetching a vtable trampoline for an offset that has not been built. We'll take the root
domain lock while holding the other one.
This is ok since we never allow locking to have in the other direction, IOW, the root-domain lock is one level down from the other domain-locks.
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_class_from_name
WARNING: tried to acquire lock ImageDataLock at mono_image_init_name_cache while holding ImageDataLock at mono_image_add_to_name_cache
Both of those happen when filling up the name_cache, as it needs to alloc image memory.
This one is fixable by splitting mono_image_init_name_cache into a locked and an unlocked variants and calling them appropriately.
*/
public enum Lock {
Invalid,
LoaderLock,
ImageDataLock,
DomainLock,
DomainAssembliesLock,
DomainJitCodeHashLock,
IcallLock,
AssemblyBindingLock,
MarshalLock,
ClassesLock,
LoaderGlobalDataLock,
ThreadsLock,
}
public class SimLock
{
Lock kind;
int id;
public SimLock (Lock kind, int id) {
this.kind = kind;
this.id = id;
}
static int GetLockOrder (Lock kind) {
switch (kind) {
case Lock.LoaderLock:
return 0;
case Lock.DomainLock:
return 1;
case Lock.DomainJitCodeHashLock:
case Lock.MarshalLock:
return 2;
default:
return 3;
}
}
bool IsParent (SimLock other) {
return GetLockOrder (kind) > GetLockOrder (other.kind);
}
public bool IsSimpleLock {
get { return GetLockOrder (kind) == 3; }
}
public bool IsGlobalLock {
get { return kind == Lock.LoaderLock; }
}
public bool IsResursiveLock {
get { return kind == Lock.LoaderLock || kind == Lock.DomainLock; }
}
/*locked is already owned by the thread, 'this' is the new one*/
bool Compare (SimThread thread, SimLock locked, out bool isWarning, out string msg)
{
isWarning = false;
msg = null;
if (locked != this) {
if (!IsParent (locked)) {
if (IsGlobalLock) { /*acquiring a global lock*/
if (!thread.HoldsLock (this)) { /*does the thread alread hold it?*/
msg = "Acquired a global lock after a regular lock without having it before.";
return false;
}
} else {
msg = "Hierarchy violation.";
return false;
}
}
} else if (IsSimpleLock) {
msg = "Avoid taking simple locks recursively";
isWarning = true;
return false;
}
return true;
}
public bool IsValid (SimThread thread, SimLock locked) {
bool warn;
string msg;
return Compare (thread, locked, out warn, out msg);
}
public bool WarnAbout (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn;
}
public string GetWarningMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
Compare (thread, locked, out warn, out msg);
return warn ? msg : null;
}
public string GetErrorMessage (SimThread thread, SimLock locked) {
bool warn;
string msg;
bool res = Compare (thread, locked, out warn, out msg);
return !res && !warn ? msg : null;
}
public override string ToString () {
switch (kind) {
case Lock.LoaderLock:
case Lock.IcallLock:
case Lock.AssemblyBindingLock:
case Lock.MarshalLock:
case Lock.ClassesLock:
case Lock.LoaderGlobalDataLock:
case Lock.ThreadsLock:
return String.Format ("{0}", kind);
case Lock.ImageDataLock:
case Lock.DomainLock:
case Lock.DomainAssembliesLock:
case Lock.DomainJitCodeHashLock:
return String.Format ("{0}[{1}]", kind, id);
default:
return String.Format ("Unknown({0})[{1}]", kind, id);
}
}
}
public class LockSimulator
{
static Dictionary <int, SimThread> threads = new Dictionary <int, SimThread> ();
static Dictionary <int, SimLock> locks = new Dictionary <int, SimLock> ();
SymbolTable syms;
public LockSimulator (SymbolTable s) { this.syms = s; }
SimLock GetLock (Trace t) {
if (locks.ContainsKey (t.lockPtr))
return locks [t.lockPtr];
else {
return locks [t.lockPtr] = new SimLock (t.lockKind, t.lockPtr);
}
}
SimThread GetThread (Trace t) {
if (threads.ContainsKey (t.thread))
return threads [t.thread];
else
return threads [t.thread] = new SimThread (t.thread);
}
public void PlayBack (IEnumerable<Trace> traces) {
foreach (var t in traces) {
SimThread thread = GetThread (t);
SimLock lk = GetLock (t);
string frame = t.GetUsefullTopTrace (this.syms);
switch (t.record) {
case Record.MustNotHoldAny:
case Record.MustNotHoldOne:
case Record.MustHoldOne:
throw new Exception ("not supported");
case Record.LockAcquired:
thread.Lock (lk, frame);
break;
case Record.LockReleased:
thread.Release (lk, frame);
break;
default:
throw new Exception ("Invalid trace record: "+t.record);
}
}
}
}
public class Trace {
public int thread;
public Record record;
public Lock lockKind;
public int lockPtr;
int[] frames;
static readonly string[] BAD_FRAME_METHODS = new string[] {
"mono_loader_lock",
"mono_loader_unlock",
"mono_image_lock",
"mono_image_unlock",
"mono_icall_lock",
"mono_icall_unlock",
"add_record",
"mono_locks_lock_acquired",
"mono_locks_lock_released",
"mono_threads_lock",
"mono_threads_unlock",
"mono_domain_lock",
"mono_domain_unlock",
};
public Trace (string[] fields) {
thread = fields [0].ParseHex ();
record = (Record)fields [1].ParseDec ();
lockKind = (Lock)fields [2].ParseDec ();
lockPtr = fields [3].ParseHex ();
frames = new int [fields.Length - 4];
for (int i = 0; i < frames.Length; ++i)
frames [i] = fields [i + 4].ParseHex ();
}
public void Dump (SymbolTable table) {
Console.WriteLine ("{0:x} {1} {2} {3:x}", thread, record, lockKind, lockPtr);
for (int i = 0; i < frames.Length; ++i)
Console.WriteLine ("\t{0}", table.Translate (frames [i]));
}
public string GetUsefullTopTrace (SymbolTable syms) {
for (int i = 0; i < frames.Length; ++i) {
string str = syms.Translate (frames [i]);
bool ok = true;
for (int j = 0; j < BAD_FRAME_METHODS.Length; ++j) {
if (str.IndexOf (BAD_FRAME_METHODS [j]) >= 0) {
ok = false;
break;
}
}
if (ok)
return str;
}
return "[unknown]";
}
}
public class Symbol : IComparable<Symbol>
{
public int offset;
public int size;
public string name;
public Symbol (int o, int size, string n) {
this.offset = o;
this.size = size;
this.name = n;
}
public int CompareTo(Symbol other) {
return offset - other.offset;
}
public void AdjustSize (Symbol next) {
size = next.offset - this.offset;
}
}
public interface SymbolTable {
string Translate (int offset);
}
public class OsxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public OsxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("gobjdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 7)
continue;
if (!fields [3].Equals ("FUN"))
continue;
int offset = fields [0].ParseHex ();
string name = fields [6];
if (name.StartsWith ("_"))
name = name.Substring (1);
if (offset != 0)
list.Add (new Symbol (offset, 0, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
for (int i = 1; i < table.Length; ++i) {
table [i - 1].AdjustSize (table [i]);
}
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null) {
int size = Math.Max (sym.size, 10);
if (offset - sym.offset < size)
return sym.name;
}
return String.Format ("[{0:x}]", offset);
}
}
public class LinuxSymbolTable : SymbolTable
{
Symbol[] table;
const int MAX_FUNC_SIZE = 0x20000;
public LinuxSymbolTable (string binary) {
Load (binary);
}
void Load (string binary) {
ProcessStartInfo psi = new ProcessStartInfo ("objdump", "-t "+binary);
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
var proc = Process.Start (psi);
var list = new List<Symbol> ();
string line;
while ((line = proc.StandardOutput.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length < 6)
continue;
if (fields [3] != ".text" || fields [2] != "F")
continue;
int offset = fields [0].ParseHex ();
int size = fields [4].ParseHex ();
string name = fields [fields.Length - 1];
if (offset != 0)
list.Add (new Symbol (offset, size, name));
}
table = new Symbol [list.Count];
list.CopyTo (table, 0);
Array.Sort (table);
}
public string Translate (int offset) {
Symbol sym = null;
int res = Array.BinarySearch (table, new Symbol (offset, 0, null));
if (res >= 0)
return table [res].name;
res = ~res;
if (res >= table.Length)
sym = table [table.Length - 1];
else if (res != 0)
sym = table [res - 1];
if (sym != null && offset - sym.offset < MAX_FUNC_SIZE)
return sym.name;
return String.Format ("[{0:x}]", offset);
}
}
public class TraceDecoder
{
string file;
public TraceDecoder (string file) {
this.file = file;
}
public IEnumerable<Trace> GetTraces () {
using (StreamReader reader = new StreamReader (file)) {
string line;
while ((line = reader.ReadLine ()) != null) {
string[] fields = line.Split(new char[] {','}, StringSplitOptions.RemoveEmptyEntries);
if (fields.Length >= 7) {
yield return new Trace (fields);
}
}
}
}
}
public class Driver
{
[DllImport ("libc")]
static extern int uname (IntPtr buf);
static bool IsOSX ()
{
bool isOsx = false;
IntPtr buf = Marshal.AllocHGlobal (8192);
if (uname (buf) == 0) {
string os = Marshal.PtrToStringAnsi (buf);
isOsx = os == "Darwin";
}
Marshal.FreeHGlobal (buf);
return isOsx;
}
static void Main (string[] args) {
SymbolTable syms;
if (args.Length != 2) {
Console.WriteLine ("usage: LockTracerDecoder.exe /path/to/mono /path/to/locks.pid");
return;
}
if (IsOSX ())
syms = new OsxSymbolTable (args [0]);
else
syms = new LinuxSymbolTable (args [0]);
var decoder = new TraceDecoder (args [1]);
var sim = new LockSimulator (syms);
sim.PlayBack (decoder.GetTraces ());
}
}
public static class Utils
{
public static int ParseHex (this string number) {
while (number.Length > 1 && (number [0] == '0' || number [0] == 'x' || number [0] == 'X'))
number = number.Substring (1);
return int.Parse (number, NumberStyles.HexNumber);
}
public static int ParseDec (this string number) {
while (number.Length > 1 && number [0] == '0')
number = number.Substring (1);
return int.Parse (number);
}
}
-11
View File
@@ -1,11 +0,0 @@
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/@reloc_libdir@
includedir=${prefix}/include/mono-@API_VER@
sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Libs: -L${libdir} @export_ldflags@ -lmono-@API_VER@ @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+1 -1
View File
@@ -6,4 +6,4 @@ includedir=${prefix}/include
Name: Mono.Cairo
Description: Cairo bindings for Mono
Version: @VERSION@
Libs: -r:Mono.Cairo
Libs: -r:${prefix}/lib/mono/1.0/Mono.Cairo.dll
-7
View File
@@ -1,7 +0,0 @@
prefix=${pcfiledir}/../..
assemblies_dir=${prefix}/lib/mono-source-libs
Sources=${assemblies_dir}/getline.cs
Name: Mono.Terminal.LineEditor
Description: Terminal text entry editor using System.Console.
Version: 0.2.1
-7
View File
@@ -1,7 +0,0 @@
prefix=${pcfiledir}/../..
assemblies_dir=${prefix}/lib/mono-source-libs
Sources=${assemblies_dir}/Options.cs
Name: Mono.Options
Description: Command Line Parsing Library
Version: 0.2.3
-36
View File
@@ -18,42 +18,6 @@ provider mono {
/* Garbage Collector (GC) */
probe gc__begin (int generation);
probe gc__end (int generation);
probe gc__requested (int generation, uintptr_t requested_size, int wait_to_finish);
probe gc__concurrent__start__begin (int generation);
probe gc__concurrent__update__finish__begin (int generation, long long num_major_objects_marked);
probe gc__sweep__begin (int generation, int full_sweep);
probe gc__sweep__end (int generation, int full_sweep);
probe gc__world__stop__begin ();
probe gc__world__stop__end ();
probe gc__world__restart__begin (int generation);
probe gc__world__restart__end (int generation);
probe gc__nursery__tlab__alloc (uintptr_t addr, uintptr_t len);
probe gc__nursery__obj__alloc (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__large (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__major__obj__alloc__degraded (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
/* Can be nursery->nursery, nursery->major or major->major */
probe gc__obj__moved (uintptr_t dest, uintptr_t src, int dest_gen, int src_gen, uintptr_t size, char *ns_name, char *class_name);
probe gc__nursery__swept (uintptr_t addr, uintptr_t len);
probe gc__major__swept (uintptr_t addr, uintptr_t len);
probe gc__obj__pinned (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation);
probe gc__finalize__enqueue (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name, int generation, int is_critical);
probe gc__finalize__invoke (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__weak__update (uintptr_t ref_addr, uintptr_t new_addr, uintptr_t size, char *ns_name, char *class_name, int track);
probe gc__global__remset__add (uintptr_t ref_addr, uintptr_t obj_addr, uintptr_t size, char *ns_name, char *class_name);
probe gc__obj__cemented (uintptr_t addr, uintptr_t size, char *ns_name, char *class_name);
};
#pragma D attributes Evolving/Evolving/Common provider mono provider
+3
View File
@@ -7,3 +7,6 @@ sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Requires: glib-2.0 gthread-2.0
Libs: -L${libdir} @export_ldflags@ -lmono @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
+1 -14
View File
@@ -37,17 +37,4 @@
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 hazardous_pointer
Memcheck:Addr4
fun:get_hazardous_pointer
fun:*
obj:*mono
}
{
mono - Invalid write of size 4 jit_info_table_find
Memcheck:Addr4
fun:mono_jit_info_table_find
fun:*
obj:*mono
}
-9
View File
@@ -1,9 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@prefix@/lib
sourcesdir=${libdir}/monodoc/sources
Name: Monodoc
Description: Monodoc - Mono Documentation Tools
Version: @VERSION@
Libs: /r:${prefix}/lib/mono/monodoc/monodoc.dll
-11
View File
@@ -1,11 +0,0 @@
prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/@reloc_libdir@
includedir=${prefix}/include/mono-@API_VER@
sysconfdir=@sysconfdir@
Name: Mono
Description: Mono Runtime
Version: @VERSION@
Libs: -L${libdir} @export_ldflags@ -lmonosgen-@API_VER@ @libmono_ldflags@
Cflags: -I${includedir} @libmono_cflags@
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
+3 -6
View File
@@ -74,6 +74,9 @@
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.web>
<httpHandlers>
@@ -211,16 +214,12 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
@@ -237,8 +236,6 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
</configuration>
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
+6
View File
@@ -0,0 +1,6 @@
2008-03-23 Dean Brettle <[email protected]>
* Compat.browser: added. Provides browser definitions with
compatible IDs.
File renamed without changes.
+2 -2
View File
@@ -1,6 +1,6 @@
monodir = $(sysconfdir)/mono/2.0/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
EXTRA_DIST = Compat.browser
mono_DATA = ../../Browsers/Compat.browser
mono_DATA = Compat.browser
+57
View File
@@ -0,0 +1,57 @@
2008-03-23 Dean Brettle <[email protected]>
* Makefile.am: added Browsers/Compat.browser
2008-02-29 Marek Habersack <[email protected]>
* machine.config: added an entry to ignore the browserCaps section.
2007-12-15 Marek Habersack <[email protected]>
* web.config: compilation/compilers are no longer necessary.
2007-12-08 Marek Habersack <[email protected]>
* machine.config: updated the LocalSqlServer connection string to
match MS.NET and added a new connection string, LocalSqliteServer,
to be used by default on Unix.
Updated the AspNetSqlMembershipProvider definition to match
MS.NET.
* settings.map: added
* Makefile.am: added settings.map
2007-10-17 Atsushi Enomoto <[email protected]>
* web.config, machine.config: moved webSerices section from former
to latter.
2007-09-05 Atsushi Enomoto <[email protected]>
* machine.config : added WCF sectionGroups.
2007-09-04 Marek Habersack <[email protected]>
* machine.config: added an entry to ignore the <system.webServer>
section. Fixes bug #82535
2007-07-03 Marek Habersack <[email protected]>
* DefaultWsdlHelpGenerator.aspx: make head server-side, for the
service generator to run on sites which use stylesheet themes
configured in web.config. Fixes bug #81994
2007-05-01 Marek Habersack <[email protected]>
* machine.config: added standard data provider factories, or
otherwise the SqlDataSource tests will fail.
2007-04-27 Atsushi Enomoto <[email protected]>
* DefaultWsdlHelpGenerator.aspx :
ProfileViolations could be null, when there is no Binding. So,
don't omit null check.
Stop your bad habit of missing ChangeLog. Former changes (as long
as logged) can be seen in ../../ChangeLog.
+74 -125
View File
@@ -10,7 +10,6 @@
--%>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml.Serialization" %>
<%@ Import Namespace="System.Xml" %>
@@ -123,20 +122,15 @@ void BuildOperationInfo ()
// Protocols supported by the operation
CurrentOperationProtocols = "";
WebServiceProtocols testProtocols = 0;
ArrayList prots = FindServiceProtocols (CurrentOperationName);
for (int n=0; n<prots.Count; n++) {
string prot = (string) prots [n];
if (n != 0) CurrentOperationProtocols += ", ";
CurrentOperationProtocols += prot;
if (prot == "HttpGet")
testProtocols |= WebServiceProtocols.HttpGet;
else if (prot == "HttpPost") {
testProtocols |= WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
}
CurrentOperationProtocols += (string) prots[n];
}
WebServiceProtocols testProtocols = WebServiceProtocols.HttpGet | WebServiceProtocols.HttpPost;
if (Context.Request.IsLocal)
testProtocols |= WebServiceProtocols.HttpPostLocalhost;
CurrentOperationSupportsTest = (WebServicesSection.Current.EnabledProtocols & testProtocols) != 0;
// Operation format
@@ -335,31 +329,21 @@ class NoCheckCertificatePolicy : ICertificatePolicy {
}
}
string GetOrPost ()
{
return (CurrentOperationProtocols.IndexOf ("HttpGet") >= 0) ? "GET" : "POST";
}
string GetQS ()
{
string GetTestResult ()
{
if (!HasFormResult) return null;
bool fill = false;
string qs = "";
NameValueCollection query_string = Request.QueryString;
for (int n = 0; n < query_string.Count; n++) {
for (int n=0; n<Request.QueryString.Count; n++)
{
if (fill) {
if (qs != "") qs += "&";
qs += query_string.GetKey(n) + "=" + Server.UrlEncode (query_string [n]);
qs += Request.QueryString.GetKey(n) + "=" + Server.UrlEncode (Request.QueryString [n]);
}
if (query_string.GetKey(n) == "ext") fill = true;
if (Request.QueryString.GetKey(n) == "ext") fill = true;
}
return qs;
}
string GetTestResultUrl ()
{
if (!HasFormResult) return "";
string location = null;
ServiceDescription desc = descriptions [0];
Service service = desc.Services[0];
@@ -374,7 +358,59 @@ string GetTestResultUrl ()
if (location == null)
return "Could not locate web service";
return location + "/" + CurrentOperationName;
try
{
string url = location + "/" + CurrentOperationName;
Uri uri = new Uri (url);
WebRequest req;
if (CurrentOperationProtocols.IndexOf ("HttpGet") < 0) {
req = WebRequest.Create (url);
req.Method="POST";
if (!String.IsNullOrEmpty (qs)) {
req.ContentType = "application/x-www-form-urlencoded";
byte [] postBuffer = Encoding.UTF8.GetBytes (qs);
req.ContentLength = postBuffer.Length;
using (Stream requestStream = req.GetRequestStream())
requestStream.Write (postBuffer, 0, postBuffer.Length);
}
}
else
req = WebRequest.Create (url + "?" + qs);
if (url.StartsWith ("https:"))
ServicePointManager.CertificatePolicy = new NoCheckCertificatePolicy ();
HttpCookieCollection cookies = Request.Cookies;
int last = cookies.Count;
if (last > 0) {
CookieContainer container = new CookieContainer ();
for (int i = 0; i < last; i++) {
HttpCookie hcookie = cookies [i];
Cookie cookie = new Cookie (hcookie.Name, hcookie.Value, hcookie.Path, hcookie.Domain);
container.Add (uri, cookie);
}
((HttpWebRequest) req).CookieContainer = container;
}
WebResponse resp = req.GetResponse();
StreamReader sr = new StreamReader (resp.GetResponseStream());
string s = sr.ReadToEnd ();
sr.Close ();
return "<div class='code-xml'>" + ColorizeXml(WrapText(s,CodeTextColumns)) + "</div>";
}
catch (Exception ex)
{
string res = "<b style='color:red'>" + ex.Message + "</b>";
WebException wex = ex as WebException;
if (wex != null)
{
WebResponse resp = wex.Response;
if (resp != null) {
StreamReader sr = new StreamReader (resp.GetResponseStream());
string s = sr.ReadToEnd ();
sr.Close ();
res += "<div class='code-xml'>" + ColorizeXml(WrapText(s,CodeTextColumns)) + "</div>";
}
}
return res;
}
}
string GenerateOperationMessages (string protocol, bool generateInput)
@@ -474,15 +510,10 @@ private CodeDomProvider GetProvider(string langId)
//
// Document generation
//
class UTF8StringWriter : StringWriter {
public override Encoding Encoding {
get { return Encoding.UTF8; }
}
}
string GenerateDocument ()
{
UTF8StringWriter sw = new UTF8StringWriter ();
StringWriter sw = new StringWriter ();
if (CurrentDocType == "wsdl")
descriptions [CurrentDocInd].Write (sw);
@@ -1041,7 +1072,7 @@ public class HtmlSampleGenerator: SampleGenerator
if (elem == null) throw new InvalidOperationException ("Element not found: " + qname);
WriteElementSample (xtw, qname.Namespace, elem);
}
void WriteElementSample (XmlTextWriter xtw, string ns, XmlSchemaElement elem)
{
bool sharedAnnType = false;
@@ -1135,18 +1166,9 @@ public class HtmlSampleGenerator: SampleGenerator
{
WriteAttributes (xtw, stype.Attributes, stype.AnyAttribute);
}
Dictionary<XmlSchemaComplexType,int> recursed_types = new Dictionary<XmlSchemaComplexType,int> ();
void WriteComplexTypeElements (XmlTextWriter xtw, string ns, XmlSchemaComplexType stype)
{
int prev = 0;
if (recursed_types.ContainsKey (stype))
prev = recursed_types [stype];
if (prev > 1)
return;
recursed_types [stype] = ++prev;
if (stype.Particle != null)
WriteParticleComplexContent (xtw, ns, stype.Particle);
else
@@ -1156,8 +1178,6 @@ public class HtmlSampleGenerator: SampleGenerator
else if (stype.ContentModel is XmlSchemaComplexContent)
WriteComplexContent (xtw, ns, (XmlSchemaComplexContent)stype.ContentModel);
}
prev = recursed_types [stype];
recursed_types [stype] = --prev;
}
void WriteAttributes (XmlTextWriter xtw, XmlSchemaObjectCollection atts, XmlSchemaAnyAttribute anyat)
@@ -1538,9 +1558,8 @@ public class HtmlSampleGenerator: SampleGenerator
</script>
<head runat="server">
<%
Response.Write ("<link rel=\"alternate\" type=\"text/xml\" href=\"" + Request.FilePath + "?disco\"/>");
%>
<link rel="alternate" type="text/xml" href="<%=Request.FilePath%>?disco"/>
<title><%=WebServiceName%> Web Service</title>
<style type="text/css">
BODY { font-family: Arial; margin-left: 20px; margin-top: 20px; font-size: x-small}
@@ -1571,73 +1590,7 @@ public class HtmlSampleGenerator: SampleGenerator
A:hover { color: blue }
</style>
<script language="javascript" type="text/javascript">
var req;
function getXML (command, url, qs) {
if (url == "" || url.substring (0, 4) != "http")
return;
var post_data = null;
req = getReq ();
req.onreadystatechange = stateChange;
if (command == "GET") {
url = url + "?" + qs;
} else {
post_data = qs;
}
req.open (command, url, true);
if (command == "POST")
req.setRequestHeader ("Content-Type", "application/x-www-form-urlencoded");
req.send (post_data);
}
function stateChange () {
if (req.readyState == 4) {
var node = document.getElementById("testresult_div");
var text = "";
if (req.status == 200) {
node.innerHTML = "<div class='code-xml'>" + formatXml (req.responseText) + "</div>";
} else {
var ht = "<b style='color: red'>" + formatXml (req.status + " - " + req.statusText) + "</b>";
if (req.responseText != "")
ht = ht + "\n<div class='code-xml'>" + formatXml (req.responseText) + "</div>";
node.innerHTML = ht;
}
}
}
function formatXml (text)
{
var re = / /g;
text = text.replace (re, "&nbsp;");
re = /\t/g;
text = text.replace (re, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
re = /\<\s*(\/?)\s*(.*?)\s*(\/?)\s*\>/g;
text = text.replace (re,"{blue:&lt;$1}{maroon:$2}{blue:$3&gt;}");
re = /{(\w*):(.*?)}/g;
text = text.replace (re,"<span style='color:$1'>$2</span>");
re = /"(.*?)"/g;
text = text.replace (re,"\"<span style='color:purple'>$1</span>\"");
re = /\r\n|\r|\n/g;
text = text.replace (re, "<br/>");
return text;
}
function getReq () {
if (window.XMLHttpRequest) {
return new XMLHttpRequest(); // Firefox, Safari, ...
} else if (window.ActiveXObject) {
return new ActiveXObject("Microsoft.XMLHTTP");
}
}
<script>
function clearForm ()
{
document.getElementById("testFormResult").style.display="none";
@@ -1794,11 +1747,7 @@ This service does not contain any public web method.
</form>
<div id="testFormResult" style="display:<%= (HasFormResult?"block":"none") %>">
The web service returned the following result:<br/><br/>
<div class="codePanel" id="testresult_div">
</div>
<script language="javascript">
getXML ("<%= GetOrPost () %>", "<%= GetTestResultUrl () %>", "<%= GetQS () %>");
</script>
<div class="codePanel"><%=GetTestResult()%></div>
</div>
<% } else {%>
The test form is not available for this operation because it has parameters with a complex structure.
+10 -36
View File
@@ -22,7 +22,7 @@
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />/>
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
@@ -37,8 +37,6 @@
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
@@ -60,7 +58,6 @@
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
@@ -79,17 +76,12 @@
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostic" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceModelHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<connectionStrings>
@@ -107,6 +99,9 @@
</configProtectedData>
<system.net>
<connectionManagement>
<add address="*" maxconnection="2" />
</connectionManagement>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
@@ -116,8 +111,11 @@
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
</settings>
</system.net>
<system.runtime.remoting>
@@ -183,9 +181,6 @@
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
@@ -194,16 +189,12 @@
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
@@ -220,8 +211,6 @@
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
@@ -260,21 +249,6 @@
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
</extensions>
</system.serviceModel>
</configuration>
+1 -1
View File
@@ -132,7 +132,7 @@
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpWebRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpRequestCreator, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
<settings>
<ipv6 enabled="false"/>
+2 -2
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
@@ -24,7 +24,7 @@
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, Mono.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
+4 -17
View File
@@ -3,19 +3,11 @@
<configuration>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add verb="*" path="Trace.axd" type="System.Web.Handlers.TraceHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.aspx" type="System.Web.UI.PageHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Services.Protocols.WebServiceHandlerFactory, System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.ashx" type="System.Web.UI.SimpleHandlerFactory, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
@@ -37,9 +29,8 @@
<add verb="*" path="*.vbproj" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.licx" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.dll" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add verb="*" path="*.rem" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="*" path="*.soap" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="false" />
<add verb="GET,HEAD" path="*" type="System.Web.StaticFileHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add verb="*" path="*" type="System.Web.HttpMethodNotAllowedHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
@@ -95,10 +86,6 @@
<add assembly="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.IdentityModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"/>
<add assembly="System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
@@ -128,12 +115,12 @@
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
<httpRuntime executionTimeout="90"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
appRequestQueueLimit="100" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-6
View File
@@ -1,6 +0,0 @@
monodir = $(sysconfdir)/mono/4.0/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
File diff suppressed because it is too large. Load diff
-14
View File
@@ -1,14 +0,0 @@
SUBDIRS = Browsers
monodir = $(sysconfdir)/mono/4.0
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
-307
View File
@@ -1,307 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.DiagnosticsConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="standardEndpoints" type="System.ServiceModel.Configuration.StandardEndpointsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
<endpointExtensions>
<add name="dynamicEndpoint" type="System.ServiceModel.Discovery.Configuration.DynamicEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="discoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.DiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpDiscoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpDiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="announcementEndpoint" type="System.ServiceModel.Discovery.Configuration.AnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpAnnouncementEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpAnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttpEndpoint" type="System.ServiceModel.Configuration.WebHttpEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webScriptEndpoint" type="System.ServiceModel.Configuration.WebScriptEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</endpointExtensions>
</extensions>
</system.serviceModel>
</configuration>
-48
View File
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<settingsMap>
<map sectionType="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.MembershipSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqliteMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
<map sectionType="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
mapperType="Mono.Web.Util.RoleManagerSectionMapper, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
platform="Unix">
<!-- The 'what' tag specifies which region of the section to modify. The 'value' attribute value is mapper-specific and is not defined here. It can be
any expression understood by the mapper to designate the section region to modify.
-->
<what value="providers">
<!-- 'what' can contain any number of occurrences of any three elements:
replace - replace the designated region
add - add a new entry to the region
clear - clear the region
remove - remove the designatedregion
The attributes to any of the above are freeform and are not processed by the mapper manager. They are stored verbatim for the
mapper to peruse.
-->
<replace name="AspNetSqlRoleProvider"
type="System.Web.Security.SqliteRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqliteServer" />
</what>
</map>
</settingsMap>
-253
View File
@@ -1,253 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v4.0"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<system.web>
<monoSettings>
<compilersCompatibility>
<compiler language="c#;cs;csharp" extension=".cs" compilerOptions="/nowarn:0169"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilersCompatibility>
</monoSettings>
<authorization>
<allow users="*" />
</authorization>
<httpHandlers>
<add path="trace.axd" verb="*" type="System.Web.Handlers.TraceHandler" validate="True" />
<add path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" validate="True" />
<add verb="*" path="*_AppService.axd" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.axd" verb="*" type="System.Web.HttpNotFoundHandler" validate="True" />
<add path="*.aspx" verb="*" type="System.Web.UI.PageHandlerFactory" validate="True" />
<add path="*.ashx" verb="*" type="System.Web.UI.SimpleHandlerFactory" validate="True" />
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False" />
<add path="*.rem" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.soap" verb="*" type="System.Runtime.Remoting.Channels.Http.HttpRemotingHandlerFactory, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" validate="False" />
<add path="*.asax" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ascx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.master" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.skin" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.browser" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sitemap" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dll.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.exe.config" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="True" />
<add path="*.config" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cs" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.csproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vbproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.webinfo" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.licx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resx" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.resources" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.vjsproj" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.java" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.jsl" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldb" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ad" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.dd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.cd" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.adprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.lddprototype" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdm" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.sdmDocument" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.mdf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.ldf" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.exclude" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<add path="*.refresh" verb="*" type="System.Web.HttpForbiddenHandler" validate="True" />
<!--
<add path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add verb="*" path="*.svc" type="System.ServiceModel.Channels.SvcHttpHandlerFactory, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.rules" verb="*" type="System.Web.HttpForbiddenHandler" validate="True"/>
<!--
<add path="*.xoml" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
<add path="*.xamlx" verb="*" type="System.Xaml.Hosting.XamlHttpHandlerFactory, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="False"/>
-->
<add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler" validate="True" />
<add path="*" verb="*" type="System.Web.HttpMethodNotAllowedHandler" validate="True" />
</httpHandlers>
<httpModules>
<add name="OutputCache" type="System.Web.Caching.OutputCacheModule" />
<add name="Session" type="System.Web.SessionState.SessionStateModule" />
<!--
<add name="WindowsAuthentication" type="System.Web.Security.WindowsAuthenticationModule" />
-->
<add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
<!--
<add name="PassportAuthentication" type="System.Web.Security.PassportAuthenticationModule" />
-->
<add name="RoleManager" type="System.Web.Security.RoleManagerModule" />
<add name="UrlAuthorization" type="System.Web.Security.UrlAuthorizationModule" />
<!--
<add name="FileAuthorization" type="System.Web.Security.FileAuthorizationModule" />
-->
<add name="AnonymousIdentification" type="System.Web.Security.AnonymousIdentificationModule" />
<add name="Profile" type="System.Web.Profile.ProfileModule" />
<!--
<add name="ErrorHandlerModule" type="System.Web.Mobile.ErrorHandlerModule, System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add name="ServiceModel" type="System.ServiceModel.Activation.HttpModule, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" />
<add name="ScriptModule-4.0" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="login.aspx" protection="All" timeout="30" path="/">
<credentials passwordFormat="Clear">
<!--<user name="gonzalo" password="gonz"/>-->
</credentials>
</forms>
</authentication>
<machineKey validationKey="AutoGenerate" decryptionKey="AutoGenerate" validation="SHA1" />
<globalization requestEncoding="utf-8"
responseEncoding="utf-8"
fileEncoding="utf-8"/>
<!--
culture="en-US"
uiculture="en-US" />
-->
<sessionState mode="InProc" />
<pages>
<namespaces>
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<!-- <add namespace="System.Web.UI.WebControls.WebParts" /> -->
<add namespace="System.Web.UI.HtmlControls" />
</namespaces>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.WebParts" assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls.Expressions" assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.DynamicData" assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</controls>
</pages>
<webControls clientScriptsLocation="/web_scripts" />
<compilation debug="false" defaultLanguage="c#" explicit="true" strict="false" >
<assemblies>
<add assembly="mscorlib" />
<add assembly="Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<!-- <add assembly="System.Web.Mobile, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> -->
<add assembly="System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Channels, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.ServiceModel.Activities, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<!-- <add assembly="System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> -->
<add assembly="System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="System.Data.DataSetExtensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add assembly="System.Web.DynamicData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<!-- <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<!-- <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> -->
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<!-- <add assembly="System.Data.Entity.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> -->
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add assembly="*" /> <!-- Add assemblies in bin directory -->
</assemblies>
<expressionBuilders>
<add expressionPrefix="Resources"
type="System.Web.Compilation.ResourceExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="ConnectionStrings"
type="System.Web.Compilation.ConnectionStringsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="AppSettings"
type="System.Web.Compilation.AppSettingsExpressionBuilder, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<add expressionPrefix="RouteUrl" type="System.Web.Compilation.RouteUrlExpressionBuilder"/>
<!--
<add expressionPrefix="RouteValue" type="System.Web.Compilation.RouteValueExpressionBuilder"/>
-->
</expressionBuilders>
<buildProviders>
<add extension=".aspx" type="System.Web.Compilation.PageBuildProvider" />
<add extension=".ascx" type="System.Web.Compilation.UserControlBuildProvider" />
<add extension=".master" type="System.Web.Compilation.MasterPageBuildProvider" />
<add extension=".asmx" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".ashx" type="System.Web.Compilation.WebHandlerBuildProvider" />
<add extension=".soap" type="System.Web.Compilation.WebServiceBuildProvider" />
<add extension=".resx" type="System.Web.Compilation.ResXBuildProvider" />
<add extension=".resources" type="System.Web.Compilation.ResourcesBuildProvider" />
<add extension=".wsdl" type="System.Web.Compilation.WsdlBuildProvider" />
<add extension=".xsd" type="System.Web.Compilation.XsdBuildProvider" />
<add extension=".js" type="System.Web.Compilation.ForceCopyBuildProvider" />
<add extension=".lic" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".licx" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".exclude" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<add extension=".refresh" type="System.Web.Compilation.IgnoreFileBuildProvider" />
<!--
<add extension=".edmx" type="System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider" />
<add extension=".xoml" type="System.ServiceModel.Activation.WorkflowServiceBuildProvider, System.WorkflowServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add extension=".svc" type="System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add extension=".xamlx" type="System.Xaml.Hosting.XamlBuildProvider, System.Xaml.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
-->
</buildProviders>
</compilation>
<httpRuntime executionTimeout="110"
maxRequestLength="4096"
useFullyQualifiedRedirectUrl="false"
minFreeThreads="8"
minLocalRequestFreeThreads="4"
appRequestQueueLimit="5000" />
<clientTarget>
<add alias="ie5" userAgent="Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)" />
<add alias="ie4" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="uplevel" userAgent="Mozilla/4.0 (compatible; MSIE 4.0; Windows NT 4.0)" />
<add alias="downlevel" userAgent="Unknown" />
</clientTarget>
<siteMap>
<providers>
<add name="AspNetXmlSiteMapProvider"
description="Default site map provider that reads in .sitemap xml files."
type="System.Web.XmlSiteMapProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
siteMapFile="Web.sitemap" />
</providers>
</siteMap>
</system.web>
</configuration>
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-2
View File
@@ -1,2 +0,0 @@
/Makefile
/Makefile.in
-6
View File
@@ -1,6 +0,0 @@
monodir = $(sysconfdir)/mono/4.5/Browsers
EXTRA_DIST = ../../Browsers/Compat.browser
mono_DATA = ../../Browsers/Compat.browser
File diff suppressed because it is too large. Load diff
-13
View File
@@ -1,13 +0,0 @@
SUBDIRS = Browsers
monodir = $(sysconfdir)/mono/4.5
EXTRA_DIST = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
mono_DATA = machine.config \
web.config \
DefaultWsdlHelpGenerator.aspx \
settings.map
-310
View File
@@ -1,310 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="configProtectedData" type="System.Configuration.ProtectedConfigurationSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="appSettings" type="System.Configuration.AppSettingsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="connectionStrings" type="System.Configuration.ConnectionStringsSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mscorlib" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="runtime" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="assemblyBinding" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="satelliteassemblies" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="startup" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false"/>
<section name="system.data" type="System.Data.Common.DbProviderFactoriesConfigurationHandler, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.diagnostics" type="System.Diagnostics.SystemDiagnosticsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.runtime.remoting" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<section name="system.windows.forms" type="System.Windows.Forms.WindowsFormsSection, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="system.codedom" type="System.CodeDom.Compiler.CodeDomConfigurationHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="windows" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowLocation="false" />
<section name="strongNames" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowLocation="false"/>
<sectionGroup name="system.runtime.serialization" type="System.Runtime.Serialization.Configuration.SerializationSectionGroup, System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="dataContractSerializer" type="System.Runtime.Serialization.Configuration.DataContractSerializerSection, System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.web" type="System.Web.Configuration.SystemWebSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="anonymousIdentification" type="System.Web.Configuration.AnonymousIdentificationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authentication" type="System.Web.Configuration.AuthenticationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="authorization" type="System.Web.Configuration.AuthorizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="browserCaps" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="clientTarget" type="System.Web.Configuration.ClientTargetSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="compilation" type="System.Web.Configuration.CompilationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="customErrors" type="System.Web.Configuration.CustomErrorsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="deployment" type="System.Web.Configuration.DeploymentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" />
<section name="globalization" type="System.Web.Configuration.GlobalizationSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="healthMonitoring" type="System.Web.Configuration.HealthMonitoringSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="hostingEnvironment" type="System.Web.Configuration.HostingEnvironmentSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="httpCookies" type="System.Web.Configuration.HttpCookiesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpHandlers" type="System.Web.Configuration.HttpHandlersSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpModules" type="System.Web.Configuration.HttpModulesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="httpRuntime" type="System.Web.Configuration.HttpRuntimeSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="identity" type="System.Web.Configuration.IdentitySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="machineKey" type="System.Web.Configuration.MachineKeySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="membership" type="System.Web.Configuration.MembershipSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="mobileControls" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="deviceFilters" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="pages" type="System.Web.Configuration.PagesSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="processModel" type="System.Web.Configuration.ProcessModelSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineOnly" allowLocation="false" />
<section name="profile" type="System.Web.Configuration.ProfileSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="roleManager" type="System.Web.Configuration.RoleManagerSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="securityPolicy" type="System.Web.Configuration.SecurityPolicySection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="sessionPageState" type="System.Web.Configuration.SessionPageStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="sessionState" type="System.Web.Configuration.SessionStateSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="siteMap" type="System.Web.Configuration.SiteMapSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="trace" type="System.Web.Configuration.TraceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="trust" type="System.Web.Configuration.TrustSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication" />
<section name="urlMappings" type="System.Web.Configuration.UrlMappingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="webControls" type="System.Web.Configuration.WebControlsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webParts" type="System.Web.Configuration.WebPartsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="webServices" type="System.Web.Services.Configuration.WebServicesSection, System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="xhtmlConformance" type="System.Web.Configuration.XhtmlConformanceSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<sectionGroup name="caching" type="System.Web.Configuration.SystemWebCachingSectionGroup, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="cache" type="System.Web.Configuration.CacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCache" type="System.Web.Configuration.OutputCacheSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="outputCacheSettings" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
<section name="sqlCacheDependency" type="System.Web.Configuration.OutputCacheSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
<section name="monoSettings" type="System.Web.Configuration.MonoSettingsSection, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</sectionGroup>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="system.net" type="System.Net.Configuration.NetSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="authenticationModules" type="System.Net.Configuration.AuthenticationModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="connectionManagement" type="System.Net.Configuration.ConnectionManagementSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="defaultProxy" type="System.Net.Configuration.DefaultProxySection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="mailSettings" type="System.Net.Configuration.MailSettingsSectionGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="smtp" type="System.Net.Configuration.SmtpSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="requestCaching" type="System.Net.Configuration.RequestCachingSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="settings" type="System.Net.Configuration.SettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="webRequestModules" type="System.Net.Configuration.WebRequestModulesSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
<section name="system.drawing" type="System.Configuration.NameValueSectionHandler, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.serviceModel" type="System.ServiceModel.Configuration.ServiceModelSectionGroup, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="behaviors" type="System.ServiceModel.Configuration.BehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="bindings" type="System.ServiceModel.Configuration.BindingsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="client" type="System.ServiceModel.Configuration.ClientSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="commonBehaviors" type="System.ServiceModel.Configuration.CommonBehaviorsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="diagnostics" type="System.ServiceModel.Configuration.DiagnosticSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="extensions" type="System.ServiceModel.Configuration.ExtensionsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="serviceHostingEnvironment" type="System.ServiceModel.Configuration.ServiceHostingEnvironmentSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="services" type="System.ServiceModel.Configuration.ServicesSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<section name="standardEndpoints" type="System.ServiceModel.Configuration.StandardEndpointsSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<section name="routing" type="System.ServiceModel.Routing.Configuration.RoutingSection, System.ServiceModel.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<section name="protocolMapping" type="System.ServiceModel.Configuration.ProtocolMappingSection, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
</sectionGroup>
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null"/>
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
<section name="system.webServer" type="System.Configuration.IgnoreSection, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<sectionGroup name="system.runtime.caching" type="System.Runtime.Caching.Configuration.CachingSectionGroup, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<section name="memoryCache" type="System.Runtime.Caching.Configuration.MemoryCacheSection, System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" allowDefinition="MachineToApplication"/>
</sectionGroup>
</configSections>
<connectionStrings>
<add name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="LocalSqliteServer" connectionString="Data Source=|DataDirectory|/aspnetdb.sqlite;version=3" providerName="Mono.Data.Sqlite"/>
</connectionStrings>
<configProtectedData defaultProvider="RsaProtectedConfigurationProvider">
<providers>
<add name="RsaProtectedConfigurationProvider" type="System.Configuration.RsaProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" keyContainerName="MonoFrameworkConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
<add name="DataProtectionConfigurationProvider" type="System.Configuration.DpapiProtectedConfigurationProvider, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
description="" useMachineProtection="true" keyEntropy="" />
</providers>
</configProtectedData>
<system.net>
<authenticationModules>
<add type="System.Net.BasicClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.DigestClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add type="System.Net.NtlmClient, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</authenticationModules>
<webRequestModules>
<add prefix="http" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="https" type="System.Net.HttpRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="file" type="System.Net.FileWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add prefix="ftp" type="System.Net.FtpWebRequestCreator, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</webRequestModules>
</system.net>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http client" displayName="http client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="tcp client" displayName="tcp client (delay loaded)" delayLoadAsClientChannel="true" />
<channel ref="ipc client" displayName="ipc client (delay loaded)" delayLoadAsClientChannel="true" />
</channels>
</application>
<channels>
<channel id="http" type="System.Runtime.Remoting.Channels.Http.HttpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http client" type="System.Runtime.Remoting.Channels.Http.HttpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="http server" type="System.Runtime.Remoting.Channels.Http.HttpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp" type="System.Runtime.Remoting.Channels.Tcp.TcpChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp client" type="System.Runtime.Remoting.Channels.Tcp.TcpClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="tcp server" type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc" type="System.Runtime.Remoting.Channels.Ipc.IpcChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc client" type="System.Runtime.Remoting.Channels.Ipc.IpcClientChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<channel id="ipc server" type="System.Runtime.Remoting.Channels.Ipc.IpcServerChannel, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</channels>
<channelSinkProviders>
<clientProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</clientProviders>
<serverProviders>
<formatter id="soap" type="System.Runtime.Remoting.Channels.SoapServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<formatter id="binary" type="System.Runtime.Remoting.Channels.BinaryServerFormatterSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<provider id="wsdl" type="System.Runtime.Remoting.MetadataServices.SdlChannelSinkProvider, System.Runtime.Remoting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</serverProviders>
</channelSinkProviders>
</system.runtime.remoting>
<appSettings>
<!--<add key="yourkey" value="your value" /> -->
<!--<remove key="a key defined higher in the hierarchy" /> -->
<!--<clear/> Removes all defined settings -->
</appSettings>
<system.diagnostics>
<trace autoflush="false" indentsize="4" />
</system.diagnostics>
<system.drawing>
</system.drawing>
<system.data>
<DbProviderFactories>
<add name="Mono Sqlite Data Provider" invariant="Mono.Data.SqliteClient"
description="Mono Framework Data Provider for SQLite (old version)"
type="Mono.Data.SqliteClient.SqliteFactory, Mono.Data.SqliteClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Mono Sqlite Provider" invariant="Mono.Data.Sqlite"
description="Mono Framework Data Provider for SQLite (new version)"
type="Mono.Data.Sqlite.SqliteFactory, Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
<add name="Odbc Data Provider" invariant="System.Data.Odbc"
description=".Net Framework Data Provider for Odbc"
type="System.Data.Odbc.OdbcFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OleDb Data Provider" invariant="System.Data.OleDb"
description=".Net Framework Data Provider for OleDb"
type="System.Data.OleDb.OleDbFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="OracleClient Data Provider" invariant="System.Data.OracleClient"
description=".Net Framework Data Provider for Oracle"
type="System.Data.OracleClient.OracleClientFactory, System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="SqlClient Data Provider" invariant="System.Data.SqlClient"
description=".Net Framework Data Provider for SqlServer"
type="System.Data.SqlClient.SqlClientFactory, System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<add name="Sybase Data Provider" invariant="Mono.Data.SybaseClient"
description=".Net Framework Data Provider for Sybase"
type="Mono.Data.SybaseClient.SybaseClientFactory, Mono.Data.SybaseClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756"/>
</DbProviderFactories>
</system.data>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass monoMD2="Mono.Security.Cryptography.MD2Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
<cryptoClass monoMD4="Mono.Security.Cryptography.MD4Managed, Mono.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" />
</cryptoClasses>
<nameEntry name="MD2" class="monoMD2" />
<nameEntry name="MD4" class="monoMD4" />
</cryptoNameMapping>
<oidMap>
<oidEntry OID="1.2.840.113549.2.2" name="MD2" />
<oidEntry OID="1.2.840.113549.2.2" name="Mono.Security.Cryptography.MD2Managed" />
<oidEntry OID="1.2.840.113549.2.4" name="MD4" />
<oidEntry OID="1.2.840.113549.2.4" name="Mono.Security.Cryptography.MD4Managed" />
</oidMap>
</cryptographySettings>
</mscorlib>
<strongNames>
<pubTokenMapping>
<!-- ECMA key -->
<map Token="b77a5c561934e089" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (final) key -->
<map Token="b03f5f7f11d50a3a" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Microsoft (Web Service Enhancement) key -->
<map Token="31bf3856ad364e35" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- IBM (DB2 Data Provider) key -->
<map Token="7c307b91aa13d208" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- Silverlight 2.0 key -->
<map Token="7cec85d7bea7798e" PublicKey="002400000480000094000000060200000024000052534131000400000100010079159977d2d03a8e6bea7a2e74e8d1afcc93e8851974952bb480a12c9134474d04062447c37e0e68c080536fcf3c3fbe2ff9c979ce998475e506e8ce82dd5b0f350dc10e93bf2eeecf874b24770c5081dbea7447fddafa277b22de47d6ffea449674a4f9fccf84d15069089380284dbdd35f46cdff12a1bd78e4ef0065d016df" />
<!-- XNA Framework key -->
<map Token="6d5c3888ef60e27d" PublicKey="0024000004800000940000000602000000240000525341310004000001000100f9a2641bac9847900d92a33d652ccc4e8b529360f908e7af53e57008b2a9a1938c32a160d47f795a23590557608d2c8d0c0e8846a052d070f9298281b8185343dbe5b479bd52de256f73c2a943e1a8a42065b5c918622dc14b1c0151dbd94d9a4543e7cd03e536b1b1d2d6d99af535d227ab9bdac76af9312a21d457bdf817e6" />
</pubTokenMapping>
</strongNames>
<system.web>
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpSoap12"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<conformanceWarnings>
<add name="BasicProfile1_1"/>
</conformanceWarnings>
<wsdlHelpGenerator href="DefaultWsdlHelpGenerator.aspx" />
</webServices>
<membership>
<providers>
<add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
<!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</membership>
<roleManager>
<providers>
<add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" applicationName="/" connectionStringName="LocalSqlServer" />
<!-- <add name="AspNetSqlRoleProvider" type="Mainsoft.Web.Security.GenericRoleProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
</providers>
</roleManager>
<profile>
<providers>
<add name="AspNetSqlProfileProvider" connectionStringName="LocalSqlServer" applicationName="/" type="System.Web.Profile.SqlProfileProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</providers>
</profile>
</system.web>
<system.serviceModel>
<extensions>
<behaviorExtensions>
<add name="enableWebScript" type="System.ServiceModel.Configuration.WebScriptEnablingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttp" type="System.ServiceModel.Configuration.WebHttpElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</behaviorExtensions>
<bindingElementExtensions>
<add name="webMessageEncoding" type="System.ServiceModel.Configuration.WebMessageEncodingElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingElementExtensions>
<bindingExtensions>
<add name="webHttpBinding" type="System.ServiceModel.Configuration.WebHttpBindingCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</bindingExtensions>
<endpointExtensions>
<add name="dynamicEndpoint" type="System.ServiceModel.Discovery.Configuration.DynamicEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="discoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.DiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpDiscoveryEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpDiscoveryEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="announcementEndpoint" type="System.ServiceModel.Discovery.Configuration.AnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="udpAnnouncementEndpoint" type="System.ServiceModel.Discovery.Configuration.UdpAnnouncementEndpointCollectionElement, System.ServiceModel.Discovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webHttpEndpoint" type="System.ServiceModel.Configuration.WebHttpEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="webScriptEndpoint" type="System.ServiceModel.Configuration.WebScriptEndpointCollectionElement, System.ServiceModel.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</endpointExtensions>
</extensions>
</system.serviceModel>
</configuration>
Loaded 100 of 64682 files, more files were not shown because too many files have changed in this diff. Show more