Tabnine Logo
VirtualFrame.getLong
Code IndexAdd Tabnine to your IDE (free)

How to use
getLong
method
in
com.oracle.truffle.api.frame.VirtualFrame

Best Java code snippets using com.oracle.truffle.api.frame.VirtualFrame.getLong (Showing top 3 results out of 315)

origin: cesquivias/mumbler

@Specialization(rewriteOn = FrameSlotTypeException.class)
protected long readLong(VirtualFrame virtualFrame)
    throws FrameSlotTypeException{
  return virtualFrame.getLong(getSlot());
}
origin: sh286/LuaTruffle

@Specialization(rewriteOn = FrameSlotTypeException.class)
protected long readLong(VirtualFrame frame) throws FrameSlotTypeException {
  return frame.getLong(getSlot());
}
origin: com.oracle.truffle/truffle-debug

@Override
protected void onReturnValue(VirtualFrame frame, Object result) {
  long startTime;
  Counter parentCounter;
  try {
    startTime = frame.getLong(timeStartedSlot);
    parentCounter = (Counter) frame.getObject(parentCounterSlot);
  } catch (FrameSlotTypeException e) {
    throw new AssertionError();
  }
  long timeNano = System.nanoTime() - startTime;
  if (CompilerDirectives.inInterpreter()) {
    counter.interpretedTotalTime += timeNano;
  } else {
    counter.compiledTotalTime += timeNano;
  }
  // the condition if parentCounter is usually only for a root method null
  // after that it is always set. So it makes sense to speculate.
  if (parentNotNullProfile.profile(parentCounter != null)) {
    // do not speculate on parentCounter.compiled condition very likely to invalidate
    if (parentCounter.compiled) {
      parentCounter.compiledChildTime += timeNano;
    } else {
      parentCounter.interpretedChildTime += timeNano;
    }
  }
  profiler.activeCounter = parentCounter;
}
com.oracle.truffle.api.frameVirtualFramegetLong

Popular methods of VirtualFrame

  • getArguments
  • setObject
  • getObject
  • materialize
  • getFrameDescriptor
  • setLong
  • getBoolean
  • getValue
  • setBoolean
  • setInt

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now