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/_c2compiler.cpp.incl" 27 28 29 volatile int C2Compiler::_runtimes = uninitialized; 30 31 // register information defined by ADLC 32 extern const char register_save_policy[]; 33 extern const int register_save_type[]; 34 35 const char* C2Compiler::retry_no_subsuming_loads() { 36 return "retry without subsuming loads"; 37 } 38 const char* C2Compiler::retry_no_escape_analysis() { 39 return "retry without escape analysis"; 40 } 41 void C2Compiler::initialize_runtime() { 42 43 // Check assumptions used while running ADLC 44 Compile::adlc_verification(); 45 assert(REG_COUNT <= ConcreteRegisterImpl::number_of_registers, "incompatible register counts"); 46 | 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 "opto/c2compiler.hpp" 27 #include "opto/runtime.hpp" 28 #ifdef TARGET_ARCH_MODEL_x86_32 29 # include "adfiles/ad_x86_32.hpp" 30 #endif 31 #ifdef TARGET_ARCH_MODEL_x86_64 32 # include "adfiles/ad_x86_64.hpp" 33 #endif 34 #ifdef TARGET_ARCH_MODEL_sparc 35 # include "adfiles/ad_sparc.hpp" 36 #endif 37 #ifdef TARGET_ARCH_MODEL_zero 38 # include "adfiles/ad_zero.hpp" 39 #endif 40 41 42 volatile int C2Compiler::_runtimes = uninitialized; 43 44 // register information defined by ADLC 45 extern const char register_save_policy[]; 46 extern const int register_save_type[]; 47 48 const char* C2Compiler::retry_no_subsuming_loads() { 49 return "retry without subsuming loads"; 50 } 51 const char* C2Compiler::retry_no_escape_analysis() { 52 return "retry without escape analysis"; 53 } 54 void C2Compiler::initialize_runtime() { 55 56 // Check assumptions used while running ADLC 57 Compile::adlc_verification(); 58 assert(REG_COUNT <= ConcreteRegisterImpl::number_of_registers, "incompatible register counts"); 59 |