![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <OOJavaScriptEngine.h>
Class Methods | |
(OOJavaScriptEngine *) | + sharedEngine |
(static JSTrapStatus) | + DebuggerHook [implementation] |
Private Attributes | |
JSRuntime * | _runtime |
JSObject * | _globalObject |
BOOL | _showErrorLocations |
JSClass * | _objectClass |
JSClass * | _stringClass |
JSClass * | _arrayClass |
JSClass * | _numberClass |
JSClass * | _booleanClass |
BOOL | _dumpStackForErrors |
BOOL | _dumpStackForWarnings |
Definition at line 42 of file OOJavaScriptEngine.h.
- (JSClass *) arrayClass |
Definition at line 568 of file OOJavaScriptEngine.m.
References _arrayClass, and arrayClass.
Referenced by arrayClass.
- (JSClass *) booleanClass |
Definition at line 580 of file OOJavaScriptEngine.m.
References _booleanClass, and booleanClass.
Referenced by booleanClass.
- (BOOL) callJSFunction: | (jsval) | function | |
forObject: | (JSObject *) | jsThis | |
argc: | (uintN) | argc | |
argv: | (jsval *) | argv | |
result: | (jsval *) | outResult |
Definition at line 489 of file OOJavaScriptEngine.m.
References OOJSAcquireContext(), OOJSRelinquishContext(), OOJSStartTimeLimiter, OOJSStopTimeLimiter, and OOJSValueIsFunction().
Referenced by MissionRunCallback(), OOJSGuiScreenKeyDefinition::runCallback:, OOJSInterfaceDefinition::runCallback:, OOJSPopulatorDefinition::runCallback:, and OOJSTimer::timerFired.
|
implementation |
Provided by category OOJavaScriptEngine(Private).
Definition at line 301 of file OOJavaScriptEngine.m.
References OOJavaScriptEngine(Private)::createMainThreadContext, CreateOOJSGlobal(), gOOJSMainThreadContext, InitOOJSClock(), InitOOJSDock(), InitOOJSEntity(), InitOOJSEquipmentInfo(), InitOOJSExhaustPlume(), InitOOJSFlasher(), InitOOJSFont(), InitOOJSFrameCallbacks(), InitOOJSManifest(), InitOOJSMission(), InitOOJSMissionVariables(), InitOOJSOolite(), InitOOJSPlanet(), InitOOJSPlayer(), InitOOJSPlayerShip(), InitOOJSQuaternion(), InitOOJSScript(), InitOOJSShip(), InitOOJSShipGroup(), InitOOJSSound(), InitOOJSSoundSource(), InitOOJSSpecialFunctions(), InitOOJSStation(), InitOOJSSun(), InitOOJSSystem(), InitOOJSSystemInfo(), InitOOJSTimer(), InitOOJSVector(), InitOOJSVisualEffect(), InitOOJSWaypoint(), InitOOJSWorldScripts(), InitOOJSWormhole(), JS_BeginRequest, JS_EndRequest, OOScript::jsScriptFromFileNamed:properties:, OOJavaScriptEngine(Private)::lookUpStandardClassPointers, OOConstToJSStringInit(), OOJS_STACK_SIZE, OOJSENGINE_CONTEXT_OPTIONS, OOJSENGINE_JSVERSION, OOLog, registerStandardObjectConverters, ReportJSError(), and SetUpOOJSGlobal().
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext, init, and reset.
|
implementation |
Definition at line 470 of file OOJavaScriptEngine.m.
References _runtime, dealloc, destroyMainThreadContext, nil, OOJSFrameCallbacksRemoveAll(), and sSharedEngine.
Referenced by dealloc.
|
implementation |
Definition at line 622 of file OOJavaScriptEngine.m.
References OOJSDumpStack(), OOJSPauseTimeLimiter(), OOJSResumeTimeLimiter(), and OOLog.
Referenced by enableDebuggerStatement.
|
implementation |
Provided by category OOJavaScriptEngine(Private).
Definition at line 392 of file OOJavaScriptEngine.m.
References OOJavaScriptEngine(Private)::destroyMainThreadContext, gOOJSMainThreadContext, OOConstToJSStringDestroy(), OOJSAcquireContext(), OOJSRelinquishContext(), UnregisterObjectConverters(), and UnregisterSubclasses().
Referenced by dealloc, OOJavaScriptEngine(Private)::destroyMainThreadContext, and reset.
- (BOOL) dumpStackForErrors |
Definition at line 635 of file OOJavaScriptEngine.m.
References _dumpStackForErrors, and dumpStackForErrors.
Referenced by dumpStackForErrors, and ReportJSError().
- (BOOL) dumpStackForWarnings |
Definition at line 647 of file OOJavaScriptEngine.m.
References _dumpStackForWarnings, and dumpStackForWarnings.
Referenced by dumpStackForWarnings, and ReportJSError().
- (void) enableDebuggerStatement |
Definition at line 659 of file OOJavaScriptEngine.m.
References _runtime, DebuggerHook, and enableDebuggerStatement.
Referenced by enableDebuggerStatement, and OOInitDebugSupport().
- (void) garbageCollectionOpportunity: | (BOOL) | force |
Definition at line 529 of file OOJavaScriptEngine.m.
References OOJSAcquireContext(), and OOJSRelinquishContext().
Referenced by PlayerEntity::docked, PlayerEntity::leaveWitchspace, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, reset, and Universe::update:.
- (JSObject *) globalObject |
Definition at line 483 of file OOJavaScriptEngine.m.
References _globalObject, and globalObject.
Referenced by globalObject, OOJSFunction::initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:, OOStringFromDeciCredits(), and OODebugMonitor(Private)::setUpDebugConsoleScript.
|
implementation |
Definition at line 259 of file OOJavaScriptEngine.m.
References _runtime, createMainThreadContext, init, nil, OOJSTimeManagementInit(), OOLog, setDumpStackForErrors:, setDumpStackForWarnings:, and sSharedEngine.
Referenced by init.
|
implementation |
Provided by category OOJavaScriptEngine(Private).
Definition at line 586 of file OOJavaScriptEngine.m.
References EXPECT_NOT, gOOJSMainThreadContext, OOJavaScriptEngine(Private)::lookUpStandardClassPointers, and OOJSGetClass().
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext, and OOJavaScriptEngine(Private)::lookUpStandardClassPointers.
- (JSClass *) numberClass |
Definition at line 574 of file OOJavaScriptEngine.m.
References _numberClass, and numberClass.
Referenced by numberClass.
- (JSClass *) objectClass |
Definition at line 556 of file OOJavaScriptEngine.m.
References _objectClass, and objectClass.
Referenced by objectClass.
|
implementation |
Provided by category OOJavaScriptEngine(Private).
Definition at line 611 of file OOJavaScriptEngine.m.
References JSArrayConverter(), JSBooleanConverter(), JSNumberConverter(), JSStringConverter(), OOJSDictionaryFromJSObject(), OOJSRegisterObjectConverter(), and OOJavaScriptEngine(Private)::registerStandardObjectConverters.
Referenced by OOJavaScriptEngine(Private)::createMainThreadContext, and OOJavaScriptEngine(Private)::registerStandardObjectConverters.
- (void) removeGCObjectRoot: | (JSObject **) | rootPtr |
Definition at line 513 of file OOJavaScriptEngine.m.
References OOJSAcquireContext(), and OOJSRelinquishContext().
Referenced by OODebugMonitor::dealloc.
- (void) removeGCValueRoot: | (jsval *) | rootPtr |
Definition at line 521 of file OOJavaScriptEngine.m.
References OOJSAcquireContext(), and OOJSRelinquishContext().
- (BOOL) reset |
Definition at line 419 of file OOJavaScriptEngine.m.
References createMainThreadContext, destroyMainThreadContext, garbageCollectionOpportunity:, gOOJSMainThreadContext, JS_IsInRequest, OOJSAcquireContext(), OOJSFrameCallbacksRemoveAll(), OOJSRelinquishContext(), OOLog, and reset.
Referenced by reset.
- (void) runMissionCallback |
Definition at line 253 of file OOJavaScriptEngine.m.
References MissionRunCallback(), and runMissionCallback.
Referenced by PlayerEntity(Scripting)::doMissionCallback, and runMissionCallback.
|
implementation |
Provided by category OOJavaScriptEngine(OOMonitorSupportInternal).
Definition at line 683 of file OOJavaScriptEngine.m.
Referenced by ReportJSError().
|
implementation |
Provided by category OOJavaScriptEngine(OOMonitorSupportInternal).
Definition at line 694 of file OOJavaScriptEngine.m.
Referenced by GlobalLog().
|
implementation |
Provided by category OOJavaScriptEngine(OOMonitorSupportInternal).
- (void) setDumpStackForErrors: | (BOOL) | value |
Definition at line 641 of file OOJavaScriptEngine.m.
References _dumpStackForErrors.
Referenced by ConsoleSetProperty(), and init.
- (void) setDumpStackForWarnings: | (BOOL) | value |
Definition at line 653 of file OOJavaScriptEngine.m.
References _dumpStackForWarnings.
Referenced by ConsoleSetProperty(), and init.
|
implementation |
Provided by category OOJavaScriptEngine(OOMonitorSupport).
Definition at line 672 of file OOJavaScriptEngine.m.
Referenced by OODebugMonitor::init.
- (void) setShowErrorLocations: | (BOOL) | value |
Definition at line 550 of file OOJavaScriptEngine.m.
References _showErrorLocations.
Referenced by ConsoleSetProperty(), and OOCheckJSSyntaxVerifierStage::run.
+ (OOJavaScriptEngine *) sharedEngine |
Definition at line 245 of file OOJavaScriptEngine.m.
References nil, sharedEngine, and sSharedEngine.
Referenced by ConsoleSetProperty(), OODebugMonitor::dealloc, OOJSScript::dealloc, DebugMonitorToJSConsole(), OOJSGuiScreenKeyDefinition::deleteJSPointers, OOJSInterfaceDefinition::deleteJSPointers, OOJSPopulatorDefinition::deleteJSPointers, OOJSTimer::deleteJSPointers, Entity(OOJavaScriptExtensions)::deleteJSSelf, OOJSFunction::deleteJSValue, OOJSValue::deleteJSValue, DescribeValue(), PlayerEntity::docked, PlayerEntity(Scripting)::doMissionCallback, GlobalLog(), OODebugMonitor::init, OOJSGuiScreenKeyDefinition::init, OOJSInterfaceDefinition::init, OOJSPopulatorDefinition::init, OORegExpMatcher::init, OOJSTimer(Private)::initWithDelay:interval:context:function:this:, OOJSFunction::initWithFunction:context:, OOJSValue::initWithJSValue:inContext:, OOJSFunction::initWithName:scope:code:argumentCount:argumentNames:fileName:lineNumber:context:, OOJSScript::initWithPath:properties:, PlayerEntity(OOJavaScriptExtensions)::javaScriptEngineWillReset:, PlayerEntity::leaveWitchspace, PlayerEntity(LoadSave)::loadPlayerFromFile:asNew:, MissionRunCallback(), Entity(OOJavaScriptExtensions)::oo_jsValueInContext:, OOInitDebugSupport(), OOStringFromDeciCredits(), ReportJSError(), OOCheckJSSyntaxVerifierStage::run, OOJSGuiScreenKeyDefinition::runCallback:, OOJSInterfaceDefinition::runCallback:, OOJSPopulatorDefinition::runCallback:, PlayerEntity(OOJavaScriptExtensions)::setJSSelf:context:, OODebugMonitor(Private)::setUpDebugConsoleScript, sharedEngine, OOJSTimer::timerFired, and Universe::update:.
- (BOOL) showErrorLocations |
Definition at line 544 of file OOJavaScriptEngine.m.
References _showErrorLocations, and showErrorLocations.
Referenced by ReportJSError(), OOJavaScriptEngine(OOMonitorSupportInternal)::sendMonitorError:withMessage:inContext:, and showErrorLocations.
- (JSClass *) stringClass |
Definition at line 562 of file OOJavaScriptEngine.m.
References _stringClass, and stringClass.
Referenced by stringClass.
|
implementation |
Provided by category OOJavaScriptEngine(WatchdogTimer).
Definition at line 188 of file OOJSEngineTimeManagement.m.
|
private |
Definition at line 51 of file OOJavaScriptEngine.h.
Referenced by arrayClass.
|
private |
Definition at line 53 of file OOJavaScriptEngine.h.
Referenced by booleanClass.
|
private |
Definition at line 56 of file OOJavaScriptEngine.h.
Referenced by dumpStackForErrors, and setDumpStackForErrors:.
|
private |
Definition at line 57 of file OOJavaScriptEngine.h.
Referenced by dumpStackForWarnings, and setDumpStackForWarnings:.
|
private |
Definition at line 46 of file OOJavaScriptEngine.h.
Referenced by globalObject.
|
private |
Definition at line 52 of file OOJavaScriptEngine.h.
Referenced by numberClass.
|
private |
Definition at line 49 of file OOJavaScriptEngine.h.
Referenced by objectClass.
|
private |
Definition at line 45 of file OOJavaScriptEngine.h.
Referenced by dealloc, enableDebuggerStatement, and init.
|
private |
Definition at line 47 of file OOJavaScriptEngine.h.
Referenced by setShowErrorLocations:, and showErrorLocations.
|
private |
Definition at line 50 of file OOJavaScriptEngine.h.
Referenced by stringClass.