|
52 | 52 | import com.oracle.graal.python.builtins.objects.dict.PDict;
|
53 | 53 | import com.oracle.graal.python.builtins.objects.ints.PInt;
|
54 | 54 | import com.oracle.graal.python.nodes.SpecialMethodNames;
|
| 55 | +import com.oracle.graal.python.nodes.call.special.LookupAndCallBinaryNode; |
55 | 56 | import com.oracle.graal.python.nodes.call.special.LookupAndCallUnaryNode;
|
56 | 57 | import com.oracle.graal.python.nodes.expression.BinaryComparisonNode;
|
57 | 58 | import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode;
|
@@ -144,7 +145,7 @@ public boolean doObject(VirtualFrame frame, Object value) {
|
144 | 145 | @Builtin(name = "eq", minNumOfPositionalArgs = 2)
|
145 | 146 | @TypeSystemReference(PythonArithmeticTypes.class)
|
146 | 147 | @GenerateNodeFactory
|
147 |
| - public abstract static class EqualsNode extends PythonBinaryBuiltinNode { |
| 148 | + public abstract static class EqNode extends PythonBinaryBuiltinNode { |
148 | 149 |
|
149 | 150 | @Specialization
|
150 | 151 | public boolean doBoolean(boolean value1, boolean value2) {
|
@@ -208,9 +209,10 @@ public Object doSequence(PSequence value, Object index,
|
208 | 209 | return getItemNode.execute(value.getSequenceStorage(), index);
|
209 | 210 | }
|
210 | 211 |
|
211 |
| - @Fallback |
212 |
| - public Object doObject(@SuppressWarnings("unused") Object value, @SuppressWarnings("unused") Object index) { |
213 |
| - return PNone.NONE; |
| 212 | + @Specialization |
| 213 | + public Object doObject(VirtualFrame frame, Object value, Object index, |
| 214 | + @Cached("create(__GETITEM__)") LookupAndCallBinaryNode getItemNode) { |
| 215 | + return getItemNode.executeObject(frame,value, index); |
214 | 216 | }
|
215 | 217 | }
|
216 | 218 |
|
|
0 commit comments