You can change V8 flags via the public API:
V8::SetFlagsFromString("--print-wasm-code
--predictable --no-liftoff".

A Binaryen-produces Wasm module is a good start. I would guess that the
shared memory does not make a difference to the performance, so maybe you
can just instantiate your Wasm module from JS and call the respective
methods?

On Tue, Apr 7, 2020 at 1:43 PM Immanuel Haffner <haffner.imman...@gmail.com>
wrote:

> Thanks for the quick responses.
>
> @Clemens How does such a reproducer look like? The thing is, that I use V8
> embedded with an underlying memory shared by host and WebAssembly module.
> How/where would I provide the --print-wasm-code flag? I use Binaryen for
> WASM codegen and I can easily produce the compiled WASM code as array of
> bytes. I think this is suitable for instantiating the module from JS.
>
> @Jakob Since this is part of a closed-source project, I must see how much
> information I can share. I will definitely try to provide a MWE.
>
> Once I know what a reproducer is and how to write one, I will gladly file
> a bug report on the site Clemens mentioned. I will also share my findings
> here, in particular the compiled assembly once I have it.
>
> Regards,
> Immanuel
>
> --
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-dev/231e4d57-9dfd-4dc4-b04e-bf29f01fc9c0%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/231e4d57-9dfd-4dc4-b04e-bf29f01fc9c0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Clemens Backes

Software Engineer

cleme...@google.com

Google Germany GmbH

Erika-Mann-Straße 33

80636 München

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten
haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter,
löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen,
dass die E-Mail an die falsche Person gesendet wurde.


This e-mail is confidential. If you received this communication by mistake,
please don't forward it to anyone else, please erase all copies and
attachments, and please let me know that it has gone to the wrong person.

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAGO%3DqhAnoBMFThyAdq2UidCKHffqiqeNcv4XbBT3kLb4bBndcA%40mail.gmail.com.

Reply via email to