Changeset View
Changeset View
Standalone View
Standalone View
source/scriptinterface/ScriptContext.h
Show All 28 Lines | |||||
/** | /** | ||||
* Abstraction around a SpiderMonkey JSContext. | * Abstraction around a SpiderMonkey JSContext. | ||||
* | * | ||||
* A single ScriptContext, with the associated context, | * A single ScriptContext, with the associated context, | ||||
* should only be used on a single thread. | * should only be used on a single thread. | ||||
* | * | ||||
* (One means to share data between threads and contexts is to create | * (One means to share data between threads and contexts is to create | ||||
* a ScriptInterface::StructuredClone.) | * a Script::StructuredClone.) | ||||
*/ | */ | ||||
class ScriptContext | class ScriptContext | ||||
{ | { | ||||
public: | public: | ||||
ScriptContext(int contextSize, int heapGrowthBytesGCTrigger); | ScriptContext(int contextSize, int heapGrowthBytesGCTrigger); | ||||
~ScriptContext(); | ~ScriptContext(); | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator