Thanks for your reply, Ben! Maybe because I didn’t describe it clearly, I 
am using same libv8.so for chrome and d8.

And after some trials and failures, I found that it's feasible if two 
embedders depend on a single libv8.so. :-)

On Monday, July 29, 2019 at 5:02:49 PM UTC+8, Ben Noordhuis wrote:
>
> On Sat, Jul 27, 2019 at 10:44 AM Cong Zuo <zcke...@gmail.com <javascript:>> 
> wrote: 
> > 
> > Hey guys. I wonder if it's possible to take snapshot of a running Chrome 
> tab and using the snapshot blob to start a isolate with Node.js or d8. 
> > 
> > All I need is to capture/snapshot user defined objects and functions 
> only, which means external functions like DOM API are not included. 
> > 
> > I wrote a simple runtime function called `%TakeSnapshot`, which failed 
> lots of DCHECKs... 
> > 
> > After some code searching and test, I don't think it's possible to 
> complete the task with little understanding of the whole project. 
> > 
> > Any advises would be appreciated! 
>
> The short answer is "you can't." 
>
> Snapshots are very closely tied to the environment they were created 
> in. For example, trying to load a snapshot into Node.js version X that 
> was created with Node.js version Y almost certainly won't work. 
>

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/368c3d1d-9aef-497f-9c81-5d325db530e2%40googlegroups.com.

Reply via email to