< prev index next >

src/hotspot/share/opto/node.hpp

Print this page

  67 class CheckCastPPNode;
  68 class ClearArrayNode;
  69 class CmpNode;
  70 class CodeBuffer;
  71 class ConstraintCastNode;
  72 class ConNode;
  73 class ConINode;
  74 class ConvertNode;
  75 class CompareAndSwapNode;
  76 class CompareAndExchangeNode;
  77 class CountedLoopNode;
  78 class CountedLoopEndNode;
  79 class DecodeNarrowPtrNode;
  80 class DecodeNNode;
  81 class DecodeNKlassNode;
  82 class EncodeNarrowPtrNode;
  83 class EncodePNode;
  84 class EncodePKlassNode;
  85 class FastLockNode;
  86 class FastUnlockNode;

  87 class HaltNode;
  88 class IfNode;
  89 class IfProjNode;
  90 class IfFalseNode;
  91 class IfTrueNode;
  92 class InitializeNode;
  93 class JVMState;
  94 class JumpNode;
  95 class JumpProjNode;
  96 class LoadNode;
  97 class LoadStoreNode;
  98 class LoadStoreConditionalNode;
  99 class LockNode;
 100 class LongCountedLoopNode;
 101 class LongCountedLoopEndNode;
 102 class LoopNode;
 103 class LShiftNode;
 104 class MachBranchNode;
 105 class MachCallDynamicJavaNode;
 106 class MachCallJavaNode;
 107 class MachCallLeafNode;
 108 class MachCallNode;
 109 class MachCallRuntimeNode;
 110 class MachCallStaticJavaNode;
 111 class MachConstantBaseNode;
 112 class MachConstantNode;
 113 class MachGotoNode;
 114 class MachIfNode;
 115 class MachJumpNode;
 116 class MachNode;
 117 class MachNullCheckNode;
 118 class MachProjNode;

 119 class MachReturnNode;
 120 class MachSafePointNode;
 121 class MachSpillCopyNode;
 122 class MachTempNode;
 123 class MachMergeNode;
 124 class MachMemBarNode;

 125 class Matcher;
 126 class MemBarNode;
 127 class MemBarStoreStoreNode;
 128 class MemNode;
 129 class MergeMemNode;
 130 class MoveNode;
 131 class MulNode;
 132 class MultiNode;
 133 class MultiBranchNode;
 134 class NegNode;
 135 class NegVNode;
 136 class NeverBranchNode;
 137 class Opaque1Node;
 138 class OpaqueLoopInitNode;
 139 class OpaqueLoopStrideNode;
 140 class Opaque4Node;
 141 class OpaqueInitializedAssertionPredicateNode;
 142 class OuterStripMinedLoopNode;
 143 class OuterStripMinedLoopEndNode;
 144 class Node;

 158 class PhiNode;
 159 class Pipeline;
 160 class PopulateIndexNode;
 161 class ProjNode;
 162 class RangeCheckNode;
 163 class ReductionNode;
 164 class RegMask;
 165 class RegionNode;
 166 class RootNode;
 167 class SafePointNode;
 168 class SafePointScalarObjectNode;
 169 class SafePointScalarMergeNode;
 170 class StartNode;
 171 class State;
 172 class StoreNode;
 173 class SubNode;
 174 class SubTypeCheckNode;
 175 class Type;
 176 class TypeNode;
 177 class UnlockNode;

 178 class VectorNode;
 179 class LoadVectorNode;
 180 class LoadVectorMaskedNode;
 181 class StoreVectorMaskedNode;
 182 class LoadVectorGatherNode;
 183 class LoadVectorGatherMaskedNode;
 184 class StoreVectorNode;
 185 class StoreVectorScatterNode;
 186 class StoreVectorScatterMaskedNode;
 187 class VerifyVectorAlignmentNode;
 188 class VectorMaskCmpNode;
 189 class VectorUnboxNode;
 190 class VectorSet;
 191 class VectorReinterpretNode;
 192 class ShiftVNode;
 193 class ExpandVNode;
 194 class CompressVNode;
 195 class CompressMNode;
 196 class C2_MacroAssembler;
 197 

 672           DEFINE_CLASS_ID(AbstractLock,     Call, 3)
 673             DEFINE_CLASS_ID(Lock,             AbstractLock, 0)
 674             DEFINE_CLASS_ID(Unlock,           AbstractLock, 1)
 675           DEFINE_CLASS_ID(ArrayCopy,        Call, 4)
 676       DEFINE_CLASS_ID(MultiBranch, Multi, 1)
 677         DEFINE_CLASS_ID(PCTable,     MultiBranch, 0)
 678           DEFINE_CLASS_ID(Catch,       PCTable, 0)
 679           DEFINE_CLASS_ID(Jump,        PCTable, 1)
 680         DEFINE_CLASS_ID(If,          MultiBranch, 1)
 681           DEFINE_CLASS_ID(BaseCountedLoopEnd,     If, 0)
 682             DEFINE_CLASS_ID(CountedLoopEnd,       BaseCountedLoopEnd, 0)
 683             DEFINE_CLASS_ID(LongCountedLoopEnd,   BaseCountedLoopEnd, 1)
 684           DEFINE_CLASS_ID(RangeCheck,             If, 1)
 685           DEFINE_CLASS_ID(OuterStripMinedLoopEnd, If, 2)
 686           DEFINE_CLASS_ID(ParsePredicate,         If, 3)
 687         DEFINE_CLASS_ID(NeverBranch, MultiBranch, 2)
 688       DEFINE_CLASS_ID(Start,       Multi, 2)
 689       DEFINE_CLASS_ID(MemBar,      Multi, 3)
 690         DEFINE_CLASS_ID(Initialize,       MemBar, 0)
 691         DEFINE_CLASS_ID(MemBarStoreStore, MemBar, 1)

 692 
 693     DEFINE_CLASS_ID(Mach,  Node, 1)
 694       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 695         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 696           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 697             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 698               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 699               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 700             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 701               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 702       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 703         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 704         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 705         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 706       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 707       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 708       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 709       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 710         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 711       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 712       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)


 713 
 714     DEFINE_CLASS_ID(Type,  Node, 2)
 715       DEFINE_CLASS_ID(Phi,   Type, 0)
 716       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 717         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 718         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 719         DEFINE_CLASS_ID(CastLL, ConstraintCast, 2)
 720         DEFINE_CLASS_ID(CastFF, ConstraintCast, 3)
 721         DEFINE_CLASS_ID(CastDD, ConstraintCast, 4)
 722         DEFINE_CLASS_ID(CastVV, ConstraintCast, 5)
 723         DEFINE_CLASS_ID(CastPP, ConstraintCast, 6)
 724       DEFINE_CLASS_ID(CMove, Type, 3)
 725       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 726       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 727         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 728         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 729       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 730         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 731         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 732       DEFINE_CLASS_ID(Vector, Type, 7)
 733         DEFINE_CLASS_ID(VectorMaskCmp, Vector, 0)
 734         DEFINE_CLASS_ID(VectorUnbox, Vector, 1)
 735         DEFINE_CLASS_ID(VectorReinterpret, Vector, 2)
 736         DEFINE_CLASS_ID(ShiftV, Vector, 3)
 737         DEFINE_CLASS_ID(CompressV, Vector, 4)
 738         DEFINE_CLASS_ID(ExpandV, Vector, 5)
 739         DEFINE_CLASS_ID(CompressM, Vector, 6)
 740         DEFINE_CLASS_ID(Reduction, Vector, 7)
 741         DEFINE_CLASS_ID(NegV, Vector, 8)
 742       DEFINE_CLASS_ID(Con, Type, 8)

 743           DEFINE_CLASS_ID(ConI, Con, 0)
 744       DEFINE_CLASS_ID(SafePointScalarMerge, Type, 9)
 745       DEFINE_CLASS_ID(Convert, Type, 10)
 746 
 747 
 748     DEFINE_CLASS_ID(Proj,  Node, 3)
 749       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 750       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 751       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 752         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 753         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 754       DEFINE_CLASS_ID(Parm,      Proj, 4)
 755       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 756 
 757     DEFINE_CLASS_ID(Mem, Node, 4)
 758       DEFINE_CLASS_ID(Load, Mem, 0)
 759         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 760           DEFINE_CLASS_ID(LoadVectorGather, LoadVector, 0)
 761           DEFINE_CLASS_ID(LoadVectorGatherMasked, LoadVector, 1)
 762           DEFINE_CLASS_ID(LoadVectorMasked, LoadVector, 2)
 763       DEFINE_CLASS_ID(Store, Mem, 1)
 764         DEFINE_CLASS_ID(StoreVector, Store, 0)
 765           DEFINE_CLASS_ID(StoreVectorScatter, StoreVector, 0)
 766           DEFINE_CLASS_ID(StoreVectorScatterMasked, StoreVector, 1)
 767           DEFINE_CLASS_ID(StoreVectorMasked, StoreVector, 2)
 768       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 769         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 770           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)
 771         DEFINE_CLASS_ID(CompareAndExchangeNode, LoadStore, 1)
 772 
 773     DEFINE_CLASS_ID(Region, Node, 5)
 774       DEFINE_CLASS_ID(Loop, Region, 0)
 775         DEFINE_CLASS_ID(Root,                Loop, 0)
 776         DEFINE_CLASS_ID(BaseCountedLoop,     Loop, 1)
 777           DEFINE_CLASS_ID(CountedLoop,       BaseCountedLoop, 0)
 778           DEFINE_CLASS_ID(LongCountedLoop,   BaseCountedLoop, 1)
 779         DEFINE_CLASS_ID(OuterStripMinedLoop, Loop, 2)
 780 
 781     DEFINE_CLASS_ID(Sub,   Node, 6)
 782       DEFINE_CLASS_ID(Cmp,   Sub, 0)
 783         DEFINE_CLASS_ID(FastLock,   Cmp, 0)
 784         DEFINE_CLASS_ID(FastUnlock, Cmp, 1)
 785         DEFINE_CLASS_ID(SubTypeCheck,Cmp, 2)

 786 
 787     DEFINE_CLASS_ID(MergeMem, Node, 7)
 788     DEFINE_CLASS_ID(Bool,     Node, 8)
 789     DEFINE_CLASS_ID(AddP,     Node, 9)
 790     DEFINE_CLASS_ID(BoxLock,  Node, 10)
 791     DEFINE_CLASS_ID(Add,      Node, 11)
 792     DEFINE_CLASS_ID(Mul,      Node, 12)
 793     DEFINE_CLASS_ID(ClearArray, Node, 14)
 794     DEFINE_CLASS_ID(Halt,     Node, 15)
 795     DEFINE_CLASS_ID(Opaque1,  Node, 16)
 796       DEFINE_CLASS_ID(OpaqueLoopInit, Opaque1, 0)
 797       DEFINE_CLASS_ID(OpaqueLoopStride, Opaque1, 1)
 798     DEFINE_CLASS_ID(Opaque4,  Node, 17)
 799     DEFINE_CLASS_ID(OpaqueInitializedAssertionPredicate,  Node, 18)
 800     DEFINE_CLASS_ID(Move,     Node, 19)
 801     DEFINE_CLASS_ID(LShift,   Node, 20)
 802     DEFINE_CLASS_ID(Neg,      Node, 21)
 803 
 804     _max_classes  = ClassMask_Neg
 805   };

 869   #define DEFINE_CLASS_QUERY(type)                           \
 870   bool is_##type() const {                                   \
 871     return ((_class_id & ClassMask_##type) == Class_##type); \
 872   }                                                          \
 873   type##Node *as_##type() const {                            \
 874     assert(is_##type(), "invalid node class: %s", Name());   \
 875     return (type##Node*)this;                                \
 876   }                                                          \
 877   type##Node* isa_##type() const {                           \
 878     return (is_##type()) ? as_##type() : nullptr;            \
 879   }
 880 
 881   DEFINE_CLASS_QUERY(AbstractLock)
 882   DEFINE_CLASS_QUERY(Add)
 883   DEFINE_CLASS_QUERY(AddP)
 884   DEFINE_CLASS_QUERY(Allocate)
 885   DEFINE_CLASS_QUERY(AllocateArray)
 886   DEFINE_CLASS_QUERY(ArrayCopy)
 887   DEFINE_CLASS_QUERY(BaseCountedLoop)
 888   DEFINE_CLASS_QUERY(BaseCountedLoopEnd)

 889   DEFINE_CLASS_QUERY(Bool)
 890   DEFINE_CLASS_QUERY(BoxLock)
 891   DEFINE_CLASS_QUERY(Call)
 892   DEFINE_CLASS_QUERY(CallDynamicJava)
 893   DEFINE_CLASS_QUERY(CallJava)
 894   DEFINE_CLASS_QUERY(CallLeaf)
 895   DEFINE_CLASS_QUERY(CallLeafNoFP)
 896   DEFINE_CLASS_QUERY(CallRuntime)
 897   DEFINE_CLASS_QUERY(CallStaticJava)
 898   DEFINE_CLASS_QUERY(Catch)
 899   DEFINE_CLASS_QUERY(CatchProj)
 900   DEFINE_CLASS_QUERY(CheckCastPP)
 901   DEFINE_CLASS_QUERY(CastII)
 902   DEFINE_CLASS_QUERY(CastLL)
 903   DEFINE_CLASS_QUERY(ConI)
 904   DEFINE_CLASS_QUERY(CastPP)
 905   DEFINE_CLASS_QUERY(ConstraintCast)
 906   DEFINE_CLASS_QUERY(ClearArray)
 907   DEFINE_CLASS_QUERY(CMove)
 908   DEFINE_CLASS_QUERY(Cmp)
 909   DEFINE_CLASS_QUERY(Convert)
 910   DEFINE_CLASS_QUERY(CountedLoop)
 911   DEFINE_CLASS_QUERY(CountedLoopEnd)
 912   DEFINE_CLASS_QUERY(DecodeNarrowPtr)
 913   DEFINE_CLASS_QUERY(DecodeN)
 914   DEFINE_CLASS_QUERY(DecodeNKlass)
 915   DEFINE_CLASS_QUERY(EncodeNarrowPtr)
 916   DEFINE_CLASS_QUERY(EncodeP)
 917   DEFINE_CLASS_QUERY(EncodePKlass)
 918   DEFINE_CLASS_QUERY(FastLock)
 919   DEFINE_CLASS_QUERY(FastUnlock)

 920   DEFINE_CLASS_QUERY(Halt)
 921   DEFINE_CLASS_QUERY(If)
 922   DEFINE_CLASS_QUERY(RangeCheck)
 923   DEFINE_CLASS_QUERY(IfProj)
 924   DEFINE_CLASS_QUERY(IfFalse)
 925   DEFINE_CLASS_QUERY(IfTrue)
 926   DEFINE_CLASS_QUERY(Initialize)
 927   DEFINE_CLASS_QUERY(Jump)
 928   DEFINE_CLASS_QUERY(JumpProj)
 929   DEFINE_CLASS_QUERY(LongCountedLoop)
 930   DEFINE_CLASS_QUERY(LongCountedLoopEnd)
 931   DEFINE_CLASS_QUERY(Load)
 932   DEFINE_CLASS_QUERY(LoadStore)
 933   DEFINE_CLASS_QUERY(LoadStoreConditional)
 934   DEFINE_CLASS_QUERY(Lock)
 935   DEFINE_CLASS_QUERY(Loop)
 936   DEFINE_CLASS_QUERY(LShift)
 937   DEFINE_CLASS_QUERY(Mach)
 938   DEFINE_CLASS_QUERY(MachBranch)
 939   DEFINE_CLASS_QUERY(MachCall)
 940   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 941   DEFINE_CLASS_QUERY(MachCallJava)
 942   DEFINE_CLASS_QUERY(MachCallLeaf)
 943   DEFINE_CLASS_QUERY(MachCallRuntime)
 944   DEFINE_CLASS_QUERY(MachCallStaticJava)
 945   DEFINE_CLASS_QUERY(MachConstantBase)
 946   DEFINE_CLASS_QUERY(MachConstant)
 947   DEFINE_CLASS_QUERY(MachGoto)
 948   DEFINE_CLASS_QUERY(MachIf)
 949   DEFINE_CLASS_QUERY(MachJump)
 950   DEFINE_CLASS_QUERY(MachNullCheck)
 951   DEFINE_CLASS_QUERY(MachProj)

 952   DEFINE_CLASS_QUERY(MachReturn)
 953   DEFINE_CLASS_QUERY(MachSafePoint)
 954   DEFINE_CLASS_QUERY(MachSpillCopy)
 955   DEFINE_CLASS_QUERY(MachTemp)
 956   DEFINE_CLASS_QUERY(MachMemBar)
 957   DEFINE_CLASS_QUERY(MachMerge)

 958   DEFINE_CLASS_QUERY(Mem)
 959   DEFINE_CLASS_QUERY(MemBar)
 960   DEFINE_CLASS_QUERY(MemBarStoreStore)
 961   DEFINE_CLASS_QUERY(MergeMem)
 962   DEFINE_CLASS_QUERY(Move)
 963   DEFINE_CLASS_QUERY(Mul)
 964   DEFINE_CLASS_QUERY(Multi)
 965   DEFINE_CLASS_QUERY(MultiBranch)
 966   DEFINE_CLASS_QUERY(Neg)
 967   DEFINE_CLASS_QUERY(NegV)
 968   DEFINE_CLASS_QUERY(NeverBranch)
 969   DEFINE_CLASS_QUERY(Opaque1)
 970   DEFINE_CLASS_QUERY(Opaque4)
 971   DEFINE_CLASS_QUERY(OpaqueInitializedAssertionPredicate)
 972   DEFINE_CLASS_QUERY(OpaqueLoopInit)
 973   DEFINE_CLASS_QUERY(OpaqueLoopStride)
 974   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 975   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 976   DEFINE_CLASS_QUERY(Parm)
 977   DEFINE_CLASS_QUERY(ParsePredicate)
 978   DEFINE_CLASS_QUERY(PCTable)
 979   DEFINE_CLASS_QUERY(Phi)
 980   DEFINE_CLASS_QUERY(Proj)
 981   DEFINE_CLASS_QUERY(Reduction)
 982   DEFINE_CLASS_QUERY(Region)
 983   DEFINE_CLASS_QUERY(Root)
 984   DEFINE_CLASS_QUERY(SafePoint)
 985   DEFINE_CLASS_QUERY(SafePointScalarObject)
 986   DEFINE_CLASS_QUERY(SafePointScalarMerge)
 987   DEFINE_CLASS_QUERY(Start)
 988   DEFINE_CLASS_QUERY(Store)
 989   DEFINE_CLASS_QUERY(Sub)
 990   DEFINE_CLASS_QUERY(SubTypeCheck)
 991   DEFINE_CLASS_QUERY(Type)

 992   DEFINE_CLASS_QUERY(Vector)
 993   DEFINE_CLASS_QUERY(VectorMaskCmp)
 994   DEFINE_CLASS_QUERY(VectorUnbox)
 995   DEFINE_CLASS_QUERY(VectorReinterpret)
 996   DEFINE_CLASS_QUERY(CompressV)
 997   DEFINE_CLASS_QUERY(ExpandV)
 998   DEFINE_CLASS_QUERY(CompressM)
 999   DEFINE_CLASS_QUERY(LoadVector)
1000   DEFINE_CLASS_QUERY(LoadVectorGather)
1001   DEFINE_CLASS_QUERY(LoadVectorMasked)
1002   DEFINE_CLASS_QUERY(LoadVectorGatherMasked)
1003   DEFINE_CLASS_QUERY(StoreVector)
1004   DEFINE_CLASS_QUERY(StoreVectorScatter)
1005   DEFINE_CLASS_QUERY(StoreVectorMasked)
1006   DEFINE_CLASS_QUERY(StoreVectorScatterMasked)
1007   DEFINE_CLASS_QUERY(ShiftV)
1008   DEFINE_CLASS_QUERY(Unlock)
1009 
1010   #undef DEFINE_CLASS_QUERY
1011 

  67 class CheckCastPPNode;
  68 class ClearArrayNode;
  69 class CmpNode;
  70 class CodeBuffer;
  71 class ConstraintCastNode;
  72 class ConNode;
  73 class ConINode;
  74 class ConvertNode;
  75 class CompareAndSwapNode;
  76 class CompareAndExchangeNode;
  77 class CountedLoopNode;
  78 class CountedLoopEndNode;
  79 class DecodeNarrowPtrNode;
  80 class DecodeNNode;
  81 class DecodeNKlassNode;
  82 class EncodeNarrowPtrNode;
  83 class EncodePNode;
  84 class EncodePKlassNode;
  85 class FastLockNode;
  86 class FastUnlockNode;
  87 class FlatArrayCheckNode;
  88 class HaltNode;
  89 class IfNode;
  90 class IfProjNode;
  91 class IfFalseNode;
  92 class IfTrueNode;
  93 class InitializeNode;
  94 class JVMState;
  95 class JumpNode;
  96 class JumpProjNode;
  97 class LoadNode;
  98 class LoadStoreNode;
  99 class LoadStoreConditionalNode;
 100 class LockNode;
 101 class LongCountedLoopNode;
 102 class LongCountedLoopEndNode;
 103 class LoopNode;
 104 class LShiftNode;
 105 class MachBranchNode;
 106 class MachCallDynamicJavaNode;
 107 class MachCallJavaNode;
 108 class MachCallLeafNode;
 109 class MachCallNode;
 110 class MachCallRuntimeNode;
 111 class MachCallStaticJavaNode;
 112 class MachConstantBaseNode;
 113 class MachConstantNode;
 114 class MachGotoNode;
 115 class MachIfNode;
 116 class MachJumpNode;
 117 class MachNode;
 118 class MachNullCheckNode;
 119 class MachProjNode;
 120 class MachPrologNode;
 121 class MachReturnNode;
 122 class MachSafePointNode;
 123 class MachSpillCopyNode;
 124 class MachTempNode;
 125 class MachMergeNode;
 126 class MachMemBarNode;
 127 class MachVEPNode;
 128 class Matcher;
 129 class MemBarNode;
 130 class MemBarStoreStoreNode;
 131 class MemNode;
 132 class MergeMemNode;
 133 class MoveNode;
 134 class MulNode;
 135 class MultiNode;
 136 class MultiBranchNode;
 137 class NegNode;
 138 class NegVNode;
 139 class NeverBranchNode;
 140 class Opaque1Node;
 141 class OpaqueLoopInitNode;
 142 class OpaqueLoopStrideNode;
 143 class Opaque4Node;
 144 class OpaqueInitializedAssertionPredicateNode;
 145 class OuterStripMinedLoopNode;
 146 class OuterStripMinedLoopEndNode;
 147 class Node;

 161 class PhiNode;
 162 class Pipeline;
 163 class PopulateIndexNode;
 164 class ProjNode;
 165 class RangeCheckNode;
 166 class ReductionNode;
 167 class RegMask;
 168 class RegionNode;
 169 class RootNode;
 170 class SafePointNode;
 171 class SafePointScalarObjectNode;
 172 class SafePointScalarMergeNode;
 173 class StartNode;
 174 class State;
 175 class StoreNode;
 176 class SubNode;
 177 class SubTypeCheckNode;
 178 class Type;
 179 class TypeNode;
 180 class UnlockNode;
 181 class InlineTypeNode;
 182 class VectorNode;
 183 class LoadVectorNode;
 184 class LoadVectorMaskedNode;
 185 class StoreVectorMaskedNode;
 186 class LoadVectorGatherNode;
 187 class LoadVectorGatherMaskedNode;
 188 class StoreVectorNode;
 189 class StoreVectorScatterNode;
 190 class StoreVectorScatterMaskedNode;
 191 class VerifyVectorAlignmentNode;
 192 class VectorMaskCmpNode;
 193 class VectorUnboxNode;
 194 class VectorSet;
 195 class VectorReinterpretNode;
 196 class ShiftVNode;
 197 class ExpandVNode;
 198 class CompressVNode;
 199 class CompressMNode;
 200 class C2_MacroAssembler;
 201 

 676           DEFINE_CLASS_ID(AbstractLock,     Call, 3)
 677             DEFINE_CLASS_ID(Lock,             AbstractLock, 0)
 678             DEFINE_CLASS_ID(Unlock,           AbstractLock, 1)
 679           DEFINE_CLASS_ID(ArrayCopy,        Call, 4)
 680       DEFINE_CLASS_ID(MultiBranch, Multi, 1)
 681         DEFINE_CLASS_ID(PCTable,     MultiBranch, 0)
 682           DEFINE_CLASS_ID(Catch,       PCTable, 0)
 683           DEFINE_CLASS_ID(Jump,        PCTable, 1)
 684         DEFINE_CLASS_ID(If,          MultiBranch, 1)
 685           DEFINE_CLASS_ID(BaseCountedLoopEnd,     If, 0)
 686             DEFINE_CLASS_ID(CountedLoopEnd,       BaseCountedLoopEnd, 0)
 687             DEFINE_CLASS_ID(LongCountedLoopEnd,   BaseCountedLoopEnd, 1)
 688           DEFINE_CLASS_ID(RangeCheck,             If, 1)
 689           DEFINE_CLASS_ID(OuterStripMinedLoopEnd, If, 2)
 690           DEFINE_CLASS_ID(ParsePredicate,         If, 3)
 691         DEFINE_CLASS_ID(NeverBranch, MultiBranch, 2)
 692       DEFINE_CLASS_ID(Start,       Multi, 2)
 693       DEFINE_CLASS_ID(MemBar,      Multi, 3)
 694         DEFINE_CLASS_ID(Initialize,       MemBar, 0)
 695         DEFINE_CLASS_ID(MemBarStoreStore, MemBar, 1)
 696         DEFINE_CLASS_ID(Blackhole,        MemBar, 2)
 697 
 698     DEFINE_CLASS_ID(Mach,  Node, 1)
 699       DEFINE_CLASS_ID(MachReturn, Mach, 0)
 700         DEFINE_CLASS_ID(MachSafePoint, MachReturn, 0)
 701           DEFINE_CLASS_ID(MachCall, MachSafePoint, 0)
 702             DEFINE_CLASS_ID(MachCallJava,         MachCall, 0)
 703               DEFINE_CLASS_ID(MachCallStaticJava,   MachCallJava, 0)
 704               DEFINE_CLASS_ID(MachCallDynamicJava,  MachCallJava, 1)
 705             DEFINE_CLASS_ID(MachCallRuntime,      MachCall, 1)
 706               DEFINE_CLASS_ID(MachCallLeaf,         MachCallRuntime, 0)
 707       DEFINE_CLASS_ID(MachBranch, Mach, 1)
 708         DEFINE_CLASS_ID(MachIf,         MachBranch, 0)
 709         DEFINE_CLASS_ID(MachGoto,       MachBranch, 1)
 710         DEFINE_CLASS_ID(MachNullCheck,  MachBranch, 2)
 711       DEFINE_CLASS_ID(MachSpillCopy,    Mach, 2)
 712       DEFINE_CLASS_ID(MachTemp,         Mach, 3)
 713       DEFINE_CLASS_ID(MachConstantBase, Mach, 4)
 714       DEFINE_CLASS_ID(MachConstant,     Mach, 5)
 715         DEFINE_CLASS_ID(MachJump,       MachConstant, 0)
 716       DEFINE_CLASS_ID(MachMerge,        Mach, 6)
 717       DEFINE_CLASS_ID(MachMemBar,       Mach, 7)
 718       DEFINE_CLASS_ID(MachProlog,       Mach, 8)
 719       DEFINE_CLASS_ID(MachVEP,          Mach, 9)
 720 
 721     DEFINE_CLASS_ID(Type,  Node, 2)
 722       DEFINE_CLASS_ID(Phi,   Type, 0)
 723       DEFINE_CLASS_ID(ConstraintCast, Type, 1)
 724         DEFINE_CLASS_ID(CastII, ConstraintCast, 0)
 725         DEFINE_CLASS_ID(CheckCastPP, ConstraintCast, 1)
 726         DEFINE_CLASS_ID(CastLL, ConstraintCast, 2)
 727         DEFINE_CLASS_ID(CastFF, ConstraintCast, 3)
 728         DEFINE_CLASS_ID(CastDD, ConstraintCast, 4)
 729         DEFINE_CLASS_ID(CastVV, ConstraintCast, 5)
 730         DEFINE_CLASS_ID(CastPP, ConstraintCast, 6)
 731       DEFINE_CLASS_ID(CMove, Type, 3)
 732       DEFINE_CLASS_ID(SafePointScalarObject, Type, 4)
 733       DEFINE_CLASS_ID(DecodeNarrowPtr, Type, 5)
 734         DEFINE_CLASS_ID(DecodeN, DecodeNarrowPtr, 0)
 735         DEFINE_CLASS_ID(DecodeNKlass, DecodeNarrowPtr, 1)
 736       DEFINE_CLASS_ID(EncodeNarrowPtr, Type, 6)
 737         DEFINE_CLASS_ID(EncodeP, EncodeNarrowPtr, 0)
 738         DEFINE_CLASS_ID(EncodePKlass, EncodeNarrowPtr, 1)
 739       DEFINE_CLASS_ID(Vector, Type, 7)
 740         DEFINE_CLASS_ID(VectorMaskCmp, Vector, 0)
 741         DEFINE_CLASS_ID(VectorUnbox, Vector, 1)
 742         DEFINE_CLASS_ID(VectorReinterpret, Vector, 2)
 743         DEFINE_CLASS_ID(ShiftV, Vector, 3)
 744         DEFINE_CLASS_ID(CompressV, Vector, 4)
 745         DEFINE_CLASS_ID(ExpandV, Vector, 5)
 746         DEFINE_CLASS_ID(CompressM, Vector, 6)
 747         DEFINE_CLASS_ID(Reduction, Vector, 7)
 748         DEFINE_CLASS_ID(NegV, Vector, 8)
 749       DEFINE_CLASS_ID(InlineType, Type, 8)
 750       DEFINE_CLASS_ID(Con, Type, 9)
 751           DEFINE_CLASS_ID(ConI, Con, 0)
 752       DEFINE_CLASS_ID(SafePointScalarMerge, Type, 10)
 753       DEFINE_CLASS_ID(Convert, Type, 11)
 754 
 755 
 756     DEFINE_CLASS_ID(Proj,  Node, 3)
 757       DEFINE_CLASS_ID(CatchProj, Proj, 0)
 758       DEFINE_CLASS_ID(JumpProj,  Proj, 1)
 759       DEFINE_CLASS_ID(IfProj,    Proj, 2)
 760         DEFINE_CLASS_ID(IfTrue,    IfProj, 0)
 761         DEFINE_CLASS_ID(IfFalse,   IfProj, 1)
 762       DEFINE_CLASS_ID(Parm,      Proj, 4)
 763       DEFINE_CLASS_ID(MachProj,  Proj, 5)
 764 
 765     DEFINE_CLASS_ID(Mem, Node, 4)
 766       DEFINE_CLASS_ID(Load, Mem, 0)
 767         DEFINE_CLASS_ID(LoadVector,  Load, 0)
 768           DEFINE_CLASS_ID(LoadVectorGather, LoadVector, 0)
 769           DEFINE_CLASS_ID(LoadVectorGatherMasked, LoadVector, 1)
 770           DEFINE_CLASS_ID(LoadVectorMasked, LoadVector, 2)
 771       DEFINE_CLASS_ID(Store, Mem, 1)
 772         DEFINE_CLASS_ID(StoreVector, Store, 0)
 773           DEFINE_CLASS_ID(StoreVectorScatter, StoreVector, 0)
 774           DEFINE_CLASS_ID(StoreVectorScatterMasked, StoreVector, 1)
 775           DEFINE_CLASS_ID(StoreVectorMasked, StoreVector, 2)
 776       DEFINE_CLASS_ID(LoadStore, Mem, 2)
 777         DEFINE_CLASS_ID(LoadStoreConditional, LoadStore, 0)
 778           DEFINE_CLASS_ID(CompareAndSwap, LoadStoreConditional, 0)
 779         DEFINE_CLASS_ID(CompareAndExchangeNode, LoadStore, 1)
 780 
 781     DEFINE_CLASS_ID(Region, Node, 5)
 782       DEFINE_CLASS_ID(Loop, Region, 0)
 783         DEFINE_CLASS_ID(Root,                Loop, 0)
 784         DEFINE_CLASS_ID(BaseCountedLoop,     Loop, 1)
 785           DEFINE_CLASS_ID(CountedLoop,       BaseCountedLoop, 0)
 786           DEFINE_CLASS_ID(LongCountedLoop,   BaseCountedLoop, 1)
 787         DEFINE_CLASS_ID(OuterStripMinedLoop, Loop, 2)
 788 
 789     DEFINE_CLASS_ID(Sub,   Node, 6)
 790       DEFINE_CLASS_ID(Cmp,   Sub, 0)
 791         DEFINE_CLASS_ID(FastLock,       Cmp, 0)
 792         DEFINE_CLASS_ID(FastUnlock,     Cmp, 1)
 793         DEFINE_CLASS_ID(SubTypeCheck,   Cmp, 2)
 794         DEFINE_CLASS_ID(FlatArrayCheck, Cmp, 3)
 795 
 796     DEFINE_CLASS_ID(MergeMem, Node, 7)
 797     DEFINE_CLASS_ID(Bool,     Node, 8)
 798     DEFINE_CLASS_ID(AddP,     Node, 9)
 799     DEFINE_CLASS_ID(BoxLock,  Node, 10)
 800     DEFINE_CLASS_ID(Add,      Node, 11)
 801     DEFINE_CLASS_ID(Mul,      Node, 12)
 802     DEFINE_CLASS_ID(ClearArray, Node, 14)
 803     DEFINE_CLASS_ID(Halt,     Node, 15)
 804     DEFINE_CLASS_ID(Opaque1,  Node, 16)
 805       DEFINE_CLASS_ID(OpaqueLoopInit, Opaque1, 0)
 806       DEFINE_CLASS_ID(OpaqueLoopStride, Opaque1, 1)
 807     DEFINE_CLASS_ID(Opaque4,  Node, 17)
 808     DEFINE_CLASS_ID(OpaqueInitializedAssertionPredicate,  Node, 18)
 809     DEFINE_CLASS_ID(Move,     Node, 19)
 810     DEFINE_CLASS_ID(LShift,   Node, 20)
 811     DEFINE_CLASS_ID(Neg,      Node, 21)
 812 
 813     _max_classes  = ClassMask_Neg
 814   };

 878   #define DEFINE_CLASS_QUERY(type)                           \
 879   bool is_##type() const {                                   \
 880     return ((_class_id & ClassMask_##type) == Class_##type); \
 881   }                                                          \
 882   type##Node *as_##type() const {                            \
 883     assert(is_##type(), "invalid node class: %s", Name());   \
 884     return (type##Node*)this;                                \
 885   }                                                          \
 886   type##Node* isa_##type() const {                           \
 887     return (is_##type()) ? as_##type() : nullptr;            \
 888   }
 889 
 890   DEFINE_CLASS_QUERY(AbstractLock)
 891   DEFINE_CLASS_QUERY(Add)
 892   DEFINE_CLASS_QUERY(AddP)
 893   DEFINE_CLASS_QUERY(Allocate)
 894   DEFINE_CLASS_QUERY(AllocateArray)
 895   DEFINE_CLASS_QUERY(ArrayCopy)
 896   DEFINE_CLASS_QUERY(BaseCountedLoop)
 897   DEFINE_CLASS_QUERY(BaseCountedLoopEnd)
 898   DEFINE_CLASS_QUERY(Blackhole)
 899   DEFINE_CLASS_QUERY(Bool)
 900   DEFINE_CLASS_QUERY(BoxLock)
 901   DEFINE_CLASS_QUERY(Call)
 902   DEFINE_CLASS_QUERY(CallDynamicJava)
 903   DEFINE_CLASS_QUERY(CallJava)
 904   DEFINE_CLASS_QUERY(CallLeaf)
 905   DEFINE_CLASS_QUERY(CallLeafNoFP)
 906   DEFINE_CLASS_QUERY(CallRuntime)
 907   DEFINE_CLASS_QUERY(CallStaticJava)
 908   DEFINE_CLASS_QUERY(Catch)
 909   DEFINE_CLASS_QUERY(CatchProj)
 910   DEFINE_CLASS_QUERY(CheckCastPP)
 911   DEFINE_CLASS_QUERY(CastII)
 912   DEFINE_CLASS_QUERY(CastLL)
 913   DEFINE_CLASS_QUERY(ConI)
 914   DEFINE_CLASS_QUERY(CastPP)
 915   DEFINE_CLASS_QUERY(ConstraintCast)
 916   DEFINE_CLASS_QUERY(ClearArray)
 917   DEFINE_CLASS_QUERY(CMove)
 918   DEFINE_CLASS_QUERY(Cmp)
 919   DEFINE_CLASS_QUERY(Convert)
 920   DEFINE_CLASS_QUERY(CountedLoop)
 921   DEFINE_CLASS_QUERY(CountedLoopEnd)
 922   DEFINE_CLASS_QUERY(DecodeNarrowPtr)
 923   DEFINE_CLASS_QUERY(DecodeN)
 924   DEFINE_CLASS_QUERY(DecodeNKlass)
 925   DEFINE_CLASS_QUERY(EncodeNarrowPtr)
 926   DEFINE_CLASS_QUERY(EncodeP)
 927   DEFINE_CLASS_QUERY(EncodePKlass)
 928   DEFINE_CLASS_QUERY(FastLock)
 929   DEFINE_CLASS_QUERY(FastUnlock)
 930   DEFINE_CLASS_QUERY(FlatArrayCheck)
 931   DEFINE_CLASS_QUERY(Halt)
 932   DEFINE_CLASS_QUERY(If)
 933   DEFINE_CLASS_QUERY(RangeCheck)
 934   DEFINE_CLASS_QUERY(IfProj)
 935   DEFINE_CLASS_QUERY(IfFalse)
 936   DEFINE_CLASS_QUERY(IfTrue)
 937   DEFINE_CLASS_QUERY(Initialize)
 938   DEFINE_CLASS_QUERY(Jump)
 939   DEFINE_CLASS_QUERY(JumpProj)
 940   DEFINE_CLASS_QUERY(LongCountedLoop)
 941   DEFINE_CLASS_QUERY(LongCountedLoopEnd)
 942   DEFINE_CLASS_QUERY(Load)
 943   DEFINE_CLASS_QUERY(LoadStore)
 944   DEFINE_CLASS_QUERY(LoadStoreConditional)
 945   DEFINE_CLASS_QUERY(Lock)
 946   DEFINE_CLASS_QUERY(Loop)
 947   DEFINE_CLASS_QUERY(LShift)
 948   DEFINE_CLASS_QUERY(Mach)
 949   DEFINE_CLASS_QUERY(MachBranch)
 950   DEFINE_CLASS_QUERY(MachCall)
 951   DEFINE_CLASS_QUERY(MachCallDynamicJava)
 952   DEFINE_CLASS_QUERY(MachCallJava)
 953   DEFINE_CLASS_QUERY(MachCallLeaf)
 954   DEFINE_CLASS_QUERY(MachCallRuntime)
 955   DEFINE_CLASS_QUERY(MachCallStaticJava)
 956   DEFINE_CLASS_QUERY(MachConstantBase)
 957   DEFINE_CLASS_QUERY(MachConstant)
 958   DEFINE_CLASS_QUERY(MachGoto)
 959   DEFINE_CLASS_QUERY(MachIf)
 960   DEFINE_CLASS_QUERY(MachJump)
 961   DEFINE_CLASS_QUERY(MachNullCheck)
 962   DEFINE_CLASS_QUERY(MachProj)
 963   DEFINE_CLASS_QUERY(MachProlog)
 964   DEFINE_CLASS_QUERY(MachReturn)
 965   DEFINE_CLASS_QUERY(MachSafePoint)
 966   DEFINE_CLASS_QUERY(MachSpillCopy)
 967   DEFINE_CLASS_QUERY(MachTemp)
 968   DEFINE_CLASS_QUERY(MachMemBar)
 969   DEFINE_CLASS_QUERY(MachMerge)
 970   DEFINE_CLASS_QUERY(MachVEP)
 971   DEFINE_CLASS_QUERY(Mem)
 972   DEFINE_CLASS_QUERY(MemBar)
 973   DEFINE_CLASS_QUERY(MemBarStoreStore)
 974   DEFINE_CLASS_QUERY(MergeMem)
 975   DEFINE_CLASS_QUERY(Move)
 976   DEFINE_CLASS_QUERY(Mul)
 977   DEFINE_CLASS_QUERY(Multi)
 978   DEFINE_CLASS_QUERY(MultiBranch)
 979   DEFINE_CLASS_QUERY(Neg)
 980   DEFINE_CLASS_QUERY(NegV)
 981   DEFINE_CLASS_QUERY(NeverBranch)
 982   DEFINE_CLASS_QUERY(Opaque1)
 983   DEFINE_CLASS_QUERY(Opaque4)
 984   DEFINE_CLASS_QUERY(OpaqueInitializedAssertionPredicate)
 985   DEFINE_CLASS_QUERY(OpaqueLoopInit)
 986   DEFINE_CLASS_QUERY(OpaqueLoopStride)
 987   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 988   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 989   DEFINE_CLASS_QUERY(Parm)
 990   DEFINE_CLASS_QUERY(ParsePredicate)
 991   DEFINE_CLASS_QUERY(PCTable)
 992   DEFINE_CLASS_QUERY(Phi)
 993   DEFINE_CLASS_QUERY(Proj)
 994   DEFINE_CLASS_QUERY(Reduction)
 995   DEFINE_CLASS_QUERY(Region)
 996   DEFINE_CLASS_QUERY(Root)
 997   DEFINE_CLASS_QUERY(SafePoint)
 998   DEFINE_CLASS_QUERY(SafePointScalarObject)
 999   DEFINE_CLASS_QUERY(SafePointScalarMerge)
1000   DEFINE_CLASS_QUERY(Start)
1001   DEFINE_CLASS_QUERY(Store)
1002   DEFINE_CLASS_QUERY(Sub)
1003   DEFINE_CLASS_QUERY(SubTypeCheck)
1004   DEFINE_CLASS_QUERY(Type)
1005   DEFINE_CLASS_QUERY(InlineType)
1006   DEFINE_CLASS_QUERY(Vector)
1007   DEFINE_CLASS_QUERY(VectorMaskCmp)
1008   DEFINE_CLASS_QUERY(VectorUnbox)
1009   DEFINE_CLASS_QUERY(VectorReinterpret)
1010   DEFINE_CLASS_QUERY(CompressV)
1011   DEFINE_CLASS_QUERY(ExpandV)
1012   DEFINE_CLASS_QUERY(CompressM)
1013   DEFINE_CLASS_QUERY(LoadVector)
1014   DEFINE_CLASS_QUERY(LoadVectorGather)
1015   DEFINE_CLASS_QUERY(LoadVectorMasked)
1016   DEFINE_CLASS_QUERY(LoadVectorGatherMasked)
1017   DEFINE_CLASS_QUERY(StoreVector)
1018   DEFINE_CLASS_QUERY(StoreVectorScatter)
1019   DEFINE_CLASS_QUERY(StoreVectorMasked)
1020   DEFINE_CLASS_QUERY(StoreVectorScatterMasked)
1021   DEFINE_CLASS_QUERY(ShiftV)
1022   DEFINE_CLASS_QUERY(Unlock)
1023 
1024   #undef DEFINE_CLASS_QUERY
1025 
< prev index next >