< prev index next >

src/hotspot/share/opto/type.hpp

Print this page
rev 52710 : Upstream/backport Shenandoah to JDK11u
   1 /*
   2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


1753 // For 'ideal_reg' machine registers
1754 #define Op_RegX      Op_RegL
1755 // For phase->intcon variants
1756 #define MakeConX     longcon
1757 #define ConXNode     ConLNode
1758 // For array index arithmetic
1759 #define MulXNode     MulLNode
1760 #define AndXNode     AndLNode
1761 #define OrXNode      OrLNode
1762 #define CmpXNode     CmpLNode
1763 #define SubXNode     SubLNode
1764 #define LShiftXNode  LShiftLNode
1765 // For object size computation:
1766 #define AddXNode     AddLNode
1767 #define RShiftXNode  RShiftLNode
1768 // For card marks and hashcodes
1769 #define URShiftXNode URShiftLNode
1770 // UseOptoBiasInlining
1771 #define XorXNode     XorLNode
1772 #define StoreXConditionalNode StoreLConditionalNode


1773 // Opcodes
1774 #define Op_LShiftX   Op_LShiftL
1775 #define Op_AndX      Op_AndL
1776 #define Op_AddX      Op_AddL
1777 #define Op_SubX      Op_SubL
1778 #define Op_XorX      Op_XorL
1779 #define Op_URShiftX  Op_URShiftL
1780 // conversions
1781 #define ConvI2X(x)   ConvI2L(x)
1782 #define ConvL2X(x)   (x)
1783 #define ConvX2I(x)   ConvL2I(x)
1784 #define ConvX2L(x)   (x)
1785 #define ConvX2UL(x)  (x)
1786 
1787 #else
1788 
1789 // For type queries and asserts
1790 #define is_intptr_t  is_int
1791 #define isa_intptr_t isa_int
1792 #define find_intptr_t_type find_int_type


1798 // For 'ideal_reg' machine registers
1799 #define Op_RegX      Op_RegI
1800 // For phase->intcon variants
1801 #define MakeConX     intcon
1802 #define ConXNode     ConINode
1803 // For array index arithmetic
1804 #define MulXNode     MulINode
1805 #define AndXNode     AndINode
1806 #define OrXNode      OrINode
1807 #define CmpXNode     CmpINode
1808 #define SubXNode     SubINode
1809 #define LShiftXNode  LShiftINode
1810 // For object size computation:
1811 #define AddXNode     AddINode
1812 #define RShiftXNode  RShiftINode
1813 // For card marks and hashcodes
1814 #define URShiftXNode URShiftINode
1815 // UseOptoBiasInlining
1816 #define XorXNode     XorINode
1817 #define StoreXConditionalNode StoreIConditionalNode


1818 // Opcodes
1819 #define Op_LShiftX   Op_LShiftI
1820 #define Op_AndX      Op_AndI
1821 #define Op_AddX      Op_AddI
1822 #define Op_SubX      Op_SubI
1823 #define Op_XorX      Op_XorI
1824 #define Op_URShiftX  Op_URShiftI
1825 // conversions
1826 #define ConvI2X(x)   (x)
1827 #define ConvL2X(x)   ConvL2I(x)
1828 #define ConvX2I(x)   (x)
1829 #define ConvX2L(x)   ConvI2L(x)
1830 #define ConvX2UL(x)  ConvI2UL(x)
1831 
1832 #endif
1833 
1834 #endif // SHARE_VM_OPTO_TYPE_HPP
   1 /*
   2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   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  *


1753 // For 'ideal_reg' machine registers
1754 #define Op_RegX      Op_RegL
1755 // For phase->intcon variants
1756 #define MakeConX     longcon
1757 #define ConXNode     ConLNode
1758 // For array index arithmetic
1759 #define MulXNode     MulLNode
1760 #define AndXNode     AndLNode
1761 #define OrXNode      OrLNode
1762 #define CmpXNode     CmpLNode
1763 #define SubXNode     SubLNode
1764 #define LShiftXNode  LShiftLNode
1765 // For object size computation:
1766 #define AddXNode     AddLNode
1767 #define RShiftXNode  RShiftLNode
1768 // For card marks and hashcodes
1769 #define URShiftXNode URShiftLNode
1770 // UseOptoBiasInlining
1771 #define XorXNode     XorLNode
1772 #define StoreXConditionalNode StoreLConditionalNode
1773 #define LoadXNode    LoadLNode
1774 #define StoreXNode   StoreLNode
1775 // Opcodes
1776 #define Op_LShiftX   Op_LShiftL
1777 #define Op_AndX      Op_AndL
1778 #define Op_AddX      Op_AddL
1779 #define Op_SubX      Op_SubL
1780 #define Op_XorX      Op_XorL
1781 #define Op_URShiftX  Op_URShiftL
1782 // conversions
1783 #define ConvI2X(x)   ConvI2L(x)
1784 #define ConvL2X(x)   (x)
1785 #define ConvX2I(x)   ConvL2I(x)
1786 #define ConvX2L(x)   (x)
1787 #define ConvX2UL(x)  (x)
1788 
1789 #else
1790 
1791 // For type queries and asserts
1792 #define is_intptr_t  is_int
1793 #define isa_intptr_t isa_int
1794 #define find_intptr_t_type find_int_type


1800 // For 'ideal_reg' machine registers
1801 #define Op_RegX      Op_RegI
1802 // For phase->intcon variants
1803 #define MakeConX     intcon
1804 #define ConXNode     ConINode
1805 // For array index arithmetic
1806 #define MulXNode     MulINode
1807 #define AndXNode     AndINode
1808 #define OrXNode      OrINode
1809 #define CmpXNode     CmpINode
1810 #define SubXNode     SubINode
1811 #define LShiftXNode  LShiftINode
1812 // For object size computation:
1813 #define AddXNode     AddINode
1814 #define RShiftXNode  RShiftINode
1815 // For card marks and hashcodes
1816 #define URShiftXNode URShiftINode
1817 // UseOptoBiasInlining
1818 #define XorXNode     XorINode
1819 #define StoreXConditionalNode StoreIConditionalNode
1820 #define LoadXNode    LoadINode
1821 #define StoreXNode   StoreINode
1822 // Opcodes
1823 #define Op_LShiftX   Op_LShiftI
1824 #define Op_AndX      Op_AndI
1825 #define Op_AddX      Op_AddI
1826 #define Op_SubX      Op_SubI
1827 #define Op_XorX      Op_XorI
1828 #define Op_URShiftX  Op_URShiftI
1829 // conversions
1830 #define ConvI2X(x)   (x)
1831 #define ConvL2X(x)   ConvL2I(x)
1832 #define ConvX2I(x)   (x)
1833 #define ConvX2L(x)   ConvI2L(x)
1834 #define ConvX2UL(x)  ConvI2UL(x)
1835 
1836 #endif
1837 
1838 #endif // SHARE_VM_OPTO_TYPE_HPP
< prev index next >