comparison src/share/vm/ci/ciMethod.cpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 89152779163c 0bf37f737702
children 7848fc12602b
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
78 _max_stack = h_m()->max_stack(); 78 _max_stack = h_m()->max_stack();
79 _max_locals = h_m()->max_locals(); 79 _max_locals = h_m()->max_locals();
80 _code_size = h_m()->code_size(); 80 _code_size = h_m()->code_size();
81 _intrinsic_id = h_m()->intrinsic_id(); 81 _intrinsic_id = h_m()->intrinsic_id();
82 _handler_count = h_m()->exception_table_length(); 82 _handler_count = h_m()->exception_table_length();
83 _size_of_parameters = h_m()->size_of_parameters();
83 _uses_monitors = h_m()->access_flags().has_monitor_bytecodes(); 84 _uses_monitors = h_m()->access_flags().has_monitor_bytecodes();
84 _balanced_monitors = !_uses_monitors || h_m()->access_flags().is_monitor_matching(); 85 _balanced_monitors = !_uses_monitors || h_m()->access_flags().is_monitor_matching();
85 _is_c1_compilable = !h_m()->is_not_c1_compilable(); 86 _is_c1_compilable = !h_m()->is_not_c1_compilable();
86 _is_c2_compilable = !h_m()->is_not_c2_compilable(); 87 _is_c2_compilable = !h_m()->is_not_c2_compilable();
87 // Lazy fields, filled in on demand. Require allocation. 88 // Lazy fields, filled in on demand. Require allocation.
1360 return _method_blocks; 1361 return _method_blocks;
1361 } 1362 }
1362 1363
1363 #undef FETCH_FLAG_FROM_VM 1364 #undef FETCH_FLAG_FROM_VM
1364 1365
1366 void ciMethod::dump_name_as_ascii(outputStream* st) {
1367 Method* method = get_Method();
1368 st->print("%s %s %s",
1369 method->klass_name()->as_quoted_ascii(),
1370 method->name()->as_quoted_ascii(),
1371 method->signature()->as_quoted_ascii());
1372 }
1373
1365 void ciMethod::dump_replay_data(outputStream* st) { 1374 void ciMethod::dump_replay_data(outputStream* st) {
1366 ResourceMark rm; 1375 ResourceMark rm;
1367 Method* method = get_Method(); 1376 Method* method = get_Method();
1368 MethodCounters* mcs = method->method_counters(); 1377 MethodCounters* mcs = method->method_counters();
1369 Klass* holder = method->method_holder(); 1378 st->print("ciMethod ");
1370 st->print_cr("ciMethod %s %s %s %d %d %d %d %d", 1379 dump_name_as_ascii(st);
1371 holder->name()->as_quoted_ascii(), 1380 st->print_cr(" %d %d %d %d %d",
1372 method->name()->as_quoted_ascii(),
1373 method->signature()->as_quoted_ascii(),
1374 mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(), 1381 mcs == NULL ? 0 : mcs->invocation_counter()->raw_counter(),
1375 mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(), 1382 mcs == NULL ? 0 : mcs->backedge_counter()->raw_counter(),
1376 interpreter_invocation_count(), 1383 interpreter_invocation_count(),
1377 interpreter_throwout_count(), 1384 interpreter_throwout_count(),
1378 _instructions_size); 1385 _instructions_size);