Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/compile.cpp @ 100:c7c777385a15
6667042: PrintAssembly option does not work without special plugin
Summary: remove old private plugin interface, simplify, rework old plugin to use unchanged Gnu sources
Reviewed-by: kvn, rasbold
author | jrose |
---|---|
date | Wed, 02 Apr 2008 12:09:59 -0700 |
parents | 99269dbf4ba8 |
children | ba764ed4b6f2 |
comparison
equal
deleted
inserted
replaced
99:8a4ef4e001d3 | 100:c7c777385a15 |
---|---|
454 target->print_short_name(); | 454 target->print_short_name(); |
455 tty->print(" "); | 455 tty->print(" "); |
456 } | 456 } |
457 TraceTime t1("Total compilation time", &_t_totalCompilation, TimeCompiler, TimeCompiler2); | 457 TraceTime t1("Total compilation time", &_t_totalCompilation, TimeCompiler, TimeCompiler2); |
458 TraceTime t2(NULL, &_t_methodCompilation, TimeCompiler, false); | 458 TraceTime t2(NULL, &_t_methodCompilation, TimeCompiler, false); |
459 set_print_assembly(PrintOptoAssembly || _method->should_print_assembly()); | 459 bool print_opto_assembly = PrintOptoAssembly || _method->has_option("PrintOptoAssembly"); |
460 if (!print_opto_assembly) { | |
461 bool print_assembly = (PrintAssembly || _method->should_print_assembly()); | |
462 if (print_assembly && !Disassembler::can_decode()) { | |
463 tty->print_cr("PrintAssembly request changed to PrintOptoAssembly"); | |
464 print_opto_assembly = true; | |
465 } | |
466 } | |
467 set_print_assembly(print_opto_assembly); | |
460 #endif | 468 #endif |
461 | 469 |
462 if (ProfileTraps) { | 470 if (ProfileTraps) { |
463 // Make sure the method being compiled gets its own MDO, | 471 // Make sure the method being compiled gets its own MDO, |
464 // so we can at least track the decompile_count(). | 472 // so we can at least track the decompile_count(). |