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 function in the builtin. please exam the runtime.h, you will know how to construct your own runtime function. When the builtin is igniting(means the evaluation is executing), the runtime will be called. Can you elaborate on what you want to do? I think there must have a more suitable way for you. 在 2019年7月18日星期四 UTC+8下午11:51:52,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 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 before and after evaluation of every JavaScript statement. >>> Are there any C++ hooks or callbacks or APIs that I can use? I need to get >>> notified by v8 and on receiving these notifications I want to make some >>> calls to the v8 inspector in the same thread. >>> >>> Does anyone have any examples? >>> >>> >>> >>> Thank you, >>> >>> Nupoor >>> >>
-- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/37057d3a-9d35-4dec-9b17-538e24738ed9%40googlegroups.com.