Thank you, Ben. Like your suggestion, I've enabled the disassembler and re-built d8. However, when I add those flags, nothing's being printed out or they are not what exactly what I'm looking for.
I'm not sure whether it's even possible, but I'm giving a shot to find out. Basically, what I want to see from d8 with flags or the debugger that provide functionality like objdump with -S. I want the ip address printed that I can do a source level debugging. Even if I can't get the ip info. printed out, is there a way that I can do a source level debugging? I'm not sure how to activate the debugger as well. Debugger like gdb with C/C++. I just need the interpreter level at this moment. If you can help me to get some info. about tools that I can use, that would be very appreciated! 2018년 11월 9일 금요일 오전 2시 0분 42초 UTC-7, Ben Noordhuis 님의 말: > > On Thu, Nov 8, 2018 at 11:35 PM TLim <heuich...@gmail.com <javascript:>> > 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.