Re: [v8-users] javascript debugging Debug.StepAction.step(In/Out/Next) - how to use?

2016-10-04 Thread Zac Hansen
the debugging portion seems to be much more poorly documented than the rest of the system -- which is impressive. On Tue, Oct 4, 2016 at 11:10 PM, Ben Noordhuis wrote: > On Tue, Oct 4, 2016 at 10:29 PM, Zac Hansen wrote: > > Is there documentation on how to do any of this stuff? setListener or

Re: [v8-users] javascript debugging Debug.StepAction.step(In/Out/Next) - how to use?

2016-10-04 Thread Ben Noordhuis
On Tue, Oct 4, 2016 at 10:29 PM, Zac Hansen wrote: > Is there documentation on how to do any of this stuff? setListener or > otherwise? V8 is a project in that long and rich OSS tradition of 'the source is the documentation.' -- -- v8-users mailing list v8-users@googlegroups.com http://groups

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Jochen Eisinger
the function template won't ever get gc'd after you've instantiated it once. On Wed, Oct 5, 2016 at 12:56 AM Zac Hansen wrote: > Put your inner block in a tight loop and throw in a > http://v8.paulfryzel.com/docs/master/classv8_1_1_isolate.html#aaeda5fa60961a3d9d476c46200e30711 > > isolate->Adju

Re: [v8-users] Re: Building V8 on FreeBSD

2016-10-04 Thread Jochen Eisinger
If you run the mb.py command directly (python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release) does it print a more verbose error message? On Tue, Oct 4, 2016 at 9:17 PM Jose Madrigal wrote: > I been trying follow the instructions shown in >

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Zac Hansen
Put your inner block in a tight loop and throw in a http://v8.paulfryzel.com/docs/master/classv8_1_1_isolate.html#aaeda5fa60961a3d9d476c46200e30711 isolate->AdjustAmountOfExternalAllocatedMemory(100) in there too and see what happens. On Tue, Oct 4, 2016 at 3:48 PM, Theodore Dubois wrote:

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Theodore Dubois
I created the FunctionTemplate inside its own HandleScope which gets destroyed before the program finishes, so it should get garbage collected before the end of the program. Is that right? ~Theodore > On Oct 4, 2016, at 3:45 PM, Zac Hansen wrote: > > The way I read it is that because the fun

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Zac Hansen
The way I read it is that because the function template remains until the end of the program, its data cannot be cleaned up. And since it has to keep str around until the function template goes away, str won't be cleaned up either because there's still a reference to it. On Tue, Oct 4, 2016 at 2:

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Theodore Dubois
Interesting. So when a function template is created, its callback data will never be freed? ~Theodore > On Oct 4, 2016, at 1:17 AM, Jochen Eisinger wrote: > > v8 has an per-isolate cache of function templates. As the string is > referenced by the function template, it will never go out of sco

Re: [v8-users] javascript debugging Debug.StepAction.step(In/Out/Next) - how to use?

2016-10-04 Thread Zac Hansen
Is there documentation on how to do any of this stuff? setListener or otherwise? On Tue, Oct 4, 2016 at 12:34 AM, Ben Noordhuis wrote: > On Tue, Oct 4, 2016 at 8:31 AM, Zac Hansen wrote: > > I'm trying to support step in/out/next but can't figure out how to use > them. > > > > I see that I get

[v8-users] Re: Building V8 on FreeBSD

2016-10-04 Thread Jose Madrigal
I been trying follow the instructions shown in https://github.com/v8/v8/wiki/Building%20with%20GN At the point where I must use: > tools/dev/v8gen.py x64.release raise a error: Traceback (most recent call last): File "tools/dev/v8gen.py", line 304, in sys.exit(gen.main()) File

[v8-users] Building V8 on FreeBSD

2016-10-04 Thread Jose Madrigal
Hello !!! I been trying to build V8 on FreeBSD due the ports are not updated to the recent version of v8 but I have struggled a lot. I wonder if someone already build v8 on FreeBSD that could point me out in the right direction to achieve it. Thanks in advance !! -- -- v8-users mailing list

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Jochen Eisinger
v8 has an per-isolate cache of function templates. As the string is referenced by the function template, it will never go out of scope. I'd recommend to create a weak handle to the function you create via GetFunction() instead On Mon, Oct 3, 2016 at 12:27 PM Pavel Medvedev wrote: > Hi Theodore

Re: [v8-users] Persistent handles and GC performance

2016-10-04 Thread Jochen Eisinger
note creating a large number of internal fields will require an unusually large time to mark - for fixed arrays we have special code to mark them incrementally, but for regular objects, we assume that they only contain a few pointers. I'd advise to go for multiple persistent handles. On Mon, Oct

Re: [v8-users] javascript debugging Debug.StepAction.step(In/Out/Next) - how to use?

2016-10-04 Thread Ben Noordhuis
On Tue, Oct 4, 2016 at 8:31 AM, Zac Hansen wrote: > I'm trying to support step in/out/next but can't figure out how to use them. > > I see that I get an ExecutionState in my v8::Debug::EventDetails. I grab > that and then I try to call prepareStep on it, but I get a: > > Check failed: isolate->de