[v8-users] Re: Get a callback in C++ code from v8

2019-07-18 Thread Yang Gao
First, you need to find the builtin bytecode that responsible for executing the evaluation. How to find the builtin bytecode? Debug the execution of V8 handly, there is Runtime_InterpreterTraceBytecodeEntry in V8 source, you can use it to debug. After you find the builtin, call a new runtime fu

[v8-users] Re: Get a callback in C++ code from v8

2019-07-18 Thread Nupoor Kotasthane
Hi Yang, Thank you for your reply. Can you elaborate a little? I am new to v8. Do you have an example? On Thursday, July 18, 2019 at 6:07:57 AM UTC-7, Yang Gao wrote: > > you can hook builtins with the help of Runtime function. Or you can write > your own builtins. I have done something like

[v8-users] Re: Get a callback in C++ code from v8

2019-07-18 Thread Yang Gao
you can hook builtins with the help of Runtime function. Or you can write your own builtins. I have done something like this. 在 2019年7月18日星期四 UTC+8上午7:15:16,Nupoor Kotasthane写道: > > Hi v8 users, > > > > I would like to know if there is any way through which I can get a > callback from v8 befor