Compare Revisions

JSClass

Change Revisions

Revision 26565:

Revision 26565 by Sheppy on

Revision 26566:

Revision 26566 by sdwilsh on

Title:
JSClass
JSClass
Slug:
SpiderMonkey/JSAPI_Reference/JSClass
SpiderMonkey/JSAPI_Reference/JSClass
Tags:
SpiderMonkey, JSAPI_Reference
SpiderMonkey, JSAPI_Reference
Content:

Revision 26565
Revision 26566
nn29    JSClassInternal     reserved;
n34    <a href="/en/SpiderMonkey/JSAPI_Reference/JSClass.mark" titlen35    <a href="/en/SpiderMonkey/JSAPI_Reference/JSTraceOp" title="e
>="en/JSClass.mark">JSMarkOp</a>            <a href="/en/SpiderMon>n/JSTraceOp">JSTraceOp</a>           <a href="/en/SpiderMonkey/JS
>key/JSAPI_Reference/JSClass.mark" title="en/JSClass.mark">mark</a>API_Reference/JSTraceOp" title="en/JSTraceOp">trace</a>;
>>; 
35    <a href="/en/SpiderMonkey/JSAPI_Reference/JSClass.reserveSlot
>s" title="en/JSClass.reserveSlots">JSReserveSlotsOp</a>    <a hre 
>f="/en/SpiderMonkey/JSAPI_Reference/JSClass.reserveSlots" title=" 
>en/JSClass.reserveSlots">reserveSlots</a>; 
t260          </td>t
261        </tr>
262        <tr>
263          <td>
264            <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSCla
>ss.mark" title="en/JSClass.mark">mark</a></code> 
265          </td>
266          <td>
267            <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSCla
>ss.mark" title="en/JSClass.mark">JSMarkOp</a></code> 
268          </td>
269          <td>
270            <p>
271              Hook for the mark phase of garbage collection. A cl
>ass must implement this hook if it has private data that contains 
> references to JavaScript values. Otherwise, set this pointer to  
><code>NULL</code>. 
272            </p>
273            <p>
274              The <code><a class="internal" href="/en/SpiderMonke
>y/JSAPI_Reference/JSClass.flags" title="en/JSCLASS MARK IS TRACE" 
>>JSCLASS_MARK_IS_TRACE</a></code> flag instructs the JavaScript e 
>ngine to call this callback as a <code><a href="/en/SpiderMonkey/ 
>JSAPI_Reference/JSTraceOp" title="en/JSTraceOp">JSTraceOp</a></co 
>de>. 
275            </p>
276          </td>
277        </tr>
278        <tr>
279          <td>
280            <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSCla
>ss.reserveSlots" title="en/JSClass.reserveSlots">reserveSlots</a> 
></code> 
281          </td>
282          <td>
283            <code><a href="/en/SpiderMonkey/JSAPI_Reference/JSCla
>ss.reserveSlots" title="en/JSClass.reserveSlots">JSReserveSlotsOp 
></a></code> 
284          </td>
285          <td>
286            A hook, called on object creation, allowing the objec
>t to request reserved slots. If your class does not need any rese 
>rved slots, set this pointer to <code>NULL</code>. If your class  
>requires a fixed number of reserved slots, use the <code><a href= 
>"/en/SpiderMonkey/JSAPI_Reference/JSClass.flags" title="en/JSClas 
>s.flags">JSCLASS_HAS_RESERVED_SLOTS</a>(n)</code> flags instead. 

Back to History