Codota Logo
ValueProfile$ExactClass.create
Code IndexAdd Codota to your IDE (free)

How to use
create
method
in
com.oracle.truffle.api.profiles.ValueProfile$ExactClass

Best Java code snippets using com.oracle.truffle.api.profiles.ValueProfile$ExactClass.create (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: com.oracle.truffle/truffle-api

/**
 * <p>
 * Returns a value profile that profiles the exact class of a value. It will check the class of
 * the profiled value and provide additional information to the compiler if only non-null values
 * of exactly one concrete Java class are passed as a parameter to the
 * {@link ValueProfile#profile} method. This can be beneficial if subsequent code can take
 * advantage of knowing the concrete class of the value. The profile will degrade to the generic
 * case if a null value or if at least two instances of two different Java classes are
 * registered.
 * </p>
 *
 * <p>
 * <b>Compilation notes:</b> Value profiles require a runtime check in their initialized state
 * to verify their profiled class. If two classes have been seen on a single profile instance
 * then this profile will transition to a generic state with no overhead.
 * </P>
 *
 * @see ValueProfile usage example
 * @since 0.10
 */
public static ValueProfile createClassProfile() {
  if (Profile.isProfilingEnabled()) {
    return ExactClass.create();
  } else {
    return Disabled.INSTANCE;
  }
}
origin: org.graalvm.truffle/truffle-api

/**
 * <p>
 * Returns a value profile that profiles the exact class of a value. It will check the class of
 * the profiled value and provide additional information to the compiler if only non-null values
 * of exactly one concrete Java class are passed as a parameter to the
 * {@link ValueProfile#profile} method. This can be beneficial if subsequent code can take
 * advantage of knowing the concrete class of the value. The profile will degrade to the generic
 * case if a null value or if at least two instances of two different Java classes are
 * registered.
 * </p>
 *
 * <p>
 * <b>Compilation notes:</b> Value profiles require a runtime check in their initialized state
 * to verify their profiled class. If two classes have been seen on a single profile instance
 * then this profile will transition to a generic state with no overhead.
 * </P>
 *
 * @see ValueProfile usage example
 * @since 0.10
 */
public static ValueProfile createClassProfile() {
  if (Profile.isProfilingEnabled()) {
    return ExactClass.create();
  } else {
    return Disabled.INSTANCE;
  }
}
com.oracle.truffle.api.profilesValueProfile$ExactClasscreate

Popular methods of ValueProfile$ExactClass

  • <init>
  • toString

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now