comparison src/share/vm/ci/ciMethod.cpp @ 2357:8033953d67ff

7012648: move JSR 292 to package java.lang.invoke and adjust names Summary: package and class renaming only; delete unused methods and classes Reviewed-by: twisti
author jrose
date Fri, 11 Mar 2011 22:34:57 -0800
parents 3582bf76420e
children 81d815b05abb
comparison
equal deleted inserted replaced
2356:72dee110246f 2357:8033953d67ff
1 /* 1 /*
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. 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.
767 // 767 //
768 // Return true if the method is an instance of one of the two 768 // Return true if the method is an instance of one of the two
769 // signature-polymorphic MethodHandle methods, invokeExact or invokeGeneric. 769 // signature-polymorphic MethodHandle methods, invokeExact or invokeGeneric.
770 bool ciMethod::is_method_handle_invoke() const { 770 bool ciMethod::is_method_handle_invoke() const {
771 if (!is_loaded()) { 771 if (!is_loaded()) {
772 bool flag = (holder()->name() == ciSymbol::java_dyn_MethodHandle() && 772 bool flag = (holder()->name() == ciSymbol::java_lang_invoke_MethodHandle() &&
773 methodOopDesc::is_method_handle_invoke_name(name()->sid())); 773 methodOopDesc::is_method_handle_invoke_name(name()->sid()));
774 return flag; 774 return flag;
775 } 775 }
776 VM_ENTRY_MARK; 776 VM_ENTRY_MARK;
777 return get_methodOop()->is_method_handle_invoke(); 777 return get_methodOop()->is_method_handle_invoke();