Module org.htmlunit.corejs
Package org.htmlunit.corejs.javascript
Class ACallFrame<T extends ACallFrame<T,U>,U extends ACompilerData<?,U>>
java.lang.Object
org.htmlunit.corejs.javascript.ACallFrame<T,U>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CallFrameV2
public abstract class ACallFrame<T extends ACallFrame<T,U>,U extends ACompilerData<?,U>>
extends Object
implements Serializable
Interface representing a call frame in the interpreter. This abstraction allows both the original
interpreter's CallFrame and InterpreterV2's CallFrameV2 to be used interchangeably for stack
traces and debugging purposes.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DebugFramefinal double[]final shortScriptOrFn<?>final shortbooleanfinal intfinal Objectfinal Tfinal intintfinal ACallFrame<?,?> doublefinal Object[]final byte[]intfinal booleanACallFrame<T,U> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedACallFrame(T original, T parentFrame, ACallFrame<?, ?> previousInterpreterFrame) protectedACallFrame(T original, T parentFrame, ACallFrame<?, ?> previousInterpreterFrame, boolean copyStack, boolean keepFrozen) -
Method Summary
Modifier and TypeMethodDescriptionabstract DebuggableScriptgetData()Returns the debuggable script data associated with this frame.ScriptOrFn<?>abstract intReturns the index of this frame in the call stack (0 for the top-level frame).abstract ACallFrame<T,U> Returns the parent frame, or null if this is the top-level frame.intabstract intReturns the program counter position for source line information.ACallFrame<?,?>
-
Field Details
-
parentFrame
-
frameIndex
public final short frameIndex -
previousInterpreterFrame
-
parentPC
public final int parentPC -
frozen
public boolean frozen -
fnOrScript
-
compilerData
-
stack
-
stackAttributes
public final byte[] stackAttributes -
doubleStack
public final double[] doubleStack -
result
-
resultDbl
public double resultDbl -
pc
public int pc -
stackTop
public int stackTop -
scope
-
thisObj
-
newTarget
-
debuggerFrame
-
useActivation
public final boolean useActivation -
varSource
-
localShift
public final int localShift -
emptyStackTop
public final short emptyStackTop -
throwable
-
-
Constructor Details
-
ACallFrame
-
ACallFrame
protected ACallFrame(T original, T parentFrame, ACallFrame<?, ?> previousInterpreterFrame, boolean copyStack, boolean keepFrozen)
-
-
Method Details
-
getFrameIndex
public abstract int getFrameIndex()Returns the index of this frame in the call stack (0 for the top-level frame). -
getParentFrame
Returns the parent frame, or null if this is the top-level frame. -
getPcSourceLineStart
public abstract int getPcSourceLineStart()Returns the program counter position for source line information. For the original interpreter, this is the PC at the start of the current source line. For InterpreterV2, this may be the current PC. -
getData
Returns the debuggable script data associated with this frame. -
getParentPC
public int getParentPC() -
getPreviousInterpreterFrame
-
getFnOrScript
-