메소드 | 설명 | |
---|---|---|
AddRef ( ) : uint |
Adds a reference to a script context. Calling AddRef ensures that the context will not be freed until Release is called. |
|
EnumerateHeap ( ) : Native.IActiveScriptProfilerHeapEnum |
Enumerates the heap of the current context. While the heap is being enumerated, the current context cannot be removed, and all calls to modify the state of the context will fail until the heap enumerator is released. Requires an active script context. |
|
GetAndClearException ( ) : |
Returns the exception that caused the runtime of the current context to be in the exception state and resets the exception state for that runtime. If the runtime of the current context is not in an exception state, this API will throw Requires an active script context. |
|
Idle ( ) : uint |
Tells the runtime to do any idle processing it need to do. If idle processing has been enabled for the current runtime, calling Requires an active script context. |
|
ParseScript ( string script ) : |
Parses a script and returns a Requires an active script context. |
|
ParseScript ( string script, JavaScriptSourceContext sourceContext, string sourceName ) : |
Parses a script and returns a Requires an active script context. |
|
ParseScript ( string script, byte buffer ) : |
Parses a serialized script and returns a Requires an active script context. |
|
ParseScript ( string script, byte buffer, JavaScriptSourceContext sourceContext, string sourceName ) : |
Parses a serialized script and returns a Requires an active script context. |
|
Release ( ) : uint |
Releases a reference to a script context. Removes a reference to a context that was created by AddRef. |
|
RunScript ( string script ) : |
Executes a script. Requires an active script context. |
|
RunScript ( string script, JavaScriptSourceContext sourceContext, string sourceName ) : |
Executes a script. Requires an active script context. |
|
RunScript ( string script, byte buffer ) : |
Runs a serialized script. Requires an active script context. |
|
RunScript ( string script, byte buffer, JavaScriptSourceContext sourceContext, string sourceName ) : |
Runs a serialized script. Requires an active script context. |
|
SerializeScript ( string script, byte buffer ) : ulong |
Serializes a parsed script to a buffer than can be reused. SerializeScript parses a script and then stores the parsed form of the script in a runtime-independent format. The serialized script then can be deserialized in any runtime without requiring the script to be re-parsed. Requires an active script context. |
|
SetException ( |
Sets the runtime of the current context to an exception state. If the runtime of the current context is already in an exception state, this API will throw Requires an active script context. |
|
StartDebugging ( |
Starts debugging in the context.
|
|
StartProfiling ( |
Starts profiling in the current context. Requires an active script context. |
|
StopProfiling ( int reason ) : void |
Stops profiling in the current context. Will not return an error if profiling has not started. Requires an active script context. |
메소드 | 설명 | |
---|---|---|
JavaScriptContext ( |
Initializes a new instance of the JavaScriptContext struct.
|
public static EnumerateHeap ( ) : Native.IActiveScriptProfilerHeapEnum | ||
리턴 | Native.IActiveScriptProfilerHeapEnum |
public static GetAndClearException ( ) : |
||
리턴 |
public static ParseScript ( string script ) : |
||
script | string | The script to parse. |
리턴 |
public static ParseScript ( string script, JavaScriptSourceContext sourceContext, string sourceName ) : |
||
script | string | The script to parse. |
sourceContext | JavaScriptSourceContext | /// A cookie identifying the script that can be used by script contexts that have debugging enabled. /// |
sourceName | string | The location the script came from. |
리턴 |
public static ParseScript ( string script, byte buffer ) : |
||
script | string | The script to parse. |
buffer | byte | The serialized script. |
리턴 |
public static ParseScript ( string script, byte buffer, JavaScriptSourceContext sourceContext, string sourceName ) : |
||
script | string | The script to parse. |
buffer | byte | The serialized script. |
sourceContext | JavaScriptSourceContext | /// A cookie identifying the script that can be used by script contexts that have debugging enabled. /// |
sourceName | string | The location the script came from. |
리턴 |
public static RunScript ( string script ) : |
||
script | string | The script to run. |
리턴 |
public static RunScript ( string script, JavaScriptSourceContext sourceContext, string sourceName ) : |
||
script | string | The script to run. |
sourceContext | JavaScriptSourceContext | /// A cookie identifying the script that can be used by script contexts that have debugging enabled. /// |
sourceName | string | The location the script came from. |
리턴 |
public static RunScript ( string script, byte buffer ) : |
||
script | string | The source code of the serialized script. |
buffer | byte | The serialized script. |
리턴 |
public static RunScript ( string script, byte buffer, JavaScriptSourceContext sourceContext, string sourceName ) : |
||
script | string | The source code of the serialized script. |
buffer | byte | The serialized script. |
sourceContext | JavaScriptSourceContext | /// A cookie identifying the script that can be used by script contexts that have debugging enabled. /// |
sourceName | string | The location the script came from. |
리턴 |
public static SerializeScript ( string script, byte buffer ) : ulong | ||
script | string | The script to serialize. |
buffer | byte | The buffer to put the serialized script into. Can be null. |
리턴 | ulong |
public static SetException ( |
||
exception | /// The JavaScript exception to set for the runtime of the current context. /// | |
리턴 | void |
public static StartDebugging ( |
||
debugApplication | The debug application to use for debugging. | |
리턴 | void |
public static StartProfiling ( |
||
callback | The profiling callback to use. | |
eventMask | The profiling events to callback with. | |
context | int | A context to pass to the profiling callback. |
리턴 | void |
public static StopProfiling ( int reason ) : void | ||
reason | int | /// The reason for stopping profiling to pass to the profiler callback. /// |
리턴 | void |