Lines Matching refs:OS
85 // Correct Mac OS X Leopard 'ceil' behavior.
97 void OS::SetUp() {
105 void OS::PostSetUp() {
132 bool OS::IsOutsideAllocatedSpace(void* address) {
137 size_t OS::AllocateAlignment() {
150 void* OS::Allocate(const size_t requested,
155 void* mbase = mmap(OS::GetRandomMmapAddr(),
162 LOG(Isolate::Current(), StringEvent("OS::Allocate", "mmap failed"));
171 void OS::Free(void* address, const size_t size) {
179 void OS::Sleep(int milliseconds) {
184 void OS::Abort() {
190 void OS::DebugBreak() {
195 class PosixMemoryMappedFile : public OS::MemoryMappedFile {
209 OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) {
217 mmap(OS::GetRandomMmapAddr(),
227 OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name, int size,
237 mmap(OS::GetRandomMmapAddr(),
248 if (memory_) OS::Free(memory_, size_);
253 void OS::LogSharedLibraryAddresses() {
278 void OS::SignalCodeMovingGC() {
282 uint64_t OS::CpuFeaturesImpliedByPlatform() {
290 int OS::ActivationFrameAlignment() {
291 // OS X activation frames must be 16 byte-aligned; see "Mac OS X ABI
297 void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) {
303 const char* OS::LocalTimezone(double time) {
312 double OS::LocalTimeOffset() {
321 int OS::StackWalk(Vector<StackFrame> frames) {
363 ASSERT(IsAligned(alignment, static_cast<intptr_t>(OS::AllocateAlignment())));
365 static_cast<intptr_t>(OS::AllocateAlignment()));
366 void* reservation = mmap(OS::GetRandomMmapAddr(),
381 OS::Free(base, prefix_size);
385 size_t aligned_size = RoundUp(size, OS::AllocateAlignment());
390 OS::Free(aligned_base + aligned_size, suffix_size);
417 void* result = mmap(OS::GetRandomMmapAddr(),
441 OS::Guard(address, OS::CommitPageSize());
512 // Mac OS X does not expose the length limit of the name, so hardcode it.
687 Mutex* OS::CreateMutex() {
724 Semaphore* OS::CreateSemaphore(int count) {
743 // For details, consult "Mac OS X Internals" book, Section 7.3.
800 OS::Sleep(interval_);
844 #error Unsupported Mac OS X host architecture.