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

com.oracle.truffle.js.builtins.json.JSONStringifyStringNodeGen Maven / Gradle / Ivy

// CheckStyle: start generated
package com.oracle.truffle.js.builtins.json;

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.api.strings.TruffleString;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.objects.JSObject;

/**
 * Debug Info: 
 *   Specialization {@link JSONStringifyStringNode#jsonStrMain}
 *     Activation probability: 1.00000
 *     With/without class size: 16/0 bytes
 * 
*/ @GeneratedBy(JSONStringifyStringNode.class) @SuppressWarnings("javadoc") public final class JSONStringifyStringNodeGen extends JSONStringifyStringNode { /** * State Info:
     *   0: SpecializationActive {@link JSONStringifyStringNode#jsonStrMain}
     * 
*/ @CompilationFinal private int state_0_; private JSONStringifyStringNodeGen(JSContext context) { super(context); } @Override public Object execute(Object arg0Value, Object arg1Value, JSObject arg2Value) { int state_0 = this.state_0_; if (state_0 != 0 /* is SpecializationActive[JSONStringifyStringNode.jsonStrMain(Object, TruffleString, JSObject)] */ && arg1Value instanceof TruffleString) { TruffleString arg1Value_ = (TruffleString) arg1Value; return jsonStrMain(arg0Value, arg1Value_, arg2Value); } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arg0Value, arg1Value, arg2Value); } private Object executeAndSpecialize(Object arg0Value, Object arg1Value, JSObject arg2Value) { int state_0 = this.state_0_; if (arg1Value instanceof TruffleString) { TruffleString arg1Value_ = (TruffleString) arg1Value; state_0 = state_0 | 0b1 /* add SpecializationActive[JSONStringifyStringNode.jsonStrMain(Object, TruffleString, JSObject)] */; this.state_0_ = state_0; return jsonStrMain(arg0Value, arg1Value_, arg2Value); } throw new UnsupportedSpecializationException(this, null, arg0Value, arg1Value, arg2Value); } @NeverDefault public static JSONStringifyStringNode create(JSContext context) { return new JSONStringifyStringNodeGen(context); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy