mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
25 lines
949 B
C++
25 lines
949 B
C++
--- v8/src/execution/isolate.cc.orig 2024-02-21 00:22:14 UTC
|
|
+++ v8/src/execution/isolate.cc
|
|
@@ -148,6 +148,10 @@
|
|
#include "src/execution/simulator-base.h"
|
|
#endif
|
|
|
|
+#if defined(V8_OS_OPENBSD)
|
|
+#include <sys/mman.h>
|
|
+#endif
|
|
+
|
|
extern "C" const uint8_t v8_Default_embedded_blob_code_[];
|
|
extern "C" uint32_t v8_Default_embedded_blob_code_size_;
|
|
extern "C" const uint8_t v8_Default_embedded_blob_data_[];
|
|
@@ -4211,6 +4215,11 @@ void Isolate::InitializeDefaultEmbeddedBlob() {
|
|
uint32_t code_size = DefaultEmbeddedBlobCodeSize();
|
|
const uint8_t* data = DefaultEmbeddedBlobData();
|
|
uint32_t data_size = DefaultEmbeddedBlobDataSize();
|
|
+
|
|
+#if defined(V8_OS_OPENBSD) && !defined(V8_TARGET_ARCH_IA32)
|
|
+ mprotect(reinterpret_cast<void *>(const_cast<uint8_t *>(code)),
|
|
+ code_size, PROT_READ | PROT_EXEC);
|
|
+#endif
|
|
|
|
if (StickyEmbeddedBlobCode() != nullptr) {
|
|
base::MutexGuard guard(current_embedded_blob_refcount_mutex_.Pointer());
|