diff options
Diffstat (limited to 'deps/v8/src/base/ios-headers.h')
-rw-r--r-- | deps/v8/src/base/ios-headers.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/deps/v8/src/base/ios-headers.h b/deps/v8/src/base/ios-headers.h new file mode 100644 index 0000000000..6434435119 --- /dev/null +++ b/deps/v8/src/base/ios-headers.h @@ -0,0 +1,31 @@ +// Copyright 2023 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef V8_BASE_IOS_HEADERS_H_ +#define V8_BASE_IOS_HEADERS_H_ + +// This file includes the necessary headers that are not part of the +// iOS public SDK in order to support memory allocation on iOS. + +#include <mach/mach.h> +#include <mach/vm_map.h> + +__BEGIN_DECLS + +kern_return_t mach_vm_remap( + vm_map_t target_task, mach_vm_address_t* target_address, + mach_vm_size_t size, mach_vm_offset_t mask, int flags, vm_map_t src_task, + mach_vm_address_t src_address, boolean_t copy, vm_prot_t* cur_protection, + vm_prot_t* max_protection, vm_inherit_t inheritance); + +kern_return_t mach_vm_map(vm_map_t target_task, mach_vm_address_t* address, + mach_vm_size_t size, mach_vm_offset_t mask, int flags, + mem_entry_name_port_t object, + memory_object_offset_t offset, boolean_t copy, + vm_prot_t cur_protection, vm_prot_t max_protection, + vm_inherit_t inheritance); + +__END_DECLS + +#endif // V8_BASE_IOS_HEADERS_H_ |