Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: src/platform-openbsd.cc

Issue 9537011: Merge r10809 into 3.7 branch (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.7/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/platform-nullos.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { 451 bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) {
452 return CommitRegion(address, size, is_executable); 452 return CommitRegion(address, size, is_executable);
453 } 453 }
454 454
455 455
456 bool VirtualMemory::Uncommit(void* address, size_t size) { 456 bool VirtualMemory::Uncommit(void* address, size_t size) {
457 return UncommitRegion(address, size); 457 return UncommitRegion(address, size);
458 } 458 }
459 459
460 460
461 bool VirtualMemory::Guard(void* address) {
462 OS::Guard(address, OS::CommitPageSize());
463 return true;
464 }
465
466
461 void* VirtualMemory::ReserveRegion(size_t size) { 467 void* VirtualMemory::ReserveRegion(size_t size) {
462 void* result = mmap(GetRandomMmapAddr(), 468 void* result = mmap(GetRandomMmapAddr(),
463 size, 469 size,
464 PROT_NONE, 470 PROT_NONE,
465 MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, 471 MAP_PRIVATE | MAP_ANON | MAP_NORESERVE,
466 kMmapFd, 472 kMmapFd,
467 kMmapFdOffset); 473 kMmapFdOffset);
468 474
469 if (result == MAP_FAILED) return NULL; 475 if (result == MAP_FAILED) return NULL;
470 476
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 950
945 951
946 void Sampler::Stop() { 952 void Sampler::Stop() {
947 ASSERT(IsActive()); 953 ASSERT(IsActive());
948 SignalSender::RemoveActiveSampler(this); 954 SignalSender::RemoveActiveSampler(this);
949 SetActive(false); 955 SetActive(false);
950 } 956 }
951 957
952 958
953 } } // namespace v8::internal 959 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-nullos.cc ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698