Mercurial > hg > truffle
comparison src/share/vm/oops/methodOop.cpp @ 1161:1fc01a2425ce
Merge
author | iveresov |
---|---|
date | Tue, 12 Jan 2010 13:54:40 -0800 |
parents | cd37471eaecc |
children | cf0685d550f1 |
comparison
equal
deleted
inserted
replaced
1149:0579c695832f | 1161:1fc01a2425ce |
---|---|
1 /* | 1 /* |
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. | 2 * Copyright 1997-2010 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
819 OrderAccess::release_store(&pchase[0], step0); | 819 OrderAccess::release_store(&pchase[0], step0); |
820 } | 820 } |
821 return pchase; | 821 return pchase; |
822 } | 822 } |
823 | 823 |
824 //------------------------------------------------------------------------------ | |
825 // methodOopDesc::is_method_handle_adapter | |
826 // | |
827 // Tests if this method is an internal adapter frame from the | |
828 // MethodHandleCompiler. | |
829 bool methodOopDesc::is_method_handle_adapter() const { | |
830 return ((name() == vmSymbols::invoke_name() && | |
831 method_holder() == SystemDictionary::MethodHandle_klass()) | |
832 || | |
833 method_holder() == SystemDictionary::InvokeDynamic_klass()); | |
834 } | |
835 | |
824 methodHandle methodOopDesc::make_invoke_method(KlassHandle holder, | 836 methodHandle methodOopDesc::make_invoke_method(KlassHandle holder, |
825 symbolHandle signature, | 837 symbolHandle signature, |
826 Handle method_type, TRAPS) { | 838 Handle method_type, TRAPS) { |
827 methodHandle empty; | 839 methodHandle empty; |
828 | 840 |