[v8-users] Safe to use Persistent heap-allocated?

2014-01-16 Thread Riccardo Corsi
Hello, I use v8 embedded in a project and I'm updating to the latest release. The changes to v8::Persistent caused my code not compile anymore, because I'm using some persistent as member of an exported (dll) class and also as values of an std::map. Both exported classes (at least in MSVC)

[v8-users] Build on Windows - cannot generate Visual Studio solution

2016-07-07 Thread Riccardo Corsi
Hi all, I've been following all the instructions to build V8 on Windows from here: https://github.com/v8/v8/wiki/Building%20with%20Gyp#visual-studio only replacing the instruction > python build\gyp_v8 with > python gypfiles\gyp_v8 as the former file does not exist in the repository

[v8-users] Temporary ObjectTemplate

2016-10-06 Thread Riccardo Corsi
Hi all, I'm using ObjectTemplate to create JS empty objects that are simple wrappers of a c++ object (in the JS code they are just used as "handles" to pass the objects around in the script). I was just wondering if there is any issue or penalty to use a new ObjectTemplate every time (see

Re: [v8-users] Temporary ObjectTemplate

2016-10-10 Thread Riccardo Corsi
will do, thanks! On Fri, Oct 7, 2016 at 7:19 AM, Jochen Eisinger <joc...@chromium.org> wrote: > If possible, reusing the object template will save space, and is preferable > > On Thu, Oct 6, 2016 at 8:18 PM Riccardo Corsi <riccardo.co...@kairos3d.it> > wrote: >

Re: [v8-users] Temporary ObjectTemplate

2016-10-12 Thread Riccardo Corsi
? Isn't that exactly what >> they're meant for? >> >> >> On Monday, October 10, 2016 at 5:08:54 AM UTC-7, Riccardo Corsi wrote: >> >> will do, thanks! >> >> On Fri, Oct 7, 2016 at 7:19 AM, Jochen Eisinger <joc...@chromium.org> >> wrote: >> >>