equal
deleted
inserted
replaced
437 |
437 |
438 void ErrorContext::location_details(outputStream* ss, const Method* method) const { |
438 void ErrorContext::location_details(outputStream* ss, const Method* method) const { |
439 if (_bci != -1 && method != NULL) { |
439 if (_bci != -1 && method != NULL) { |
440 streamIndentor si(ss); |
440 streamIndentor si(ss); |
441 const char* bytecode_name = "<invalid>"; |
441 const char* bytecode_name = "<invalid>"; |
442 if (method->validate_bci_from_bcx(_bci) != -1) { |
442 if (method->validate_bci(_bci) != -1) { |
443 Bytecodes::Code code = Bytecodes::code_or_bp_at(method->bcp_from(_bci)); |
443 Bytecodes::Code code = Bytecodes::code_or_bp_at(method->bcp_from(_bci)); |
444 if (Bytecodes::is_defined(code)) { |
444 if (Bytecodes::is_defined(code)) { |
445 bytecode_name = Bytecodes::name(code); |
445 bytecode_name = Bytecodes::name(code); |
446 } else { |
446 } else { |
447 bytecode_name = "<illegal>"; |
447 bytecode_name = "<illegal>"; |