Re: [v8-users] internal fields

2017-11-06 Thread J Decker
On Mon, Nov 6, 2017 at 12:47 PM, Jakob Kummerow wrote: > 3. What difference does it make to v8 if the internal field is an aligned >>> pointer or not? Is the ability to set/get aligned pointers a consistency >>> check so assumptions can be made? Does the interface check

Re: [v8-users] internal fields

2017-11-06 Thread Jakob Kummerow
> > 3. What difference does it make to v8 if the internal field is an aligned >> pointer or not? Is the ability to set/get aligned pointers a consistency >> check so assumptions can be made? Does the interface check the alignment? >> (Not critical for me, I don't think, but I'd like to

Re: [v8-users] internal fields

2017-11-04 Thread Bruce MacNaughton
> > Does it use Wrap and/or as classes subclassed with ObjectWrap? Wrap uses > internal field 0 to store the class so it can be later unwrapped from the > V8 object. https://github.com/nodejs/node/blob/master/src/node_object_wrap.h#L75 (near > that is also SetWeak reference) Yes, I think

Re: [v8-users] internal fields

2017-11-04 Thread Bruce MacNaughton
Thanks for pointing me in the right direction. On Saturday, November 4, 2017 at 9:52:23 AM UTC-7, J Decker wrote: > > > > On Sat, Nov 4, 2017 at 9:29 AM, Bruce MacNaughton > wrote: > >> I am new to Nan, V8, and C++ (so if I haven't put a big enough target on >> my back I

Re: [v8-users] internal fields

2017-11-04 Thread J Decker
On Sat, Nov 4, 2017 at 9:29 AM, Bruce MacNaughton wrote: > I am new to Nan, V8, and C++ (so if I haven't put a big enough target on > my back I don't know what else I can add). I've written a lot of JavaScript > and, in the past, C, assembler, and kernel mode code, so

[v8-users] internal fields

2017-11-04 Thread Bruce MacNaughton
I am new to Nan, V8, and C++ (so if I haven't put a big enough target on my back I don't know what else I can add). I've written a lot of JavaScript and, in the past, C, assembler, and kernel mode code, so hopefully the bulls-eye is a little smaller now. I'm working with an existing code base