94
94
import static com .oracle .graal .python .nodes .HiddenAttr .PROMOTED_START ;
95
95
import static com .oracle .graal .python .nodes .HiddenAttr .PROMOTED_STEP ;
96
96
import static com .oracle .graal .python .nodes .HiddenAttr .PROMOTED_STOP ;
97
- import static com .oracle .graal .python .nodes .SpecialAttributeNames .T___DOC__ ;
98
97
import static com .oracle .graal .python .nodes .SpecialAttributeNames .T___MODULE__ ;
99
- import static com .oracle .graal .python .nodes .SpecialAttributeNames .T___NAME__ ;
100
98
import static com .oracle .graal .python .util .PythonUtils .TS_ENCODING ;
101
99
102
100
import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
148
146
import com .oracle .graal .python .lib .PyObjectSetAttr ;
149
147
import com .oracle .graal .python .nodes .HiddenAttr ;
150
148
import com .oracle .graal .python .nodes .PGuards ;
151
- import com .oracle .graal .python .nodes .SpecialAttributeNames ;
149
+ import com .oracle .graal .python .nodes .attributes . GetAttributeNode . GetFixedAttributeNode ;
152
150
import com .oracle .graal .python .nodes .attributes .WriteAttributeToObjectNode ;
153
151
import com .oracle .graal .python .nodes .object .GetClassNode ;
154
152
import com .oracle .graal .python .nodes .object .GetDictIfExistsNode ;
@@ -477,9 +475,9 @@ abstract static class Py_get_PyGetSetDef_doc extends CApiUnaryBuiltinNode {
477
475
@ Specialization
478
476
Object get (PythonObject object ,
479
477
@ Bind ("this" ) Node inliningTarget ,
480
- @ Cached PythonAbstractObject . PInteropGetAttributeNode getAttrNode ,
478
+ @ Cached ( parameters = "T___DOC__" ) GetFixedAttributeNode getAttrNode ,
481
479
@ Cached AsCharPointerNode asCharPointerNode ) {
482
- Object doc = getAttrNode .execute (inliningTarget , object , T___DOC__ );
480
+ Object doc = getAttrNode .execute (null , object );
483
481
if (PGuards .isPNone (doc )) {
484
482
return getNULL ();
485
483
} else {
@@ -501,9 +499,9 @@ abstract static class Py_get_PyGetSetDef_name extends CApiUnaryBuiltinNode {
501
499
@ Specialization
502
500
Object get (PythonObject object ,
503
501
@ Bind ("this" ) Node inliningTarget ,
504
- @ Cached PythonAbstractObject . PInteropGetAttributeNode getAttrNode ,
502
+ @ Cached ( parameters = "T___NAME__" ) GetFixedAttributeNode getAttrNode ,
505
503
@ Cached AsCharPointerNode asCharPointerNode ) {
506
- Object name = getAttrNode .execute (inliningTarget , object , T___NAME__ );
504
+ Object name = getAttrNode .execute (null , object );
507
505
if (PGuards .isPNone (name )) {
508
506
return getNULL ();
509
507
} else {
@@ -619,8 +617,8 @@ abstract static class Py_get_PyModuleObject_md_dict extends CApiUnaryBuiltinNode
619
617
@ Specialization
620
618
static Object get (Object object ,
621
619
@ Bind ("this" ) Node inliningTarget ,
622
- @ Exclusive @ Cached PythonAbstractObject . PInteropGetAttributeNode getDictNode ) {
623
- return getDictNode .execute (inliningTarget , object , SpecialAttributeNames . T___DICT__ );
620
+ @ Exclusive @ Cached ( parameters = "T___DICT__" ) GetFixedAttributeNode getDictNode ) {
621
+ return getDictNode .execute (null , object );
624
622
}
625
623
}
626
624
0 commit comments