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

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

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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-linux.cc ('k') | src/platform-openbsd.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 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 <unistd.h> 9 #include <unistd.h>
10 #include <sys/mman.h> 10 #include <sys/mman.h>
(...skipping 15 matching lines...) Expand all
26 #include <sys/resource.h> 26 #include <sys/resource.h>
27 #include <sys/types.h> 27 #include <sys/types.h>
28 #include <sys/sysctl.h> 28 #include <sys/sysctl.h>
29 #include <stdarg.h> 29 #include <stdarg.h>
30 #include <stdlib.h> 30 #include <stdlib.h>
31 #include <string.h> 31 #include <string.h>
32 #include <errno.h> 32 #include <errno.h>
33 33
34 #undef MAP_TYPE 34 #undef MAP_TYPE
35 35
36 #include "v8.h" 36 #include "src/v8.h"
37 37
38 #include "platform.h" 38 #include "src/platform.h"
39 39
40 40
41 namespace v8 { 41 namespace v8 {
42 namespace internal { 42 namespace internal {
43 43
44 44
45 // Constants used for mmap. 45 // Constants used for mmap.
46 // kMmapFd is used to pass vm_alloc flags to tag the region with the user 46 // kMmapFd is used to pass vm_alloc flags to tag the region with the user
47 // defined tag 255 This helps identify V8-allocated regions in memory analysis 47 // defined tag 255 This helps identify V8-allocated regions in memory analysis
48 // tools like vmmap(1). 48 // tools like vmmap(1).
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { 301 bool VirtualMemory::ReleaseRegion(void* address, size_t size) {
302 return munmap(address, size) == 0; 302 return munmap(address, size) == 0;
303 } 303 }
304 304
305 305
306 bool VirtualMemory::HasLazyCommits() { 306 bool VirtualMemory::HasLazyCommits() {
307 return false; 307 return false;
308 } 308 }
309 309
310 } } // namespace v8::internal 310 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-linux.cc ('k') | src/platform-openbsd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698