@@ -2060,7 +2060,7 @@ public PFunction function(Object cls, PCode code, PDict globals, String name, @S
2060
2060
@ Specialization
2061
2061
public PFunction function (Object cls , PCode code , PDict globals , @ SuppressWarnings ("unused" ) PNone name , @ SuppressWarnings ("unused" ) PNone defaultArgs , PTuple closure ,
2062
2062
@ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
2063
- return factory ().createFunction ("<lambda>" , getTypeName (cls ), code , globals , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2063
+ return factory ().createFunction ("<lambda>" , getTypeName (cls ), code , globals , PCell .toCellArray (getObjectArrayNode .execute (closure )));
2064
2064
}
2065
2065
2066
2066
@ Specialization
@@ -2073,7 +2073,7 @@ public PFunction function(Object cls, PCode code, PDict globals, @SuppressWarnin
2073
2073
@ Specialization
2074
2074
public PFunction function (Object cls , PCode code , PDict globals , String name , @ SuppressWarnings ("unused" ) PNone defaultArgs , PTuple closure ,
2075
2075
@ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
2076
- return factory ().createFunction (name , getTypeName (cls ), code , globals , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2076
+ return factory ().createFunction (name , getTypeName (cls ), code , globals , PCell .toCellArray (getObjectArrayNode .execute (closure )));
2077
2077
}
2078
2078
2079
2079
@ Specialization
@@ -2087,7 +2087,7 @@ public PFunction function(Object cls, PCode code, PDict globals, String name, PT
2087
2087
public PFunction function (Object cls , PCode code , PDict globals , String name , PTuple defaultArgs , PTuple closure ,
2088
2088
@ Shared ("getObjectArrayNode" ) @ Cached GetObjectArrayNode getObjectArrayNode ) {
2089
2089
// TODO split defaults of positional args from kwDefaults
2090
- return factory ().createFunction (name , getTypeName (cls ), code , globals , getObjectArrayNode .execute (defaultArgs ), null , PCell .castToCellArray (getObjectArrayNode .execute (closure )));
2090
+ return factory ().createFunction (name , getTypeName (cls ), code , globals , getObjectArrayNode .execute (defaultArgs ), null , PCell .toCellArray (getObjectArrayNode .execute (closure )));
2091
2091
}
2092
2092
2093
2093
@ Fallback
0 commit comments