Mercurial > hg > graal-jvmci-8
diff src/share/vm/jvmci/jvmciEnv.hpp @ 22730:24fd08e99b35
Backport Handle fixes from jvmci-9.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 11 Nov 2015 10:33:08 +0100 |
parents | eb2091fcd682 |
children | 1fbfcc0334d3 |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciEnv.hpp Tue Nov 10 23:16:06 2015 +0100 +++ b/src/share/vm/jvmci/jvmciEnv.hpp Wed Nov 11 10:33:08 2015 +0100 @@ -83,13 +83,13 @@ bool require_local); // Constant pool access. - static KlassHandle get_klass_by_index(constantPoolHandle cpool, + static KlassHandle get_klass_by_index(const constantPoolHandle& cpool, int klass_index, bool& is_accessible, KlassHandle loading_klass); static void get_field_by_index(instanceKlassHandle loading_klass, fieldDescriptor& fd, int field_index); - static methodHandle get_method_by_index(constantPoolHandle cpool, + static methodHandle get_method_by_index(const constantPoolHandle& cpool, int method_index, Bytecodes::Code bc, instanceKlassHandle loading_klass); @@ -106,16 +106,16 @@ // Implementation methods for loading and constant pool access. static KlassHandle get_klass_by_name_impl(KlassHandle accessing_klass, - constantPoolHandle cpool, + const constantPoolHandle& cpool, Symbol* klass_name, bool require_local); - static KlassHandle get_klass_by_index_impl(constantPoolHandle cpool, + static KlassHandle get_klass_by_index_impl(const constantPoolHandle& cpool, int klass_index, bool& is_accessible, KlassHandle loading_klass); static void get_field_by_index_impl(instanceKlassHandle loading_klass, fieldDescriptor& fd, int field_index); - static methodHandle get_method_by_index_impl(constantPoolHandle cpool, + static methodHandle get_method_by_index_impl(const constantPoolHandle& cpool, int method_index, Bytecodes::Code bc, instanceKlassHandle loading_klass); @@ -142,7 +142,7 @@ // Register the result of a compilation. static JVMCIEnv::CodeInstallResult register_method( - methodHandle target, + const methodHandle& target, nmethod*& nm, int entry_bci, CodeOffsets* offsets,