25
25
*/
26
26
package com .oracle .graal .python .builtins .objects .type ;
27
27
28
+ import static com .oracle .graal .python .builtins .PythonBuiltinClassType .TypeError ;
29
+ import static com .oracle .graal .python .nodes .SpecialAttributeNames .__DOC__ ;
30
+
28
31
import java .util .Collections ;
29
32
import java .util .Set ;
30
33
import java .util .WeakHashMap ;
31
34
32
35
import com .oracle .graal .python .PythonLanguage ;
33
- import static com .oracle .graal .python .builtins .PythonBuiltinClassType .TypeError ;
34
36
import com .oracle .graal .python .builtins .objects .PNone ;
35
37
import com .oracle .graal .python .builtins .objects .cext .PythonClassNativeWrapper ;
36
38
import com .oracle .graal .python .builtins .objects .object .PythonObject ;
48
50
import com .oracle .truffle .api .object .DynamicObject ;
49
51
import com .oracle .truffle .api .object .Shape ;
50
52
51
- import static com .oracle .graal .python .nodes .SpecialAttributeNames .__DOC__ ;
52
-
53
53
public abstract class PythonManagedClass extends PythonObject implements PythonAbstractClass {
54
54
55
55
@ CompilationFinal (dimensions = 1 ) private PythonAbstractClass [] baseClasses ;
@@ -69,6 +69,8 @@ public abstract class PythonManagedClass extends PythonObject implements PythonA
69
69
@ TruffleBoundary
70
70
protected PythonManagedClass (Object typeClass , DynamicObject storage , Shape instanceShape , String name , PythonAbstractClass ... baseClasses ) {
71
71
super (typeClass , storage );
72
+ this .name = getBaseName (name );
73
+ this .qualName = name ;
72
74
73
75
this .methodResolutionOrder = new MroSequenceStorage (name , 0 );
74
76
@@ -85,8 +87,6 @@ protected PythonManagedClass(Object typeClass, DynamicObject storage, Shape inst
85
87
this .methodResolutionOrder .setInitialized ();
86
88
this .needsNativeAllocation = computeNeedsNativeAllocation ();
87
89
88
- this .name = getBaseName (name );
89
- this .qualName = name ;
90
90
setAttribute (__DOC__ , PNone .NONE );
91
91
92
92
if (instanceShape != null ) {
0 commit comments