< prev index next >

src/hotspot/share/opto/node.hpp

Print this page

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

  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 MachReturnNode;
 121 class MachSafePointNode;
 122 class MachSpillCopyNode;
 123 class MachTempNode;
 124 class MachMergeNode;
 125 class MachMemBarNode;

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

 161 class Pipeline;
 162 class PopulateIndexNode;
 163 class ProjNode;
 164 class RangeCheckNode;
 165 class ReductionNode;
 166 class RegMask;
 167 class RegionNode;
 168 class RootNode;
 169 class SafePointNode;
 170 class SafePointScalarObjectNode;
 171 class SafePointScalarMergeNode;
 172 class SaturatingVectorNode;
 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 VectorNode;
 182 class LoadVectorNode;
 183 class LoadVectorMaskedNode;
 184 class StoreVectorMaskedNode;
 185 class LoadVectorGatherNode;
 186 class LoadVectorGatherMaskedNode;
 187 class StoreVectorNode;
 188 class StoreVectorScatterNode;
 189 class StoreVectorScatterMaskedNode;
 190 class VerifyVectorAlignmentNode;
 191 class VectorMaskCmpNode;
 192 class VectorUnboxNode;
 193 class VectorSet;
 194 class VectorReinterpretNode;
 195 class ShiftVNode;
 196 class ExpandVNode;
 197 class CompressVNode;
 198 class CompressMNode;
 199 class C2_MacroAssembler;
 200 

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

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


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

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

 790 
 791     DEFINE_CLASS_ID(MergeMem, Node, 7)
 792     DEFINE_CLASS_ID(Bool,     Node, 8)
 793     DEFINE_CLASS_ID(AddP,     Node, 9)
 794     DEFINE_CLASS_ID(BoxLock,  Node, 10)
 795     DEFINE_CLASS_ID(Add,      Node, 11)
 796     DEFINE_CLASS_ID(Mul,      Node, 12)
 797     DEFINE_CLASS_ID(ClearArray, Node, 14)
 798     DEFINE_CLASS_ID(Halt,     Node, 15)
 799     DEFINE_CLASS_ID(Opaque1,  Node, 16)
 800       DEFINE_CLASS_ID(OpaqueLoopInit, Opaque1, 0)
 801       DEFINE_CLASS_ID(OpaqueLoopStride, Opaque1, 1)
 802     DEFINE_CLASS_ID(OpaqueNotNull,  Node, 17)
 803     DEFINE_CLASS_ID(OpaqueInitializedAssertionPredicate,  Node, 18)
 804     DEFINE_CLASS_ID(OpaqueTemplateAssertionPredicate,  Node, 19)
 805     DEFINE_CLASS_ID(Move,     Node, 20)
 806     DEFINE_CLASS_ID(LShift,   Node, 21)
 807     DEFINE_CLASS_ID(Neg,      Node, 22)
 808 
 809     _max_classes  = ClassMask_Neg

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

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

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

 959   DEFINE_CLASS_QUERY(MachReturn)
 960   DEFINE_CLASS_QUERY(MachSafePoint)
 961   DEFINE_CLASS_QUERY(MachSpillCopy)
 962   DEFINE_CLASS_QUERY(MachTemp)
 963   DEFINE_CLASS_QUERY(MachMemBar)
 964   DEFINE_CLASS_QUERY(MachMerge)

 965   DEFINE_CLASS_QUERY(Mem)
 966   DEFINE_CLASS_QUERY(MemBar)
 967   DEFINE_CLASS_QUERY(MemBarStoreStore)
 968   DEFINE_CLASS_QUERY(MergeMem)
 969   DEFINE_CLASS_QUERY(Move)
 970   DEFINE_CLASS_QUERY(Mul)
 971   DEFINE_CLASS_QUERY(Multi)
 972   DEFINE_CLASS_QUERY(MultiBranch)
 973   DEFINE_CLASS_QUERY(Neg)
 974   DEFINE_CLASS_QUERY(NegV)
 975   DEFINE_CLASS_QUERY(NeverBranch)
 976   DEFINE_CLASS_QUERY(Opaque1)
 977   DEFINE_CLASS_QUERY(OpaqueNotNull)
 978   DEFINE_CLASS_QUERY(OpaqueInitializedAssertionPredicate)
 979   DEFINE_CLASS_QUERY(OpaqueTemplateAssertionPredicate)
 980   DEFINE_CLASS_QUERY(OpaqueLoopInit)
 981   DEFINE_CLASS_QUERY(OpaqueLoopStride)
 982   DEFINE_CLASS_QUERY(OuterStripMinedLoop)
 983   DEFINE_CLASS_QUERY(OuterStripMinedLoopEnd)
 984   DEFINE_CLASS_QUERY(Parm)
 985   DEFINE_CLASS_QUERY(ParsePredicate)
 986   DEFINE_CLASS_QUERY(PCTable)
 987   DEFINE_CLASS_QUERY(Phi)
 988   DEFINE_CLASS_QUERY(Proj)
 989   DEFINE_CLASS_QUERY(Reduction)
 990   DEFINE_CLASS_QUERY(Region)
 991   DEFINE_CLASS_QUERY(Root)
 992   DEFINE_CLASS_QUERY(SafePoint)
 993   DEFINE_CLASS_QUERY(SafePointScalarObject)
 994   DEFINE_CLASS_QUERY(SafePointScalarMerge)
 995   DEFINE_CLASS_QUERY(Start)
 996   DEFINE_CLASS_QUERY(Store)
 997   DEFINE_CLASS_QUERY(Sub)
 998   DEFINE_CLASS_QUERY(SubTypeCheck)
 999   DEFINE_CLASS_QUERY(Type)

1000   DEFINE_CLASS_QUERY(Vector)
1001   DEFINE_CLASS_QUERY(VectorMaskCmp)
1002   DEFINE_CLASS_QUERY(VectorUnbox)
1003   DEFINE_CLASS_QUERY(VectorReinterpret)
1004   DEFINE_CLASS_QUERY(CompressV)
1005   DEFINE_CLASS_QUERY(ExpandV)
1006   DEFINE_CLASS_QUERY(CompressM)
1007   DEFINE_CLASS_QUERY(LoadVector)
1008   DEFINE_CLASS_QUERY(LoadVectorGather)
1009   DEFINE_CLASS_QUERY(LoadVectorMasked)
1010   DEFINE_CLASS_QUERY(LoadVectorGatherMasked)
1011   DEFINE_CLASS_QUERY(StoreVector)
1012   DEFINE_CLASS_QUERY(StoreVectorScatter)
1013   DEFINE_CLASS_QUERY(StoreVectorMasked)
1014   DEFINE_CLASS_QUERY(StoreVectorScatterMasked)
1015   DEFINE_CLASS_QUERY(SaturatingVector)
1016   DEFINE_CLASS_QUERY(ShiftV)
1017   DEFINE_CLASS_QUERY(Unlock)
1018 
1019   #undef DEFINE_CLASS_QUERY

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

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

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

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