C# Class Rhino.Interpreter

Inheritance: Icode, Evaluator
Mostrar archivo Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
CaptureContinuation ( Context cx ) : NativeContinuation
CaptureStackInfo ( RhinoException ex ) : void
Compile ( CompilerEnvirons compilerEnv, ScriptNode tree, string encodedSource, bool returnFunction ) : object
CreateFunctionObject ( Context cx, Scriptable scope, object bytecode, object staticSecurityDomain ) : System.Function
CreateScriptObject ( object bytecode, object staticSecurityDomain ) : System.Script
GetPatchedStack ( RhinoException ex, string nativeStackTrace ) : string
GetScriptStack ( RhinoException ex ) : IList
GetScriptStackElements ( RhinoException ex ) : Rhino.ScriptStackElement[][]
GetSourcePositionFromStack ( Context cx, int linep ) : string
RestartContinuation ( NativeContinuation c, Context cx, Scriptable scope, object args ) : object
ResumeGenerator ( Context cx, Scriptable scope, int operation, object savedState, object value ) : object
SetEvalScriptFlag ( System.Script script ) : void

Private Methods

Method Description
AddInstructionCount ( Context cx, Interpreter frame, int extra ) : void
BytecodeSpan ( int bytecode ) : int
CaptureContinuation ( Context cx, Interpreter frame, bool requireContinuationsTopFrame ) : NativeContinuation
CaptureFrameForGenerator ( Interpreter frame ) : Interpreter.CallFrame
DoAdd ( object stack, double sDbl, int stackTop, Context cx ) : void
DoArithmetic ( Interpreter frame, int op, object stack, double sDbl, int stackTop ) : int
DoBitOp ( Interpreter frame, int op, object stack, double sDbl, int stackTop ) : int
DoCallSpecial ( Context cx, Interpreter frame, object stack, double sDbl, int stackTop, byte iCode, int indexReg ) : int
DoCompare ( Interpreter frame, int op, object stack, double sDbl, int stackTop ) : int
DoDelName ( Context cx, int op, object stack, double sDbl, int stackTop ) : int
DoElemIncDec ( Context cx, Interpreter frame, byte iCode, object stack, double sDbl, int stackTop ) : int
DoEquals ( object stack, double sDbl, int stackTop ) : bool
DoGetElem ( Context cx, Interpreter frame, object stack, double sDbl, int stackTop ) : int
DoGetVar ( Interpreter frame, object stack, double sDbl, int stackTop, object vars, double varDbls, int indexReg ) : int
DoInOrInstanceof ( Context cx, int op, object stack, double sDbl, int stackTop ) : int
DoRefMember ( Context cx, object stack, double sDbl, int stackTop, int flags ) : int
DoRefNsMember ( Context cx, object stack, double sDbl, int stackTop, int flags ) : int
DoRefNsName ( Context cx, Interpreter frame, object stack, double sDbl, int stackTop, int flags ) : int
DoSetConstVar ( Interpreter frame, object stack, double sDbl, int stackTop, object vars, double varDbls, int varAttributes, int indexReg ) : int
DoSetElem ( Context cx, object stack, double sDbl, int stackTop ) : int
DoSetVar ( Interpreter frame, object stack, double sDbl, int stackTop, object vars, double varDbls, int varAttributes, int indexReg ) : int
DoShallowEquals ( object stack, double sDbl, int stackTop ) : bool
DoVarIncDec ( Context cx, Interpreter frame, object stack, double sDbl, int stackTop, object vars, double varDbls, int indexReg ) : int
DumpICode ( InterpreterData idata ) : void
EnterFrame ( Context cx, Interpreter frame, object args, bool continuationRestart ) : void
ExitFrame ( Context cx, Interpreter frame, object throwable ) : void
FreezeGenerator ( Context cx, Interpreter frame, int stackTop, Interpreter generatorState ) : object
GetArgsArray ( object stack, double sDbl, int shift, int count ) : object[]
GetEncodedSource ( InterpreterData idata ) : string
GetExceptionHandler ( Interpreter frame, bool onlyFinally ) : int
GetIndex ( byte iCode, int pc ) : int
GetInt ( byte iCode, int pc ) : int
GetLineNumbers ( InterpreterData data ) : int[]
GetShort ( byte iCode, int pc ) : int
InitFrame ( Context cx, Scriptable callerScope, Scriptable thisObj, object args, double argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript, Interpreter parentFrame, Interpreter frame ) : void
InitFrameForApplyOrCall ( Context cx, Interpreter frame, int indexReg, object stack, double sDbl, int stackTop, int op, Scriptable calleeScope, IdFunctionObject ifun, InterpretedFunction iApplyCallable ) : Interpreter.CallFrame
InitFrameForNoSuchMethod ( Context cx, Interpreter frame, int indexReg, object stack, double sDbl, int stackTop, int op, Scriptable funThisObj, Scriptable calleeScope, ScriptRuntime noSuchMethodShim, InterpretedFunction ifun ) : Interpreter.CallFrame

Call __noSuchMethod__.

Call __noSuchMethod__.

InitFunction ( Context cx, Scriptable scope, InterpretedFunction parent, int index ) : void
Interpret ( InterpretedFunction ifun, Context cx, Scriptable scope, Scriptable thisObj, object args ) : object
InterpretLoop ( Context cx, Interpreter frame, object throwable ) : object
Interpreter ( ) : System
IsFrameEnterExitRequired ( Interpreter frame ) : bool
ProcessThrowable ( Context cx, object throwable, Interpreter frame, int indexReg, bool instructionCounting ) : Interpreter.CallFrame
SetCallResult ( Interpreter frame, object callResult, double callResultDbl ) : void
Stack_boolean ( Interpreter frame, int i ) : bool
Stack_double ( Interpreter frame, int i ) : double
Stack_int32 ( Interpreter frame, int i ) : int
ThawGenerator ( Interpreter frame, int stackTop, Interpreter generatorState, int op ) : object

Method Details

CaptureContinuation() public static method

public static CaptureContinuation ( Context cx ) : NativeContinuation
cx Context
return NativeContinuation

CaptureStackInfo() public method

public CaptureStackInfo ( RhinoException ex ) : void
ex RhinoException
return void

Compile() public method

public Compile ( CompilerEnvirons compilerEnv, ScriptNode tree, string encodedSource, bool returnFunction ) : object
compilerEnv CompilerEnvirons
tree Rhino.Ast.ScriptNode
encodedSource string
returnFunction bool
return object

CreateFunctionObject() public method

public CreateFunctionObject ( Context cx, Scriptable scope, object bytecode, object staticSecurityDomain ) : System.Function
cx Context
scope Scriptable
bytecode object
staticSecurityDomain object
return System.Function

CreateScriptObject() public method

public CreateScriptObject ( object bytecode, object staticSecurityDomain ) : System.Script
bytecode object
staticSecurityDomain object
return System.Script

GetPatchedStack() public method

public GetPatchedStack ( RhinoException ex, string nativeStackTrace ) : string
ex RhinoException
nativeStackTrace string
return string

GetScriptStack() public method

public GetScriptStack ( RhinoException ex ) : IList
ex RhinoException
return IList

GetScriptStackElements() public method

public GetScriptStackElements ( RhinoException ex ) : Rhino.ScriptStackElement[][]
ex RhinoException
return Rhino.ScriptStackElement[][]

GetSourcePositionFromStack() public method

public GetSourcePositionFromStack ( Context cx, int linep ) : string
cx Context
linep int
return string

RestartContinuation() public static method

public static RestartContinuation ( NativeContinuation c, Context cx, Scriptable scope, object args ) : object
c NativeContinuation
cx Context
scope Scriptable
args object
return object

ResumeGenerator() public static method

public static ResumeGenerator ( Context cx, Scriptable scope, int operation, object savedState, object value ) : object
cx Context
scope Scriptable
operation int
savedState object
value object
return object

SetEvalScriptFlag() public method

public SetEvalScriptFlag ( System.Script script ) : void
script System.Script
return void