|
53 | 53 | import de.hpi.swa.trufflesqueak.nodes.primitives.AbstractPrimitiveFactoryHolder;
|
54 | 54 | import de.hpi.swa.trufflesqueak.nodes.primitives.AbstractPrimitiveNode;
|
55 | 55 | import de.hpi.swa.trufflesqueak.nodes.primitives.AbstractSingletonPrimitiveNode;
|
56 |
| -import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive1; |
57 |
| -import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive1WithFallback; |
58 | 56 | import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive0;
|
59 | 57 | import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive0WithFallback;
|
| 58 | +import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive1; |
| 59 | +import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive1WithFallback; |
60 | 60 | import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive2WithFallback;
|
61 | 61 | import de.hpi.swa.trufflesqueak.nodes.primitives.Primitive.Primitive3WithFallback;
|
62 | 62 | import de.hpi.swa.trufflesqueak.nodes.primitives.SqueakPrimitive;
|
@@ -184,9 +184,7 @@ protected static final Object literalAtPut(final CompiledCodeObject receiver, @S
|
184 | 184 | @GenerateNodeFactory
|
185 | 185 | @SqueakPrimitive(indices = 70)
|
186 | 186 | public abstract static class PrimNewNode extends AbstractPrimitiveNode implements Primitive0WithFallback {
|
187 |
| - public static final int NEW_CACHE_SIZE = 6; |
188 |
| - |
189 |
| - @Specialization(limit = "NEW_CACHE_SIZE", guards = {"receiver == cachedReceiver"}, assumptions = {"cachedReceiver.getClassFormatStable()"}) |
| 187 | + @Specialization(limit = "NEW_CACHE_LIMIT", guards = {"receiver == cachedReceiver"}, assumptions = {"cachedReceiver.getClassFormatStable()"}) |
190 | 188 | protected static final AbstractSqueakObjectWithClassAndHash newDirect(@SuppressWarnings("unused") final ClassObject receiver,
|
191 | 189 | @Bind("this") final Node node,
|
192 | 190 | @Cached("receiver.withEnsuredBehaviorHash()") final ClassObject cachedReceiver,
|
@@ -217,9 +215,7 @@ protected static final AbstractSqueakObjectWithClassAndHash newIndirect(final Cl
|
217 | 215 | @GenerateNodeFactory
|
218 | 216 | @SqueakPrimitive(indices = 71)
|
219 | 217 | protected abstract static class PrimNewWithArgNode extends AbstractPrimitiveNode implements Primitive1 {
|
220 |
| - public static final int NEW_CACHE_SIZE = 6; |
221 |
| - |
222 |
| - @Specialization(limit = "NEW_CACHE_SIZE", guards = {"receiver == cachedReceiver", "isInstantiable(cachedReceiver, size)"}, assumptions = {"cachedReceiver.getClassFormatStable()"}) |
| 218 | + @Specialization(limit = "NEW_CACHE_LIMIT", guards = {"receiver == cachedReceiver", "isInstantiable(cachedReceiver, size)"}, assumptions = {"cachedReceiver.getClassFormatStable()"}) |
223 | 219 | protected static final AbstractSqueakObjectWithClassAndHash newWithArgDirect(@SuppressWarnings("unused") final ClassObject receiver, final long size,
|
224 | 220 | @Bind("this") final Node node,
|
225 | 221 | @Cached(value = "createIdentityProfile()", inline = true) final InlinedIntValueProfile sizeProfile,
|
|
0 commit comments