@@ -91,15 +91,15 @@ public Object finish(BuilderState state, int length) {
91
91
private AppendArrayNode getAppendArrayNode () {
92
92
if (appendArrayNode == null ) {
93
93
CompilerDirectives .transferToInterpreterAndInvalidate ();
94
- appendArrayNode = insert (AppendArrayNode .create (getContext (), startNode . allocator ));
94
+ appendArrayNode = insert (AppendArrayNode .create (getContext ()));
95
95
}
96
96
return appendArrayNode ;
97
97
}
98
98
99
99
private AppendOneNode getAppendOneNode () {
100
100
if (appendOneNode == null ) {
101
101
CompilerDirectives .transferToInterpreterAndInvalidate ();
102
- appendOneNode = insert (AppendOneNode .create (getContext (), startNode . allocator ));
102
+ appendOneNode = insert (AppendOneNode .create (getContext ()));
103
103
}
104
104
return appendOneNode ;
105
105
}
@@ -129,10 +129,10 @@ public synchronized ArrayAllocator updateStrategy(ArrayStoreLibrary.ArrayAllocat
129
129
130
130
if (newStrategy != oldStrategy ) {
131
131
if (appendArrayNode != null ) {
132
- appendArrayNode .replace (AppendArrayNode .create (getContext (), updatedAllocator ));
132
+ appendArrayNode .replace (AppendArrayNode .create (getContext ()));
133
133
}
134
134
if (appendOneNode != null ) {
135
- appendOneNode .replace (AppendOneNode .create (getContext (), updatedAllocator ));
135
+ appendOneNode .replace (AppendOneNode .create (getContext ()));
136
136
}
137
137
}
138
138
@@ -184,16 +184,14 @@ public BuilderState start(int length) {
184
184
@ ImportStatic (ArrayGuards .class )
185
185
public abstract static class AppendOneNode extends ArrayBuilderBaseNode {
186
186
187
- public static AppendOneNode create (RubyContext context , ArrayStoreLibrary . ArrayAllocator allocator ) {
188
- return AppendOneNodeGen .create (context , allocator );
187
+ public static AppendOneNode create (RubyContext context ) {
188
+ return AppendOneNodeGen .create (context );
189
189
}
190
190
191
191
private final RubyContext context ;
192
- protected final ArrayStoreLibrary .ArrayAllocator allocator ;
193
192
194
- public AppendOneNode (RubyContext context , ArrayStoreLibrary . ArrayAllocator allocator ) {
193
+ public AppendOneNode (RubyContext context ) {
195
194
this .context = context ;
196
- this .allocator = allocator ;
197
195
}
198
196
199
197
public abstract void executeAppend (BuilderState array , int index , Object value );
@@ -249,16 +247,14 @@ protected void appendNewStrategy(BuilderState state, int index, Object value,
249
247
@ ImportStatic (ArrayGuards .class )
250
248
public abstract static class AppendArrayNode extends ArrayBuilderBaseNode {
251
249
252
- public static AppendArrayNode create (RubyContext context , ArrayStoreLibrary . ArrayAllocator allocator ) {
253
- return AppendArrayNodeGen .create (context , allocator );
250
+ public static AppendArrayNode create (RubyContext context ) {
251
+ return AppendArrayNodeGen .create (context );
254
252
}
255
253
256
254
private final RubyContext context ;
257
- protected final ArrayStoreLibrary .ArrayAllocator allocator ;
258
255
259
- public AppendArrayNode (RubyContext context , ArrayStoreLibrary . ArrayAllocator allocator ) {
256
+ public AppendArrayNode (RubyContext context ) {
260
257
this .context = context ;
261
- this .allocator = allocator ;
262
258
}
263
259
264
260
public abstract void executeAppend (BuilderState state , int index , RubyArray value );
0 commit comments