Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
dotNET Platform
runtime
提交
adcf914a
R
runtime
项目概览
dotNET Platform
/
runtime
12 个月 前同步成功
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
runtime
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
adcf914a
编写于
3月 09, 2023
作者:
A
Aleksey Kliger (λgeek)
提交者:
GitHub
3月 09, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[metadata] make mono_method_get_param_names external only (#83183)
上级
201aae91
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
21 addition
and
7 deletion
+21
-7
src/mono/mono/component/debugger-agent.c
src/mono/mono/component/debugger-agent.c
+1
-1
src/mono/mono/metadata/class-internals.h
src/mono/mono/metadata/class-internals.h
+3
-0
src/mono/mono/metadata/loader.c
src/mono/mono/metadata/loader.c
+11
-0
src/mono/mono/metadata/reflection.c
src/mono/mono/metadata/reflection.c
+1
-1
src/mono/mono/mini/debug-mini.c
src/mono/mono/mini/debug-mini.c
+1
-1
src/mono/mono/mini/dwarfwriter.c
src/mono/mono/mini/dwarfwriter.c
+1
-1
src/mono/mono/mini/mini-llvm.c
src/mono/mono/mini/mini-llvm.c
+2
-2
src/native/public/mono/metadata/details/loader-functions.h
src/native/public/mono/metadata/details/loader-functions.h
+1
-1
未找到文件。
src/mono/mono/component/debugger-agent.c
浏览文件 @
adcf914a
...
...
@@ -8850,7 +8850,7 @@ method_commands_internal (int command, MonoMethod *method, MonoDomain *domain, g
/* Emit parameter names */
names
=
g_new
(
char
*
,
sig
->
param_count
);
mono_method_get_param_names
(
method
,
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
method
,
(
const
char
**
)
names
);
for
(
guint16
i
=
0
;
i
<
sig
->
param_count
;
++
i
)
buffer_add_string
(
buf
,
names
[
i
]);
g_free
(
names
);
...
...
src/mono/mono/metadata/class-internals.h
浏览文件 @
adcf914a
...
...
@@ -1433,6 +1433,9 @@ mono_method_has_no_body (MonoMethod *method);
MONO_COMPONENT_API
MonoMethodHeader
*
mono_method_get_header_internal
(
MonoMethod
*
method
,
MonoError
*
error
);
MONO_COMPONENT_API
void
mono_method_get_param_names_internal
(
MonoMethod
*
method
,
const
char
**
names
);
MonoType
*
mono_class_find_enum_basetype
(
MonoClass
*
klass
,
MonoError
*
error
);
...
...
src/mono/mono/metadata/loader.c
浏览文件 @
adcf914a
...
...
@@ -1411,6 +1411,17 @@ mono_free_method (MonoMethod *method)
*/
void
mono_method_get_param_names
(
MonoMethod
*
method
,
const
char
**
names
)
{
MONO_ENTER_GC_UNSAFE
;
mono_method_get_param_names_internal
(
method
,
names
);
MONO_EXIT_GC_UNSAFE
;
}
/**
* mono_method_get_param_names_internal:
*/
void
mono_method_get_param_names_internal
(
MonoMethod
*
method
,
const
char
**
names
)
{
int
i
,
lastp
;
MonoClass
*
klass
;
...
...
src/mono/mono/metadata/reflection.c
浏览文件 @
adcf914a
...
...
@@ -1087,7 +1087,7 @@ param_objects_construct (MonoClass *refclass, MonoMethodSignature **addr_of_sig,
MonoReflectionMethodHandle
member
=
mono_method_get_object_handle
(
method
,
refclass
,
error
);
goto_if_nok
(
error
,
leave
);
names
=
g_new
(
char
*
,
sig
->
param_count
);
mono_method_get_param_names
(
method
,
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
method
,
(
const
char
**
)
names
);
mspecs
=
g_new
(
MonoMarshalSpec
*
,
sig
->
param_count
+
1
);
mono_method_get_marshal_info
(
method
,
mspecs
);
...
...
src/mono/mono/mini/debug-mini.c
浏览文件 @
adcf914a
...
...
@@ -673,7 +673,7 @@ mono_debug_print_vars (gpointer ip, gboolean only_arguments)
if
(
only_arguments
)
{
char
**
names
;
names
=
g_new
(
char
*
,
jit
->
num_params
);
mono_method_get_param_names
(
jinfo_get_method
(
ji
),
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
jinfo_get_method
(
ji
),
(
const
char
**
)
names
);
if
(
jit
->
this_var
)
print_var_info
(
jit
->
this_var
,
0
,
"this"
,
"Arg"
);
for
(
guint32
i
=
0
;
i
<
jit
->
num_params
;
++
i
)
{
...
...
src/mono/mono/mini/dwarfwriter.c
浏览文件 @
adcf914a
...
...
@@ -1805,7 +1805,7 @@ mono_dwarf_writer_emit_method (MonoDwarfWriter *w, MonoCompile *cfg, MonoMethod
/* Subprogram */
names
=
g_new0
(
char
*
,
sig
->
param_count
);
mono_method_get_param_names
(
method
,
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
method
,
(
const
char
**
)
names
);
emit_uleb128
(
w
,
ABBREV_SUBPROGRAM
);
/* DW_AT_name */
...
...
src/mono/mono/mini/mini-llvm.c
浏览文件 @
adcf914a
...
...
@@ -3900,7 +3900,7 @@ emit_entry_bb (EmitContext *ctx, LLVMBuilderRef builder)
}
names
=
g_new
(
char
*
,
sig
->
param_count
);
mono_method_get_param_names
(
cfg
->
method
,
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
cfg
->
method
,
(
const
char
**
)
names
);
for
(
int
i
=
0
;
i
<
sig
->
param_count
;
++
i
)
{
LLVMArgInfo
*
ainfo
=
&
linfo
->
args
[
i
+
sig
->
hasthis
];
...
...
@@ -12209,7 +12209,7 @@ emit_method_inner (EmitContext *ctx)
LLVMSetValueName
(
LLVMGetParam
(
method
,
linfo
->
dummy_arg_pindex
),
"dummy_arg"
);
names
=
g_new
(
char
*
,
sig
->
param_count
);
mono_method_get_param_names
(
cfg
->
method
,
(
const
char
**
)
names
);
mono_method_get_param_names
_internal
(
cfg
->
method
,
(
const
char
**
)
names
);
/* Set parameter names/attributes */
for
(
int
i
=
0
;
i
<
sig
->
param_count
;
++
i
)
{
...
...
src/native/public/mono/metadata/details/loader-functions.h
浏览文件 @
adcf914a
...
...
@@ -44,7 +44,7 @@ MONO_API_FUNCTION(MONO_RT_EXTERNAL_ONLY void, mono_dllmap_insert, (MonoImage *as
MONO_API_FUNCTION
(
MONO_RT_EXTERNAL_ONLY
void
*
,
mono_lookup_pinvoke_call
,
(
MonoMethod
*
method
,
const
char
**
exc_class
,
const
char
**
exc_arg
))
MONO_API_FUNCTION
(
void
,
mono_method_get_param_names
,
(
MonoMethod
*
method
,
const
char
**
names
))
MONO_API_FUNCTION
(
MONO_RT_EXTERNAL_ONLY
void
,
mono_method_get_param_names
,
(
MonoMethod
*
method
,
const
char
**
names
))
MONO_API_FUNCTION
(
uint32_t
,
mono_method_get_param_token
,
(
MonoMethod
*
method
,
int
idx
))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录