hotspot/src/share/vm/code/compiledIC.cpp
changeset 33593 60764a78fa5c
parent 33160 c59f1676d27e
child 35086 bbf32241d851
equal deleted inserted replaced
33579:01ade4446d96 33593:60764a78fa5c
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, 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.
   460 
   460 
   461 
   461 
   462 // is_optimized: Compiler has generated an optimized call (i.e., no inline
   462 // is_optimized: Compiler has generated an optimized call (i.e., no inline
   463 // cache) static_bound: The call can be static bound (i.e, no need to use
   463 // cache) static_bound: The call can be static bound (i.e, no need to use
   464 // inline cache)
   464 // inline cache)
   465 void CompiledIC::compute_monomorphic_entry(methodHandle method,
   465 void CompiledIC::compute_monomorphic_entry(const methodHandle& method,
   466                                            KlassHandle receiver_klass,
   466                                            KlassHandle receiver_klass,
   467                                            bool is_optimized,
   467                                            bool is_optimized,
   468                                            bool static_bound,
   468                                            bool static_bound,
   469                                            CompiledICInfo& info,
   469                                            CompiledICInfo& info,
   470                                            TRAPS) {
   470                                            TRAPS) {
   592 }
   592 }
   593 
   593 
   594 
   594 
   595 // Compute settings for a CompiledStaticCall. Since we might have to set
   595 // Compute settings for a CompiledStaticCall. Since we might have to set
   596 // the stub when calling to the interpreter, we need to return arguments.
   596 // the stub when calling to the interpreter, we need to return arguments.
   597 void CompiledStaticCall::compute_entry(methodHandle m, StaticCallInfo& info) {
   597 void CompiledStaticCall::compute_entry(const methodHandle& m, StaticCallInfo& info) {
   598   nmethod* m_code = m->code();
   598   nmethod* m_code = m->code();
   599   info._callee = m;
   599   info._callee = m;
   600   if (m_code != NULL && m_code->is_in_use()) {
   600   if (m_code != NULL && m_code->is_in_use()) {
   601     info._to_interpreter = false;
   601     info._to_interpreter = false;
   602     info._entry  = m_code->verified_entry_point();
   602     info._entry  = m_code->verified_entry_point();