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

com.oracle.truffle.js.builtins.ConsoleBuiltinsFactory Maven / Gradle / Ivy

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

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.frame.VirtualFrame;
import com.oracle.truffle.api.nodes.Node;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleAssertNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleClearNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleCountNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleCountResetNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleGroupEndNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleGroupNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleTimeEndNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleTimeLogNode;
import com.oracle.truffle.js.builtins.ConsoleBuiltins.JSConsoleTimeNode;
import com.oracle.truffle.js.nodes.JavaScriptNode;
import com.oracle.truffle.js.nodes.function.JSBuiltin;
import com.oracle.truffle.js.runtime.JSContext;
import com.oracle.truffle.js.runtime.objects.JSDynamicObject;

@GeneratedBy(ConsoleBuiltins.class)
@SuppressWarnings({"javadoc", "unused"})
public final class ConsoleBuiltinsFactory {

    /**
     * Debug Info: 
     *   Specialization {@link JSConsoleAssertNode#assertImpl}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleAssertNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleAssertNodeGen extends JSConsoleAssertNode { @Child private JavaScriptNode arguments0_; /** * State Info:
         *   0: SpecializationActive {@link JSConsoleAssertNode#assertImpl}
         * 
*/ @CompilationFinal private int state_0_; private JSConsoleAssertNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { int state_0 = this.state_0_; Object arguments0Value_ = this.arguments0_.execute(frameValue); if (state_0 != 0 /* is SpecializationActive[ConsoleBuiltins.JSConsoleAssertNode.assertImpl(Object[])] */ && arguments0Value_ instanceof Object[]) { Object[] arguments0Value__ = (Object[]) arguments0Value_; return assertImpl(arguments0Value__); } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arguments0Value_); } private JSDynamicObject executeAndSpecialize(Object arguments0Value) { int state_0 = this.state_0_; if (arguments0Value instanceof Object[]) { Object[] arguments0Value_ = (Object[]) arguments0Value; state_0 = state_0 | 0b1 /* add SpecializationActive[ConsoleBuiltins.JSConsoleAssertNode.assertImpl(Object[])] */; this.state_0_ = state_0; return assertImpl(arguments0Value_); } throw new UnsupportedSpecializationException(this, new Node[] {this.arguments0_}, arguments0Value); } @NeverDefault public static JSConsoleAssertNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleAssertNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleClearNode#clear}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleClearNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleClearNodeGen extends JSConsoleClearNode { private JSConsoleClearNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {}; } @Override public Object execute(VirtualFrame frameValue) { return clear(); } @NeverDefault public static JSConsoleClearNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleClearNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleCountNode#count}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleCountNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleCountNodeGen extends JSConsoleCountNode { @Child private JavaScriptNode arguments0_; private JSConsoleCountNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { Object arguments0Value_ = this.arguments0_.execute(frameValue); return count(arguments0Value_); } @NeverDefault public static JSConsoleCountNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleCountNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleCountResetNode#count}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleCountResetNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleCountResetNodeGen extends JSConsoleCountResetNode { @Child private JavaScriptNode arguments0_; private JSConsoleCountResetNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { Object arguments0Value_ = this.arguments0_.execute(frameValue); return count(arguments0Value_); } @NeverDefault public static JSConsoleCountResetNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleCountResetNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleGroupNode#group}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleGroupNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleGroupNodeGen extends JSConsoleGroupNode { @Child private JavaScriptNode arguments0_; /** * State Info:
         *   0: SpecializationActive {@link JSConsoleGroupNode#group}
         * 
*/ @CompilationFinal private int state_0_; private JSConsoleGroupNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { int state_0 = this.state_0_; Object arguments0Value_ = this.arguments0_.execute(frameValue); if (state_0 != 0 /* is SpecializationActive[ConsoleBuiltins.JSConsoleGroupNode.group(Object[])] */ && arguments0Value_ instanceof Object[]) { Object[] arguments0Value__ = (Object[]) arguments0Value_; return group(arguments0Value__); } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arguments0Value_); } private JSDynamicObject executeAndSpecialize(Object arguments0Value) { int state_0 = this.state_0_; if (arguments0Value instanceof Object[]) { Object[] arguments0Value_ = (Object[]) arguments0Value; state_0 = state_0 | 0b1 /* add SpecializationActive[ConsoleBuiltins.JSConsoleGroupNode.group(Object[])] */; this.state_0_ = state_0; return group(arguments0Value_); } throw new UnsupportedSpecializationException(this, new Node[] {this.arguments0_}, arguments0Value); } @NeverDefault public static JSConsoleGroupNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleGroupNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleGroupEndNode#groupEnd}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleGroupEndNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleGroupEndNodeGen extends JSConsoleGroupEndNode { private JSConsoleGroupEndNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {}; } @Override public Object execute(VirtualFrame frameValue) { return groupEnd(); } @NeverDefault public static JSConsoleGroupEndNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleGroupEndNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleTimeNode#time}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleTimeNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleTimeNodeGen extends JSConsoleTimeNode { @Child private JavaScriptNode arguments0_; private JSConsoleTimeNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { Object arguments0Value_ = this.arguments0_.execute(frameValue); return time(arguments0Value_); } @NeverDefault public static JSConsoleTimeNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleTimeNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleTimeEndNode#timeEnd}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleTimeEndNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleTimeEndNodeGen extends JSConsoleTimeEndNode { @Child private JavaScriptNode arguments0_; private JSConsoleTimeEndNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { Object arguments0Value_ = this.arguments0_.execute(frameValue); return timeEnd(arguments0Value_); } @NeverDefault public static JSConsoleTimeEndNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleTimeEndNodeGen(context, builtin, arguments); } } /** * Debug Info:
     *   Specialization {@link JSConsoleTimeLogNode#timeLog}
     *     Activation probability: 1.00000
     *     With/without class size: 16/0 bytes
     * 
*/ @GeneratedBy(JSConsoleTimeLogNode.class) @SuppressWarnings("javadoc") public static final class JSConsoleTimeLogNodeGen extends JSConsoleTimeLogNode { @Child private JavaScriptNode arguments0_; /** * State Info:
         *   0: SpecializationActive {@link JSConsoleTimeLogNode#timeLog}
         * 
*/ @CompilationFinal private int state_0_; private JSConsoleTimeLogNodeGen(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { super(context, builtin); this.arguments0_ = arguments != null && 0 < arguments.length ? arguments[0] : null; } @Override public JavaScriptNode[] getArguments() { return new JavaScriptNode[] {this.arguments0_}; } @Override public Object execute(VirtualFrame frameValue) { int state_0 = this.state_0_; Object arguments0Value_ = this.arguments0_.execute(frameValue); if (state_0 != 0 /* is SpecializationActive[ConsoleBuiltins.JSConsoleTimeLogNode.timeLog(Object[])] */ && arguments0Value_ instanceof Object[]) { Object[] arguments0Value__ = (Object[]) arguments0Value_; return timeLog(arguments0Value__); } CompilerDirectives.transferToInterpreterAndInvalidate(); return executeAndSpecialize(arguments0Value_); } private JSDynamicObject executeAndSpecialize(Object arguments0Value) { int state_0 = this.state_0_; if (arguments0Value instanceof Object[]) { Object[] arguments0Value_ = (Object[]) arguments0Value; state_0 = state_0 | 0b1 /* add SpecializationActive[ConsoleBuiltins.JSConsoleTimeLogNode.timeLog(Object[])] */; this.state_0_ = state_0; return timeLog(arguments0Value_); } throw new UnsupportedSpecializationException(this, new Node[] {this.arguments0_}, arguments0Value); } @NeverDefault public static JSConsoleTimeLogNode create(JSContext context, JSBuiltin builtin, JavaScriptNode[] arguments) { return new JSConsoleTimeLogNodeGen(context, builtin, arguments); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy