Re: [v8-users] How to run a v8 shell standalone and inspect / debug with Chrome DevTools

2019-05-20 Thread Gautham B A
It tries to look for libraries in */usr/local/lib* and headers in */usr/local/include* . So, just do a *$ make install* after building v8. On Monday, 20 May 2019 19:25:08 UTC+5:30, Joe Lewis wrote: > > Thanks a lot Gautham, Ben! Looks like exactly what I need. > > Being a complete C++/CMake newb

Re: [v8-users] How to run a v8 shell standalone and inspect / debug with Chrome DevTools

2019-05-20 Thread Joe Lewis
Thanks a lot Gautham, Ben! Looks like exactly what I need. Being a complete C++/CMake newbie, I can't get the project to build to correctly though. Here's the error message I receive when I do cmake .. CMake Error at FindV8.cmake:40 (MESSAGE): Can't build v8inspector without V8 Call Sta

Re: [v8-users] gc and threading

2019-05-20 Thread 'Peter Marshall' via v8-users
If you block the main thread at a safe time (e.g. not during GC) then you can probably access heap objects from your other threads without handles as long as you do your own synchronization between the background threads. Not sure how concurrent marking threads from the GC will feel about that t

Re: [v8-users] Callback when variable is no longer valid

2019-05-20 Thread Ben Noordhuis
On Mon, May 20, 2019 at 6:59 AM Gautham B A wrote: > > Hi all, > > I'm trying to track when a variable becomes invalid. > Consider the following code where the variable goes out of scope - > > function SomeFunction() { > for(let i = 0; i < 10; ++i) { > let instance = new MyClass(); // MyClass is i