[v8-users] Extending V8::Exception

2019-03-06 Thread fkpkot
Hey, has anyone extended V8::exception? it seems that the default types are using macro for definition. but I am looking for a more clear example on what I need to implement. -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this mes

[v8-users] Using source map with v8 on compilation errors

2018-06-10 Thread fkpkot
Hi, I'm trying to create some kind of runner that also enables additional js functionalities and i'd like it to give the proper line in the correct file upon exception). The runner which simply loads two files, concatenates them to a third file creates source map and runs the script itself (us

[v8-users] using source maps in v8 in native addon in nodejs.

2018-03-27 Thread fkpkot
Hi, I'm getting errors during v8 compilation in a script file which is created by concatenating two script files. Since the errors appear during compilation of the third file, i'd like to trace the issue to the correct file. I've created a source map to map the error to the correct line and it's

[v8-users] Optimizaing v8 memory usage

2017-11-14 Thread fkpkot
Hi, I'm looking for ideas for optimizing multi thread - multi isolate platform. Especially on memory footprint. Each thread runs an isolate and one context, and runs same function in the script several times ( some time even 100 times). We've made calls to GC, but I'm still looking for more sugge

Re: [v8-users] code cacheing between isoalte

2017-11-14 Thread fkpkot
Thanks! it worked. although i did had issues with the api returning const but the ScriptCompiler::source api requiring non-const cache. On Monday, November 13, 2017 at 11:01:49 AM UTC+2, Ben Noordhuis wrote: > > On Mon, Nov 13, 2017 at 7:02 AM, > wrote: > > hi, > > i have multi thread program

[v8-users] code cacheing between isoalte

2017-11-12 Thread fkpkot
hi, i have multi thread program with thread per isolate and context which each runs the same script. Since they all compile same script - I'd like to use the compiler to create cache and distribute it between them. Currently i get a crash when I get to the step of actually running the script:

[v8-users] Issue with GC

2017-11-01 Thread fkpkot
Hi, i've been working on addon which creates an object and uses objectwrap to expose it to the js. The object also holds a thread which has a separate isolate (and context) to run scripts to offload some work. Moreover, its also enables to run specific function from the script in the thread by c

[v8-users] Crash during Incremental marking / GC round

2017-10-18 Thread fkpkot
Hi all, I'm writing an addon to node - which creates multiple additional multiple threads, each holding a seperate isolate (and event loop and other goodies). Now, I use promises to let the main thread - running in node v8 isolate to know that each of the secondery threads have started and use R

[v8-users] Re: x64 segfault during initialization

2017-10-18 Thread fkpkot
Hi - I'm dealing with same solution? did you get any solution back than? On Monday, March 31, 2014 at 11:21:45 AM UTC+3, Den Chiks wrote: > > Hi guys, > > I have a trouble while trying to initialize v8::Context on x64 machine ( > under i32 works fine though ). > I use latest commits from master,

[v8-users] Re: Pump message loop with multiple isolates

2017-09-02 Thread fkpkot
Thanks, I saw an example for a plugin for node that doesn't do so - so I'm curious as to what is really not being done in such case. On Thursday, August 31, 2017 at 10:33:52 AM UTC+3, Yang Guo wrote: > > Each isolate has its own micro task queue. So I guess yes, you will have > to pump every one

[v8-users] Pump message loop with multiple isolates

2017-08-29 Thread fkpkot
Hi, I'm creating a multithread platform where each thread holds v8 isolate and one main isolate. The thread with the main isolates launches the rest. I understand that i need to call pump message loop at least for the main one - do i need to do it for the rest? i.e. make some kind of a loop call