Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -1 +1 @@
371ef4aaa659cd8880046348782cbfe41a11b15c
22161806123ada0dd48dfd47d27ddbc42c2354eb

View File

@@ -3,7 +3,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// <OWNER>[....]</OWNER>
// <OWNER>WESU</OWNER>
using System;
// This enumeration defines the access modes for a dynamic assembly.
@@ -24,8 +24,8 @@ namespace System.Reflection.Emit
#if FEATURE_REFLECTION_ONLY_LOAD
ReflectionOnly = 6, // 4 | Save,
#endif // FEATURE_REFLECTION_ONLY_LOAD
#if (FEATURE_COLLECTIBLE_TYPES && !FEATURE_CORECLR) || FEATURE_NETCORE
RunAndCollect = 8 | Run
#endif // FEATURE_COLLECTIBLE_TYPES && !FEATURE_CORECLR
#if FEATURE_COLLECTIBLE_TYPES
RunAndCollect = 8 | Run
#endif
}
}

View File

@@ -3,7 +3,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// <OWNER>[....]</OWNER>
// <OWNER>WESU</OWNER>
using System;
using System.Globalization;
using System.IO;
@@ -22,6 +22,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _AssemblyBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -29,6 +30,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("ED3E4384-D7E2-3FA7-8FFD-8940D330519A")]
@@ -38,6 +40,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _ConstructorBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -45,6 +48,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("BE9ACCE8-AAFF-3B91-81AE-8211663F5CAD")]
@@ -54,6 +58,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _CustomAttributeBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -61,6 +66,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("C7BD73DE-9F85-3290-88EE-090B8BDFE2DF")]
@@ -70,6 +76,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _EnumBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -77,6 +84,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("AADABA99-895D-3D65-9760-B1F12621FAE8")]
@@ -86,6 +94,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _EventBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -93,6 +102,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("CE1A3BF5-975E-30CC-97C9-1EF70F8F3993")]
@@ -102,6 +112,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _FieldBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -109,6 +120,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("A4924B27-6E3B-37F7-9B83-A4501955E6A7")]
@@ -118,6 +130,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _ILGenerator
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -125,6 +138,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("4E6350D1-A08B-3DEC-9A3E-C465F9AEEC0C")]
@@ -134,6 +148,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _LocalBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -141,6 +156,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("007D8A14-FDF3-363E-9A0B-FEC0618260A2")]
@@ -150,6 +166,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _MethodBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -157,6 +174,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
#if FEATURE_METHOD_RENTAL
@@ -167,6 +185,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _MethodRental
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -174,6 +193,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
#endif
@@ -184,6 +204,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _ModuleBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -191,6 +212,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("36329EBA-F97A-3565-BC07-0ED5C6EF19FC")]
@@ -200,6 +222,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _ParameterBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -207,6 +230,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("15F9A479-9397-3A63-ACBD-F51977FB0F02")]
@@ -216,6 +240,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _PropertyBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -223,6 +248,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("7D13DD37-5A04-393C-BBCA-A5FEA802893D")]
@@ -232,6 +258,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _SignatureHelper
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -239,6 +266,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
[GuidAttribute("7E5678EE-48B3-3F83-B076-C58543498A58")]
@@ -248,6 +276,7 @@ namespace System.Runtime.InteropServices
[System.Runtime.InteropServices.ComVisible(true)]
public interface _TypeBuilder
{
#if !FEATURE_CORECLR
void GetTypeInfoCount(out uint pcTInfo);
void GetTypeInfo(uint iTInfo, uint lcid, IntPtr ppTInfo);
@@ -255,6 +284,7 @@ namespace System.Runtime.InteropServices
void GetIDsOfNames([In] ref Guid riid, IntPtr rgszNames, uint cNames, uint lcid, IntPtr rgDispId);
void Invoke(uint dispIdMember, [In] ref Guid riid, uint lcid, short wFlags, IntPtr pDispParams, IntPtr pVarResult, IntPtr pExcepInfo, IntPtr puArgErr);
#endif
}
}

View File

@@ -311,6 +311,7 @@ namespace System.Reflection.Emit
#endregion
#if !FEATURE_CORECLR
void _ConstructorBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -330,6 +331,7 @@ namespace System.Reflection.Emit
{
throw new NotImplementedException();
}
#endif
}
}

View File

@@ -555,6 +555,7 @@ namespace System.Reflection.Emit {
typeof(System.Diagnostics.DebuggableAttribute) == m_con.DeclaringType);
}
#if !FEATURE_CORECLR
void _CustomAttributeBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -574,6 +575,7 @@ namespace System.Reflection.Emit {
{
throw new NotImplementedException();
}
#endif
internal ConstructorInfo m_con;
internal Object[] m_constructorArgs;

View File

@@ -51,9 +51,7 @@ namespace System.Reflection.Emit
// Always false unless we are in an immersive (non dev mode) process.
#if FEATURE_APPX
private bool m_profileAPICheck;
#endif
#if !FEATURE_CORECLR
private RuntimeAssembly m_creatorAssembly;
#endif

View File

@@ -29,21 +29,13 @@ namespace System.Reflection.Emit {
[ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(_EnumBuilder))]
[System.Runtime.InteropServices.ComVisible(true)]
sealed public class EnumBuilder :
#if FEATURE_CORECLR && !FEATURE_NETCORE
Type,
#else
TypeInfo,
#endif
_EnumBuilder
sealed public class EnumBuilder : TypeInfo, _EnumBuilder
{
#if !FEATURE_CORECLR || FEATURE_NETCORE
public override bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo){
if(typeInfo==null) return false;
return IsAssignableFrom(typeInfo.AsType());
}
#endif
// Define literal for enum
public FieldBuilder DefineLiteral(String literalName, Object literalValue)
@@ -59,13 +51,11 @@ namespace System.Reflection.Emit {
return fieldBuilder;
}
#if !FEATURE_CORECLR || FEATURE_NETCORE
public TypeInfo CreateTypeInfo()
{
BCLDebug.Log("DYNIL", "## DYNIL LOGGING: EnumBuilder.CreateType() ");
return m_typeBuilder.CreateTypeInfo();
}
#endif
// CreateType cause EnumBuilder to be baked.
public Type CreateType()
@@ -426,6 +416,7 @@ namespace System.Reflection.Emit {
m_underlyingField = m_typeBuilder.DefineField("value__", underlyingType, FieldAttributes.Public | FieldAttributes.SpecialName | FieldAttributes.RTSpecialName);
}
#if !FEATURE_CORECLR
void _EnumBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -445,6 +436,7 @@ namespace System.Reflection.Emit {
{
throw new NotImplementedException();
}
#endif
/*****************************************************

View File

@@ -139,6 +139,7 @@ namespace System.Reflection.Emit {
customBuilder.CreateCustomAttribute(m_module, m_evToken.Token);
}
#if !FEATURE_CORECLR
void _EventBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -158,6 +159,7 @@ namespace System.Reflection.Emit {
{
throw new NotImplementedException();
}
#endif
// These are package private so that TypeBuilder can access them.

View File

@@ -258,6 +258,7 @@ namespace System.Reflection.Emit
#endregion
#if !FEATURE_CORECLR
void _FieldBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -277,5 +278,6 @@ namespace System.Reflection.Emit
{
throw new NotImplementedException();
}
#endif
}
}

View File

@@ -2,7 +2,7 @@
**
**Class: FlowControl
**
** <OWNER>[....]</OWNER>
** <OWNER>WESU</OWNER>
**
**Purpose: Exposes FlowControl Attribute of IL .
**

View File

@@ -16,19 +16,13 @@ namespace System.Reflection.Emit
using System.Diagnostics.Contracts;
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class GenericTypeParameterBuilder:
#if FEATURE_CORECLR && !FEATURE_NETCORE
Type
#else
TypeInfo
#endif
public sealed class GenericTypeParameterBuilder: TypeInfo
{
#if !FEATURE_CORECLR || FEATURE_NETCORE
public override bool IsAssignableFrom(System.Reflection.TypeInfo typeInfo){
if(typeInfo==null) return false;
return IsAssignableFrom(typeInfo.AsType());
}
#endif
#region Private Data Mebers
internal TypeBuilder m_type;
#endregion

View File

@@ -1362,6 +1362,7 @@ namespace System.Reflection.Emit
#endregion
#if !FEATURE_CORECLR
void _ILGenerator.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -1381,6 +1382,7 @@ namespace System.Reflection.Emit
{
throw new NotImplementedException();
}
#endif
}
internal struct __FixupData

View File

@@ -3,7 +3,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// <OWNER>[....]</OWNER>
// <OWNER>WESU</OWNER>
//
#if FEATURE_CORECLR

View File

@@ -127,6 +127,7 @@ namespace System.Reflection.Emit
}
#endregion
#if !FEATURE_CORECLR
void _LocalBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -146,6 +147,7 @@ namespace System.Reflection.Emit
{
throw new NotImplementedException();
}
#endif
}
}

View File

@@ -19,7 +19,7 @@ namespace System.Reflection.Emit
using System.Security.Permissions;
using System.Runtime.InteropServices;
using System.Diagnostics.Contracts;
#if !MONO
[HostProtection(MayLeakOnAbort = true)]
[ClassInterface(ClassInterfaceType.None)]
[ComDefaultInterface(typeof(_MethodBuilder))]
@@ -1242,6 +1242,7 @@ namespace System.Reflection.Emit
#endregion
#if !FEATURE_CORECLR
void _MethodBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -1261,6 +1262,7 @@ namespace System.Reflection.Emit
{
throw new NotImplementedException();
}
#endif
}
@@ -1394,6 +1396,7 @@ namespace System.Reflection.Emit
#endregion
}
#endif
/// <summary>
/// Describes exception handler in a method body.

View File

@@ -1 +1 @@
f16fbc23bd31caf045b254e6d1d46a49d04fd691
e64bd9bd9540530a464c91d84b03e5b9c5ba866d

View File

@@ -7,7 +7,7 @@
**
**Class: OpCodeType
**
** <OWNER>[....]</OWNER>
** <OWNER>WESU</OWNER>
**
**Purpose: Exposes OpCodeType Attribute of IL .
**

View File

@@ -7,7 +7,7 @@
**
**Class: OperandType
**
** <OWNER>[....]</OWNER>
** <OWNER>WESU</OWNER>
**
**Purpose: Exposes OperandType Attribute of IL .
**

View File

@@ -123,6 +123,7 @@ namespace System.Reflection.Emit {
return m_pdToken;
}
#if !FEATURE_CORECLR
void _ParameterBuilder.GetTypeInfoCount(out uint pcTInfo)
{
throw new NotImplementedException();
@@ -142,6 +143,7 @@ namespace System.Reflection.Emit {
{
throw new NotImplementedException();
}
#endif
internal int MetadataTokenInternal { get { return m_pdToken.Token; } }

View File

@@ -3,7 +3,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// <OWNER>[....]</OWNER>
// <OWNER>WESU</OWNER>
namespace System.Reflection.Emit {
using System;

Some files were not shown because too many files have changed in this diff Show More