Hello V8 community,

In a heap snapshot of my production node server I noticed that every 
"compiled code" entry has a "source" field containing a string of what 
appears to be the original javascript source code. I have a few questions 
about this:

   1. Are these strings required at runtime for JIT compilation? This source 
   
<https://blog.logrocket.com/how-javascript-works-optimizing-the-v8-compiler-for-efficiency/>
 I've 
   found says that: "bytecode is used as the source of truth, removing the 
   need to re-parse Javascript during compilation. This means that with 
   bytecode, TurboFan’s deoptimization no longer requires the original source 
   code." I'm taking this to mean these strings are not needed at runtime for 
   JIT compilation. Am I interpreting this correctly?
   2. If these strings are not needed for JIT compilation at runtime, are 
   they maintained at runtime in order to make the program more easily 
   debug-able?
   3. If they are included for debugging purposes and not strictly 
   necessary, is there any way to disable this? 


Thanks!

Best,
Doron

-- 
-- 
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/2bd8cdd3-583d-4380-a36b-aa41c15d35cen%40googlegroups.com.

Reply via email to