@@ -4325,14 +4325,6 @@ add_method_with_index (MonoAotCompile *acfg, MonoMethod *method, int index, gboo
43254325{
43264326 g_assert (method );
43274327 if (!g_hash_table_lookup (acfg -> method_indexes , method )) {
4328- {
4329- char * method_name = mono_method_get_full_name (method );
4330- g_print ("inserting %s into acfg\n" , method_name );
4331- if (strstr (method_name , "W_REF& Program:AccessBox<W_REF" ) == method_name ) {
4332- printf ("haraa\n" );
4333- }
4334- g_free (method_name );
4335- }
43364328 g_ptr_array_add (acfg -> methods , method );
43374329 g_hash_table_insert (acfg -> method_indexes , method , GUINT_TO_POINTER (index + 1 ));
43384330 acfg -> nmethods = acfg -> methods -> len + 1 ;
@@ -4866,14 +4858,6 @@ replace_generated_method (MonoAotCompile *acfg, MonoMethod *method, MonoError *e
48664858 if (G_LIKELY (mono_method_metadata_has_header (method )))
48674859 return NULL ;
48684860
4869- {
4870- char * method_name = mono_method_get_full_name (method );
4871- g_print ("ADDING no header %s generic instances\n" , method_name );
4872- if (strstr (method_name , "!!0" ) != NULL )
4873- g_print ("anon\n" );
4874- g_free (method_name );
4875- }
4876-
48774861 /* Unsafe accessors methods. Replace attempts to compile the accessor method by
48784862 * its wrapper.
48794863 */
@@ -4887,17 +4871,19 @@ replace_generated_method (MonoAotCompile *acfg, MonoMethod *method, MonoError *e
48874871 wrapper = mono_marshal_get_unsafe_accessor_wrapper (method , (MonoUnsafeAccessorKind )accessor_kind , member_name );
48884872 }
48894873 if (is_ok (error )) {
4890- {
4874+ if ( mono_trace_is_traced ( G_LOG_LEVEL_INFO , MONO_TRACE_AOT )) {
48914875 char * method_name = mono_method_get_full_name (wrapper );
4892- g_print ( "REPLACED by %s in generic instances\n " , method_name );
4876+ mono_trace ( G_LOG_LEVEL_INFO , MONO_TRACE_AOT , "Replacing generated method by %s" , method_name );
48934877 g_free (method_name );
48944878 }
48954879 return wrapper ;
48964880 }
48974881 }
48984882
48994883 if (!is_ok (error )) {
4900- aot_printerrf (acfg , "Could not get unsafe accessor wrapper due to %s " , mono_error_get_message (error ));
4884+ char * method_name = mono_method_get_full_name (method );
4885+ aot_printerrf (acfg , "Could not get generated wrapper for %s due to %s" , method_name , mono_error_get_message (error ));
4886+ g_free (method_name );
49014887 }
49024888
49034889 return NULL ;
@@ -7953,12 +7939,6 @@ emit_exception_debug_info (MonoAotCompile *acfg, MonoCompile *cfg, gboolean stor
79537939 */
79547940 buf2 = (guint8 * )g_malloc (4096 );
79557941 p2 = buf2 ;
7956- if (cfg -> method -> wrapper_type && cfg -> method -> is_generic ) {
7957- printf ("barf\n" );
7958- }
7959- if (jinfo -> d .method -> wrapper_type && jinfo -> d .method -> is_generic ) {
7960- printf ("barf2\n" );
7961- }
79627942 encode_method_ref (acfg , jinfo -> d .method , p2 , & p2 );
79637943 len = GPTRDIFF_TO_INT (p2 - buf2 );
79647944 g_assert (len < 4096 );
@@ -9552,7 +9532,7 @@ compile_method (MonoAotCompile *acfg, MonoMethod *method)
95529532 if ((method -> flags & METHOD_ATTRIBUTE_PINVOKE_IMPL ) ||
95539533 (method -> iflags & METHOD_IMPL_ATTRIBUTE_RUNTIME ) ||
95549534 (method -> flags & METHOD_ATTRIBUTE_ABSTRACT )) {
9555- printf ("Skip (impossible): %s\n" , mono_method_full_name (method , TRUE));
9535+ // printf ("Skip (impossible): %s\n", mono_method_full_name (method, TRUE));
95569536 return ;
95579537 }
95589538
0 commit comments