You can have a look at the factory methods creating strings: https://crsrc.org/c/v8/src/heap/factory.h;drc=09587a472311c0358c3ba1c3666a118d3e704d5b;l=233
On Wed, Aug 23, 2023 at 3:12 PM Mark Letterman <[email protected]> wrote: > So I compiled V8 and D8 on my Windows machine and I have some very big > javascript code that is pretty obfuscated and which I can run on my machine > perfectly fine. I want to recompile my V8 so that I can track creation of > certain string inside of this javascript. For example, I want to see if > anywhere in the code, string named "_loopy" gets created or if any name > property like this is being initialized. Where in /v8/src can i potentially > look for such thing? Unfortunately monkey patching and doing manipulation > on Javascript level is not possible for me due to integrity checks. Is > there any way I can do such thing on V8 level and to recompile it > accordingly so i can see if such thing gets created or not? > Im trying to find some type of String constructor and just print whatever > it gets called inside of it. Is this possible? > > Best regards > > -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/v8-dev/26af2ee8-7c67-42a2-a4d2-99976922a699n%40googlegroups.com > <https://groups.google.com/d/msgid/v8-dev/26af2ee8-7c67-42a2-a4d2-99976922a699n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-dev/CAKhjTa8S0GaW_fdd0Z17o9vSbmv7ysYguuX%2BmzuNAmt26Ot0Zg%40mail.gmail.com.
