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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "incls/_precompiled.incl" 26 #include "incls/_callGenerator.cpp.incl" 27 28 CallGenerator::CallGenerator(ciMethod* method) { 29 _method = method; 30 } 31 32 // Utility function. 33 const TypeFunc* CallGenerator::tf() const { 34 return TypeFunc::make(method()); 35 } 36 37 //-----------------------------ParseGenerator--------------------------------- 38 // Internal class which handles all direct bytecode traversal. 39 class ParseGenerator : public InlineCallGenerator { 40 private: 41 bool _is_osr; 42 float _expected_uses; 43 44 public: 45 ParseGenerator(ciMethod* method, float expected_uses, bool is_osr = false) 46 : InlineCallGenerator(method) | 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "ci/bcEscapeAnalyzer.hpp" 27 #include "ci/ciCPCache.hpp" 28 #include "ci/ciMethodHandle.hpp" 29 #include "classfile/javaClasses.hpp" 30 #include "compiler/compileLog.hpp" 31 #include "opto/addnode.hpp" 32 #include "opto/callGenerator.hpp" 33 #include "opto/callnode.hpp" 34 #include "opto/cfgnode.hpp" 35 #include "opto/connode.hpp" 36 #include "opto/parse.hpp" 37 #include "opto/rootnode.hpp" 38 #include "opto/runtime.hpp" 39 #include "opto/subnode.hpp" 40 41 CallGenerator::CallGenerator(ciMethod* method) { 42 _method = method; 43 } 44 45 // Utility function. 46 const TypeFunc* CallGenerator::tf() const { 47 return TypeFunc::make(method()); 48 } 49 50 //-----------------------------ParseGenerator--------------------------------- 51 // Internal class which handles all direct bytecode traversal. 52 class ParseGenerator : public InlineCallGenerator { 53 private: 54 bool _is_osr; 55 float _expected_uses; 56 57 public: 58 ParseGenerator(ciMethod* method, float expected_uses, bool is_osr = false) 59 : InlineCallGenerator(method) |