File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/tuple Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 30
30
import static com .oracle .graal .python .nodes .SpecialMethodNames .__CONTAINS__ ;
31
31
import static com .oracle .graal .python .nodes .SpecialMethodNames .__EQ__ ;
32
32
import static com .oracle .graal .python .nodes .SpecialMethodNames .__GETITEM__ ;
33
+ import static com .oracle .graal .python .nodes .SpecialMethodNames .__GETNEWARGS__ ;
33
34
import static com .oracle .graal .python .nodes .SpecialMethodNames .__GE__ ;
34
35
import static com .oracle .graal .python .nodes .SpecialMethodNames .__GT__ ;
35
36
import static com .oracle .graal .python .nodes .SpecialMethodNames .__HASH__ ;
64
65
import com .oracle .graal .python .builtins .objects .object .PythonObjectLibrary ;
65
66
import com .oracle .graal .python .builtins .objects .slice .PSlice ;
66
67
import com .oracle .graal .python .builtins .objects .str .PString ;
68
+ import com .oracle .graal .python .builtins .objects .str .StringNodes ;
67
69
import com .oracle .graal .python .builtins .objects .tuple .TupleBuiltinsClinicProviders .IndexNodeClinicProviderGen ;
68
70
import com .oracle .graal .python .nodes .ErrorMessages ;
69
71
import com .oracle .graal .python .nodes .PGuards ;
@@ -506,4 +508,13 @@ Object genericHash(@SuppressWarnings("unused") Object self) {
506
508
return PNotImplemented .NOT_IMPLEMENTED ;
507
509
}
508
510
}
511
+
512
+ @ Builtin (name = __GETNEWARGS__ , minNumOfPositionalArgs = 1 )
513
+ @ GenerateNodeFactory
514
+ public abstract static class GetNewargsNode extends PythonUnaryBuiltinNode {
515
+ @ Specialization
516
+ PTuple doIt (PTuple self ) {
517
+ return factory ().createTuple (self .getSequenceStorage ());
518
+ }
519
+ }
509
520
}
You can’t perform that action at this time.
0 commit comments