v8/test/cctest/wasm
Karl Schimpf 1719ecb9dc Add capability to handle CSP 'wasm-eval' in V8
Like CSP flag 'unsafe-eval', which communicates if both JS source
files and WASM binary files may be compiled, this CL adds a similar
flag for the compilation of WASM binary files.

That is, a WASM binary file will be compiled only if the new flag is
defined, or the flag for 'unsafe-eval' allows it. These flags are
implemented as callback functions on the isolate. The callbacks get a
(CSP) context, and a string, and returns the corresponding value of
the flag.

Both callbacks are initialized with the nullptr, and is used to
communicate that no CSP policy is defined. This allows this concept to
work, independent of it running in Chrome.

It also does a small clean up in api.cc to use macro CALLER_SETTERS,
instead of explicit code when appropriate.

Bug: v8:7041
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
Change-Id: Idb3356574ae2a298057e6b7bccbd3492831952ae
Reviewed-on: https://chromium-review.googlesource.com/759162
Reviewed-by: Bill Budge <bbudge@chromium.org>
Reviewed-by: Eric Holk <eholk@chromium.org>
Commit-Queue: Karl Schimpf <kschimpf@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49243}
2017-11-09 00:40:42 +00:00
..
OWNERS Add eholk to Wasm-related OWNERS files 2017-08-10 18:58:00 +00:00
test-c-wasm-entry.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-run-wasm-64.cc [wasm] Int64 lowering for return values 2017-10-27 11:34:14 +00:00
test-run-wasm-asmjs.cc [wasm] Introduce the WasmContext 2017-09-28 16:14:03 +00:00
test-run-wasm-atomics.cc [wasm] Implement atomic BinOps in the interpreter 2017-11-06 03:57:23 +00:00
test-run-wasm-interpreter.cc [wasm] [cleanup] Rename tests 2017-11-02 14:34:13 +00:00
test-run-wasm-js.cc [jumbo] drop duplicate BUILD macro from test-run-wasm-js.cc 2017-09-22 11:15:08 +00:00
test-run-wasm-module.cc [wasm] Remove {memory_buffer} from WasmInstanceObject. 2017-10-25 11:57:56 +00:00
test-run-wasm-relocation.cc Annotate all sites that still mutate {Code} objects. 2017-11-06 16:35:46 +00:00
test-run-wasm-simd.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-run-wasm.cc [wasm] Fix expected function to match interpreter's function 2017-11-08 20:48:33 +00:00
test-streaming-compilation.cc [wasm] Fix platform initialization in test-streaming-compilation. 2017-10-09 19:25:14 +00:00
test-wasm-breakpoints.cc [bigint] Fix abstract equality with junk strings 2017-10-25 20:56:09 +00:00
test-wasm-codegen.cc Add capability to handle CSP 'wasm-eval' in V8 2017-11-09 00:40:42 +00:00
test-wasm-interpreter-entry.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-wasm-stack.cc [wasm] Enable tests for Liftoff 2017-10-25 13:14:56 +00:00
test-wasm-trap-position.cc [jumbo] add test namespaces for cctest 2017-09-21 08:46:16 +00:00
wasm-run-utils.cc Annotate all sites that still mutate {Code} objects. 2017-11-06 16:35:46 +00:00
wasm-run-utils.h [wasm] [cleanup] Rename tests 2017-11-02 14:34:13 +00:00