I need to store some pointers (void*) in my context.  It looks like that 
the closest thing I get is Int32Array.

1) Is there a better alternative?
2) The API doc says that Int32Array is still experimental and may change 
significantly.  Is that really true?

Thanks,
Jane

On Sunday, February 16, 2014 10:30:02 AM UTC-8, Ben Noordhuis wrote:
>
> On Sun, Feb 16, 2014 at 4:51 PM, Jane Chen <jxch...@gmail.com<javascript:>> 
> wrote: 
> > Hey Ben, 
> > 
> > That's really good to know.  I think that's probably what I need.  Just 
> took 
> > a look at the API doc: 
> > 
> > /** 
> >    * Gets the embedder data with the given index, which must have been 
> set 
> > by a 
> >    * previous call to SetEmbedderData with the same index. Note that 
> index 0 
> >    * currently has a special meaning for Chrome's debugger. 
> >    */ 
> >   V8_INLINE Local<Value> GetEmbedderData(int index); 
> > 
> > "Note that index 0 currently has a special meaning for Chrome's 
> debugger." 
> > doesn't mean that index 0 is reserved, does it?  I should still be able 
> to 
> > set my data starting at index 0, right? 
>
> If you're not writing a Chrome plugin then sure, index 0 is available. 
>
> > /** 
> >    * Gets a 2-byte-aligned native pointer from the embedder data with 
> the 
> > given 
> >    * index, which must have bees set by a previous call to 
> >    * SetAlignedPointerInEmbedderData with the same index. Note that 
> index 0 
> >    * currently has a special meaning for Chrome's debugger. 
> >    */ 
> >   V8_INLINE void* GetAlignedPointerFromEmbedderData(int index); 
> > 
> > Is this the function that returns me the pointer of my data instead of 
> the 
> > value?  What's "bees"?  Can you tell me more about it? 
>
> That looks like a misspelling of "been". :-) 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to