C# 클래스 Jurassic.Compiler.EmitHelpers

Outputs IL for misc tasks.
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
EmitDefaultValue ( ILGenerator generator, PrimitiveType type ) : void

Emits a dummy value of the given type.

EmitDefaultValue ( ILGenerator generator, Type type ) : void

Emits a default value of the given type.

EmitNull ( ILGenerator generator ) : void

Emits null.

EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message ) : void

Emits a JavaScriptException.

EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message, OptimizationInfo optimizationInfo ) : void

Emits a JavaScriptException.

EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message, string path, string function, int line ) : void

Emits a JavaScriptException.

EmitUndefined ( ILGenerator generator ) : void

Emits undefined.

EmitValue ( ILGenerator generator, object value ) : void

Emits the given value. Only possible for certain types.

LoadArgumentsArray ( ILGenerator generator ) : void

Pushes a reference to the array of argument values for the current function onto the stack.

LoadFunction ( ILGenerator generator ) : void

Pushes a reference to the current function onto the stack.

LoadScope ( ILGenerator generator ) : void

Pushes a reference to the current scope onto the stack.

LoadScriptEngine ( ILGenerator generator ) : void

Pushes a reference to the script engine onto the stack.

LoadThis ( ILGenerator generator ) : void

Pushes the value of the this keyword onto the stack.

StoreScope ( ILGenerator generator ) : void

Stores the reference on top of the stack as the new scope.

StoreThis ( ILGenerator generator ) : void

Stores the reference on top of the stack as the new value of the this keyword.

메소드 상세

EmitDefaultValue() 공개 정적인 메소드

Emits a dummy value of the given type.
public static EmitDefaultValue ( ILGenerator generator, PrimitiveType type ) : void
generator ILGenerator The IL generator.
type PrimitiveType The type of value to generate.
리턴 void

EmitDefaultValue() 공개 정적인 메소드

Emits a default value of the given type.
public static EmitDefaultValue ( ILGenerator generator, Type type ) : void
generator ILGenerator The IL generator.
type System.Type The type of value to generate.
리턴 void

EmitNull() 공개 정적인 메소드

Emits null.
public static EmitNull ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

EmitThrow() 공개 정적인 메소드

Emits a JavaScriptException.
public static EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message ) : void
generator ILGenerator The IL generator.
type Jurassic.Library.ErrorType The type of error to generate, e.g. Error, RangeError, etc.
message string The error message.
리턴 void

EmitThrow() 공개 정적인 메소드

Emits a JavaScriptException.
public static EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message, OptimizationInfo optimizationInfo ) : void
generator ILGenerator The IL generator.
type Jurassic.Library.ErrorType The type of error to generate, e.g. Error, RangeError, etc.
message string The error message.
optimizationInfo OptimizationInfo Information about the line number, function and path.
리턴 void

EmitThrow() 공개 정적인 메소드

Emits a JavaScriptException.
public static EmitThrow ( ILGenerator generator, Jurassic.Library.ErrorType type, string message, string path, string function, int line ) : void
generator ILGenerator The IL generator.
type Jurassic.Library.ErrorType The type of error to generate, e.g. Error, RangeError, etc.
message string The error message.
path string The path of the javascript source file that is currently executing.
function string The name of the currently executing function.
line int The line number of the statement that is currently executing.
리턴 void

EmitUndefined() 공개 정적인 메소드

Emits undefined.
public static EmitUndefined ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

EmitValue() 공개 정적인 메소드

Emits the given value. Only possible for certain types.
public static EmitValue ( ILGenerator generator, object value ) : void
generator ILGenerator The IL generator.
value object The value to emit.
리턴 void

LoadArgumentsArray() 공개 정적인 메소드

Pushes a reference to the array of argument values for the current function onto the stack.
public static LoadArgumentsArray ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

LoadFunction() 공개 정적인 메소드

Pushes a reference to the current function onto the stack.
public static LoadFunction ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

LoadScope() 공개 정적인 메소드

Pushes a reference to the current scope onto the stack.
public static LoadScope ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

LoadScriptEngine() 공개 정적인 메소드

Pushes a reference to the script engine onto the stack.
public static LoadScriptEngine ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

LoadThis() 공개 정적인 메소드

Pushes the value of the this keyword onto the stack.
public static LoadThis ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

StoreScope() 공개 정적인 메소드

Stores the reference on top of the stack as the new scope.
public static StoreScope ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void

StoreThis() 공개 정적인 메소드

Stores the reference on top of the stack as the new value of the this keyword.
public static StoreThis ( ILGenerator generator ) : void
generator ILGenerator The IL generator.
리턴 void