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

项目:OpenJSharp    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *
 * 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 long popLong(final Object self) {
    //must be non empty Int or LongArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntOrLongElements.class).fastPopLong();
}
项目:kaziranga    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *
 * 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 long popLong(final Object self) {
    //must be non empty Int or LongArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntOrLongElements.class).fastPopLong();
}
项目:infobip-open-jdk-8    文件:NativeArray.java   
/**
 * Specialization of pop for ContinuousArrayData
 *
 * 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 long popLong(final Object self) {
    //must be non empty Int or LongArrayData
    return getContinuousNonEmptyArrayDataCCE(self, IntOrLongElements.class).fastPopLong();
}