< prev index next >

src/hotspot/share/opto/type.hpp

Print this page


   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  *


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


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


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


1819 // Opcodes
1820 #define Op_LShiftX   Op_LShiftI
1821 #define Op_AndX      Op_AndI
1822 #define Op_AddX      Op_AddI
1823 #define Op_SubX      Op_SubI
1824 #define Op_XorX      Op_XorI
1825 #define Op_URShiftX  Op_URShiftI
1826 // conversions
1827 #define ConvI2X(x)   (x)
1828 #define ConvL2X(x)   ConvL2I(x)
1829 #define ConvX2I(x)   (x)
1830 #define ConvX2L(x)   ConvI2L(x)
1831 #define ConvX2UL(x)  ConvI2UL(x)
1832 
1833 #endif
1834 
1835 #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  *


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


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