Skip to content

Commit

Permalink
[jit] Use mini_type_get_underlying type in a few missing places in th…
Browse files Browse the repository at this point in the history
…e x86 port.
  • Loading branch information
kumpera committed Dec 10, 2013
1 parent dbce960 commit c3bcbb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mono/mini/mini-x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ add_valuetype (MonoGenericSharingContext *gsctx, MonoMethodSignature *sig, ArgIn

/* Special case structs with only a float member */
if (info->num_fields == 1) {
int ftype = info->fields [0].field->type->type;
int ftype = mini_type_get_underlying_type (NULL, info->fields [0].field->type)->type;
if ((info->native_size == 8) && (ftype == MONO_TYPE_R8)) {
ainfo->storage = ArgValuetypeInReg;
ainfo->pair_storage [0] = ArgOnDoubleFpStack;
Expand Down Expand Up @@ -714,7 +714,7 @@ mono_arch_tail_call_supported (MonoMethodSignature *caller_sig, MonoMethodSignat
* the extra stack space would be left on the stack after the tail call.
*/
res = c1->stack_usage >= c2->stack_usage;
callee_ret = callee_sig->ret;
callee_ret = mini_type_get_underlying_type (NULL, callee_sig->ret);
if (callee_ret && MONO_TYPE_ISSTRUCT (callee_ret) && c2->ret.storage != ArgValuetypeInReg)
/* An address on the callee's stack is passed as the first argument */
res = FALSE;
Expand Down Expand Up @@ -1197,7 +1197,7 @@ mono_arch_create_vars (MonoCompile *cfg)
sig = mono_method_signature (cfg->method);

cinfo = get_call_info (cfg->generic_sharing_context, cfg->mempool, sig);
sig_ret = sig->ret;
sig_ret = mini_type_get_underlying_type (NULL, sig->ret);

if (cinfo->ret.storage == ArgValuetypeInReg)
cfg->ret_var_is_local = TRUE;
Expand Down Expand Up @@ -1411,7 +1411,7 @@ mono_arch_emit_call (MonoCompile *cfg, MonoCallInst *call)

sig = call->signature;
n = sig->param_count + sig->hasthis;
sig_ret = sig->ret;
sig_ret = mini_type_get_underlying_type (NULL, sig->ret);

cinfo = get_call_info (cfg->generic_sharing_context, cfg->mempool, sig);

Expand Down

0 comments on commit c3bcbb8

Please sign in to comment.