-/* icall map */
-typedef struct {
- const char *method;
- gconstpointer func;
-} IcallEntry;
-
-typedef struct {
- const char *klass;
- const IcallEntry *icalls;
- const int size;
-} IcallMap;
-
-static const IcallEntry runtime_icalls [] = {
- {"GetDisplayName", ves_icall_Mono_Runtime_GetDisplayName}
-};
-
-static const IcallEntry activator_icalls [] = {
- {"CreateInstanceInternal", ves_icall_System_Activator_CreateInstanceInternal}
-};
-static const IcallEntry appdomain_icalls [] = {
- {"ExecuteAssembly", ves_icall_System_AppDomain_ExecuteAssembly},
- {"GetAssemblies", ves_icall_System_AppDomain_GetAssemblies},
- {"GetData", ves_icall_System_AppDomain_GetData},
- {"InternalGetContext", ves_icall_System_AppDomain_InternalGetContext},
- {"InternalGetDefaultContext", ves_icall_System_AppDomain_InternalGetDefaultContext},
- {"InternalGetProcessGuid", ves_icall_System_AppDomain_InternalGetProcessGuid},
- {"InternalIsFinalizingForUnload", ves_icall_System_AppDomain_InternalIsFinalizingForUnload},
- {"InternalPopDomainRef", ves_icall_System_AppDomain_InternalPopDomainRef},
- {"InternalPushDomainRef", ves_icall_System_AppDomain_InternalPushDomainRef},
- {"InternalPushDomainRefByID", ves_icall_System_AppDomain_InternalPushDomainRefByID},
- {"InternalSetContext", ves_icall_System_AppDomain_InternalSetContext},
- {"InternalSetDomain", ves_icall_System_AppDomain_InternalSetDomain},
- {"InternalSetDomainByID", ves_icall_System_AppDomain_InternalSetDomainByID},
- {"InternalUnload", ves_icall_System_AppDomain_InternalUnload},
- {"LoadAssembly", ves_icall_System_AppDomain_LoadAssembly},
- {"LoadAssemblyRaw", ves_icall_System_AppDomain_LoadAssemblyRaw},
- {"SetData", ves_icall_System_AppDomain_SetData},
- {"createDomain", ves_icall_System_AppDomain_createDomain},
- {"getCurDomain", ves_icall_System_AppDomain_getCurDomain},
- {"getFriendlyName", ves_icall_System_AppDomain_getFriendlyName},
- {"getRootDomain", ves_icall_System_AppDomain_getRootDomain},
- {"getSetup", ves_icall_System_AppDomain_getSetup}
-};
-
-static const IcallEntry argiterator_icalls [] = {
- {"IntGetNextArg()", mono_ArgIterator_IntGetNextArg},
- {"IntGetNextArg(intptr)", mono_ArgIterator_IntGetNextArgT},
- {"IntGetNextArgType", mono_ArgIterator_IntGetNextArgType},
- {"Setup", mono_ArgIterator_Setup}
-};
-
-static const IcallEntry array_icalls [] = {
- {"ClearInternal", ves_icall_System_Array_ClearInternal},
- {"Clone", mono_array_clone},
- {"CreateInstanceImpl", ves_icall_System_Array_CreateInstanceImpl},
- {"FastCopy", ves_icall_System_Array_FastCopy},
- {"GetLength", ves_icall_System_Array_GetLength},
- {"GetLowerBound", ves_icall_System_Array_GetLowerBound},
- {"GetRank", ves_icall_System_Array_GetRank},
- {"GetValue", ves_icall_System_Array_GetValue},
- {"GetValueImpl", ves_icall_System_Array_GetValueImpl},
- {"SetValue", ves_icall_System_Array_SetValue},
- {"SetValueImpl", ves_icall_System_Array_SetValueImpl}
-};
-
-static const IcallEntry buffer_icalls [] = {
- {"BlockCopyInternal", ves_icall_System_Buffer_BlockCopyInternal},
- {"ByteLengthInternal", ves_icall_System_Buffer_ByteLengthInternal},
- {"GetByteInternal", ves_icall_System_Buffer_GetByteInternal},
- {"SetByteInternal", ves_icall_System_Buffer_SetByteInternal}
-};
-
-static const IcallEntry char_icalls [] = {
- {"GetDataTablePointers", ves_icall_System_Char_GetDataTablePointers}
-};
-
-static const IcallEntry defaultconf_icalls [] = {
- {"get_machine_config_path", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path}
-};
-
-static const IcallEntry consoledriver_icalls [] = {
- {"GetTtySize", ves_icall_System_ConsoleDriver_GetTtySize },
- {"InternalKeyAvailable", ves_icall_System_ConsoleDriver_InternalKeyAvailable },
- {"Isatty", ves_icall_System_ConsoleDriver_Isatty },
- {"SetBreak", ves_icall_System_ConsoleDriver_SetBreak },
- {"SetEcho", ves_icall_System_ConsoleDriver_SetEcho },
- {"TtySetup", ves_icall_System_ConsoleDriver_TtySetup }
-};
-
-static const IcallEntry convert_icalls [] = {
- {"InternalFromBase64CharArray", InternalFromBase64CharArray },
- {"InternalFromBase64String", InternalFromBase64String }
-};
-
-static const IcallEntry timezone_icalls [] = {
- {"GetTimeZoneData", ves_icall_System_CurrentSystemTimeZone_GetTimeZoneData}
-};
-
-static const IcallEntry datetime_icalls [] = {
- {"GetNow", ves_icall_System_DateTime_GetNow}
-};
-
-#ifndef DISABLE_DECIMAL
-static const IcallEntry decimal_icalls [] = {
- {"decimal2Int64", mono_decimal2Int64},
- {"decimal2UInt64", mono_decimal2UInt64},
- {"decimal2double", mono_decimal2double},
- {"decimal2string", mono_decimal2string},
- {"decimalCompare", mono_decimalCompare},
- {"decimalDiv", mono_decimalDiv},
- {"decimalFloorAndTrunc", mono_decimalFloorAndTrunc},
- {"decimalIncr", mono_decimalIncr},
- {"decimalIntDiv", mono_decimalIntDiv},
- {"decimalMult", mono_decimalMult},
- {"decimalRound", mono_decimalRound},
- {"decimalSetExponent", mono_decimalSetExponent},
- {"double2decimal", mono_double2decimal}, /* FIXME: wrong signature. */
- {"string2decimal", mono_string2decimal}
-};
-#endif
-
-static const IcallEntry delegate_icalls [] = {
- {"CreateDelegate_internal", ves_icall_System_Delegate_CreateDelegate_internal},
- {"FreeTrampoline", ves_icall_System_Delegate_FreeTrampoline}
-};
-
-static const IcallEntry tracelist_icalls [] = {
- {"WriteWindowsDebugString", ves_icall_System_Diagnostics_DefaultTraceListener_WriteWindowsDebugString}
-};
-
-static const IcallEntry fileversion_icalls [] = {
- {"GetVersionInfo_internal(string)", ves_icall_System_Diagnostics_FileVersionInfo_GetVersionInfo_internal}
-};
-
-static const IcallEntry process_icalls [] = {
- {"CreateProcess_internal(System.Diagnostics.ProcessStartInfo,intptr,intptr,intptr,System.Diagnostics.Process/ProcInfo&)", ves_icall_System_Diagnostics_Process_CreateProcess_internal},
- {"ExitCode_internal(intptr)", ves_icall_System_Diagnostics_Process_ExitCode_internal},
- {"ExitTime_internal(intptr)", ves_icall_System_Diagnostics_Process_ExitTime_internal},
- {"GetModules_internal()", ves_icall_System_Diagnostics_Process_GetModules_internal},
- {"GetPid_internal()", ves_icall_System_Diagnostics_Process_GetPid_internal},
- {"GetProcess_internal(int)", ves_icall_System_Diagnostics_Process_GetProcess_internal},
- {"GetProcesses_internal()", ves_icall_System_Diagnostics_Process_GetProcesses_internal},
- {"GetWorkingSet_internal(intptr,int&,int&)", ves_icall_System_Diagnostics_Process_GetWorkingSet_internal},
- {"Kill_internal", ves_icall_System_Diagnostics_Process_Kill_internal},
- {"ProcessName_internal(intptr)", ves_icall_System_Diagnostics_Process_ProcessName_internal},
- {"Process_free_internal(intptr)", ves_icall_System_Diagnostics_Process_Process_free_internal},
- {"SetWorkingSet_internal(intptr,int,int,bool)", ves_icall_System_Diagnostics_Process_SetWorkingSet_internal},
- {"ShellExecuteEx_internal(System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process/ProcInfo&)", ves_icall_System_Diagnostics_Process_ShellExecuteEx_internal},
- {"StartTime_internal(intptr)", ves_icall_System_Diagnostics_Process_StartTime_internal},
- {"WaitForExit_internal(intptr,int)", ves_icall_System_Diagnostics_Process_WaitForExit_internal}
-};
-
-static const IcallEntry double_icalls [] = {
- {"AssertEndianity", ves_icall_System_Double_AssertEndianity},
- {"ParseImpl", mono_double_ParseImpl}
-};
-
-static const IcallEntry enum_icalls [] = {
- {"ToObject", ves_icall_System_Enum_ToObject},
- {"get_value", ves_icall_System_Enum_get_value}
-};
-
-static const IcallEntry environment_icalls [] = {
- {"Exit", ves_icall_System_Environment_Exit},
- {"GetCommandLineArgs", mono_runtime_get_main_args},
- {"GetEnvironmentVariableNames", ves_icall_System_Environment_GetEnvironmentVariableNames},
- {"GetLogicalDrivesInternal", ves_icall_System_Environment_GetLogicalDrives },
- {"GetMachineConfigPath", ves_icall_System_Configuration_DefaultConfig_get_machine_config_path},
- {"GetOSVersionString", ves_icall_System_Environment_GetOSVersionString},
- {"GetWindowsFolderPath", ves_icall_System_Environment_GetWindowsFolderPath},
- {"InternalSetEnvironmentVariable", ves_icall_System_Environment_InternalSetEnvironmentVariable},
- {"get_ExitCode", mono_environment_exitcode_get},
- {"get_HasShutdownStarted", ves_icall_System_Environment_get_HasShutdownStarted},
- {"get_MachineName", ves_icall_System_Environment_get_MachineName},
- {"get_NewLine", ves_icall_System_Environment_get_NewLine},
- {"get_Platform", ves_icall_System_Environment_get_Platform},
- {"get_TickCount", ves_icall_System_Environment_get_TickCount},
- {"get_UserName", ves_icall_System_Environment_get_UserName},
- {"internalGetEnvironmentVariable", ves_icall_System_Environment_GetEnvironmentVariable},
- {"internalGetGacPath", ves_icall_System_Environment_GetGacPath},
- {"internalGetHome", ves_icall_System_Environment_InternalGetHome},
- {"set_ExitCode", mono_environment_exitcode_set}
-};
-
-static const IcallEntry cultureinfo_icalls [] = {
- {"construct_compareinfo(object,string)", ves_icall_System_Globalization_CompareInfo_construct_compareinfo},
- {"construct_datetime_format", ves_icall_System_Globalization_CultureInfo_construct_datetime_format},
- {"construct_internal_locale(string)", ves_icall_System_Globalization_CultureInfo_construct_internal_locale},
- {"construct_internal_locale_from_current_locale", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_current_locale},
- {"construct_internal_locale_from_lcid", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_lcid},
- {"construct_internal_locale_from_name", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_name},
- {"construct_internal_locale_from_specific_name", ves_icall_System_Globalization_CultureInfo_construct_internal_locale_from_specific_name},
- {"construct_number_format", ves_icall_System_Globalization_CultureInfo_construct_number_format},
- {"internal_get_cultures", ves_icall_System_Globalization_CultureInfo_internal_get_cultures},
- {"internal_is_lcid_neutral", ves_icall_System_Globalization_CultureInfo_internal_is_lcid_neutral}
-};
-
-static const IcallEntry regioninfo_icalls [] = {
- {"construct_internal_region_from_lcid", ves_icall_System_Globalization_RegionInfo_construct_internal_region_from_lcid},
- {"construct_internal_region_from_name", ves_icall_System_Globalization_RegionInfo_construct_internal_region_from_name}
-};
-
-static const IcallEntry compareinfo_icalls [] = {
- {"assign_sortkey(object,string,System.Globalization.CompareOptions)", ves_icall_System_Globalization_CompareInfo_assign_sortkey},
- {"construct_compareinfo(string)", ves_icall_System_Globalization_CompareInfo_construct_compareinfo},
- {"free_internal_collator()", ves_icall_System_Globalization_CompareInfo_free_internal_collator},
- {"internal_compare(string,int,int,string,int,int,System.Globalization.CompareOptions)", ves_icall_System_Globalization_CompareInfo_internal_compare},
- {"internal_index(string,int,int,char,System.Globalization.CompareOptions,bool)", ves_icall_System_Globalization_CompareInfo_internal_index_char},
- {"internal_index(string,int,int,string,System.Globalization.CompareOptions,bool)", ves_icall_System_Globalization_CompareInfo_internal_index}
-};
-
-static const IcallEntry gc_icalls [] = {
- {"GetTotalMemory", ves_icall_System_GC_GetTotalMemory},
- {"InternalCollect", ves_icall_System_GC_InternalCollect},
- {"KeepAlive", ves_icall_System_GC_KeepAlive},
- {"ReRegisterForFinalize", ves_icall_System_GC_ReRegisterForFinalize},
- {"SuppressFinalize", ves_icall_System_GC_SuppressFinalize},
- {"WaitForPendingFinalizers", ves_icall_System_GC_WaitForPendingFinalizers}
-};
-
-static const IcallEntry famwatcher_icalls [] = {
- {"InternalFAMNextEvent", ves_icall_System_IO_FAMW_InternalFAMNextEvent}
-};
-
-static const IcallEntry filewatcher_icalls [] = {
- {"InternalCloseDirectory", ves_icall_System_IO_FSW_CloseDirectory},
- {"InternalOpenDirectory", ves_icall_System_IO_FSW_OpenDirectory},
- {"InternalReadDirectoryChanges", ves_icall_System_IO_FSW_ReadDirectoryChanges},
- {"InternalSupportsFSW", ves_icall_System_IO_FSW_SupportsFSW}
-};
-
-static const IcallEntry path_icalls [] = {
- {"get_temp_path", ves_icall_System_IO_get_temp_path}
-};
-
-static const IcallEntry monoio_icalls [] = {
- {"Close(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Close},
- {"CopyFile(string,string,bool,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_CopyFile},
- {"CreateDirectory(string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_CreateDirectory},
- {"CreatePipe(intptr&,intptr&)", ves_icall_System_IO_MonoIO_CreatePipe},
- {"DeleteFile(string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_DeleteFile},
- {"Flush(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Flush},
- {"GetCurrentDirectory(System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetCurrentDirectory},
- {"GetFileAttributes(string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileAttributes},
- {"GetFileStat(string,System.IO.MonoIOStat&,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileStat},
- {"GetFileSystemEntries", ves_icall_System_IO_MonoIO_GetFileSystemEntries},
- {"GetFileType(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetFileType},
- {"GetLength(intptr,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_GetLength},
- {"GetTempPath(string&)", ves_icall_System_IO_MonoIO_GetTempPath},
- {"Lock(intptr,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Lock},
- {"MoveFile(string,string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_MoveFile},
- {"Open(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.IO.FileOptions,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Open},
- {"Read(intptr,byte[],int,int,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Read},
- {"RemoveDirectory(string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_RemoveDirectory},
- {"Seek(intptr,long,System.IO.SeekOrigin,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Seek},
- {"SetCurrentDirectory(string,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetCurrentDirectory},
- {"SetFileAttributes(string,System.IO.FileAttributes,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetFileAttributes},
- {"SetFileTime(intptr,long,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetFileTime},
- {"SetLength(intptr,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_SetLength},
- {"Unlock(intptr,long,long,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Unlock},
- {"Write(intptr,byte[],int,int,System.IO.MonoIOError&)", ves_icall_System_IO_MonoIO_Write},
- {"get_AltDirectorySeparatorChar", ves_icall_System_IO_MonoIO_get_AltDirectorySeparatorChar},
- {"get_ConsoleError", ves_icall_System_IO_MonoIO_get_ConsoleError},
- {"get_ConsoleInput", ves_icall_System_IO_MonoIO_get_ConsoleInput},
- {"get_ConsoleOutput", ves_icall_System_IO_MonoIO_get_ConsoleOutput},
- {"get_DirectorySeparatorChar", ves_icall_System_IO_MonoIO_get_DirectorySeparatorChar},
- {"get_InvalidPathChars", ves_icall_System_IO_MonoIO_get_InvalidPathChars},
- {"get_PathSeparator", ves_icall_System_IO_MonoIO_get_PathSeparator},
- {"get_VolumeSeparatorChar", ves_icall_System_IO_MonoIO_get_VolumeSeparatorChar}
-};
-
-static const IcallEntry math_icalls [] = {
- {"Acos", ves_icall_System_Math_Acos},
- {"Asin", ves_icall_System_Math_Asin},
- {"Atan", ves_icall_System_Math_Atan},
- {"Atan2", ves_icall_System_Math_Atan2},
- {"Cos", ves_icall_System_Math_Cos},
- {"Cosh", ves_icall_System_Math_Cosh},
- {"Exp", ves_icall_System_Math_Exp},
- {"Floor", ves_icall_System_Math_Floor},
- {"Log", ves_icall_System_Math_Log},
- {"Log10", ves_icall_System_Math_Log10},
- {"Pow", ves_icall_System_Math_Pow},
- {"Round", ves_icall_System_Math_Round},
- {"Round2", ves_icall_System_Math_Round2},
- {"Sin", ves_icall_System_Math_Sin},
- {"Sinh", ves_icall_System_Math_Sinh},
- {"Sqrt", ves_icall_System_Math_Sqrt},
- {"Tan", ves_icall_System_Math_Tan},
- {"Tanh", ves_icall_System_Math_Tanh}
-};
-
-static const IcallEntry customattrs_icalls [] = {
- {"GetCustomAttributesDataInternal", mono_reflection_get_custom_attrs_data},
- {"GetCustomAttributesInternal", custom_attrs_get_by_type},
- {"IsDefinedInternal", custom_attrs_defined_internal}
-};
-
-static const IcallEntry enuminfo_icalls [] = {
- {"get_enum_info", ves_icall_get_enum_info}
-};
-
-static const IcallEntry fieldinfo_icalls [] = {
- {"GetUnmanagedMarshal", ves_icall_System_Reflection_FieldInfo_GetUnmanagedMarshal},
- {"internal_from_handle", ves_icall_System_Reflection_FieldInfo_internal_from_handle}
-};
-
-static const IcallEntry memberinfo_icalls [] = {
- {"get_MetadataToken", mono_reflection_get_token}
-};
-
-static const IcallEntry monotype_icalls [] = {
- {"GetArrayRank", ves_icall_MonoType_GetArrayRank},
- {"GetConstructors", ves_icall_Type_GetConstructors_internal},
- {"GetConstructors_internal", ves_icall_Type_GetConstructors_internal},
- {"GetCorrespondingInflatedConstructor", ves_icall_MonoType_GetCorrespondingInflatedMethod},
- {"GetCorrespondingInflatedMethod", ves_icall_MonoType_GetCorrespondingInflatedMethod},
- {"GetElementType", ves_icall_MonoType_GetElementType},
- {"GetEvents_internal", ves_icall_Type_GetEvents_internal},
- {"GetField", ves_icall_Type_GetField},
- {"GetFields_internal", ves_icall_Type_GetFields_internal},
- {"GetGenericArguments", ves_icall_MonoType_GetGenericArguments},
- {"GetInterfaces", ves_icall_Type_GetInterfaces},
- {"GetMethodsByName", ves_icall_Type_GetMethodsByName},
- {"GetNestedType", ves_icall_Type_GetNestedType},
- {"GetNestedTypes", ves_icall_Type_GetNestedTypes},
- {"GetPropertiesByName", ves_icall_Type_GetPropertiesByName},
- {"InternalGetEvent", ves_icall_MonoType_GetEvent},
- {"IsByRefImpl", ves_icall_type_isbyref},
- {"IsPointerImpl", ves_icall_type_ispointer},
- {"IsPrimitiveImpl", ves_icall_type_isprimitive},
- {"getFullName", ves_icall_System_MonoType_getFullName},
- {"get_Assembly", ves_icall_MonoType_get_Assembly},
- {"get_BaseType", ves_icall_get_type_parent},
- {"get_DeclaringMethod", ves_icall_MonoType_get_DeclaringMethod},
- {"get_DeclaringType", ves_icall_MonoType_get_DeclaringType},
- {"get_IsGenericParameter", ves_icall_MonoType_get_IsGenericParameter},
- {"get_Module", ves_icall_MonoType_get_Module},
- {"get_Name", ves_icall_MonoType_get_Name},
- {"get_Namespace", ves_icall_MonoType_get_Namespace},
- {"get_UnderlyingSystemType", ves_icall_MonoType_get_UnderlyingSystemType},
- {"get_attributes", ves_icall_get_attributes},
- {"type_from_obj", mono_type_type_from_obj}
-};
-
-static const IcallEntry assembly_icalls [] = {
- {"FillName", ves_icall_System_Reflection_Assembly_FillName},
- {"GetCallingAssembly", ves_icall_System_Reflection_Assembly_GetCallingAssembly},
- {"GetEntryAssembly", ves_icall_System_Reflection_Assembly_GetEntryAssembly},
- {"GetExecutingAssembly", ves_icall_System_Reflection_Assembly_GetExecutingAssembly},
- {"GetFilesInternal", ves_icall_System_Reflection_Assembly_GetFilesInternal},
- {"GetManifestResourceInfoInternal", ves_icall_System_Reflection_Assembly_GetManifestResourceInfoInternal},
- {"GetManifestResourceInternal", ves_icall_System_Reflection_Assembly_GetManifestResourceInternal},
- {"GetManifestResourceNames", ves_icall_System_Reflection_Assembly_GetManifestResourceNames},
- {"GetModulesInternal", ves_icall_System_Reflection_Assembly_GetModulesInternal},
- {"GetNamespaces", ves_icall_System_Reflection_Assembly_GetNamespaces},
- {"GetReferencedAssemblies", ves_icall_System_Reflection_Assembly_GetReferencedAssemblies},
- {"GetTypes", ves_icall_System_Reflection_Assembly_GetTypes},
- {"InternalGetAssemblyName", ves_icall_System_Reflection_Assembly_InternalGetAssemblyName},
- {"InternalGetType", ves_icall_System_Reflection_Assembly_InternalGetType},
- {"InternalImageRuntimeVersion", ves_icall_System_Reflection_Assembly_InternalImageRuntimeVersion},
- {"LoadFrom", ves_icall_System_Reflection_Assembly_LoadFrom},
- {"LoadPermissions", ves_icall_System_Reflection_Assembly_LoadPermissions},
- /*
- * Private icalls for the Mono Debugger
- */
- {"MonoDebugger_GetMethodToken", ves_icall_MonoDebugger_GetMethodToken},
-
- /* normal icalls again */
- {"get_EntryPoint", ves_icall_System_Reflection_Assembly_get_EntryPoint},
- {"get_ManifestModule", ves_icall_System_Reflection_Assembly_get_ManifestModule},
- {"get_ReflectionOnly", ves_icall_System_Reflection_Assembly_get_ReflectionOnly},
- {"get_code_base", ves_icall_System_Reflection_Assembly_get_code_base},
- {"get_global_assembly_cache", ves_icall_System_Reflection_Assembly_get_global_assembly_cache},
- {"get_location", ves_icall_System_Reflection_Assembly_get_location},
- {"load_with_partial_name", ves_icall_System_Reflection_Assembly_load_with_partial_name}
-};
-
-static const IcallEntry assembly_name_icalls [] = {
- {"ParseName", ves_icall_System_Reflection_AssemblyName_ParseName}
-};
-
-static const IcallEntry methodbase_icalls [] = {
- {"GetCurrentMethod", ves_icall_GetCurrentMethod},
- {"GetMethodBodyInternal", ves_icall_System_Reflection_MethodBase_GetMethodBodyInternal},
- {"GetMethodFromHandleInternal", ves_icall_System_Reflection_MethodBase_GetMethodFromHandleInternal}
-};
-
-static const IcallEntry module_icalls [] = {
- {"Close", ves_icall_System_Reflection_Module_Close},
- {"GetGlobalType", ves_icall_System_Reflection_Module_GetGlobalType},
- {"GetGuidInternal", ves_icall_System_Reflection_Module_GetGuidInternal},
- {"GetPEKind", ves_icall_System_Reflection_Module_GetPEKind},
- {"InternalGetTypes", ves_icall_System_Reflection_Module_InternalGetTypes},
- {"ResolveFieldToken", ves_icall_System_Reflection_Module_ResolveFieldToken},
- {"ResolveMemberToken", ves_icall_System_Reflection_Module_ResolveMemberToken},
- {"ResolveMethodToken", ves_icall_System_Reflection_Module_ResolveMethodToken},
- {"ResolveStringToken", ves_icall_System_Reflection_Module_ResolveStringToken},
- {"ResolveTypeToken", ves_icall_System_Reflection_Module_ResolveTypeToken},
- {"get_MDStreamVersion", ves_icall_System_Reflection_Module_get_MDStreamVersion},
- {"get_MetadataToken", mono_reflection_get_token}
-};
-
-static const IcallEntry monocmethod_icalls [] = {
- {"GetGenericMethodDefinition_impl", ves_icall_MonoMethod_GetGenericMethodDefinition},
- {"InternalInvoke", ves_icall_InternalInvoke},
-};
-
-static const IcallEntry monoeventinfo_icalls [] = {
- {"get_event_info", ves_icall_get_event_info}
-};
-
-static const IcallEntry monofield_icalls [] = {
- {"GetFieldOffset", ves_icall_MonoField_GetFieldOffset},
- {"GetParentType", ves_icall_MonoField_GetParentType},
- {"GetValueInternal", ves_icall_MonoField_GetValueInternal},
- {"SetValueInternal", ves_icall_FieldInfo_SetValueInternal}
-};
-
-static const IcallEntry monogenericclass_icalls [] = {
- {"GetConstructors_internal", ves_icall_MonoGenericClass_GetConstructors},
- {"GetCorrespondingInflatedConstructor", ves_icall_MonoGenericClass_GetCorrespondingInflatedConstructor},
- {"GetCorrespondingInflatedField", ves_icall_MonoGenericClass_GetCorrespondingInflatedField},
- {"GetCorrespondingInflatedMethod", ves_icall_MonoGenericClass_GetCorrespondingInflatedMethod},
- {"GetEvents_internal", ves_icall_MonoGenericClass_GetEvents},
- {"GetFields_internal", ves_icall_MonoGenericClass_GetFields},
- {"GetInterfaces_internal", ves_icall_MonoGenericClass_GetInterfaces},
- {"GetMethods_internal", ves_icall_MonoGenericClass_GetMethods},
- {"GetParentType", ves_icall_MonoGenericClass_GetParentType},
- {"GetProperties_internal", ves_icall_MonoGenericClass_GetProperties},
- {"initialize", mono_reflection_generic_class_initialize}
-};
-
-static const IcallEntry monogenericmethod_icalls [] = {
- {"get_ReflectedType", ves_icall_MonoGenericMethod_get_ReflectedType}
-};
-
-static const IcallEntry generictypeparambuilder_icalls [] = {
- {"initialize", mono_reflection_initialize_generic_parameter}
-};
-
-static const IcallEntry monomethod_icalls [] = {
- {"GetDllImportAttribute", ves_icall_MonoMethod_GetDllImportAttribute},
- {"GetGenericArguments", ves_icall_MonoMethod_GetGenericArguments},
- {"GetGenericMethodDefinition_impl", ves_icall_MonoMethod_GetGenericMethodDefinition},
- {"InternalInvoke", ves_icall_InternalInvoke},
- {"MakeGenericMethod_impl", mono_reflection_bind_generic_method_parameters},
- {"get_IsGenericMethod", ves_icall_MonoMethod_get_IsGenericMethod},
- {"get_IsGenericMethodDefinition", ves_icall_MonoMethod_get_IsGenericMethodDefinition},
- {"get_base_definition", ves_icall_MonoMethod_get_base_definition}
-};
-
-static const IcallEntry monomethodinfo_icalls [] = {
- {"get_method_info", ves_icall_get_method_info},
- {"get_parameter_info", ves_icall_get_parameter_info},
- {"get_retval_marshal", ves_icall_System_MonoMethodInfo_get_retval_marshal}
-};
-
-static const IcallEntry monopropertyinfo_icalls [] = {
- {"get_property_info", ves_icall_get_property_info}
-};
-
-static const IcallEntry parameterinfo_icalls [] = {
- {"get_MetadataToken", mono_reflection_get_token}
-};
-
-static const IcallEntry dns_icalls [] = {
- {"GetHostByAddr_internal(string,string&,string[]&,string[]&)", ves_icall_System_Net_Dns_GetHostByAddr_internal},
- {"GetHostByName_internal(string,string&,string[]&,string[]&)", ves_icall_System_Net_Dns_GetHostByName_internal},
- {"GetHostName_internal(string&)", ves_icall_System_Net_Dns_GetHostName_internal}
-};
-
-static const IcallEntry socket_icalls [] = {
- {"Accept_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_Accept_internal},
- {"Available_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_Available_internal},
- {"Bind_internal(intptr,System.Net.SocketAddress,int&)", ves_icall_System_Net_Sockets_Socket_Bind_internal},
- {"Blocking_internal(intptr,bool,int&)", ves_icall_System_Net_Sockets_Socket_Blocking_internal},
- {"Close_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_Close_internal},
- {"Connect_internal(intptr,System.Net.SocketAddress,int&)", ves_icall_System_Net_Sockets_Socket_Connect_internal},
- {"GetSocketOption_arr_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,byte[]&,int&)", ves_icall_System_Net_Sockets_Socket_GetSocketOption_arr_internal},
- {"GetSocketOption_obj_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,object&,int&)", ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal},
- {"Listen_internal(intptr,int,int&)", ves_icall_System_Net_Sockets_Socket_Listen_internal},
- {"LocalEndPoint_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_LocalEndPoint_internal},
- {"Poll_internal", ves_icall_System_Net_Sockets_Socket_Poll_internal},
- {"Receive_internal(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,int&)", ves_icall_System_Net_Sockets_Socket_Receive_internal},
- {"RecvFrom_internal(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress&,int&)", ves_icall_System_Net_Sockets_Socket_RecvFrom_internal},
- {"RemoteEndPoint_internal(intptr,int&)", ves_icall_System_Net_Sockets_Socket_RemoteEndPoint_internal},
- {"Select_internal(System.Net.Sockets.Socket[]&,int,int&)", ves_icall_System_Net_Sockets_Socket_Select_internal},
- {"SendTo_internal(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,System.Net.SocketAddress,int&)", ves_icall_System_Net_Sockets_Socket_SendTo_internal},
- {"Send_internal(intptr,byte[],int,int,System.Net.Sockets.SocketFlags,int&)", ves_icall_System_Net_Sockets_Socket_Send_internal},
- {"SetSocketOption_internal(intptr,System.Net.Sockets.SocketOptionLevel,System.Net.Sockets.SocketOptionName,object,byte[],int,int&)", ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal},
- {"Shutdown_internal(intptr,System.Net.Sockets.SocketShutdown,int&)", ves_icall_System_Net_Sockets_Socket_Shutdown_internal},
- {"Socket_internal(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType,int&)", ves_icall_System_Net_Sockets_Socket_Socket_internal},
- {"WSAIoctl(intptr,int,byte[],byte[],int&)", ves_icall_System_Net_Sockets_Socket_WSAIoctl}
-};
-
-static const IcallEntry socketex_icalls [] = {
- {"WSAGetLastError_internal", ves_icall_System_Net_Sockets_SocketException_WSAGetLastError_internal}
-};
-
-static const IcallEntry object_icalls [] = {
- {"GetType", ves_icall_System_Object_GetType},
- {"InternalGetHashCode", mono_object_hash},
- {"MemberwiseClone", ves_icall_System_Object_MemberwiseClone},
- {"obj_address", ves_icall_System_Object_obj_address}
-};
-
-static const IcallEntry assemblybuilder_icalls[] = {
- {"InternalAddModule", mono_image_load_module},
- {"basic_init", mono_image_basic_init}
-};
-
-static const IcallEntry customattrbuilder_icalls [] = {
- {"GetBlob", mono_reflection_get_custom_attrs_blob}
-};
-
-static const IcallEntry dynamicmethod_icalls [] = {
- {"create_dynamic_method", mono_reflection_create_dynamic_method}
-};
-
-static const IcallEntry methodbuilder_icalls [] = {
- {"MakeGenericMethod", mono_reflection_bind_generic_method_parameters}
-};
-
-static const IcallEntry modulebuilder_icalls [] = {
- {"WriteToFile", ves_icall_ModuleBuilder_WriteToFile},
- {"basic_init", mono_image_module_basic_init},
- {"build_metadata", ves_icall_ModuleBuilder_build_metadata},
- {"create_modified_type", ves_icall_ModuleBuilder_create_modified_type},
- {"getMethodToken", ves_icall_ModuleBuilder_getMethodToken},
- {"getToken", ves_icall_ModuleBuilder_getToken},
- {"getUSIndex", mono_image_insert_string}
-};
-
-static const IcallEntry signaturehelper_icalls [] = {
- {"get_signature_field", mono_reflection_sighelper_get_signature_field},
- {"get_signature_local", mono_reflection_sighelper_get_signature_local}
-};
-
-static const IcallEntry typebuilder_icalls [] = {
- {"create_generic_class", mono_reflection_create_generic_class},
- {"create_internal_class", mono_reflection_create_internal_class},
- {"create_runtime_class", mono_reflection_create_runtime_class},
- {"get_IsGenericParameter", ves_icall_TypeBuilder_get_IsGenericParameter},
- {"get_event_info", mono_reflection_event_builder_get_event_info},
- {"setup_generic_class", mono_reflection_setup_generic_class},
- {"setup_internal_class", mono_reflection_setup_internal_class}
-};
-
-static const IcallEntry enumbuilder_icalls [] = {
- {"setup_enum_type", ves_icall_EnumBuilder_setup_enum_type}
-};
-
-static const IcallEntry runtimehelpers_icalls [] = {
- {"GetObjectValue", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetObjectValue},
- /* REMOVEME: no longer needed, just so we dont break things when not needed */
- {"GetOffsetToStringData", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetOffsetToStringData},
- {"InitializeArray", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_InitializeArray},
- {"RunClassConstructor", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor},
- {"get_OffsetToStringData", ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_GetOffsetToStringData}
-};
-
-static const IcallEntry gchandle_icalls [] = {
- {"CheckCurrentDomain", GCHandle_CheckCurrentDomain},
- {"FreeHandle", ves_icall_System_GCHandle_FreeHandle},
- {"GetAddrOfPinnedObject", ves_icall_System_GCHandle_GetAddrOfPinnedObject},
- {"GetTarget", ves_icall_System_GCHandle_GetTarget},
- {"GetTargetHandle", ves_icall_System_GCHandle_GetTargetHandle}
-};
-
-static const IcallEntry marshal_icalls [] = {
- {"AllocCoTaskMem", ves_icall_System_Runtime_InteropServices_Marshal_AllocCoTaskMem},
- {"AllocHGlobal", ves_icall_System_Runtime_InteropServices_Marshal_AllocHGlobal},
- {"DestroyStructure", ves_icall_System_Runtime_InteropServices_Marshal_DestroyStructure},
- {"FreeBSTR", ves_icall_System_Runtime_InteropServices_Marshal_FreeBSTR},
- {"FreeCoTaskMem", ves_icall_System_Runtime_InteropServices_Marshal_FreeCoTaskMem},
- {"FreeHGlobal", ves_icall_System_Runtime_InteropServices_Marshal_FreeHGlobal},
- {"GetComSlotForMethodInfoInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetComSlotForMethodInfoInternal},
- {"GetDelegateForFunctionPointerInternal", ves_icall_System_Runtime_InteropServices_Marshal_GetDelegateForFunctionPointerInternal},
- {"GetFunctionPointerForDelegateInternal", mono_delegate_to_ftnptr},
- {"GetLastWin32Error", ves_icall_System_Runtime_InteropServices_Marshal_GetLastWin32Error},
- {"OffsetOf", ves_icall_System_Runtime_InteropServices_Marshal_OffsetOf},
- {"Prelink", ves_icall_System_Runtime_InteropServices_Marshal_Prelink},
- {"PrelinkAll", ves_icall_System_Runtime_InteropServices_Marshal_PrelinkAll},
- {"PtrToStringAnsi(intptr)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi},
- {"PtrToStringAnsi(intptr,int)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len},
- {"PtrToStringAuto(intptr)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi},
- {"PtrToStringAuto(intptr,int)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len},
- {"PtrToStringBSTR", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringBSTR},
- {"PtrToStringUni(intptr)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni},
- {"PtrToStringUni(intptr,int)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni_len},
- {"PtrToStructure(intptr,System.Type)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure_type},
- {"PtrToStructure(intptr,object)", ves_icall_System_Runtime_InteropServices_Marshal_PtrToStructure},
- {"ReAllocHGlobal", mono_marshal_realloc},
- {"ReadByte", ves_icall_System_Runtime_InteropServices_Marshal_ReadByte},
- {"ReadInt16", ves_icall_System_Runtime_InteropServices_Marshal_ReadInt16},
- {"ReadInt32", ves_icall_System_Runtime_InteropServices_Marshal_ReadInt32},
- {"ReadInt64", ves_icall_System_Runtime_InteropServices_Marshal_ReadInt64},
- {"ReadIntPtr", ves_icall_System_Runtime_InteropServices_Marshal_ReadIntPtr},
- {"SizeOf", ves_icall_System_Runtime_InteropServices_Marshal_SizeOf},
- {"StringToBSTR", ves_icall_System_Runtime_InteropServices_Marshal_StringToBSTR},
- {"StringToHGlobalAnsi", ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi},
- {"StringToHGlobalAuto", ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalAnsi},
- {"StringToHGlobalUni", ves_icall_System_Runtime_InteropServices_Marshal_StringToHGlobalUni},
- {"StructureToPtr", ves_icall_System_Runtime_InteropServices_Marshal_StructureToPtr},
- {"UnsafeAddrOfPinnedArrayElement", ves_icall_System_Runtime_InteropServices_Marshal_UnsafeAddrOfPinnedArrayElement},
- {"WriteByte", ves_icall_System_Runtime_InteropServices_Marshal_WriteByte},
- {"WriteInt16", ves_icall_System_Runtime_InteropServices_Marshal_WriteInt16},
- {"WriteInt32", ves_icall_System_Runtime_InteropServices_Marshal_WriteInt32},
- {"WriteInt64", ves_icall_System_Runtime_InteropServices_Marshal_WriteInt64},
- {"WriteIntPtr", ves_icall_System_Runtime_InteropServices_Marshal_WriteIntPtr},
- {"copy_from_unmanaged", ves_icall_System_Runtime_InteropServices_Marshal_copy_from_unmanaged},
- {"copy_to_unmanaged", ves_icall_System_Runtime_InteropServices_Marshal_copy_to_unmanaged}
-};
-
-static const IcallEntry activationservices_icalls [] = {
- {"AllocateUninitializedClassInstance", ves_icall_System_Runtime_Activation_ActivationServices_AllocateUninitializedClassInstance},
- {"EnableProxyActivation", ves_icall_System_Runtime_Activation_ActivationServices_EnableProxyActivation}
-};
-
-static const IcallEntry monomethodmessage_icalls [] = {
- {"InitMessage", ves_icall_MonoMethodMessage_InitMessage}
-};
-
-static const IcallEntry realproxy_icalls [] = {
- {"InternalGetProxyType", ves_icall_Remoting_RealProxy_InternalGetProxyType},
- {"InternalGetTransparentProxy", ves_icall_Remoting_RealProxy_GetTransparentProxy}
-};
-
-static const IcallEntry remotingservices_icalls [] = {
- {"InternalExecute", ves_icall_InternalExecute},
- {"IsTransparentProxy", ves_icall_IsTransparentProxy}
-};