On Thu, Nov 8, 2018 at 11:35 PM TLim <heuichan....@gmail.com> wrote:
> Hi,
>
> I'm trying to retrieve the instruction pointer information when I run a d8 
> with JS program.
> For example, $v8/out.gn/x64_release/d8 foo.js.
> I realize that there is a tool 'objdump_v8' in the v8/tools folder.
> If anyone can help me how can I use the objdump with d8 or any other method 
> suggestions will be very much appreciated!

Do you mean you want to see the code that V8 generates? You'll need a
debug build, or at least a build with the built-in disassembler
enabled; grep for ENABLE_DISASSEMBLER.

Once you have that build, start V8 with flags like --print_code,
--print_opt_code and --print_code_stubs. There are more, you can find
them in src/flag-definitions.h.

-- 
-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to