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

Side by Side Diff: src/platform-posix.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-openbsd.cc ('k') | src/platform-qnx.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 POSIX goes here. This is not a platform on its 5 // Platform-specific code for POSIX goes here. This is not a platform on its
6 // own, but contains the parts which are the same across the POSIX platforms 6 // own, but contains the parts which are the same across the POSIX platforms
7 // Linux, MacOS, FreeBSD, OpenBSD, NetBSD and QNX. 7 // Linux, MacOS, FreeBSD, OpenBSD, NetBSD and QNX.
8 8
9 #include <dlfcn.h> 9 #include <dlfcn.h>
10 #include <errno.h>
10 #include <pthread.h> 11 #include <pthread.h>
11 #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__) 12 #if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__OpenBSD__)
12 #include <pthread_np.h> // for pthread_set_name_np 13 #include <pthread_np.h> // for pthread_set_name_np
13 #endif 14 #endif
14 #include <sched.h> // for sched_yield 15 #include <sched.h> // for sched_yield
16 #include <time.h>
15 #include <unistd.h> 17 #include <unistd.h>
16 #include <errno.h>
17 #include <time.h>
18 18
19 #include <sys/mman.h> 19 #include <sys/mman.h>
20 #include <sys/resource.h> 20 #include <sys/resource.h>
21 #include <sys/stat.h>
21 #include <sys/time.h> 22 #include <sys/time.h>
22 #include <sys/types.h> 23 #include <sys/types.h>
23 #include <sys/stat.h> 24
24 #if defined(__linux__) 25 #if defined(__linux__)
25 #include <sys/prctl.h> // for prctl 26 #include <sys/prctl.h> // NOLINT, for prctl
26 #endif 27 #endif
27 #if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) || \ 28 #if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) || \
28 defined(__NetBSD__) || defined(__OpenBSD__) 29 defined(__NetBSD__) || defined(__OpenBSD__)
29 #include <sys/sysctl.h> // for sysctl 30 #include <sys/sysctl.h> // NOLINT, for sysctl
30 #endif 31 #endif
31 32
32 #include <arpa/inet.h> 33 #include <arpa/inet.h>
34 #include <netdb.h>
33 #include <netinet/in.h> 35 #include <netinet/in.h>
34 #include <netdb.h>
35 36
36 #undef MAP_TYPE 37 #undef MAP_TYPE
37 38
38 #if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT) 39 #if defined(ANDROID) && !defined(V8_ANDROID_LOG_STDOUT)
39 #define LOG_TAG "v8" 40 #define LOG_TAG "v8"
40 #include <android/log.h> 41 #include <android/log.h> // NOLINT
41 #endif 42 #endif
42 43
43 #include "src/v8.h" 44 #include "src/v8.h"
44 45
45 #include "src/isolate-inl.h" 46 #include "src/isolate-inl.h"
46 #include "src/platform.h" 47 #include "src/platform.h"
47 48
48 #ifdef V8_FAST_TLS_SUPPORTED 49 #ifdef V8_FAST_TLS_SUPPORTED
49 #include "src/base/atomicops.h" 50 #include "src/base/atomicops.h"
50 #endif 51 #endif
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 690
690 void Thread::SetThreadLocal(LocalStorageKey key, void* value) { 691 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
691 pthread_key_t pthread_key = LocalKeyToPthreadKey(key); 692 pthread_key_t pthread_key = LocalKeyToPthreadKey(key);
692 int result = pthread_setspecific(pthread_key, value); 693 int result = pthread_setspecific(pthread_key, value);
693 ASSERT_EQ(0, result); 694 ASSERT_EQ(0, result);
694 USE(result); 695 USE(result);
695 } 696 }
696 697
697 698
698 } } // namespace v8::internal 699 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-openbsd.cc ('k') | src/platform-qnx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698