Java 类jdk.nashorn.internal.runtime.arrays.IntElements 实例源码

项目:OpenJSharp    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:openjdk-jdk10    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:openjdk9    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:kaziranga    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:lookaside_java-1.8.0-openjdk    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:jdk8u_nashorn    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}
项目:infobip-open-jdk-8    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *   The link guard checks that the array is continuous AND not empty.
 *   The runtime guard checks that the guard is continuous (CCE otherwise)
 *
 * Primitive specialization, {@link LinkLogic}
 *
 * @param self self reference
 * @return element popped
 * @throws ClassCastException if array is empty, facilitating Undefined return value
 */
@SpecializedFunction(name="pop", linkLogic=PopLinkLogic.class)
public static int popInt(final Object self) {
    //must be non empty IntArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntElements.class).fastPopInt();
}