annotate src/hotspot/cpu/s390/c1_LinearScan_s390.hpp @ 49945:d7df2dd501ce

8199809: Don't include frame.inline.hpp and other.inline.hpp from .hpp files Summary: Remove frame.inline.hpp,etc from header files and adjust transitive includes. Reviewed-by: stefank, stuefe
author coleenp
date Wed, 21 Mar 2018 19:45:24 -0400
parents 6032b31e3719
children 9807daeb47c4
rev   line source
goetz@42065 1 /*
goetz@42065 2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
goetz@42065 3 * Copyright (c) 2016 SAP SE. All rights reserved.
goetz@42065 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
goetz@42065 5 *
goetz@42065 6 * This code is free software; you can redistribute it and/or modify it
goetz@42065 7 * under the terms of the GNU General Public License version 2 only, as
goetz@42065 8 * published by the Free Software Foundation.
goetz@42065 9 *
goetz@42065 10 * This code is distributed in the hope that it will be useful, but WITHOUT
goetz@42065 11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
goetz@42065 12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
goetz@42065 13 * version 2 for more details (a copy is included in the LICENSE file that
goetz@42065 14 * accompanied this code).
goetz@42065 15 *
goetz@42065 16 * You should have received a copy of the GNU General Public License version
goetz@42065 17 * 2 along with this work; if not, write to the Free Software Foundation,
goetz@42065 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
goetz@42065 19 *
goetz@42065 20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
goetz@42065 21 * or visit www.oracle.com if you need additional information or have any
goetz@42065 22 * questions.
goetz@42065 23 *
goetz@42065 24 */
goetz@42065 25
goetz@42065 26 #ifndef CPU_S390_VM_C1_LINEARSCAN_S390_HPP
goetz@42065 27 #define CPU_S390_VM_C1_LINEARSCAN_S390_HPP
goetz@42065 28
goetz@42065 29 inline bool LinearScan::is_processed_reg_num(int reg_num) {
goetz@42065 30 // unallocated: Z_thread, Z_fp, Z_SP, Z_R0_scratch, Z_R1_scratch, Z_R14
goetz@42065 31 assert(FrameMap::Z_R14_opr->cpu_regnr() == 10, "wrong assumption below");
goetz@42065 32 assert(FrameMap::Z_R0_opr->cpu_regnr() == 11, "wrong assumption below");
goetz@42065 33 assert(FrameMap::Z_R1_opr->cpu_regnr() == 12, "wrong assumption below");
goetz@42065 34 assert(FrameMap::Z_R8_opr->cpu_regnr() == 13, "wrong assumption below");
goetz@42065 35 assert(FrameMap::Z_R9_opr->cpu_regnr() == 14, "wrong assumption below");
goetz@42065 36 assert(FrameMap::Z_R15_opr->cpu_regnr() == 15, "wrong assumption below");
goetz@42065 37 assert(reg_num >= 0, "invalid reg_num");
goetz@42065 38 return reg_num <= FrameMap::last_cpu_reg() || reg_num >= pd_nof_cpu_regs_frame_map;
goetz@42065 39 }
goetz@42065 40
goetz@42065 41 inline int LinearScan::num_physical_regs(BasicType type) {
goetz@42065 42 // IBM Z requires one cpu registers for long,
goetz@42065 43 // and one fpu register for double.
goetz@42065 44 return 1;
goetz@42065 45 }
goetz@42065 46
goetz@42065 47 inline bool LinearScan::requires_adjacent_regs(BasicType type) {
goetz@42065 48 return false;
goetz@42065 49 }
goetz@42065 50
goetz@42065 51 inline bool LinearScan::is_caller_save(int assigned_reg) {
goetz@42065 52 assert(assigned_reg >= 0 && assigned_reg < nof_regs, "should call this only for registers");
goetz@42065 53 return true; // No callee-saved registers on IBM Z.
goetz@42065 54 }
goetz@42065 55
goetz@42065 56 inline void LinearScan::pd_add_temps(LIR_Op* op) {
goetz@42065 57 // No special case behaviours.
goetz@42065 58 }
goetz@42065 59
goetz@42065 60 inline bool LinearScanWalker::pd_init_regs_for_alloc(Interval* cur) {
goetz@42065 61 return false; // No special case behaviours.
goetz@42065 62 }
goetz@42065 63
goetz@42065 64 #endif // CPU_S390_VM_C1_LINEARSCAN_S390_HPP