Ack, SetRawMemory does exactly the right thing.

If you add an API method that takes a Local<Object> (holding the wasm
instance), you can implement that in api.cc via something like:
  i::Handle<Object> obj = Utils::OpenHandle(this);
  i::WasmInstanceObject::cast(*obj)->SetRawMemory(...);


On Thu, Jan 16, 2020 at 3:11 PM Immanuel Haffner <haffner.imman...@gmail.com>
wrote:

> @Clements Regarding point 2, WasmInstanceObject::SetRawMemory()
> <https://cs.chromium.org/chromium/src/v8/src/wasm/wasm-objects.h?type=cs&q=setrawmemory&g=0&l=506>
>  seems
> to to exactly what I want, right? How can I access this, given a v8::Object
> of a WebAssembly.Instance ?
>
> --
> --
> 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/f723d8b5-d126-4b00-82f0-5ab0176703e3%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/f723d8b5-d126-4b00-82f0-5ab0176703e3%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.



-- 

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%3DqhDiJBppKK89iqavn67dCUKf87%3DTDTB%2BstcD6Mn0EqSdPg%40mail.gmail.com.

Reply via email to