Thanks Ben.

I did cache my global template through a persistent handle which has a 
bunch of function templates and object templates set.  The existence for 
the function templates is to support instanceof operator on our core value 
types (which you helped me with).

I understand why creating static snapshots with function callbacks is 
problematic.  But in my case where contexts are created frequently, it 
would still make a big performance difference if I could snapshot a runtime 
image with native callbacks after my application starts, and use that for 
subsequent context creations.  Does that sound more promising?  And is that 
what V8::CreateSnapshotDataBlob enables?

On Thursday, June 4, 2015 at 4:40:02 AM UTC-7, Ben Noordhuis wrote:
>
> On Wed, Jun 3, 2015 at 5:06 PM, Jane Chen <jxch...@gmail.com <javascript:>> 
> wrote: 
> > Ben, 
> > 
> > My question is, say if I have a function Print with a native callback 
> > through function template and set it to the global template, use that to 
> > create a context, then use serializer to create a snapshot.  If I use 
> this 
> > snapshot to initialize v8, will function Print be pre-defined in that 
> > snapshot? 
> > 
> > Jane 
>
> I don't think that has been implemented yet.  If it was, there would 
> have to be some kind of API for mapping addresses because of ASLR. 
>

-- 
-- 
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.

Reply via email to