Examples of StackFrame


Examples of de.scoopgmbh.copper.monitoring.core.debug.StackFrame

          TreeItem<DisplayableNode> oldValue,
          TreeItem<DisplayableNode> newValue) {
        TreeItem<DisplayableNode> currentItem = newValue;
        while (currentItem != null) {
          if (currentItem.getValue() instanceof StackFrame) {
            StackFrame sf = (StackFrame)currentItem.getValue();
            byte[] sourceBytes = sf.getSourceCode();
            String sourceCode = new String(sourceBytes,Charsets.UTF_8);
           
            int line = sf.getLine() != null?sf.getLine():0;
            sourceView.getEngine().loadContent(codeMirrorFormatter.format(sourceCode, CodeFormatLanguage.JAVA, false, line ));
            return;
          }
          currentItem = currentItem.getParent();
        }
View Full Code Here

Examples of de.scoopgmbh.copper.monitoring.core.debug.StackFrame

      Method method = new Method(currentMethod.getDefiningClass(), currentMethod.getDeclaration());
      List<LabelInfo> labelInfos = currentMethod.getLabelInfos();
      LabelInfo lf = labelInfos.size() >= en.jumpNo?
          new LabelInfo(en.jumpNo, -1, Collections.<String>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), Collections.<Type>emptyList(), "INCOMPATIBLE_STACKINFO_OUTPUT_ABORTED", "()V")
          :labelInfos.get(en.jumpNo);
      StackFrame sf = new StackFrame(method, lf.getLineNo(), definingClass[0].getSourceCode());
      for (int i = 0; i < lf.getLocals().length; ++i) {
        LocalVariable v = lf.getLocals()[i];
        if (v != null) {
          Object local = en.locals[i];
          Member m = new Member(v.getName(), v.getDeclaredType(), local != null?DataTool.convert(local):Data.NULL );
          sf.getLocals().add(m);
        }
      }
      for (int i = 0; i < lf.getStack().length; ++i) {
        SerializableType v = lf.getStack()[i];
        if (v != null) {
          Object local = en.stack[i];
          Member m = new Member(""+i, v.getDeclaredType(), local != null?DataTool.convert(local):Data.NULL );
          sf.getStack().add(m);
        }
      }
      verboseStack.add(sf);
      currentMethod = getMethod(classInfo, lf.getCalledMethodName(), lf.getCalledMethodDescriptor(), definingClass);
      if (currentMethod == null)
View Full Code Here

Examples of net.sf.saxon.expr.StackFrame

        // We only copy the local variables if the expression has dependencies on local variables.
        // It would be even smarter to copy only those variables that we need; but that gives
        // diminishing returns.

        if ((instruction.getDependencies() & StaticProperty.DEPENDS_ON_LOCAL_VARIABLES) != 0) {
            StackFrame localStackFrame = context.getStackFrame();
            ValueRepresentation[] local = localStackFrame.getStackFrameValues();
            if (local != null) {
                ValueRepresentation[] savedStackFrame = new ValueRepresentation[local.length];
                System.arraycopy(local, 0, savedStackFrame, 0, local.length);
                savedXPathContext.setStackFrame(localStackFrame.getStackFrameMap(), savedStackFrame);
            }
        }

        // Make a copy of the context item
        SequenceIterator currentIterator = context.getCurrentIterator();
View Full Code Here

Examples of org.chromium.debug.core.model.StackFrame

  private static VmResourceId getVmResourceId(Object object) throws CoreException {
    if (object instanceof Script) {
      Script script = (Script) object;
      return VmResourceId.forScript(script);
    } else if (object instanceof StackFrame) {
      StackFrame jsStackFrame = (StackFrame) object;
      return jsStackFrame.getVmResourceId();
    } else if (object instanceof Breakpoint) {
      Breakpoint breakpoint = (Breakpoint) object;
      return breakpoint.getTarget().accept(BREAKPOINT_RESOURCE_VISITOR);
    } else if (object instanceof VmResourceId) {
      VmResourceId resourceId = (VmResourceId) object;
View Full Code Here

Examples of org.jboss.classfilewriter.code.StackFrame

        stream.writeShort(ca.getStackFrames().size());
        int lastPos = -1;
        for (Entry<Integer, StackFrame> entry : method.getCodeAttribute().getStackFrames().entrySet()) {
            int offset = entry.getKey() - lastPos - 1;
            lastPos = entry.getKey();
            StackFrame frame = entry.getValue();
            if (frame.getType() == StackFrameType.SAME_FRAME || frame.getType() == StackFrameType.SAME_FRAME_EXTENDED) {
                writeSameFrame(stream, offset, lastPos, frame);
            } else if (frame.getType() == StackFrameType.SAME_LOCALS_1_STACK && offset < (127 - 64)) {
                writeSameLocals1Stack(stream, offset, lastPos, frame);
            } else {
                writeFullFrame(stream, offset, lastPos, entry.getValue());
            }
        }
View Full Code Here

Examples of org.jboss.classfilewriter.code.StackFrame

        stream.writeShort(ca.getStackFrames().size());
        int lastPos = -1;
        for (Entry<Integer, StackFrame> entry : method.getCodeAttribute().getStackFrames().entrySet()) {
            int offset = entry.getKey() - lastPos - 1;
            lastPos = entry.getKey();
            StackFrame frame = entry.getValue();
            if (frame.getType() == StackFrameType.SAME_FRAME || frame.getType() == StackFrameType.SAME_FRAME_EXTENDED) {
                writeSameFrame(stream, offset, lastPos, frame);
            } else if (frame.getType() == StackFrameType.SAME_LOCALS_1_STACK && offset < (127 - 64)) {
                writeSameLocals1Stack(stream, offset, lastPos, frame);
            } else {
                writeFullFrame(stream, offset, lastPos, entry.getValue());
            }
        }
View Full Code Here

Examples of org.jboss.classfilewriter.code.StackFrame

        // TODO: optimise the frame creation
        int lastPos = -1;
        for (Entry<Integer, StackFrame> entry : method.getCodeAttribute().getStackFrames().entrySet()) {
            int offset = entry.getKey() - lastPos - 1;
            lastPos = entry.getKey();
            StackFrame frame = entry.getValue();
            if (frame.getType() == StackFrameType.SAME_FRAME || frame.getType() == StackFrameType.SAME_FRAME_EXTENDED) {
                writeSameFrame(dstream, offset, lastPos, frame);
            } else if (frame.getType() == StackFrameType.SAME_LOCALS_1_STACK && offset < (127 - 64)) {
                writeSameLocals1Stack(dstream, offset, lastPos, frame);
            } else {
                writeFullFrame(dstream, offset, lastPos, entry.getValue());
            }
        }
View Full Code Here

Examples of org.pdf4j.saxon.expr.StackFrame

        // We only copy the local variables if the expression has dependencies on local variables.
        // It would be even smarter to copy only those variables that we need; but that gives
        // diminishing returns.

        if ((instruction.getDependencies() & StaticProperty.DEPENDS_ON_LOCAL_VARIABLES) != 0) {
            StackFrame localStackFrame = context.getStackFrame();
            ValueRepresentation[] local = localStackFrame.getStackFrameValues();
            if (local != null) {
                ValueRepresentation[] savedStackFrame = new ValueRepresentation[local.length];
                System.arraycopy(local, 0, savedStackFrame, 0, local.length);
                savedXPathContext.setStackFrame(localStackFrame.getStackFrameMap(), savedStackFrame);
            }
        }

        // Make a copy of the context item
        SequenceIterator currentIterator = context.getCurrentIterator();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.