File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/expression Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 42
42
43
43
import static com .oracle .graal .python .nodes .SpecialMethodNames .__EQ__ ;
44
44
45
+ import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
45
46
import com .oracle .graal .python .builtins .objects .cext .CExtNodes ;
46
47
import com .oracle .graal .python .builtins .objects .cext .PythonAbstractNativeObject ;
47
48
import com .oracle .graal .python .builtins .objects .code .PCode ;
48
49
import com .oracle .graal .python .builtins .objects .ints .PInt ;
50
+ import com .oracle .graal .python .builtins .objects .type .PythonBuiltinClass ;
49
51
import com .oracle .truffle .api .RootCallTarget ;
50
52
import com .oracle .truffle .api .dsl .Cached ;
51
53
import com .oracle .truffle .api .dsl .Fallback ;
@@ -175,6 +177,16 @@ boolean doDD(double left, double right) {
175
177
return left == right ;
176
178
}
177
179
180
+ @ Specialization
181
+ boolean doCT (PythonBuiltinClass left , PythonBuiltinClassType right ) {
182
+ return left .getType () == right ;
183
+ }
184
+
185
+ @ Specialization
186
+ boolean doTC (PythonBuiltinClassType left , PythonBuiltinClass right ) {
187
+ return right .getType () == left ;
188
+ }
189
+
178
190
@ Specialization
179
191
boolean doNative (PythonAbstractNativeObject left , PythonAbstractNativeObject right ,
180
192
@ Cached CExtNodes .PointerCompareNode isNode ) {
You can’t perform that action at this time.
0 commit comments