Метод | Описание | |
---|---|---|
EmitLongJump ( |
Emits code to branch between statements, even if code generation is within a finally block (where unconditional branches are not allowed).
|
|
GetBreakTarget ( string labelName = null ) : ILLabel |
Returns the break target for the statement with the given label, if one is provided, or the top-most break target otherwise.
|
|
GetContinueTarget ( string labelName = null ) : ILLabel |
Returns the continue target for the statement with the given label, if one is provided, or the top-most continue target otherwise.
|
|
GetRegExpVariable ( |
Retrieves a variable that can be used to store a shared instance of a regular expression.
|
|
MarkSequencePoint ( |
Emits a sequence point, and sets the SourceSpan property.
|
|
OptimizationInfo ( ScriptEngine engine ) : System |
Creates a new OptimizationInfo instance.
|
|
PopBreakOrContinueInfo ( ) : void |
Removes the top-most break or continue information from the stack.
|
|
PushBreakOrContinueInfo ( IList |
Pushes information about break or continue targets to a stack.
|
Метод | Описание | |
---|---|---|
GetBreakOrContinueLabelDepth ( ILLabel label ) : int |
Searches for the given label in the break/continue stack.
|
public EmitLongJump ( |
||
generator | The generator to output the CIL to. | |
targetLabel | ILLabel | The label to jump to. |
Результат | void |
public GetBreakTarget ( string labelName = null ) : ILLabel | ||
labelName | string | The label associated with the break target. Can be
/// |
Результат | ILLabel |
public GetContinueTarget ( string labelName = null ) : ILLabel | ||
labelName | string | The label associated with the continue target. Can be
/// |
Результат | ILLabel |
public GetRegExpVariable ( |
||
generator | The IL generator used to create the variable. | |
literal | Jurassic.Compiler.RegularExpressionLiteral | The regular expression literal. |
Результат |
public MarkSequencePoint ( |
||
generator | The IL generator used to emit the sequence point. | |
span | Jurassic.Compiler.SourceCodeSpan | The source code span. |
Результат | void |
public OptimizationInfo ( ScriptEngine engine ) : System | ||
engine | ScriptEngine | The associated script engine. |
Результат | System |
public PushBreakOrContinueInfo ( IList |
||
labelNames | IList |
The label names associated with the break or continue target.
/// Can be |
breakTarget | ILLabel | The IL label to jump to if a break statement is encountered. |
continueTarget | ILLabel | The IL label to jump to if a continue statement is
/// encountered. Can be |
labelledOnly | bool | |
Результат | void |