| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
Rubber stamping interpreter-only change, I'll let Paolo comment on the actual review.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Looks very good to me, with two comments.
DirectHandle<WasmFuncRef> wasm_func_ref = Cast<WasmFuncRef>(func_ref);
Tagged<WasmInternalFunction> internal = wasm_func_ref->internal(isolate_);
DirectHandle<Object> object_implicit_arg{internal->implicit_arg(), isolate_};Thanks! This simplify the logic a lot!
ExternalCallResult WasmInterpreterRuntime::CallExternalWasmFunction(This is all good but maybe just the function name is confusing because we do not always call an external Wasm function, we might also call a function in the same instance.
'wasm/nan-constant': [SKIP],This test contains the directive:
```
%WasmTierUpFunction(wasm.main);
```
which cannot work with the interpreter, so it will still fail, I believe, even though for a different reason.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
ExternalCallResult WasmInterpreterRuntime::CallExternalWasmFunction(This is all good but maybe just the function name is confusing because we do not always call an external Wasm function, we might also call a function in the same instance.
Currently only CallRef may call into this function with the same instance. And I have see a TODO mentioned that we can call directly when the current wasm instance is same with instance in the wasm FuncRef. So I planned fix the return_call_ref in wasm-spec-test by this way. After it, a DCHECK will be add into CallExternalWasmFunction to keep the wasm function is external. Maybe I can add a TODO in ExecuteCallRef before I do it in my next CL.
'wasm/nan-constant': [SKIP],This test contains the directive:
```
%WasmTierUpFunction(wasm.main);
```
which cannot work with the interpreter, so it will still fail, I believe, even though for a different reason.
Thanks, add this test case into "Tests using %WasmTierUpFunction()" is a good choice.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[wasm interpreter] Call wasm function directly in CallRef
To pass the test case in nan-constant.js, we cannt't call a wasm func
ref by its JSFunction entry. Because the has f32 nan bitset been changed
after we call into JSFunction.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |