View | Details | Raw Unified | Return to bug 260651 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/node16/Makefile (+1 lines)
Lines 1-6 Link Here
1
PORTNAME=	node
1
PORTNAME=	node
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	16.13.0
3
DISTVERSION=	16.13.0
4
PORTREVISION=	1
4
CATEGORIES=	www
5
CATEGORIES=	www
5
MASTER_SITES=	https://nodejs.org/dist/v${DISTVERSION}/
6
MASTER_SITES=	https://nodejs.org/dist/v${DISTVERSION}/
6
PKGNAMESUFFIX=	16
7
PKGNAMESUFFIX=	16
(-)b/www/node16/files/patch-deps_v8_src_base_platform_platform-posix.cc (+11 lines)
Added Link Here
1
--- deps/v8/src/base/platform/platform-posix.cc.orig	2021-12-23 18:02:43 UTC
2
+++ deps/v8/src/base/platform/platform-posix.cc
3
@@ -189,7 +189,7 @@ void* Allocate(void* hint, size_t size, OS::MemoryPerm
4
 
5
 }  // namespace
6
 
7
-#if V8_OS_LINUX || V8_OS_FREEBSD
8
+#if V8_OS_LINUX
9
 #ifdef __arm__
10
 
11
 bool OS::ArmUsingHardFloat() {
(-)b/www/node16/files/patch-deps_v8_src_codegen_arm_cpu-arm.cc (+28 lines)
Added Link Here
1
--- deps/v8/src/codegen/arm/cpu-arm.cc.orig	2021-10-26 12:00:55 UTC
2
+++ deps/v8/src/codegen/arm/cpu-arm.cc
3
@@ -2,12 +2,14 @@
4
 // Use of this source code is governed by a BSD-style license that can be
5
 // found in the LICENSE file.
6
 
7
+#include "include/v8config.h"
8
 // CPU specific code for arm independent of OS goes here.
9
 #ifdef __arm__
10
 #ifdef __QNXNTO__
11
 #include <sys/mman.h>  // for cache flushing.
12
 #undef MAP_TYPE
13
 #elif V8_OS_FREEBSD
14
+#include <sys/cdefs.h>
15
 #include <machine/sysarch.h>  // for cache flushing
16
 #include <sys/types.h>
17
 #elif V8_OS_STARBOARD
18
@@ -31,9 +33,7 @@ V8_NOINLINE void CpuFeatures::FlushICache(void* start,
19
 #if V8_OS_QNX
20
   msync(start, size, MS_SYNC | MS_INVALIDATE_ICACHE);
21
 #elif V8_OS_FREEBSD
22
-  struct arm_sync_icache_args args = {
23
-      .addr = reinterpret_cast<uintptr_t>(start), .len = size};
24
-  sysarch(ARM_SYNC_ICACHE, reinterpret_cast<void*>(&args));
25
+  arm_sync_icache(reinterpret_cast<uintptr_t>(start), size);
26
 #else
27
   register uint32_t beg asm("r0") = reinterpret_cast<uint32_t>(start);
28
   register uint32_t end asm("r1") = beg + size;

Return to bug 260651