I think I need to read more of the embedder docs for now. I looked around and wasn't really able to find any docs on getting started with editing V8 itself, are there any tutorials or docs related to that?
On Friday, September 21, 2018 at 12:24:40 AM UTC-7, Yang Guo wrote: > > I think you have to add a line break so that the write buffer gets > flushed, i.e. PrintF("Test\n") > > On Thu, Sep 20, 2018 at 10:12 PM SudoKid <speer...@gmail.com <javascript:>> > wrote: > >> I'm a bit stuck here. When I use something like say `PrintF("Test");` I >> don't see the output in the terminal when I run the code. Is there a reason >> for this or am I confused about what `PrintF()` does? >> >> On Thursday, September 20, 2018 at 10:57:40 AM UTC-7, Yang Guo wrote: >>> >>> Take a look at src/objects-printer.cc >>> >>> Yang >>> >>> On Thu, Sep 20, 2018 at 7:53 PM Emett Speer <speer...@gmail.com> wrote: >>> >>>> Hello Yang Guo, >>>> >>>> I'm trying to track down the location of the `Print()` method you >>>> provided but I'm having trouble. Could you please point me to the file the >>>> `Print()` is located in? >>>> >>>> Thank you, >>>> Emett >>>> >>>> On Wed, Sep 19, 2018 at 11:34 AM Emett Speer <speer...@gmail.com> >>>> wrote: >>>> >>>>> Well this provides me with way more output then I used to have. Thanks >>>>> for pointing me in the right direction and providing me with sample code. >>>>> Its very appreciated. >>>>> >>>>> On Wed, Sep 19, 2018 at 11:11 AM Yang Guo <yan...@chromium.org> wrote: >>>>> >>>>>> Try adding a >>>>>> >>>>>> args.at<String>(0)->Print(); >>>>>> >>>>>> to this line: >>>>>> https://cs.chromium.org/chromium/src/v8/src/runtime/runtime-compiler.cc?sq=package:chromium&dr&g=0&l=335 >>>>>> >>>>>> On Wed, Sep 19, 2018 at 6:20 PM Emett Speer <speer...@gmail.com> >>>>>> wrote: >>>>>> >>>>>>> Hello, >>>>>>> >>>>>>> I'm still very new to C++ and know very little about V8 but I'm >>>>>>> picking both up at the moment. >>>>>>> >>>>>>> I'm looking to add extra logging to the builtins. Something that >>>>>>> would allow me to add say a log output to the `GlobalEval` builtin that >>>>>>> will output what `eval()` was called with as its arguments. >>>>>>> >>>>>>> I'm still going through the documentation on the V8 wiki though I'm >>>>>>> not sure that it will contain the required documentation. >>>>>>> >>>>>>> If anyone is willing to point me in the right direction or to the >>>>>>> area of code I would need to review for this it would be much >>>>>>> appreciated. >>>>>>> >>>>>>> Thank you, >>>>>>> Emett Speer >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> v8-dev mailing list >>>>>>> v8-...@googlegroups.com >>>>>>> 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 v8-dev+un...@googlegroups.com. >>>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>>> >>>>>> -- >>>>>> -- >>>>>> v8-dev mailing list >>>>>> v8-...@googlegroups.com >>>>>> 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 v8-dev+un...@googlegroups.com. >>>>>> For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>> >>>>> >>>>> -- >>>>> Emett Speer >>>>> Email: speer...@gmail.com >>>>> Phone: 604-366-8439 >>>>> >>>> >>>> >>>> -- >>>> Emett Speer >>>> >>>> -- >>>> -- >>>> v8-dev mailing list >>>> v8-...@googlegroups.com >>>> 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 v8-dev+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >> -- >> v8-dev mailing list >> v8-...@googlegroups.com <javascript:> >> 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 v8-dev+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- -- v8-dev mailing list v8-dev@googlegroups.com 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 v8-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.