Mercurial > hg > truffle
comparison src/share/vm/code/nmethod.cpp @ 8504:86b4965f0c9a
-Cleanup code
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Wed, 20 Mar 2013 21:39:24 +0100 |
parents | 41fc46da946a |
children | c3657d00e343 |
comparison
equal
deleted
inserted
replaced
8503:58385e7565ff | 8504:86b4965f0c9a |
---|---|
2475 MutexLocker ml_verify (CompiledIC_lock); | 2475 MutexLocker ml_verify (CompiledIC_lock); |
2476 ic = CompiledIC_at(this, call_site); | 2476 ic = CompiledIC_at(this, call_site); |
2477 } | 2477 } |
2478 | 2478 |
2479 PcDesc* pd = pc_desc_at(ic->end_of_call()); | 2479 PcDesc* pd = pc_desc_at(ic->end_of_call()); |
2480 // if(pd!=NULL) { | |
2481 assert(pd != NULL, "PcDesc must exist"); | 2480 assert(pd != NULL, "PcDesc must exist"); |
2482 for (ScopeDesc* sd = new ScopeDesc(this, pd->scope_decode_offset(), | 2481 for (ScopeDesc* sd = new ScopeDesc(this, pd->scope_decode_offset(), |
2483 pd->obj_decode_offset(), pd->should_reexecute(), pd->rethrow_exception(), | 2482 pd->obj_decode_offset(), pd->should_reexecute(), pd->rethrow_exception(), |
2484 pd->return_oop()); | 2483 pd->return_oop()); |
2485 !sd->is_top(); sd = sd->sender()) { | 2484 !sd->is_top(); sd = sd->sender()) { |
2486 sd->verify(); | 2485 sd->verify(); |
2487 } | 2486 } |
2488 //} | |
2489 } | 2487 } |
2490 | 2488 |
2491 void nmethod::verify_scopes() { | 2489 void nmethod::verify_scopes() { |
2492 if( !method() ) return; // Runtime stubs have no scope | 2490 if( !method() ) return; // Runtime stubs have no scope |
2493 if (method()->is_native()) return; // Ignore stub methods. | 2491 if (method()->is_native()) return; // Ignore stub methods. |