hotspot/src/share/vm/interpreter/bytecode.cpp
changeset 31019 d05fcdd70109
parent 13728 882756847a04
child 43458 61ab1daf0fc8
equal deleted inserted replaced
30886:d2a0ec86d6ef 31019:d05fcdd70109
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, 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.
   145   return rts.type();
   145   return rts.type();
   146 }
   146 }
   147 
   147 
   148 
   148 
   149 methodHandle Bytecode_invoke::static_target(TRAPS) {
   149 methodHandle Bytecode_invoke::static_target(TRAPS) {
   150   methodHandle m;
       
   151   KlassHandle resolved_klass;
       
   152   constantPoolHandle constants(THREAD, this->constants());
   150   constantPoolHandle constants(THREAD, this->constants());
   153 
   151 
   154   Bytecodes::Code bc = invoke_code();
   152   Bytecodes::Code bc = invoke_code();
   155   LinkResolver::resolve_method_statically(m, resolved_klass, bc, constants, index(), CHECK_(methodHandle()));
   153   return LinkResolver::resolve_method_statically(bc, constants, index(), THREAD);
   156   return m;
       
   157 }
   154 }
   158 
   155 
   159 Handle Bytecode_invoke::appendix(TRAPS) {
   156 Handle Bytecode_invoke::appendix(TRAPS) {
   160   ConstantPoolCacheEntry* cpce = cpcache_entry();
   157   ConstantPoolCacheEntry* cpce = cpcache_entry();
   161   if (cpce->has_appendix())
   158   if (cpce->has_appendix())