All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.truffle.js.nodes.intl.CreateRegExpNodeGen Maven / Gradle / Ivy

// CheckStyle: start generated
package com.oracle.truffle.js.nodes.intl;

import com.oracle.truffle.api.CompilerDirectives;
import com.oracle.truffle.api.CompilerDirectives.CompilationFinal;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.dsl.NeverDefault;
import com.oracle.truffle.api.dsl.UnsupportedSpecializationException;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.JSRealm;
import com.oracle.truffle.js.runtime.builtins.JSRegExpObject;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;

/**
 * Debug Info: 
 *   Specialization {@link CreateRegExpNode#createWithoutNamedCG}
 *     Activation probability: 0.65000
 *     With/without class size: 11/0 bytes
 *   Specialization {@link CreateRegExpNode#createWithNamedCG}
 *     Activation probability: 0.35000
 *     With/without class size: 8/0 bytes
 * 
*/ @GeneratedBy(CreateRegExpNode.class) @SuppressWarnings("javadoc") public final class CreateRegExpNodeGen extends CreateRegExpNode { /** * State Info:
     *   0: SpecializationActive {@link CreateRegExpNode#createWithoutNamedCG}
     *   1: SpecializationActive {@link CreateRegExpNode#createWithNamedCG}
     * 
*/ @CompilationFinal private int state_0_; private CreateRegExpNodeGen(JSContext context) { super(context); } @Override protected JSRegExpObject execute(Object arg0Value, boolean arg1Value, JSRealm arg2Value, JSDynamicObject arg3Value, Object arg4Value, boolean arg5Value) { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[CreateRegExpNode.createWithoutNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] || SpecializationActive[CreateRegExpNode.createWithNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] */) { if ((state_0 & 0b1) != 0 /* is SpecializationActive[CreateRegExpNode.createWithoutNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] */) { if ((!(CreateRegExpNode.b(arg5Value)))) { return createWithoutNamedCG(arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } } if ((state_0 & 0b10) != 0 /* is SpecializationActive[CreateRegExpNode.createWithNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] */) { if ((CreateRegExpNode.b(arg5Value))) { return createWithNamedCG(arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } } } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } private JSRegExpObject executeAndSpecialize(Object arg0Value, boolean arg1Value, JSRealm arg2Value, JSDynamicObject arg3Value, Object arg4Value, boolean arg5Value) { int state_0 = this.state_0_; if ((!(CreateRegExpNode.b(arg5Value)))) { state_0 = state_0 | 0b1 /* add SpecializationActive[CreateRegExpNode.createWithoutNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] */; this.state_0_ = state_0; return createWithoutNamedCG(arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } if ((CreateRegExpNode.b(arg5Value))) { state_0 = state_0 | 0b10 /* add SpecializationActive[CreateRegExpNode.createWithNamedCG(Object, boolean, JSRealm, JSDynamicObject, Object, boolean)] */; this.state_0_ = state_0; return createWithNamedCG(arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } throw new UnsupportedSpecializationException(this, null, arg0Value, arg1Value, arg2Value, arg3Value, arg4Value, arg5Value); } @NeverDefault public static CreateRegExpNode create(JSContext context) { return new CreateRegExpNodeGen(context); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy