Skip to content

Commit 64912ac

Browse files
committed
[GR-30482] Replace getLazyPythonClass with GetClassNode
PullRequest: graalpython/1769
2 parents 10a1f69 + d810f76 commit 64912ac

File tree

399 files changed

+3775
-3791
lines changed

Some content is hidden

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

399 files changed

+3775
-3791
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/builtins/modules/ConversionNodeTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import com.oracle.graal.python.builtins.objects.frame.PFrame;
4848
import com.oracle.graal.python.builtins.objects.function.PArguments;
4949
import com.oracle.graal.python.builtins.objects.function.Signature;
50-
import com.oracle.graal.python.builtins.objects.object.PythonObjectLibrary;
5150
import com.oracle.graal.python.nodes.PRootNode;
5251
import com.oracle.graal.python.nodes.call.CallTargetInvokeNode;
5352
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentCastNode.ArgumentCastNodeWithRaise;
@@ -104,8 +103,7 @@ public boolean isPythonInternal() {
104103
} catch (PException e) {
105104
// materialize PException's error message since we are leaving Python
106105
PException exceptionForReraise = e.getExceptionForReraise();
107-
PythonObjectLibrary pythonObjectLibrary = PythonObjectLibrary.getUncached();
108-
exceptionForReraise.setMessage(exceptionForReraise.getUnreifiedException().getFormattedMessage(pythonObjectLibrary, pythonObjectLibrary));
106+
exceptionForReraise.setMessage(exceptionForReraise.getUnreifiedException().getFormattedMessage());
109107
throw exceptionForReraise;
110108
}
111109
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ModuleRootNode Name: <module 'annotationType01'> SourceSection: [0,6]`j: int`
1313
ReadNameNodeGen SourceSection: None
1414
Identifier: __annotations__
1515
IsBuiltinClassProfile SourceSection: None
16-
CachedDispatchFirst SourceSection: None
16+
GetClassNodeGen SourceSection: None
1717
StringLiteralNode SourceSection: [0,0]Empty
1818
ReadNameNodeGen SourceSection: [3,6]`int`
1919
Identifier: int
2020
IsBuiltinClassProfile SourceSection: None
21-
CachedDispatchFirst SourceSection: None
21+
GetClassNodeGen SourceSection: None

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ ModuleRootNode Name: <module 'annotationType03'> SourceSection: [0,39]`j = 1↵a
1818
LookupAndCallBinaryNodeGen SourceSection: None
1919
Op: __getattribute__
2020
IsBuiltinClassProfile SourceSection: None
21-
CachedDispatchFirst SourceSection: None
21+
GetClassNodeGen SourceSection: None
2222
ReadNameNodeGen SourceSection: [6,10]`ahoj`
2323
Identifier: ahoj
2424
IsBuiltinClassProfile SourceSection: None
25-
CachedDispatchFirst SourceSection: None
25+
GetClassNodeGen SourceSection: None
2626
StringLiteralNode SourceSection: [27,30]`'j'`
2727
ReadNameNodeGen SourceSection: [34,39]`float`
2828
Identifier: float
2929
IsBuiltinClassProfile SourceSection: None
30-
CachedDispatchFirst SourceSection: None
30+
GetClassNodeGen SourceSection: None
3131
SideEffect:
3232
WriteNameNodeGen SourceSection: [0,5]`j = 1`
3333
Identifier: j

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ModuleRootNode Name: <module 'assignment03'> SourceSection: [0,25]`a = 0↵b = a
1515
ReadNameNodeGen SourceSection: [10,11]`a`
1616
Identifier: a
1717
IsBuiltinClassProfile SourceSection: None
18-
CachedDispatchFirst SourceSection: None
18+
GetClassNodeGen SourceSection: None
1919
ExpressionWithSideEffect SourceSection: None
2020
Expression:
2121
EmptyNode SourceSection: None
@@ -31,12 +31,12 @@ ModuleRootNode Name: <module 'assignment03'> SourceSection: [0,25]`a = 0↵b = a
3131
ReadNameNodeGen SourceSection: [16,17]`a`
3232
Identifier: a
3333
IsBuiltinClassProfile SourceSection: None
34-
CachedDispatchFirst SourceSection: None
34+
GetClassNodeGen SourceSection: None
3535
ReadNameNodeGen SourceSection: [20,21]`a`
3636
Identifier: a
3737
IsBuiltinClassProfile SourceSection: None
38-
CachedDispatchFirst SourceSection: None
38+
GetClassNodeGen SourceSection: None
3939
ReadNameNodeGen SourceSection: [24,25]`b`
4040
Identifier: b
4141
IsBuiltinClassProfile SourceSection: None
42-
CachedDispatchFirst SourceSection: None
42+
GetClassNodeGen SourceSection: None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ModuleRootNode Name: <module 'assignment04'> SourceSection: [0,17]`a = b = c = d
1212
ReadNameNodeGen SourceSection: [16,17]`e`
1313
Identifier: e
1414
IsBuiltinClassProfile SourceSection: None
15-
CachedDispatchFirst SourceSection: None
15+
GetClassNodeGen SourceSection: None
1616
WriteNameNodeGen SourceSection: None
1717
Identifier: a
1818
ReadLocalVariableNodeGen SourceSection: None

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ ModuleRootNode Name: <module 'assignment08'> SourceSection: [0,7]`a.b = 1`
1414
ReadNameNodeGen SourceSection: [0,1]`a`
1515
Identifier: a
1616
IsBuiltinClassProfile SourceSection: None
17-
CachedDispatchFirst SourceSection: None
17+
GetClassNodeGen SourceSection: None
1818
IntegerLiteralNode SourceSection: [6,7]`1`
1919
Value: 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ ModuleRootNode Name: <module 'assignment09'> SourceSection: [0,9]`f().b = 1`
1616
ReadNameNodeGen SourceSection: [0,1]`f`
1717
Identifier: f
1818
IsBuiltinClassProfile SourceSection: None
19-
CachedDispatchFirst SourceSection: None
19+
GetClassNodeGen SourceSection: None
2020
IntegerLiteralNode SourceSection: [8,9]`1`
2121
Value: 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ModuleRootNode Name: <module 'assignment10'> SourceSection: [0,15]`i, j, k = x =
1212
ReadNameNodeGen SourceSection: [14,15]`a`
1313
Identifier: a
1414
IsBuiltinClassProfile SourceSection: None
15-
CachedDispatchFirst SourceSection: None
15+
GetClassNodeGen SourceSection: None
1616
DestructuringAssignmentNodeGen SourceSection: None
1717
ReadLocalVariableNodeGen SourceSection: None
1818
Frame: [0,<>temp0,Illegal]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ ModuleRootNode Name: <module 'augassign01'> SourceSection: [0,6]`a += b`
1515
ReadNameNodeGen SourceSection: [0,1]`a`
1616
Identifier: a
1717
IsBuiltinClassProfile SourceSection: None
18-
CachedDispatchFirst SourceSection: None
18+
GetClassNodeGen SourceSection: None
1919
ReadNameNodeGen SourceSection: [5,6]`b`
2020
Identifier: b
2121
IsBuiltinClassProfile SourceSection: None
22-
CachedDispatchFirst SourceSection: None
22+
GetClassNodeGen SourceSection: None
2323
ObjectLiteralNode SourceSection: None

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ ModuleRootNode Name: <module 'augassign02'> SourceSection: [0,6]`a -= b`
1515
ReadNameNodeGen SourceSection: [0,1]`a`
1616
Identifier: a
1717
IsBuiltinClassProfile SourceSection: None
18-
CachedDispatchFirst SourceSection: None
18+
GetClassNodeGen SourceSection: None
1919
ReadNameNodeGen SourceSection: [5,6]`b`
2020
Identifier: b
2121
IsBuiltinClassProfile SourceSection: None
22-
CachedDispatchFirst SourceSection: None
22+
GetClassNodeGen SourceSection: None
2323
ObjectLiteralNode SourceSection: None

0 commit comments

Comments
 (0)