summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer.qnx@kdab.com>2012-04-26 15:53:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-09 13:07:02 +0100
commit04ddd397d805d7717ed532de5da5bd2ae756b571 (patch)
treebc00342cc55eb606f5256f004dd4fad548e2eadc
parent4ffa8879a05897487398ffeae54f2ec70be7ccaf (diff)
downloadqtjsbackend-04ddd397d805d7717ed532de5da5bd2ae756b571.tar.gz
[V8] Implement new parts of platform port for QNX
Change-Id: Id2323606334bd47da8532cd9a800626ec259e314 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r--src/3rdparty/v8/src/platform-qnx.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/3rdparty/v8/src/platform-qnx.cc b/src/3rdparty/v8/src/platform-qnx.cc
index 29d4364..92e4d6c 100644
--- a/src/3rdparty/v8/src/platform-qnx.cc
+++ b/src/3rdparty/v8/src/platform-qnx.cc
@@ -57,6 +57,7 @@
#include "v8.h"
#include "platform.h"
+#include "platform-posix.h"
#include "v8threads.h"
#include "vm-state-inl.h"
@@ -104,6 +105,11 @@ void OS::SetUp() {
}
+void OS::PostSetUp() {
+ POSIXPostSetUp();
+}
+
+
uint64_t OS::CpuFeaturesImpliedByPlatform() {
return 0; // QNX runs on anything.
}
@@ -571,6 +577,12 @@ bool VirtualMemory::Uncommit(void* address, size_t size) {
}
+bool VirtualMemory::Guard(void* address) {
+ OS::Guard(address, OS::CommitPageSize());
+ return true;
+}
+
+
void* VirtualMemory::ReserveRegion(size_t size) {
void* result = mmap(OS::GetRandomMmapAddr(),
size,