v8/test/cctest
Samuel Groß f3737bbb12 [sandbox] Initialize sandbox during V8::Initialize
As sandboxed pointers are now default-enabled when the sandbox is
enabled, it is no longer possible to deactivate the sandbox at runtime.
This CL therefore removes all the logic that was required to support a
sandbox that could be disabled at runtime, moves the initialization of
the sandbox into V8::Initialize, and deprecates V8::InitializeSandbox.

This change also makes the sandbox initialization deterministic if
FLAG_random_seed is supplied.

Bug: v8:10391
Change-Id: Ibd49f7c251b7c58c642f18a551ecc2c391740970
Cq-Include-Trybots: luci.v8.try:v8_linux64_heap_sandbox_dbg_ng,v8_linux_arm64_sim_heap_sandbox_dbg_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3762583
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Samuel Groß <saelo@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81746}
2022-07-15 09:29:32 +00:00
..
compiler Remove some unused includes (4) 2022-07-08 15:26:40 +00:00
heap Reuse existing Scripts during synchronous parsing 2022-06-30 15:41:07 +00:00
parsing [test] Move cctest/parsing to unittests/parser 2022-05-17 13:07:30 +00:00
torque [csa, torque, cleanup] Rename CSA_ASSERT to CSA_DCHECK 2021-09-30 08:41:23 +00:00
wasm [wasm-gc] Add 'none' type for nullref 2022-07-12 17:54:58 +00:00
assembler-helper-arm.cc
assembler-helper-arm.h
BUILD.gn [test] Move cctest/test-intl to unittests/ 2022-07-05 14:51:00 +00:00
cctest-utils.h [LOONG64] Add LoongArch64 backend 2021-08-16 13:05:19 +00:00
cctest.cc [sandbox] Initialize sandbox during V8::Initialize 2022-07-15 09:29:32 +00:00
cctest.h [task] Expose CreateJob in v8::Platform 2022-06-15 00:13:31 +00:00
cctest.status [test] Move cctest/test-intl to unittests/ 2022-07-05 14:51:00 +00:00
collector.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
DEPS
expression-type-collector-macros.h
manually-externalized-buffer.h
OWNERS
print-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
print-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
profiler-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
profiler-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
scope-test-helper.h Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
setup-isolate-for-tests.cc
setup-isolate-for-tests.h
test-accessor-assembler.cc [ic] Use the Map for hashing in the secondary stub cache 2021-10-15 14:54:28 +00:00
test-accessors.cc [runtime] Add interceptors side effects detector 2022-05-12 10:33:10 +00:00
test-allocation.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-api-array-buffer.cc [api] Add more efficient API for accesssing ArrayBuffer raw data 2022-07-15 09:03:11 +00:00
test-api-icu.cc [Intl] Update ICU to 70-1 on v8 2021-11-12 11:35:09 +00:00
test-api-interceptors.cc Fix includes in test-api-interceptors.cc 2022-05-12 13:08:15 +00:00
test-api-stack-traces.cc [cleanup] Make the CaptureStackTrace test threaded 2022-05-31 09:52:38 +00:00
test-api-typed-array.cc [rab / gsab] Add tests for the recent DataView bugs 2021-11-24 16:20:29 +00:00
test-api-wasm.cc [wasm][api] Add WasmModuleObject::Compile api function 2021-11-19 22:25:15 +00:00
test-api.cc [fastcall] expose wasm memory to cfunction 2022-07-05 16:24:01 +00:00
test-api.h Reland "Fix -Wimplicit-int-float-conversions." 2021-06-29 16:36:18 +00:00
test-assembler-arm64.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-assembler-arm.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-assembler-ia32.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-assembler-loong64.cc [loong64] Fix the wrong encoding and usage of maskeqz/masknez instructions 2021-12-24 10:46:06 +00:00
test-assembler-mips64.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-assembler-mips.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-assembler-ppc.cc [codegen] Change RegList into a class 2022-03-14 12:59:48 +00:00
test-assembler-riscv64.cc [riscv64] Fix name ambiguous 2022-05-30 01:34:06 +00:00
test-assembler-s390.cc [cleanup] Rename RelocInfo::NONE to RelocInfo::NO_INFO to fix -Wshadow 2021-11-17 19:11:40 +00:00
test-assembler-x64.cc [x64] Implement 256-bit assembly for SSE2_UNOP instructions 2022-04-19 13:01:50 +00:00
test-code-stub-assembler.cc [change-array-by-copy] Refactor ConvertToRelativeIndex 2022-05-27 21:13:14 +00:00
test-constantpool.cc
test-cpu-profiler.cc [logging] Use short "JS:" prefix for function log events 2022-06-14 16:11:21 +00:00
test-debug-helper.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-debug.cc [api] Deprecate PersistentValueVector 2022-06-09 08:44:13 +00:00
test-descriptor-array.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-disasm-mips.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-disasm-regex-helper.cc Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-disasm-regex-helper.h Unify naming convention for tests and filter them in TestLoader for cctest 2022-04-20 14:19:55 +00:00
test-feedback-vector.cc [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
test-feedback-vector.h Revert "factory: Move FeedbackVector construction to type" 2022-01-21 17:09:16 +00:00
test-field-type-tracking.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-func-name-inference.cc [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
test-fuzz-arm64.cc
test-global-handles.cc [api] Remove deprecated global handle APIs 2022-06-09 15:39:03 +00:00
test-heap-profiler.cc [runtime] Inline Foreign fields into AccessorInfo 2022-06-20 09:25:03 +00:00
test-helper-riscv64.cc
test-helper-riscv64.h Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-icache.cc Reland "[rwx][mac] Support fast W^X permission switching on Apple Silicon (M1)" 2022-04-28 14:08:11 +00:00
test-ignition-statistics-extension.cc Fix counting ignition dispatches 2021-06-07 18:47:24 +00:00
test-inobject-slack-tracking.cc [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
test-inspector.cc Disable command-line API for untrusted inspector clients. 2022-06-01 09:37:58 +00:00
test-javascript-arm64.cc
test-js-arm64-variables.cc
test-js-to-wasm.cc Reland "[osr] Enable concurrent OSR" 2022-04-11 13:09:35 +00:00
test-js-weak-refs.cc [weakrefs] Set unregister_token to undefined when unregistering 2022-05-03 21:09:47 +00:00
test-liveedit.cc [debug] Allow live-editing of top-most frame 2022-06-13 10:29:30 +00:00
test-local-handles.cc [cleanup] Fix some -Wshadow warnings 2021-11-02 17:11:48 +00:00
test-lockers.cc [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
test-log-stack-tracer.cc [ext-code-space] Use cage-friendly HeapObject::map() in compiler 2021-11-30 13:00:28 +00:00
test-macro-assembler-arm64.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-macro-assembler-arm.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-macro-assembler-loong64.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-macro-assembler-mips64.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-macro-assembler-mips.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-macro-assembler-riscv64.cc [riscv64] Avoid using callee saved register in call func 2022-06-19 12:30:52 +00:00
test-macro-assembler-x64.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-mementos.cc
test-orderedhashtable.cc [objects] Make PropertyKind an enum class to fix -Wshadow 2021-11-15 19:05:14 +00:00
test-parsing.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-profile-generator.cc [logging] Use short "JS:" prefix for function log events 2022-06-14 16:11:21 +00:00
test-property-details.cc
test-ptr-compr-cage.cc [ext-code-space] Make the code space external for real 2021-10-20 16:29:51 +00:00
test-random-number-generator.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-sampler-api.cc Add test for builtin stack frames in profile sample 2021-11-24 09:33:30 +00:00
test-serialize.cc [serializer] allow SnapshotCreator to destruct without a blob 2022-07-11 16:14:33 +00:00
test-shared-strings.cc [heap] Verify the shared heap before tearing down a client heap 2022-06-23 14:56:23 +00:00
test-simple-riscv64.cc
test-smi-lexicographic-compare.cc
test-stack-unwinding-win64.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-strings.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-swiss-name-dictionary-csa.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-swiss-name-dictionary-infra.cc [runtime] Clean up runtime function Arguments accesses 2022-03-09 13:03:15 +00:00
test-swiss-name-dictionary-infra.h
test-swiss-name-dictionary-shared-tests.h Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-swiss-name-dictionary.cc
test-sync-primitives-arm64.cc
test-sync-primitives-arm.cc
test-temporal-parser.cc [Temporal] Syntax error if DateExtendedYear is -000000 2022-05-24 04:58:31 +00:00
test-trace-event.cc [test] Make cctest run one test, with maybe custom platform 2022-04-05 09:39:18 +00:00
test-transitions.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-transitions.h Reland "[runtime] Refactor TransitionsAccessor" 2022-02-14 12:05:06 +00:00
test-typedarrays.cc
test-unscopables-hidden-prototype.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
test-unwinder-code-pages.cc [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
test-usecounters.cc
test-utils-arm64.cc Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-utils-arm64.h Place bit_cast<>() in the v8::base:: namespace. 2022-05-05 17:56:39 +00:00
test-utils.cc Replace STATIC_ASSERT with static_assert 2022-05-13 13:46:27 +00:00
test-v8windbg.cc
test-verifiers.cc
test-weakmaps.cc [heap] Separate GC phases flag. 2022-04-06 07:23:39 +00:00
test-weaksets.cc heap: Rename compaction flags 2021-11-10 09:01:59 +00:00
test-web-snapshots.cc [web snapshot] Add support for derived constructors 2022-05-18 07:42:21 +00:00
testcfg.py [test] Fix get resources for interpreter expectation files 2022-06-11 02:02:28 +00:00
trace-extension.cc Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
trace-extension.h Reland "[include] Split out v8.h" 2021-08-24 13:08:55 +00:00
unicode-helpers.cc
unicode-helpers.h