hotspot/src/share/vm/ci/ciMethod.cpp
changeset 8676 9098d4e927e1
parent 8076 96d498ec7ae1
child 10008 d84de97ad847
equal deleted inserted replaced
8675:e9fef2a9bef7 8676:9098d4e927e1
     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();