Mercurial > hg > graal-compiler
comparison src/share/vm/utilities/debug.cpp @ 2008:2f644f85485d
6961690: load oops from constant table on SPARC
Summary: oops should be loaded from the constant table of an nmethod instead of materializing them with a long code sequence.
Reviewed-by: never, kvn
author | twisti |
---|---|
date | Fri, 03 Dec 2010 01:34:31 -0800 |
parents | f95d63e2154a |
children | 36c186bcc085 |
comparison
equal
deleted
inserted
replaced
2007:5ddfcf4b079e | 2008:2f644f85485d |
---|---|
397 | 397 |
398 | 398 |
399 extern "C" void disnm(intptr_t p) { | 399 extern "C" void disnm(intptr_t p) { |
400 Command c("disnm"); | 400 Command c("disnm"); |
401 CodeBlob* cb = CodeCache::find_blob((address) p); | 401 CodeBlob* cb = CodeCache::find_blob((address) p); |
402 cb->print(); | 402 nmethod* nm = cb->as_nmethod_or_null(); |
403 Disassembler::decode(cb); | 403 if (nm) { |
404 nm->print(); | |
405 Disassembler::decode(nm); | |
406 } else { | |
407 cb->print(); | |
408 Disassembler::decode(cb); | |
409 } | |
404 } | 410 } |
405 | 411 |
406 | 412 |
407 extern "C" void printnm(intptr_t p) { | 413 extern "C" void printnm(intptr_t p) { |
408 char buffer[256]; | 414 char buffer[256]; |