Skip to content

Commit

Permalink
[V8] Implement new parts of platform port for QNX
Browse files Browse the repository at this point in the history
Change-Id: I066a4e21aa42134a446a4e693de90e3639d3aecd
Reviewed-by: Sean Harmer <[email protected]>
Reviewed-by: Kent Hansen <[email protected]>
  • Loading branch information
Sean Harmer authored and Qt by Nokia committed Jun 13, 2012
1 parent dd3e063 commit 32de497
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/3rdparty/v8/src/platform-qnx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include "v8.h"

#include "platform.h"
#include "platform-posix.h"
#include "v8threads.h"
#include "vm-state-inl.h"

Expand Down Expand Up @@ -104,6 +105,11 @@ void OS::SetUp() {
}


void OS::PostSetUp() {
POSIXPostSetUp();
}


uint64_t OS::CpuFeaturesImpliedByPlatform() {
return 0; // QNX runs on anything.
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 32de497

Please sign in to comment.