Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/frame.cpp @ 4681:84e7d6690293
added bytecode name to deoptimization details
author | Christian Haeubl <christian.haeubl@oracle.com> |
---|---|
date | Thu, 23 Feb 2012 16:57:05 -0800 |
parents | 3dbcd1013cc8 |
children | 33df1aeaebbf |
comparison
equal
deleted
inserted
replaced
4680:acf7d88327fa | 4681:84e7d6690293 |
---|---|
602 | 602 |
603 | 603 |
604 void frame::interpreter_frame_print_on(outputStream* st) const { | 604 void frame::interpreter_frame_print_on(outputStream* st) const { |
605 #ifndef PRODUCT | 605 #ifndef PRODUCT |
606 assert(is_interpreted_frame(), "Not an interpreted frame"); | 606 assert(is_interpreted_frame(), "Not an interpreted frame"); |
607 assert(interpreter_frame_method() != NULL && interpreter_frame_method()->contains(interpreter_frame_bcp()), "must be"); | |
607 jint i; | 608 jint i; |
608 st->print_cr(" - sp = " INTPTR_FORMAT, sp()); | 609 st->print_cr(" - sp = " INTPTR_FORMAT, sp()); |
609 // expressions | 610 // expressions |
610 for (i = interpreter_frame_expression_stack_size() - 1; i >= 0; --i ) { | 611 for (i = interpreter_frame_expression_stack_size() - 1; i >= 0; --i ) { |
611 intptr_t* x = interpreter_frame_expression_stack_at(i); | 612 intptr_t* x = interpreter_frame_expression_stack_at(i); |
628 st->print_cr(" - monitorbegin = " INTPTR_FORMAT, interpreter_frame_monitor_begin()); | 629 st->print_cr(" - monitorbegin = " INTPTR_FORMAT, interpreter_frame_monitor_begin()); |
629 | 630 |
630 // bcp/bcx | 631 // bcp/bcx |
631 st->print (" - bcp at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_bcx_addr(), interpreter_frame_bcp()); | 632 st->print (" - bcp at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_bcx_addr(), interpreter_frame_bcp()); |
632 st->fill_to(70); | 633 st->fill_to(70); |
633 st->print_cr("; @%d", interpreter_frame_bci()); | 634 st->print_cr("; @%d - %s", interpreter_frame_bci(), Bytecodes::name(interpreter_frame_method()->code_at(interpreter_frame_bci()))); |
634 // locals | 635 // locals |
635 st->print_cr(" - locals at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_locals_addr(), *interpreter_frame_locals_addr()); | 636 st->print_cr(" - locals at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_locals_addr(), *interpreter_frame_locals_addr()); |
636 // constant pool cache | 637 // constant pool cache |
637 st->print_cr(" - constant pool at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_cache_addr(), *interpreter_frame_cache_addr()); | 638 st->print_cr(" - constant pool at " INTPTR_FORMAT " = " INTPTR_FORMAT, interpreter_frame_cache_addr(), *interpreter_frame_cache_addr()); |
638 // method data | 639 // method data |