Skip to content

Commit 0070a32

Browse files
committed
replace cached specializations for apply keywords
1 parent 710b8e8 commit 0070a32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/argument/ApplyKeywordsNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Object[] applyCached(Arity calleeArity, Object[] arguments, PKeyword[] keywords,
133133
return combined;
134134
}
135135

136-
@Specialization
136+
@Specialization(replaces = "applyCached")
137137
Object[] applyUncached(Arity calleeArity, Object[] arguments, PKeyword[] keywords) {
138138
return applyKeywordArgs(calleeArity, arguments, keywords);
139139
}
@@ -154,7 +154,7 @@ int cached(String[] parameters, String name,
154154
return idx;
155155
}
156156

157-
@Specialization
157+
@Specialization(replaces = "cached")
158158
@ExplodeLoop
159159
int uncached(String[] parameters, String name) {
160160
for (int i = 0; i < parameters.length; i++) {

0 commit comments

Comments
 (0)