Re: [v8-users] How does V8 compiles and executes JavaScript events?

2017-09-05 Thread Jakob Kummerow
On Mon, Sep 4, 2017 at 4:07 PM, Hanyun Tao wrote: > Hi Jakob! > > I'm reading the Invoke(..) function you mentioned, and I believe the > following part of the code plays an important role in executing the > JavaScript but I cannot fully understand it. > > typedef Object*

Re: [v8-users] How does V8 compiles and executes JavaScript events?

2017-08-31 Thread Jakob Kummerow
A v8::Function maps to a v8::internal::JSFunction, which has a code() property. That's either the existing compiled code, or a stub that will trigger (re-)compilation based on the script() in the JSFunction's shared_function_info(). It will be retrieved and called by the JSEntryStub. You might

Re: [v8-users] How does V8 compiles and executes JavaScript events?

2017-08-31 Thread Hanyun Tao
Hi Jakob, Thank you for answering my questions! I would like to modify V8's internals to support such functionality. But before I start I would like to learn a little more about how chromium interact with V8 to process JavaScript event. By reading the source code, I believe that the WebKit