Skip to content

[wasm] Implement support for pinvoke callbacks in the interpeter.#20076

Merged
vargaz merged 5 commits intomono:masterfrom
vargaz:wasm-pinvoke-callbacks
Jul 8, 2020
Merged

[wasm] Implement support for pinvoke callbacks in the interpeter.#20076
vargaz merged 5 commits intomono:masterfrom
vargaz:wasm-pinvoke-callbacks

Conversation

@vargaz
Copy link
Contributor

@vargaz vargaz commented Jul 7, 2020

No description provided.

Move the pinvoke table generation code into a new PInvokeTableGenerator.cs file,
to be similar to the corresponding code in WasmAppBuilder in dotnet/runtime. NFC.
@vargaz
Copy link
Contributor Author

vargaz commented Jul 7, 2020

Will port to dotnet/runtime manually.

@vargaz
Copy link
Contributor Author

vargaz commented Jul 7, 2020

#19944

* Modify the tuner to generate a table of trampoline functions which
have the same signature as the pinvoke callback methods.
* These functions transfer control to the interpreter.
* Modify the interpreter/wasm runtime to look up the functions
corresponding to the pinvoke callback methods.
@vargaz vargaz force-pushed the wasm-pinvoke-callbacks branch from f931100 to f6482ab Compare July 7, 2020 02:45
@vargaz
Copy link
Contributor Author

vargaz commented Jul 7, 2020

@monojenkins commit apidiff and csproj

1 similar comment
@vargaz
Copy link
Contributor Author

vargaz commented Jul 7, 2020

@monojenkins commit apidiff and csproj

@vargaz
Copy link
Contributor Author

vargaz commented Jul 7, 2020

@monojenkins commit csproj

@marek-safar
Copy link
Member

@BrzVlad could you review interpreter changes

@vargaz
Copy link
Contributor Author

vargaz commented Jul 8, 2020

@monojenkins build failed

@vargaz
Copy link
Contributor Author

vargaz commented Jul 8, 2020

@monojenkins build failed

@vargaz vargaz merged commit f047b0b into mono:master Jul 8, 2020
@vargaz vargaz deleted the wasm-pinvoke-callbacks branch July 8, 2020 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants