v8/src/base
Samuel Groß f43f8a0bb5 [base] Don't return bool from VirtualAddressSpace::Free* routines
Instead of returning a boolean success/failure value, the Free* methods
of the VirtualAddressSpace API now terminate the process on failure, as
this implies a bug in the caller. This is simpler than CHECKing for
success in all callers and also provides more details about the possible
cause of the failure.

Bug: v8:12656
Change-Id: I5b469ae2c564068cff74e60b7e98f6a4776a239d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3506992
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Samuel Groß <saelo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79388}
2022-03-07 16:53:23 +00:00
..
debug Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
numbers Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
platform [base] Fail early in OS::Free and OS::Release 2022-02-24 12:56:34 +00:00
sanitizer [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
utils Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
address-region.h [wasm] Check that all initial reservations succeed 2020-08-03 16:11:33 +00:00
atomic-utils.h [object] Add Object::Relaxed_ReadField 2021-12-08 23:22:26 +00:00
atomicops_internals_atomicword_compat.h
atomicops.h Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
base-export.h
bit-field.h Refactor Name::Hash 2022-02-07 11:30:04 +00:00
bits-iterator.h
bits.cc
bits.h Remove windows.h from win32-headers.h 2021-08-03 16:07:16 +00:00
bounded-page-allocator.cc [base] Never return false from PageAllocator::{Free,Release}Pages 2022-02-25 10:01:13 +00:00
bounded-page-allocator.h V8 Sandbox rebranding 2021-12-15 17:09:36 +00:00
bounds.h Remove support for non-c++14 compliant constexpr 2021-05-10 18:48:31 +00:00
build_config.h Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
compiler-specific.h [compiler] Fix the gcc build 2021-09-01 15:06:53 +00:00
cpu.cc Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
cpu.h [shadow stack] Drop frames from the shadow stack for exception handling 2022-01-04 08:49:26 +00:00
DEPS
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
division-by-constant.cc
division-by-constant.h
emulated-virtual-address-subspace.cc [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
emulated-virtual-address-subspace.h [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
enum-set.h Remove support for non-c++14 compliant constexpr 2021-05-10 18:48:31 +00:00
export-template.h
file-utils.cc Revert to use memcpy instead of base::Memcpy 2021-06-10 10:19:24 +00:00
file-utils.h
flags.h [compiler] Fix the gcc build 2021-09-01 15:06:53 +00:00
free_deleter.h Replace libc functions with base wrappers 2020-11-17 08:50:41 +00:00
functional.cc
functional.h
hashmap-entry.h [parser] Make parser string table empty-valued 2020-10-26 17:53:40 +00:00
hashmap.h Revert to use memcpy instead of base::Memcpy 2021-06-10 10:19:24 +00:00
ieee754.cc [cleanup] Remove V8_2PART_UINT64_C macro 2020-07-20 11:52:17 +00:00
ieee754.h
immediate-crash.h Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
iterator.h
lazy-instance.h [base][cleanup] Remove DISALLOW_COPY_AND_ASSIGN 2020-11-06 15:09:14 +00:00
logging.cc [base] Use IMMEDIATE_CRASH on official build FATAL errors. 2021-03-16 11:05:45 +00:00
logging.h Remove support for non-c++14 compliant constexpr 2021-05-10 18:48:31 +00:00
macros.h Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
memory.h Revert to use memcpy instead of base::Memcpy 2021-06-10 10:19:24 +00:00
once.cc Introduce Starboard platform 2020-08-24 06:37:26 +00:00
once.h [ptr-cage] Factor CodeRange out of MemoryAllocator and share along with ptr cage 2021-04-28 19:17:00 +00:00
optional.h Revert "[base] Replace base::Optional with Abseil" 2021-09-21 19:56:40 +00:00
overflowing-math.h [relaxed-simd] Move tests into separate file 2021-03-22 18:41:54 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
page-allocator.cc [base] Fail early in OS::Free and OS::Release 2022-02-24 12:56:34 +00:00
page-allocator.h Introduce v8_enable_virtual_memory_cage 2021-08-11 16:13:42 +00:00
pointer-with-payload.h Move utils/pointer-with-payload.h -> base/pointer-with-payload.h 2022-03-03 11:44:23 +00:00
qnx-math.h
region-allocator.cc Introduce VirtualAddressSpace interface 2021-12-04 21:42:04 +00:00
region-allocator.h Introduce VirtualAddressSpace interface 2021-12-04 21:42:04 +00:00
ring-buffer.h [base][cleanup] Remove DISALLOW_COPY_AND_ASSIGN 2020-11-06 15:09:14 +00:00
safe_conversions_arm_impl.h Pull safe_conversions from chromium 2020-10-12 16:59:55 +00:00
safe_conversions_impl.h Add some missing includes 2022-02-22 10:52:05 +00:00
safe_conversions.h Pull safe_conversions from chromium 2020-10-12 16:59:55 +00:00
small-vector.h [base] Extend SmallVector for use with Zone storage 2021-11-08 07:52:46 +00:00
strings.cc [base] Create base/strings.h 2021-06-22 16:55:32 +00:00
strings.h Reland "[base] Move most of src/numbers into base" 2021-06-24 15:00:27 +00:00
sys-info.cc Split V8_OS_MACOSX into V8_OS_DARWIN and V8_OS_MACOS 2022-02-18 10:24:59 +00:00
sys-info.h
template-utils.h [ptr-cage] Factor CodeRange out of MemoryAllocator and share along with ptr cage 2021-04-28 19:17:00 +00:00
threaded-list.h [maglev] Initial Maglev commit 2022-02-24 09:50:50 +00:00
timezone-cache.h
type-traits.h
ubsan.cc
v8-fallthrough.h [cleanup][base] Remove redundant NOLINT annotations 2021-04-30 10:07:49 +00:00
vector.h [base] Move utils/vector.h to base/vector.h 2021-06-18 13:33:13 +00:00
virtual-address-space-page-allocator.cc [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
virtual-address-space-page-allocator.h Introduce VirtualAddressSpace interface 2021-12-04 21:42:04 +00:00
virtual-address-space.cc [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
virtual-address-space.h [base] Don't return bool from VirtualAddressSpace::Free* routines 2022-03-07 16:53:23 +00:00
vlq-base64.cc
vlq-base64.h Remove many superfluous STL includes in headers. 2022-01-13 20:56:45 +00:00
vlq.h [cleanup] Fix -Wshadow in src/base/ and src/d8/ 2021-09-27 11:55:49 +00:00
win32-headers.h Require setting _WIN32_WINNT in build config files 2021-11-30 20:04:40 +00:00