hotspot/src/share/vm/ci/ciMethod.hpp
changeset 46727 6e4a84748e2c
parent 46542 73dd19b96b5d
equal deleted inserted replaced
46726:7801367e3cc9 46727:6e4a84748e2c
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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.
    99 #if defined(COMPILER2) || defined(SHARK)
    99 #if defined(COMPILER2) || defined(SHARK)
   100   ciTypeFlow*         _flow;
   100   ciTypeFlow*         _flow;
   101   BCEscapeAnalyzer*   _bcea;
   101   BCEscapeAnalyzer*   _bcea;
   102 #endif
   102 #endif
   103 
   103 
   104   ciMethod(methodHandle h_m, ciInstanceKlass* holder);
   104   ciMethod(const methodHandle& h_m, ciInstanceKlass* holder);
   105   ciMethod(ciInstanceKlass* holder, ciSymbol* name, ciSymbol* signature, ciInstanceKlass* accessor);
   105   ciMethod(ciInstanceKlass* holder, ciSymbol* name, ciSymbol* signature, ciInstanceKlass* accessor);
   106 
   106 
   107   oop loader() const                             { return _holder->loader(); }
   107   oop loader() const                             { return _holder->loader(); }
   108 
   108 
   109   const char* type_string()                      { return "ciMethod"; }
   109   const char* type_string()                      { return "ciMethod"; }
   110 
   110 
   111   void print_impl(outputStream* st);
   111   void print_impl(outputStream* st);
   112 
   112 
   113   void load_code();
   113   void load_code();
   114 
   114 
   115   bool ensure_method_data(methodHandle h_m);
   115   bool ensure_method_data(const methodHandle& h_m);
   116 
   116 
   117   void code_at_put(int bci, Bytecodes::Code code) {
   117   void code_at_put(int bci, Bytecodes::Code code) {
   118     Bytecodes::check(code);
   118     Bytecodes::check(code);
   119     assert(0 <= bci && bci < code_size(), "valid bci");
   119     assert(0 <= bci && bci < code_size(), "valid bci");
   120     address bcp = _code + bci;
   120     address bcp = _code + bci;