c39c6eba00
The interpreter was not able to call imported wasm functions (hitting UNIMPLEMENTED). This CL fixes this by creating a "CWasmEntry", which is signature-specific. It has JS linkage and receives the wasm code object to call and a buffer containing all arguments (similar to the interpreter entry). It loads all arguments from the buffer and calls the given code object. The c-wasm-entry code objects are cached per instance, such that we only create them once per signature. These wasm entry stubs will also allow us to call back to compiled code from the interpreter, which we might want to do to reduce the slowdown of executing wasm for debugging. R=titzer@chromium.org Bug: chromium:735792 Change-Id: I7fecec3a7bec62a9de40fff115b684759b12a28b Reviewed-on: https://chromium-review.googlesource.com/600308 Commit-Queue: Clemens Hammacher <clemensh@chromium.org> Reviewed-by: Ben Titzer <titzer@chromium.org> Cr-Commit-Position: refs/heads/master@{#47195} |
||
---|---|---|
.. | ||
embenchen | ||
adapter-frame.js | ||
add-getters.js | ||
asm-wasm-copy.js | ||
asm-wasm-deopt.js | ||
asm-wasm-exception-in-tonumber.js | ||
asm-wasm-expr.js | ||
asm-wasm-f32.js | ||
asm-wasm-f64.js | ||
asm-wasm-heap.js | ||
asm-wasm-i32.js | ||
asm-wasm-literals.js | ||
asm-wasm-names.js | ||
asm-wasm-stack.js | ||
asm-wasm-stdlib.js | ||
asm-wasm-switch.js | ||
asm-wasm-u32.js | ||
asm-wasm.js | ||
asm-with-wasm-off.js | ||
async-compile.js | ||
atomics.js | ||
calls.js | ||
compilation-limits-asm.js | ||
compilation-limits.js | ||
compiled-module-management.js | ||
compiled-module-serialization.js | ||
data-segments.js | ||
divrem-trap.js | ||
ensure-wasm-binaries-up-to-date.js | ||
errors.js | ||
exceptions.js | ||
export-global.js | ||
export-table.js | ||
ffi-error.js | ||
ffi.js | ||
float-constant-folding.js | ||
function-names.js | ||
function-prototype.js | ||
gc-buffer.js | ||
gc-frame.js | ||
gc-stress.js | ||
globals.js | ||
graceful_shutdown.js | ||
grow-memory.js | ||
huge-memory.js | ||
import-memory.js | ||
import-table.js | ||
incrementer.wasm | ||
indirect-calls.js | ||
indirect-sig-mismatch.js | ||
indirect-tables.js | ||
instance-gc.js | ||
instance-memory-gc-stress.js | ||
instantiate-module-basic.js | ||
instantiate-run-basic.js | ||
interpreter-mixed.js | ||
interpreter.js | ||
js-api.js | ||
jsapi-harness.js | ||
large-offset.js | ||
memory-instance-validation.js | ||
memory-size.js | ||
memory.js | ||
module-memory.js | ||
names.js | ||
OWNERS | ||
parallel_compilation.js | ||
params.js | ||
receiver.js | ||
shared-memory.js | ||
stack.js | ||
stackwalk.js | ||
start-function.js | ||
table.js | ||
test-import-export-wrapper.js | ||
test-wasm-module-builder.js | ||
trap-location.js | ||
unicode-validation.js | ||
unicode.js | ||
unreachable-validation.js | ||
unreachable.js | ||
user-properties.js | ||
verify-module-basic-errors.js | ||
wasm-api-overloading.js | ||
wasm-constants.js | ||
wasm-default.js | ||
wasm-module-builder.js | ||
wasm-object-api.js |