Skip to content

Commit

Permalink
reduce visibility of some object model implementation classes
Browse files Browse the repository at this point in the history
  • Loading branch information
woess committed Jan 25, 2016
1 parent 782797c commit 2341199
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import static com.oracle.truffle.object.basic.BasicLocations.OBJECT_SIZE;
import com.oracle.truffle.object.basic.BasicLocations.ObjectArrayLocation;

public abstract class BasicAllocator extends ShapeImpl.BaseAllocator {
abstract class BasicAllocator extends ShapeImpl.BaseAllocator {

public BasicAllocator(LayoutImpl layout) {
super(layout);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public BaseAllocator createAllocator(LayoutImpl layout) {
return new DefaultAllocatorImpl(layout);
}

public static class DefaultAllocatorImpl extends BasicAllocator {
static class DefaultAllocatorImpl extends BasicAllocator {
protected DefaultAllocatorImpl(LayoutImpl layout) {
super(layout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class DynamicObjectBasic extends DynamicObjectImpl {
private Object[] objext;
private long[] primext;

public DynamicObjectBasic(Shape shape) {
protected DynamicObjectBasic(Shape shape) {
super(shape);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
import com.oracle.truffle.object.Transition;

public final class ShapeBasic extends ShapeImpl {
public ShapeBasic(Layout layout, Object sharedData, ObjectType objectType, int id) {
ShapeBasic(Layout layout, Object sharedData, ObjectType objectType, int id) {
super(layout, objectType, sharedData, id);
}

public ShapeBasic(Layout layout, Object sharedData, ShapeImpl parent, ObjectType objectType, PropertyMap propertyMap, Transition transition, Allocator allocator, int id) {
ShapeBasic(Layout layout, Object sharedData, ShapeImpl parent, ObjectType objectType, PropertyMap propertyMap, Transition transition, Allocator allocator, int id) {
super(layout, parent, objectType, sharedData, propertyMap, transition, allocator, id);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public abstract class DynamicObjectImpl extends DynamicObject implements Cloneab

public static final DebugCounter reshapeCount = DebugCounter.create("Reshape count");

public DynamicObjectImpl(Shape shape) {
protected DynamicObjectImpl(Shape shape) {
assert shape instanceof ShapeImpl;
initialize(shape);
setShape(shape);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@

import static com.oracle.truffle.api.object.Layout.OPTION_PREFIX;

public class ObjectStorageOptions {
public final class ObjectStorageOptions {
private ObjectStorageOptions() {
}

// Shape configuration
/** Primitive location switch. */
public static boolean PrimitiveLocations = booleanOption(OPTION_PREFIX + "PrimitiveLocations", true);
Expand Down

0 comments on commit 2341199

Please sign in to comment.