@@ -84,7 +84,7 @@ protected Object lookup(Object klass, Object key) {
84
84
}
85
85
}
86
86
87
- private final String key ;
87
+ protected final String key ;
88
88
89
89
public LookupAttributeInMRONode (String key ) {
90
90
this .key = key ;
@@ -133,14 +133,15 @@ protected PythonClassAssumptionPair findAttrClassAndAssumptionInMRO(PythonClass
133
133
return new PythonClassAssumptionPair (null , attrAssumption );
134
134
}
135
135
136
- @ Specialization (guards = {"klass == cachedKlass" , "cachedAttributeStableInMROInfo .cls != null" }, limit = "5" , assumptions = {"lookupStable" ,
137
- "cachedAttributeStableInMROInfo .assumption" })
136
+ @ Specialization (guards = {"klass == cachedKlass" , "cachedClassInMROInfo .cls != null" }, limit = "5" , assumptions = {"lookupStable" ,
137
+ "cachedClassInMROInfo .assumption" })
138
138
protected Object lookupConstantMROCached (@ SuppressWarnings ("unused" ) PythonClass klass ,
139
139
@ Cached ("klass" ) @ SuppressWarnings ("unused" ) PythonClass cachedKlass ,
140
140
@ Cached ("cachedKlass.getLookupStableAssumption()" ) @ SuppressWarnings ("unused" ) Assumption lookupStable ,
141
- @ Cached ("create()" ) ReadAttributeFromObjectNode readAttrNode ,
142
- @ Cached ("findAttrClassAndAssumptionInMRO(cachedKlass)" ) @ SuppressWarnings ("unused" ) PythonClassAssumptionPair cachedAttributeStableInMROInfo ) {
143
- return readAttrNode .execute (cachedAttributeStableInMROInfo .cls , key );
141
+ @ Cached ("create()" ) @ SuppressWarnings ("unused" ) ReadAttributeFromObjectNode readAttributeNode ,
142
+ @ Cached ("findAttrClassAndAssumptionInMRO(cachedKlass)" ) @ SuppressWarnings ("unused" ) PythonClassAssumptionPair cachedClassInMROInfo ,
143
+ @ Cached ("readAttributeNode.execute(cachedClassInMROInfo.cls, key)" ) Object value ) {
144
+ return value ;
144
145
}
145
146
146
147
protected ReadAttributeFromObjectNode [] create (int size ) {
0 commit comments