hotspot/src/share/vm/code/compiledIC.hpp
changeset 33593 60764a78fa5c
parent 33160 c59f1676d27e
child 38133 78b95467b9f1
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.
   220 
   220 
   221   // Returns true if successful and false otherwise. The call can fail if memory
   221   // Returns true if successful and false otherwise. The call can fail if memory
   222   // allocation in the code cache fails.
   222   // allocation in the code cache fails.
   223   bool set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS);
   223   bool set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecode, TRAPS);
   224 
   224 
   225   static void compute_monomorphic_entry(methodHandle method, KlassHandle receiver_klass,
   225   static void compute_monomorphic_entry(const methodHandle& method, KlassHandle receiver_klass,
   226                                         bool is_optimized, bool static_bound, CompiledICInfo& info, TRAPS);
   226                                         bool is_optimized, bool static_bound, CompiledICInfo& info, TRAPS);
   227 
   227 
   228   // Location
   228   // Location
   229   address instruction_address() const { return _ic_call->instruction_address(); }
   229   address instruction_address() const { return _ic_call->instruction_address(); }
   230 
   230 
   322   // Computation and setting is split up, since the actions are separate during
   322   // Computation and setting is split up, since the actions are separate during
   323   // a OptoRuntime::resolve_xxx.
   323   // a OptoRuntime::resolve_xxx.
   324   void set(const StaticCallInfo& info);
   324   void set(const StaticCallInfo& info);
   325 
   325 
   326   // Compute entry point given a method
   326   // Compute entry point given a method
   327   static void compute_entry(methodHandle m, StaticCallInfo& info);
   327   static void compute_entry(const methodHandle& m, StaticCallInfo& info);
   328 
   328 
   329   // Stub support
   329   // Stub support
   330   address find_stub();
   330   address find_stub();
   331   static void set_stub_to_clean(static_stub_Relocation* static_stub);
   331   static void set_stub_to_clean(static_stub_Relocation* static_stub);
   332 
   332