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? /** * 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? On Saturday, February 15, 2014 2:33:19 AM UTC-8, Ben Noordhuis wrote: > > On Sat, Feb 15, 2014 at 1:11 AM, Jane Chen <jxch...@gmail.com<javascript:>> > wrote: > > Found Isolate.GetData and Isolate.SetData. Assuming that's the way to > go > > I'll give them a try. > > There's also Context::GetEmbedderData() / > Context::GetAlignedPointerFromEmbedderData() and > Context::SetEmbedderData() / > Context::SetAlignedPointerInEmbedderData(). > -- -- 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.