Changeset 35442 in webkit for trunk/JavaScriptCore/API/JSBase.h
- Timestamp:
- Jul 29, 2008, 11:05:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.h
r34606 r35442 32 32 33 33 /* JavaScript engine interface */ 34 35 /*! @typedef JSContextGroupRef A group that associates JavaScript contexts with one another. Contexts in the same group may share and exchange JavaScript objects. */ 36 typedef const struct OpaqueJSContextGroup* JSContextGroupRef; 34 37 35 38 /*! @typedef JSContextRef A JavaScript execution context. Holds the global object and other execution state. */ … … 109 112 @function 110 113 @abstract Performs a JavaScript garbage collection. 111 @param ctx Th is parameter is currently unused. Pass NULL.114 @param ctx The execution context to use. 112 115 @discussion JavaScript values that are on the machine stack, in a register, 113 116 protected by JSValueProtect, set as the global object of an execution context, 114 or reachable from any such value will not be collected. 115 117 or reachable from any such value will not be collected. 118 116 119 During JavaScript execution, you are not required to call this function; the 117 JavaScript engine will garbage collect as needed. One place you may want to call 118 this function, however, is after releasing the last reference to a JSGlobalContextRef. 119 At that point, a garbage collection can free the objects still referenced by the 120 JSGlobalContextRef's global object, along with the global object itself. 120 JavaScript engine will garbage collect as needed. JavaScript values created 121 within a context group are automatically destroyed when the last reference 122 to the context group is released. 121 123 */ 122 124 JS_EXPORT void JSGarbageCollect(JSContextRef ctx);
Note:
See TracChangeset
for help on using the changeset viewer.