[v8-users] How to insert a Javascript function into V8's event loop?

2015-11-19 Thread Nasser Torabzade
Hi, I'm trying to develop a nodejs addon aimed to insert a Javascript function into event loop of internal V8 instance of nodejs. My current solution uses `uv_queue_work()` function from libuv library which can do this for a C function, but how should I achieve this for a

Re: [v8-users] How to insert a Javascript function into V8's event loop?

2015-11-19 Thread Jakob Kummerow
V8 doesn't have an event loop. Have you tried *calling* your function? On Thu, Nov 19, 2015 at 9:02 AM, Nasser Torabzade < nasser.torabz...@gmail.com> wrote: > Hi, > > I'm trying to develop a nodejs addon aimed to insert a Javascript function > into event loop of internal V8 instance of nodejs.

[v8-users] Embedding v8 as static library in C++ application.

2015-11-19 Thread Bharat Khatri
I'm trying to use v8 as a static library in a C++ application, and am using d8.gyp as reference. { 'includes': ['../build/toolchain.gypi', '../build/features.gypi'], 'targets': [{ 'target_name': 'd8', 'type': 'executable', 'dependencies': [

Re: [v8-users] V8 binary code caching

2015-11-19 Thread Daniel Vogelheim
Source caching was not (and will not be) eliminated, because: - The code cache does not include *all* code; it only includes the code that is compiled during the initial script loading. - V8 lazily compiles code it hasn't compiled yet, and it re-compiles code for greater optimization while the

Re: [v8-users] Embedding v8 as static library in C++ application.

2015-11-19 Thread Jakob Kummerow
They don't. The 'v8' target defines itself to be a library, either static or shared, depending on build settings. 'dependencies' just encode build order dependencies; GYP simply assumes that whenever an executable depends on a library, it also wants to be linked against that library. On Thu, Nov