I'm working on snapshot a isolate with modules and was wondering how to 
reconnect the info the c++ class that tracks them back to the module when 
deserialization the snapshot.
Unlike Objects that wrap C++ classes that can use the internal field 
serializer to rebuild and relink up the c++ object a module doesn't have 
this support.

So I looked at the V8 cod particularly unit test sterilization and 
discovered that it looks like I could take my global to the module and Add 
it to the snapshot creator context data record it's index and then store 
that info in my snapshot binary. Then on deserialization I'd recreate the 
class that wrapped the module and load the object handle back from the 
snapshot data to reestablish that connection.

I'm guessing this would work with function templates as well since i saw 
they could be added as well since currently when i reload the snapshot i 
just rerun all the registered template setup code to recreate them.

-- 
-- 
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 visit 
https://groups.google.com/d/msgid/v8-users/c1552416-55b1-472c-9949-3af660c9485en%40googlegroups.com.

Reply via email to