Mercurial > hg > truffle
comparison src/share/vm/prims/jvmtiClassFileReconstituter.cpp @ 6940:18fb7da42534
8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass
Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files.
Reviewed-by: dholmes, coleenp, zgu
Contributed-by: harold.seigel@oracle.com
author | coleenp |
---|---|
date | Tue, 06 Nov 2012 15:09:37 -0500 |
parents | 1cb8583c3da8 |
children | 8aaef2cee3b2 |
comparison
equal
deleted
inserted
replaced
6939:c284cf4781f0 | 6940:18fb7da42534 |
---|---|
751 | 751 |
752 BytecodeStream bs(mh); | 752 BytecodeStream bs(mh); |
753 | 753 |
754 unsigned char* p = bytecodes; | 754 unsigned char* p = bytecodes; |
755 Bytecodes::Code code; | 755 Bytecodes::Code code; |
756 bool is_rewritten = InstanceKlass::cast(mh->method_holder())->is_rewritten(); | 756 bool is_rewritten = mh->method_holder()->is_rewritten(); |
757 | 757 |
758 while ((code = bs.next()) >= 0) { | 758 while ((code = bs.next()) >= 0) { |
759 assert(Bytecodes::is_java_code(code), "sanity check"); | 759 assert(Bytecodes::is_java_code(code), "sanity check"); |
760 assert(code != Bytecodes::_breakpoint, "sanity check"); | 760 assert(code != Bytecodes::_breakpoint, "sanity check"); |
761 | 761 |