Skip to content

Commit 2b5ced9

Browse files
committed
[GR-32145] Use slots in reversible binary ops.
PullRequest: graalpython/2007
2 parents c865567 + 763407c commit 2b5ced9

File tree

60 files changed

+2487
-1963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+2487
-1963
lines changed

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/annotationType03.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ModuleRootNode Name: <module 'annotationType03'> SourceSection: [0,39]`j = 1↵a
1515
GetAttributeNode SourceSection: None
1616
GetFixedAttributeNodeGen SourceSection: None
1717
Key: __annotations__
18-
LookupAndCallBinaryNodeGen SourceSection: None
18+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
1919
Op: __getattribute__
2020
ReadNameNodeGen SourceSection: [6,10]`ahoj`
2121
Identifier: ahoj

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/call16.tast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ ModuleRootNode Name: <module 'call16'> SourceSection: [0,11]`a.b.c.foo()`
1111
GetAttributeNode SourceSection: [0,5]`a.b.c`
1212
GetFixedAttributeNodeGen SourceSection: None
1313
Key: c
14-
LookupAndCallBinaryNodeGen SourceSection: None
14+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
1515
Op: __getattribute__
1616
GetAttributeNode SourceSection: [0,3]`a.b`
1717
GetFixedAttributeNodeGen SourceSection: None
1818
Key: b
19-
LookupAndCallBinaryNodeGen SourceSection: None
19+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
2020
Op: __getattribute__
2121
ReadNameNodeGen SourceSection: [0,1]`a`
2222
Identifier: a

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/for14.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ModuleRootNode Name: <module 'for14'> SourceSection: [0,165]`def merge(sequences
5757
IfNode SourceSection: [88,142]`if candidate in s2[1...`
5858
YesNodeGen SourceSection: None
5959
ContainsNodeGen SourceSection: [91,110]`candidate in s2[1:]`
60-
LookupAndCallBinaryNodeGen SourceSection: None
60+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
6161
Op: __contains__
6262
YesNodeGen SourceSection: None
6363
ReadGlobalOrBuiltinNodeGen SourceSection: [91,100]`candidate`

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/getAttr01.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ModuleRootNode Name: <module 'getAttr01'> SourceSection: [0,3]`a.b`
88
GetAttributeNode SourceSection: [0,3]`a.b`
99
GetFixedAttributeNodeGen SourceSection: None
1010
Key: b
11-
LookupAndCallBinaryNodeGen SourceSection: None
11+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
1212
Op: __getattribute__
1313
ReadNameNodeGen SourceSection: [0,1]`a`
1414
Identifier: a

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/getAttr02.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ModuleRootNode Name: <module 'getAttr02'> SourceSection: [0,5]`a().b`
88
GetAttributeNode SourceSection: [0,5]`a().b`
99
GetFixedAttributeNodeGen SourceSection: None
1010
Key: b
11-
LookupAndCallBinaryNodeGen SourceSection: None
11+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
1212
Op: __getattribute__
1313
PythonCallNodeGen SourceSection: [0,3]`a()`
1414
CallNodeGen SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/getAttr03.tast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ ModuleRootNode Name: <module 'getAttr03'> SourceSection: [0,16]`a().b.c(x).d.f()
1111
GetAttributeNode SourceSection: [0,12]`a().b.c(x).d`
1212
GetFixedAttributeNodeGen SourceSection: None
1313
Key: d
14-
LookupAndCallBinaryNodeGen SourceSection: None
14+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
1515
Op: __getattribute__
1616
PythonCallUnary SourceSection: [0,10]`a().b.c(x)`
1717
CallUnaryMethodNodeGen SourceSection: None
1818
GetCallAttributeNodeGen SourceSection: None
1919
GetAttributeNode SourceSection: [0,5]`a().b`
2020
GetFixedAttributeNodeGen SourceSection: None
2121
Key: b
22-
LookupAndCallBinaryNodeGen SourceSection: None
22+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
2323
Op: __getattribute__
2424
PythonCallNodeGen SourceSection: [0,3]`a()`
2525
CallNodeGen SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/classDef05.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ModuleRootNode Name: <module 'classDef05'> SourceSection: [0,63]`def fn():↵ c
7878
GetAttributeNode SourceSection: [35,56]`modname.BaseClassNam...`
7979
GetFixedAttributeNodeGen SourceSection: None
8080
Key: BaseClassName
81-
LookupAndCallBinaryNodeGen SourceSection: None
81+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
8282
Op: __getattribute__
8383
ReadGlobalOrBuiltinNodeGen SourceSection: [35,42]`modname`
8484
Identifier: modname

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/classDef07.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ModuleRootNode Name: <module 'classDef07'> SourceSection: [0,106]`class OrderedD
5252
GetAttributeNode SourceSection: [52,68]`dict.__setitem__`
5353
GetFixedAttributeNodeGen SourceSection: None
5454
Key: __setitem__
55-
LookupAndCallBinaryNodeGen SourceSection: None
55+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
5656
Op: __getattribute__
5757
ReadClassAttributeNodeGen SourceSection: [52,56]`dict`
5858
Identifier: dict

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/classDef13.tast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ModuleRootNode Name: <module 'classDef13'> SourceSection: [0,55]`class Point:↵
7070
GetAttributeNode SourceSection: [45,48]`p.x`
7171
GetFixedAttributeNodeGen SourceSection: None
7272
Key: x
73-
LookupAndCallBinaryNodeGen SourceSection: None
73+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
7474
Op: __getattribute__
7575
ReadNameNodeGen SourceSection: [45,46]`p`
7676
Identifier: p
@@ -79,7 +79,7 @@ ModuleRootNode Name: <module 'classDef13'> SourceSection: [0,55]`class Point:↵
7979
GetAttributeNode SourceSection: [51,54]`p.y`
8080
GetFixedAttributeNodeGen SourceSection: None
8181
Key: y
82-
LookupAndCallBinaryNodeGen SourceSection: None
82+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
8383
Op: __getattribute__
8484
ReadNameNodeGen SourceSection: [51,52]`p`
8585
Identifier: p

graalpython/com.oracle.graal.python.test/testData/goldenFiles/ClassDefTests/localMember01.tast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ ModuleRootNode Name: <module 'localMember01'> SourceSection: [0,148]`def fn():
113113
GetAttributeNode SourceSection: [135,148]`C.a_local_var`
114114
GetFixedAttributeNodeGen SourceSection: None
115115
Key: a_local_var
116-
LookupAndCallBinaryNodeGen SourceSection: None
116+
LookupAndCallNonReversibleBinaryNodeGen SourceSection: None
117117
Op: __getattribute__
118118
ReadLocalVariableNodeGen SourceSection: [135,136]`C`
119119
Frame: [0,C,Illegal]

0 commit comments

Comments
 (0)