Thanks. So the heap object 's "member data" are initialized by READ_FILEDS macro which directly read by offset.
在 2018年7月21日星期六 UTC+8上午1:36:42,Jakob Kummerow写道: > > ObjectTemplate has no constructor (because it lives on the managed heap, > where C++ constructors don't make sense). Declaring a private constructor > (without defining it anywhere) prevents the C++ compiler from automatically > creating a default constructor. The only way to create an ObjectTemplate is > with its New(...) method. > > On Fri, Jul 20, 2018 at 2:49 AM <fengx...@gmail.com <javascript:>> wrote: > >> Hi, >> ObjectTemplate is declared in v8.h, and it's constructor was declared as >> private. But where is the implementation of it's constructor? I can't find >> it's source code. >> >> -- >> -- >> v8-users mailing list >> v8-u...@googlegroups.com <javascript:> >> 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+u...@googlegroups.com <javascript:>. >> 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.