java.lang.Object
org.htmlunit.corejs.javascript.ACallFrame<CallFrameV2,CompilerData<?>>
org.htmlunit.corejs.javascript.CallFrameV2
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintbooleanFields inherited from class org.htmlunit.corejs.javascript.ACallFrame
compilerData, debuggerFrame, doubleStack, emptyStackTop, fnOrScript, frameIndex, frozen, localShift, newTarget, parentFrame, parentPC, pc, previousInterpreterFrame, result, resultDbl, scope, stack, stackAttributes, stackTop, thisObj, throwable, useActivation, varSource -
Constructor Summary
ConstructorsConstructorDescriptionCallFrameV2(Context cx, VarScope callerScope, Object thisObj, Object newTarget, Scriptable homeObj, Object[] args, double[] doubleArgs, int argShift, int argCount, ScriptOrFn<?> fnOrScript, CallFrameV2 parentFrame, ACallFrame<?, ?> previousInterpreterFrame) -
Method Summary
Modifier and TypeMethodDescriptionObject[]getArguments(Context cx, Operand[] arguments) getData()Returns the debuggable script data associated with this frame.ScriptOrFn<?>intReturns the index of this frame in the call stack (0 for the top-level frame).getLocal(int index) doublegetLocalDouble(int index) Returns the parent frame, or null if this is the top-level frame.intintReturns the program counter position for source line information.doublegetSubRoutineReturnPC(int returnPcOffset) getVar(int index) getVarAndWrap(int index) intgetVarAttribute(int index) doublegetVarDouble(int index) booleanhasSubRoutineReturnPC(int returnPcOffset) booleanbooleanisVarDouble(int index) peek()peek(int offset) doubledoublepeekDouble(int offset) pop()doublevoidpopN(int n) voidvoidpush(double val) voidpush(int val) voidvoidvoidresetVarAttributes(int index, int attributes) voidsaveExceptionScope(int exceptionIndex, VarScope scope) voidsaveSubRoutineReturnPC(int returnPcOffset, double subRoutineReturnPC) voidvoidsetResult(double value) voidvoidsetVar(int index, double value) voidvoidvoidsetVarAttribute(int index, int attributes) shallowCloneFrozen(ACallFrame newPreviousInterpreterFrame) voidsyncStateToFrame(CallFrameV2 otherFrame) Methods inherited from class org.htmlunit.corejs.javascript.ACallFrame
getPreviousInterpreterFrame
-
Field Details
-
pcPrevBranch
public int pcPrevBranch -
shouldYieldToParent
public boolean shouldYieldToParent -
generatorState
-
-
Constructor Details
-
CallFrameV2
public CallFrameV2(Context cx, VarScope callerScope, Object thisObj, Object newTarget, Scriptable homeObj, Object[] args, double[] doubleArgs, int argShift, int argCount, ScriptOrFn<?> fnOrScript, CallFrameV2 parentFrame, ACallFrame<?, ?> previousInterpreterFrame)
-
-
Method Details
-
push
-
push
public void push(int val) -
push
public void push(double val) -
push
-
popResult
public void popResult() -
pop
-
popDouble
public double popDouble() -
peek
-
peek
-
peekDouble
public double peekDouble(int offset) -
peekDouble
public double peekDouble() -
isStackEmpty
public boolean isStackEmpty() -
saveExceptionScope
-
saveSubRoutineReturnPC
public void saveSubRoutineReturnPC(int returnPcOffset, double subRoutineReturnPC) -
hasSubRoutineReturnPC
public boolean hasSubRoutineReturnPC(int returnPcOffset) -
getSubRoutineReturnPC
public double getSubRoutineReturnPC(int returnPcOffset) -
getVarAndWrap
-
getVar
-
isVarDouble
public boolean isVarDouble(int index) -
getVarDouble
public double getVarDouble(int index) -
setVar
-
setVar
public void setVar(int index, double value) -
setVar
-
getVarAttribute
public int getVarAttribute(int index) -
setVarAttribute
public void setVarAttribute(int index, int attributes) -
resetVarAttributes
public void resetVarAttributes(int index, int attributes) -
getLocal
-
getLocalDouble
public double getLocalDouble(int index) -
setLocal
-
setResult
-
setResult
public void setResult(double value) -
getArguments
-
getFrameIndex
public int getFrameIndex()Description copied from class:ACallFrameReturns the index of this frame in the call stack (0 for the top-level frame).- Specified by:
getFrameIndexin classACallFrame<CallFrameV2,CompilerData<?>>
-
getParentFrame
Description copied from class:ACallFrameReturns the parent frame, or null if this is the top-level frame.- Specified by:
getParentFramein classACallFrame<CallFrameV2,CompilerData<?>>
-
getPcSourceLineStart
public int getPcSourceLineStart()Description copied from class:ACallFrameReturns 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.- Specified by:
getPcSourceLineStartin classACallFrame<CallFrameV2,CompilerData<?>>
-
getData
Description copied from class:ACallFrameReturns the debuggable script data associated with this frame.- Specified by:
getDatain classACallFrame<CallFrameV2,CompilerData<?>>
-
getFnOrScript
- Overrides:
getFnOrScriptin classACallFrame<CallFrameV2,CompilerData<?>>
-
getParentPC
public int getParentPC()- Overrides:
getParentPCin classACallFrame<CallFrameV2,CompilerData<?>>
-
cloneFrozen
-
captureForGenerator
-
shallowCloneFrozen
-
syncStateToFrame
-
popN
public void popN(int n)
-