org.truffleruby.core.MathNodesBuiltins Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ruby-language Show documentation
Show all versions of ruby-language Show documentation
Core module of Ruby on Truffle
The newest version!
package org.truffleruby.core;
import org.truffleruby.builtins.CoreMethodNodeManager;
import org.truffleruby.builtins.PrimitiveManager;
import org.truffleruby.annotations.Visibility;
import org.truffleruby.annotations.Split;
// GENERATED BY org.truffleruby.processor.CoreModuleProcessor
public class MathNodesBuiltins {
public static void setup(CoreMethodNodeManager coreMethodManager) {
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ACosNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "acos");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ACosHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "acosh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ASinNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "asin");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ASinHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "asinh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ATanNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "atan");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ATan2NodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 2, 0, false, false, "atan2");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ATanHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "atanh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$CbRtNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "cbrt");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$CosNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "cos");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$CosHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "cosh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ErfNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "erf");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ErfcNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "erfc");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$ExpNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "exp");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$GammaNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "gamma");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$LGammaNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "lgamma");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$LogNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 1, false, false, "log");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$Log10NodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "log10");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$Log2NodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "log2");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$SinNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "sin");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$SinHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "sinh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$TanNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "tan");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$TanHNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "tanh");
coreMethodManager.addLazyCoreMethod("org.truffleruby.core.MathNodesFactory$SqrtNodeFactory",
"Math", false, Visibility.PUBLIC, true, false, false, Split.DEFAULT, 1, 0, false, false, "sqrt");
}
public static void setupPrimitives(PrimitiveManager primitiveManager) {
primitiveManager.addLazyPrimitive("math_frexp", "org.truffleruby.core.MathNodesFactory$FrExpNodeFactory");
primitiveManager.addLazyPrimitive("math_hypot", "org.truffleruby.core.MathNodesFactory$HypotNodeFactory");
primitiveManager.addLazyPrimitive("math_ldexp", "org.truffleruby.core.MathNodesFactory$LdexpNodeFactory");
primitiveManager.addLazyPrimitive("min", "org.truffleruby.core.MathNodesFactory$MinNodeFactory");
primitiveManager.addLazyPrimitive("max", "org.truffleruby.core.MathNodesFactory$MaxNodeFactory");
}
}