Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Jakob Kummerow
You can't move objects from one isolate to another. On Sun, Dec 7, 2014 at 6:35 AM, Nick Kelly skimm...@gmail.com wrote: Hello, I am modifying the v8 engine to basically pass control of a function over to the embedder. Basically, I currently have a runtime function which gathers the

Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Nick Kelly
So, I guess I will have to manually copy over certain members that I need and create a new object/handle on the new isolate? On Monday, December 8, 2014 3:31:01 AM UTC-6, Jakob Kummerow wrote: You can't move objects from one isolate to another. On Sun, Dec 7, 2014 at 6:35 AM, Nick Kelly

Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Jakob Kummerow
Yes. Essentially, you can copy any raw data (in the C++ sense: ints, doubles, strings, etc.), nothing that's stored in a handle. JSON is your friend. You can also work with external ArrayBuffers, but then you'll have to ensure that no two threads can access the same buffer at any time. On Mon,

[v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-06 Thread Nick Kelly
Hello, I am modifying the v8 engine to basically pass control of a function over to the embedder. Basically, I currently have a runtime function which gathers the current function, arguments, etc (from the JavascriptFrame). and calls a function which is set by the embedder through the current