Java 类jdk.nashorn.internal.runtime.AllocationStrategy 实例源码

项目:openjdk-jdk10    文件:ObjectClassGenerator.java   
/**
 * Creates the allocator class name and property map for a constructor function with the specified
 * number of "this" properties that it initializes.
 * @param thisProperties number of properties assigned to "this"
 * @return the allocation strategy
 */
static AllocationStrategy createAllocationStrategy(final int thisProperties, final boolean dualFields) {
    final int paddedFieldCount = getPaddedFieldCount(thisProperties);
    return new AllocationStrategy(paddedFieldCount, dualFields);
}
项目:openjdk9    文件:ObjectClassGenerator.java   
/**
 * Creates the allocator class name and property map for a constructor function with the specified
 * number of "this" properties that it initializes.
 * @param thisProperties number of properties assigned to "this"
 * @return the allocation strategy
 */
static AllocationStrategy createAllocationStrategy(final int thisProperties, final boolean dualFields) {
    final int paddedFieldCount = getPaddedFieldCount(thisProperties);
    return new AllocationStrategy(paddedFieldCount, dualFields);
}
项目:kaziranga    文件:ObjectClassGenerator.java   
/**
 * Creates the allocator class name and property map for a constructor function with the specified
 * number of "this" properties that it initializes.
 * @param thisProperties number of properties assigned to "this"
 * @return the allocation strategy
 */
static AllocationStrategy createAllocationStrategy(final int thisProperties, final boolean dualFields) {
    final int paddedFieldCount = getPaddedFieldCount(thisProperties);
    return new AllocationStrategy(paddedFieldCount, dualFields);
}
项目:lookaside_java-1.8.0-openjdk    文件:ObjectClassGenerator.java   
/**
 * Creates the allocator class name and property map for a constructor function with the specified
 * number of "this" properties that it initializes.
 * @param thisProperties number of properties assigned to "this"
 * @return the allocation strategy
 */
static AllocationStrategy createAllocationStrategy(final int thisProperties, final boolean dualFields) {
    final int paddedFieldCount = getPaddedFieldCount(thisProperties);
    return new AllocationStrategy(paddedFieldCount, dualFields);
}
项目:jdk8u_nashorn    文件:ObjectClassGenerator.java   
/**
 * Creates the allocator class name and property map for a constructor function with the specified
 * number of "this" properties that it initializes.
 * @param thisProperties number of properties assigned to "this"
 * @return the allocation strategy
 */
static AllocationStrategy createAllocationStrategy(final int thisProperties, final boolean dualFields) {
    final int paddedFieldCount = getPaddedFieldCount(thisProperties);
    return new AllocationStrategy(paddedFieldCount, dualFields);
}