Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.oracle.graal.python.builtins.modules.CodecsModuleBuiltinsClinicProviders Maven / Gradle / Ivy
package com.oracle.graal.python.builtins.modules;
import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode ;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentCastNode ;
import com.oracle.graal.python.nodes.function.builtins.clinic.ArgumentClinicProvider ;
import com.oracle.graal.python.nodes.function.builtins.clinic.JavaBooleanConverterNode ;
import com.oracle.graal.python.nodes.function.builtins.clinic.ReadableBufferConversionNode ;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterNode ;
import com.oracle.graal.python.nodes.function.builtins.clinic.TruffleStringConverterWithDefaultValueNode ;
import static com.oracle.graal.python.nodes.StringLiterals .*;
public class CodecsModuleBuiltinsClinicProviders {
public static final class DecodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final DecodeNodeClinicProviderGen INSTANCE = new DecodeNodeClinicProviderGen ();
private DecodeNodeClinicProviderGen () {
super (0x1 , 0x1 , 0x1 , 0x1 , 0x6 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 1 : return TruffleStringConverterWithDefaultValueNode .create("decode" , T_UTF8 , false );
case 2 : return TruffleStringConverterWithDefaultValueNode .create("decode" , T_STRICT , false );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class LookupErrorNodeClinicProviderGen extends ArgumentClinicProvider {
public static final LookupErrorNodeClinicProviderGen INSTANCE = new LookupErrorNodeClinicProviderGen ();
private LookupErrorNodeClinicProviderGen () {
super (0x0 , 0x0 , 0x0 , 0x0 , 0x1 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0 ) {
return TruffleStringConverterNode .create("lookup_error" );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CharmapBuildNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CharmapBuildNodeClinicProviderGen INSTANCE = new CharmapBuildNodeClinicProviderGen ();
private CharmapBuildNodeClinicProviderGen () {
super (0x0 , 0x0 , 0x0 , 0x0 , 0x1 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0 ) {
return TruffleStringConverterNode .create("charmap_build" );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class EncodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final EncodeNodeClinicProviderGen INSTANCE = new EncodeNodeClinicProviderGen ();
private EncodeNodeClinicProviderGen () {
super (0x1 , 0x1 , 0x1 , 0x1 , 0x6 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 1 : return TruffleStringConverterWithDefaultValueNode .create("encode" , T_UTF8 , false );
case 2 : return TruffleStringConverterWithDefaultValueNode .create("encode" , T_STRICT , false );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CodecsEncodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CodecsEncodeNodeClinicProviderGen INSTANCE = new CodecsEncodeNodeClinicProviderGen ();
private CodecsEncodeNodeClinicProviderGen () {
super (0x1 , 0x1 , 0x1 , 0x1 , 0x6 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 1 : return TruffleStringConverterWithDefaultValueNode .create("__truffle_encode__" , T_UTF8 , true );
case 2 : return TruffleStringConverterWithDefaultValueNode .create("__truffle_encode__" , T_STRICT , true );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class RegisterErrorNodeClinicProviderGen extends ArgumentClinicProvider {
public static final RegisterErrorNodeClinicProviderGen INSTANCE = new RegisterErrorNodeClinicProviderGen ();
private RegisterErrorNodeClinicProviderGen () {
super (0x2 , 0x2 , 0x2 , 0x2 , 0x1 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0 ) {
return TruffleStringConverterNode .create("register_error" );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CodecsDecodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CodecsDecodeNodeClinicProviderGen INSTANCE = new CodecsDecodeNodeClinicProviderGen ();
private CodecsDecodeNodeClinicProviderGen () {
super (0x9 , 0x1 , 0x1 , 0x1 , 0xe );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 1 : return TruffleStringConverterWithDefaultValueNode .create("__truffle_decode__" , T_UTF8 , true );
case 2 : return TruffleStringConverterWithDefaultValueNode .create("__truffle_decode__" , T_STRICT , true );
case 3 : return JavaBooleanConverterNode .create(true , false );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CodecsEscapeDecodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CodecsEscapeDecodeNodeClinicProviderGen INSTANCE = new CodecsEscapeDecodeNodeClinicProviderGen ();
private CodecsEscapeDecodeNodeClinicProviderGen () {
super (0x0 , 0x0 , 0x0 , 0x0 , 0x3 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0 : return ReadableBufferConversionNode .create(false );
case 1 : return TruffleStringConverterWithDefaultValueNode .create("escape_decode" , T_STRICT , true );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CharmapDecodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CharmapDecodeNodeClinicProviderGen INSTANCE = new CharmapDecodeNodeClinicProviderGen ();
private CharmapDecodeNodeClinicProviderGen () {
super (0x5 , 0x5 , 0x5 , 0x5 , 0x2 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 1 ) {
return TruffleStringConverterWithDefaultValueNode .create("charmap_decode" , T_STRICT , true );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class LookupNodeClinicProviderGen extends ArgumentClinicProvider {
public static final LookupNodeClinicProviderGen INSTANCE = new LookupNodeClinicProviderGen ();
private LookupNodeClinicProviderGen () {
super (0x0 , 0x0 , 0x0 , 0x0 , 0x1 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 0 ) {
return TruffleStringConverterNode .create("lookup" );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CharmapEncodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CharmapEncodeNodeClinicProviderGen INSTANCE = new CharmapEncodeNodeClinicProviderGen ();
private CharmapEncodeNodeClinicProviderGen () {
super (0x4 , 0x4 , 0x4 , 0x4 , 0x3 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
switch (argIndex) {
case 0 : return TruffleStringConverterNode .create("charmap_encode" );
case 1 : return TruffleStringConverterWithDefaultValueNode .create("charmap_encode" , T_STRICT , true );
}
return super .createCastNode(argIndex, builtin);
}
}
public static final class CodecsEscapeEncodeNodeClinicProviderGen extends ArgumentClinicProvider {
public static final CodecsEscapeEncodeNodeClinicProviderGen INSTANCE = new CodecsEscapeEncodeNodeClinicProviderGen ();
private CodecsEscapeEncodeNodeClinicProviderGen () {
super (0x1 , 0x1 , 0x1 , 0x1 , 0x2 );
}
@Override
public ArgumentCastNode createCastNode(int argIndex, PythonBuiltinBaseNode builtin) {
if (argIndex == 1 ) {
return TruffleStringConverterWithDefaultValueNode .create("escape_encode" , T_STRICT , true );
}
return super .createCastNode(argIndex, builtin);
}
}
}