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

Side by Side Diff: src/base/platform/platform-macos.cc

Issue 2278473002: [platform] MacOS supports on-demand paging (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Platform-specific code for MacOS goes here. For the POSIX-compatible 5 // Platform-specific code for MacOS goes here. For the POSIX-compatible
6 // parts, the implementation is in platform-posix.cc. 6 // parts, the implementation is in platform-posix.cc.
7 7
8 #include <dlfcn.h> 8 #include <dlfcn.h>
9 #include <mach/mach_init.h> 9 #include <mach/mach_init.h>
10 #include <mach-o/dyld.h> 10 #include <mach-o/dyld.h>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 bool VirtualMemory::ReleasePartialRegion(void* base, size_t size, 244 bool VirtualMemory::ReleasePartialRegion(void* base, size_t size,
245 void* free_start, size_t free_size) { 245 void* free_start, size_t free_size) {
246 return munmap(free_start, free_size) == 0; 246 return munmap(free_start, free_size) == 0;
247 } 247 }
248 248
249 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { 249 bool VirtualMemory::ReleaseRegion(void* address, size_t size) {
250 return munmap(address, size) == 0; 250 return munmap(address, size) == 0;
251 } 251 }
252 252
253 253 bool VirtualMemory::HasLazyCommits() { return true; }
254 bool VirtualMemory::HasLazyCommits() {
255 return false;
256 }
257 254
258 } // namespace base 255 } // namespace base
259 } // namespace v8 256 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698