MCPcopy Index your code
hub / github.com/clojure/clojure / visitFrameStart

Method visitFrameStart

src/jvm/clojure/asm/MethodWriter.java:1813–1822  ·  view source on GitHub ↗

Starts the visit of a new stack map frame, stored in #currentFrame. @param offset the bytecode offset of the instruction to which the frame corresponds. @param nLocal the number of local variables in the frame. @param nStack the number of stack elements in the frame. @return the index of th

(final int offset, final int nLocal, final int nStack)

Source from the content-addressed store, hash-verified

1811 * @return the index of the next element to be written in this frame.
1812 */
1813 int visitFrameStart(final int offset, final int nLocal, final int nStack) {
1814 int frameLength = 3 + nLocal + nStack;
1815 if (currentFrame == null || currentFrame.length < frameLength) {
1816 currentFrame = new int[frameLength];
1817 }
1818 currentFrame[0] = offset;
1819 currentFrame[1] = nLocal;
1820 currentFrame[2] = nStack;
1821 return 3;
1822 }
1823
1824 /**
1825 * Sets an abstract type in {@link #currentFrame}.

Callers 3

visitFrameMethod · 0.95
computeAllFramesMethod · 0.95
acceptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected