Re: [v8-users] Re: Move V8 Context from one Isolate to another

2015-03-29 Thread Ivan Pizhenko
Thank you for the good idea. This approach with JSON sounds like what I
need to accomplish my task.

2015-03-05 23:44 GMT+02:00 Flying Jester :

> What exactly are you trying to accomplish with this?
>
> Copying a context would be a huge operation, if it's possible at all (I
> don't think it is).
>
> You are almost certainly better off encapsulating the state you want in
> JSON or through some API you come up with yourself, and then loading that
> in a new context.
>
> On Thursday, March 5, 2015 at 8:58:45 AM UTC-9, Ivan P. wrote:
>>
>> What about making copy/clone of context?
>>
>> 4 бер. 2015 09:52, користувач "Yang Guo"  написав:
>> >
>> > A context is too deeply entangled into the isolate it belongs to, so
>> moving the context but not the isolate is basically impossible with the
>> current V8.
>> >
>> >
>> > On Sunday, March 1, 2015 at 9:29:49 PM UTC+1, Ivan P. wrote:
>> >>
>> >> Does anybody know - is there an easy way to move some v8::Conext that
>> belongs to some v8::Isolate to another v8::Isolate, preserving complete
>> current state?
>> >> Or at least make its copy/clone in the another v8::Isolate.
>> >
>> > --
>> > --
>> > v8-users mailing list
>> > v8-u...@googlegroups.com
>> > http://groups.google.com/group/v8-users
>> > ---
>> > You received this message because you are subscribed to a topic in the
>> Google Groups "v8-users" group.
>> > To unsubscribe from this topic, visit https://groups.google.com/d/
>> topic/v8-users/Hy-Z-i52K8I/unsubscribe.
>> > To unsubscribe from this group and all its topics, send an email to
>> v8-users+u...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>  --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "v8-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/v8-users/Hy-Z-i52K8I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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/d/optout.


Re: [v8-users] Re: Move V8 Context from one Isolate to another

2015-03-05 Thread Flying Jester
What exactly are you trying to accomplish with this?

Copying a context would be a huge operation, if it's possible at all (I 
don't think it is).

You are almost certainly better off encapsulating the state you want in 
JSON or through some API you come up with yourself, and then loading that 
in a new context.

On Thursday, March 5, 2015 at 8:58:45 AM UTC-9, Ivan P. wrote:
>
> What about making copy/clone of context?
>
> 4 бер. 2015 09:52, користувач "Yang Guo"  > написав:
> >
> > A context is too deeply entangled into the isolate it belongs to, so 
> moving the context but not the isolate is basically impossible with the 
> current V8.
> >
> >
> > On Sunday, March 1, 2015 at 9:29:49 PM UTC+1, Ivan P. wrote:
> >>
> >> Does anybody know - is there an easy way to move some v8::Conext that 
> belongs to some v8::Isolate to another v8::Isolate, preserving complete 
> current state? 
> >> Or at least make its copy/clone in the another v8::Isolate.
> >
> > -- 
> > -- 
> > v8-users mailing list
> > v8-u...@googlegroups.com 
> > http://groups.google.com/group/v8-users
> > --- 
> > You received this message because you are subscribed to a topic in the 
> Google Groups "v8-users" group.
> > To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/v8-users/Hy-Z-i52K8I/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to 
> v8-users+u...@googlegroups.com .
> > For more options, visit https://groups.google.com/d/optout.
>  

-- 
-- 
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/d/optout.


Re: [v8-users] Re: Move V8 Context from one Isolate to another

2015-03-05 Thread Ivan Pizhenko
What about making copy/clone of context?

4 бер. 2015 09:52, користувач "Yang Guo"  написав:
>
> A context is too deeply entangled into the isolate it belongs to, so
moving the context but not the isolate is basically impossible with the
current V8.
>
>
> On Sunday, March 1, 2015 at 9:29:49 PM UTC+1, Ivan P. wrote:
>>
>> Does anybody know - is there an easy way to move some v8::Conext that
belongs to some v8::Isolate to another v8::Isolate, preserving complete
current state?
>> Or at least make its copy/clone in the another v8::Isolate.
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to a topic in the
Google Groups "v8-users" group.
> To unsubscribe from this topic, visit
https://groups.google.com/d/topic/v8-users/Hy-Z-i52K8I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
v8-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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/d/optout.