1719ecb9dc
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} |
||
---|---|---|
.. | ||
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 | ||
bounds-check-64bit.js | ||
calls.js | ||
compilation-limits-asm.js | ||
compilation-limits.js | ||
compiled-module-management.js | ||
compiled-module-serialization.js | ||
data-segments.js | ||
default-liftoff-setting.js | ||
disable-trap-handler.js | ||
disallow-codegen.js | ||
divrem-trap.js | ||
ensure-wasm-binaries-up-to-date.js | ||
errors.js | ||
exceptions.js | ||
export-global.js | ||
export-table.js | ||
expose-wasm.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-in-branch.js | ||
grow-memory-in-call.js | ||
grow-memory-in-loop.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 | ||
liftoff.js | ||
many-parameters.js | ||
memory-external-call.js | ||
memory-instance-validation.js | ||
memory-size.js | ||
memory.js | ||
module-memory.js | ||
multi-value.js | ||
names.js | ||
OWNERS | ||
parallel_compilation.js | ||
params.js | ||
receiver.js | ||
shared-memory.js | ||
stack.js | ||
stackwalk.js | ||
start-function.js | ||
streaming-compile.js | ||
streaming-error-position.js | ||
streaming-trap-location.js | ||
table-grow.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-common.js | ||
user-properties-constructed.js | ||
user-properties-exported.js | ||
user-properties-module.js | ||
user-properties-reexport.js | ||
verify-module-basic-errors.js | ||
wasm-api-overloading.js | ||
wasm-constants.js | ||
wasm-default.js | ||
wasm-module-builder.js | ||
wasm-object-api.js | ||
worker-memory.js |