Skip to content

Commit

Permalink
Removed more debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
naricc committed May 25, 2022
1 parent 7447799 commit 344aa0b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 24 deletions.
3 changes: 0 additions & 3 deletions src/mono/mono/metadata/marshal-ilgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2719,10 +2719,8 @@ get_marshal_cb (void)
{
if (G_UNLIKELY (!ilgen_cb_inited)) {
#ifdef ENABLE_ILGEN
printf("!!!marshal-ilgen.c: get_marshal_cb: ENABLE_ILGEN\n");
mono_marshal_ilgen_init ();
#else
printf("!!!marshal-ilgen.c: get_marshal_cb: NO ENABLE_ILGEN\n");
mono_marshal_noilgen_init_heavyweight ();
#endif
}
Expand Down Expand Up @@ -2808,7 +2806,6 @@ mono_emit_marshal_ilgen (EmitMarshalContext *m, int argnum, MonoType *t,
void
mono_marshal_ilgen_init (void)
{
printf("!!!naricc_debug!!! mono_marshal_ilgen_init called.\n");
MonoMarshalIlgenCallbacks cb;
cb.version = MONO_MARSHAL_CALLBACKS_VERSION;
cb.emit_marshal_array = emit_marshal_array_ilgen;
Expand Down
4 changes: 0 additions & 4 deletions src/mono/mono/metadata/marshal-lightweight.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,6 @@ emit_native_wrapper_ilgen (MonoImage *image, MonoMethodBuilder *mb, MonoMethodSi
m.orig_conv_args = g_newa (int, sig->param_count + 1);

for (i = 0; i < sig->param_count; i ++) {
if (naricc_global_debug_get())
{
printf("!!!naricc_debug!!!: mono_emit_marshal params: i: %d, param_shift: %d\n", i, param_shift);
}
tmp_locals [i] = mono_emit_marshal (&m, i + param_shift, sig->params [i], mspecs [i + 1], 0, &csig->params [i], MARSHAL_ACTION_CONV_IN);
}

Expand Down
15 changes: 1 addition & 14 deletions src/mono/mono/metadata/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3421,15 +3421,6 @@ mono_marshal_get_native_wrapper (MonoMethod *method, gboolean check_exceptions,
return res;
}

if (!strcmp (method->name, "DeflateInit2_"))
{
naricc_global_debug_set(TRUE);
}
else
{
naricc_global_debug_set(FALSE);
}

mb = mono_mb_new (method->klass, method->name, MONO_WRAPPER_MANAGED_TO_NATIVE);

mb->method->save_lmf = 1;
Expand Down Expand Up @@ -3555,11 +3546,7 @@ mono_marshal_get_native_wrapper (MonoMethod *method, gboolean check_exceptions,
if (mspecs [i])
mono_metadata_free_marshal_spec (mspecs [i]);
g_free (mspecs);

if (!strcmp (method->name, "DeflateInit2_")){
mono_method_print_code (res);
}


return res;
}

Expand Down
3 changes: 0 additions & 3 deletions src/mono/wasm/runtime/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,11 +568,8 @@ mono_wasm_load_runtime (const char *unused, int debug_level)
#endif
#ifdef NEED_INTERP
mono_ee_interp_init (interp_opts);

mono_marshal_lightweight_init ();
mono_marshal_ilgen_init();


mono_method_builder_ilgen_init ();
mono_sgen_mono_ilgen_init ();
#endif
Expand Down

0 comments on commit 344aa0b

Please sign in to comment.