@@ -187,21 +187,21 @@ public static final Assumption singleContextAssumption() {
187
187
188
188
@ Specialization (assumptions = "singleContextAssumption()" )
189
189
public PBytes runCachedSingleContext (@ SuppressWarnings ("unused" ) VirtualFrame frame ,
190
- @ Cached (value = "getMagicNumberPBytes(frame, toBytesNode, pol )" , weak = true ) PBytes magicBytes ) {
190
+ @ Cached (value = "getMagicNumberPBytes(frame)" , weak = true ) PBytes magicBytes ) {
191
191
return magicBytes ;
192
192
}
193
193
194
194
@ Specialization (replaces = "runCachedSingleContext" )
195
195
public PBytes run (@ SuppressWarnings ("unused" ) VirtualFrame frame ,
196
- @ Cached (value = "getMagicNumberBytes(frame, toBytesNode, pol )" , dimensions = 1 ) byte [] magicBytes ) {
196
+ @ Cached (value = "getMagicNumberBytes(frame)" , dimensions = 1 ) byte [] magicBytes ) {
197
197
return factory ().createBytes (magicBytes );
198
198
}
199
199
200
- protected PBytes getMagicNumberPBytes (VirtualFrame frame , IntBuiltins . ToBytesNode toBytesNode , PythonObjectLibrary pol ) {
201
- return factory ().createBytes (getMagicNumberBytes (frame , toBytesNode , pol ));
200
+ protected PBytes getMagicNumberPBytes (VirtualFrame frame ) {
201
+ return factory ().createBytes (getMagicNumberBytes (frame ));
202
202
}
203
203
204
- protected byte [] getMagicNumberBytes (VirtualFrame frame , IntBuiltins . ToBytesNode toBytesNode , PythonObjectLibrary pol ) {
204
+ protected byte [] getMagicNumberBytes (VirtualFrame frame ) {
205
205
try {
206
206
PBytes magic = toBytesNode .execute (frame , MAGIC_NUMBER , 2 , "little" , false );
207
207
byte [] magicBytes = pol .getBufferBytes (magic );
0 commit comments