< prev index next >

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/replacements/HotSpotReplacementsUtil.java

Print this page




 499     @Fold
 500     public static int objectMonitorOwnerOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 501         return config.objectMonitorOwner;
 502     }
 503 
 504     @Fold
 505     public static int objectMonitorRecursionsOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 506         return config.objectMonitorRecursions;
 507     }
 508 
 509     @Fold
 510     public static int objectMonitorCxqOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 511         return config.objectMonitorCxq;
 512     }
 513 
 514     @Fold
 515     public static int objectMonitorEntryListOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 516         return config.objectMonitorEntryList;
 517     }
 518 





 519     /**
 520      * Mask for a biasable, locked or unlocked mark word.
 521      *
 522      * <pre>
 523      * +----------------------------------+-+-+
 524      * |                                 1|1|1|
 525      * +----------------------------------+-+-+
 526      * </pre>
 527      *
 528      */
 529     @Fold
 530     public static int biasedLockMaskInPlace(@InjectedParameter GraalHotSpotVMConfig config) {
 531         return config.biasedLockMaskInPlace;
 532     }
 533 
 534     @Fold
 535     public static int epochMaskInPlace(@InjectedParameter GraalHotSpotVMConfig config) {
 536         return config.epochMaskInPlace;
 537     }
 538 


 667     public static int secondarySuperCacheOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 668         return config.secondarySuperCacheOffset;
 669     }
 670 
 671     public static final LocationIdentity SECONDARY_SUPERS_LOCATION = NamedLocationIdentity.immutable("SecondarySupers");
 672 
 673     @Fold
 674     public static int secondarySupersOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 675         return config.secondarySupersOffset;
 676     }
 677 
 678     public static final LocationIdentity DISPLACED_MARK_WORD_LOCATION = NamedLocationIdentity.mutable("DisplacedMarkWord");
 679 
 680     public static final LocationIdentity OBJECT_MONITOR_OWNER_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_owner");
 681 
 682     public static final LocationIdentity OBJECT_MONITOR_RECURSION_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_recursions");
 683 
 684     public static final LocationIdentity OBJECT_MONITOR_CXQ_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_cxq");
 685 
 686     public static final LocationIdentity OBJECT_MONITOR_ENTRY_LIST_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_EntryList");


 687 
 688     @Fold
 689     public static int lockDisplacedMarkOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 690         return config.basicLockDisplacedHeaderOffset;
 691     }
 692 
 693     @Fold
 694     public static boolean useBiasedLocking(@InjectedParameter GraalHotSpotVMConfig config) {
 695         return config.useBiasedLocking;
 696     }
 697 
 698     @Fold
 699     static int uninitializedIdentityHashCodeValue(@InjectedParameter GraalHotSpotVMConfig config) {
 700         return config.uninitializedIdentityHashCodeValue;
 701     }
 702 
 703     @Fold
 704     static int identityHashCodeShift(@InjectedParameter GraalHotSpotVMConfig config) {
 705         return config.identityHashCodeShift;
 706     }




 499     @Fold
 500     public static int objectMonitorOwnerOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 501         return config.objectMonitorOwner;
 502     }
 503 
 504     @Fold
 505     public static int objectMonitorRecursionsOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 506         return config.objectMonitorRecursions;
 507     }
 508 
 509     @Fold
 510     public static int objectMonitorCxqOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 511         return config.objectMonitorCxq;
 512     }
 513 
 514     @Fold
 515     public static int objectMonitorEntryListOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 516         return config.objectMonitorEntryList;
 517     }
 518 
 519     @Fold
 520     public static int objectMonitorSuccOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 521         return config.objectMonitorSucc;
 522     }
 523 
 524     /**
 525      * Mask for a biasable, locked or unlocked mark word.
 526      *
 527      * <pre>
 528      * +----------------------------------+-+-+
 529      * |                                 1|1|1|
 530      * +----------------------------------+-+-+
 531      * </pre>
 532      *
 533      */
 534     @Fold
 535     public static int biasedLockMaskInPlace(@InjectedParameter GraalHotSpotVMConfig config) {
 536         return config.biasedLockMaskInPlace;
 537     }
 538 
 539     @Fold
 540     public static int epochMaskInPlace(@InjectedParameter GraalHotSpotVMConfig config) {
 541         return config.epochMaskInPlace;
 542     }
 543 


 672     public static int secondarySuperCacheOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 673         return config.secondarySuperCacheOffset;
 674     }
 675 
 676     public static final LocationIdentity SECONDARY_SUPERS_LOCATION = NamedLocationIdentity.immutable("SecondarySupers");
 677 
 678     @Fold
 679     public static int secondarySupersOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 680         return config.secondarySupersOffset;
 681     }
 682 
 683     public static final LocationIdentity DISPLACED_MARK_WORD_LOCATION = NamedLocationIdentity.mutable("DisplacedMarkWord");
 684 
 685     public static final LocationIdentity OBJECT_MONITOR_OWNER_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_owner");
 686 
 687     public static final LocationIdentity OBJECT_MONITOR_RECURSION_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_recursions");
 688 
 689     public static final LocationIdentity OBJECT_MONITOR_CXQ_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_cxq");
 690 
 691     public static final LocationIdentity OBJECT_MONITOR_ENTRY_LIST_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_EntryList");
 692 
 693     public static final LocationIdentity OBJECT_MONITOR_SUCC_LOCATION = NamedLocationIdentity.mutable("ObjectMonitor::_succ");
 694 
 695     @Fold
 696     public static int lockDisplacedMarkOffset(@InjectedParameter GraalHotSpotVMConfig config) {
 697         return config.basicLockDisplacedHeaderOffset;
 698     }
 699 
 700     @Fold
 701     public static boolean useBiasedLocking(@InjectedParameter GraalHotSpotVMConfig config) {
 702         return config.useBiasedLocking;
 703     }
 704 
 705     @Fold
 706     static int uninitializedIdentityHashCodeValue(@InjectedParameter GraalHotSpotVMConfig config) {
 707         return config.uninitializedIdentityHashCodeValue;
 708     }
 709 
 710     @Fold
 711     static int identityHashCodeShift(@InjectedParameter GraalHotSpotVMConfig config) {
 712         return config.identityHashCodeShift;
 713     }


< prev index next >