Re: [v8-users] Instrumentation API in V8

2014-11-25 Thread Jakob Kummerow
No. You can get method-level tracing with --trace, and the built-in ARM/MIPS simulators can trace simulated machine instructions with --trace-sim. If you really need tracing with the granularity of AST nodes or similar, it would probably be easier to use a JS engine that can run in purely

Re: [v8-users] Instrumentation API in V8

2014-11-25 Thread Stefan Bucur
Thanks Jakob. I was hoping I could do this in V8, in order to target Node.js applications, in addition to browser code. I will dig the source code and see if I can directly plug my changes with a reasonable effort. Stefan On Tuesday, November 25, 2014 9:02:09 AM UTC+1, Jakob Kummerow wrote:

[v8-users] Instrumentation API in V8

2014-11-24 Thread Stefan Bucur
Hi, Is there any recommended way (perhaps an API?) to insert instrumentation in JavaScript code executed by V8? Ideally, I would expect a callback mechanism that allows me to intercept change the code at different representations levels (e.g., AST, Hydrogen IR, or Lythium native code). My