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

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

Issue 333013002: Check alpha-sorting of includes during presubmit. (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>
10 #include <sys/mman.h>
11 #include <mach/mach_init.h> 9 #include <mach/mach_init.h>
12 #include <mach-o/dyld.h> 10 #include <mach-o/dyld.h>
13 #include <mach-o/getsect.h> 11 #include <mach-o/getsect.h>
12 #include <sys/mman.h>
13 #include <unistd.h>
14 14
15 #include <AvailabilityMacros.h> 15 #include <AvailabilityMacros.h>
16 16
17 #include <pthread.h> 17 #include <errno.h>
18 #include <semaphore.h>
19 #include <signal.h>
20 #include <libkern/OSAtomic.h> 18 #include <libkern/OSAtomic.h>
21 #include <mach/mach.h> 19 #include <mach/mach.h>
22 #include <mach/semaphore.h> 20 #include <mach/semaphore.h>
23 #include <mach/task.h> 21 #include <mach/task.h>
24 #include <mach/vm_statistics.h> 22 #include <mach/vm_statistics.h>
25 #include <sys/time.h> 23 #include <pthread.h>
26 #include <sys/resource.h> 24 #include <semaphore.h>
27 #include <sys/types.h> 25 #include <signal.h>
28 #include <sys/sysctl.h>
29 #include <stdarg.h> 26 #include <stdarg.h>
30 #include <stdlib.h> 27 #include <stdlib.h>
31 #include <string.h> 28 #include <string.h>
32 #include <errno.h> 29 #include <sys/resource.h>
30 #include <sys/sysctl.h>
31 #include <sys/time.h>
32 #include <sys/types.h>
33 33
34 #undef MAP_TYPE 34 #undef MAP_TYPE
35 35
36 #include "src/v8.h" 36 #include "src/v8.h"
37 37
38 #include "src/platform.h" 38 #include "src/platform.h"
39 39
40 40
41 namespace v8 { 41 namespace v8 {
42 namespace internal { 42 namespace internal {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool VirtualMemory::ReleaseRegion(void* address, size_t size) { 300 bool VirtualMemory::ReleaseRegion(void* address, size_t size) {
301 return munmap(address, size) == 0; 301 return munmap(address, size) == 0;
302 } 302 }
303 303
304 304
305 bool VirtualMemory::HasLazyCommits() { 305 bool VirtualMemory::HasLazyCommits() {
306 return false; 306 return false;
307 } 307 }
308 308
309 } } // namespace v8::internal 309 } } // 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