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.h

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/parser.cc ('k') | src/platform-cygwin.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 // This module contains the platform-specific code. This make the rest of the 5 // This module contains the platform-specific code. This make the rest of the
6 // code less dependent on operating system, compilers and runtime libraries. 6 // code less dependent on operating system, compilers and runtime libraries.
7 // This module does specifically not deal with differences between different 7 // This module does specifically not deal with differences between different
8 // processor architecture. 8 // processor architecture.
9 // The platform classes have the same definition for all platforms. The 9 // The platform classes have the same definition for all platforms. The
10 // implementation for a particular platform is put in platform_<os>.cc. 10 // implementation for a particular platform is put in platform_<os>.cc.
11 // The build system then uses the implementation for the target platform. 11 // The build system then uses the implementation for the target platform.
12 // 12 //
13 // This design has been chosen because it is simple and fast. Alternatively, 13 // This design has been chosen because it is simple and fast. Alternatively,
14 // the platform dependent classes could have been implemented using abstract 14 // the platform dependent classes could have been implemented using abstract
15 // superclasses with virtual methods and having specializations for each 15 // superclasses with virtual methods and having specializations for each
16 // platform. This design was rejected because it was more complicated and 16 // platform. This design was rejected because it was more complicated and
17 // slower. It would require factory methods for selecting the right 17 // slower. It would require factory methods for selecting the right
18 // implementation and the overhead of virtual methods for performance 18 // implementation and the overhead of virtual methods for performance
19 // sensitive like mutex locking/unlocking. 19 // sensitive like mutex locking/unlocking.
20 20
21 #ifndef V8_PLATFORM_H_ 21 #ifndef V8_PLATFORM_H_
22 #define V8_PLATFORM_H_ 22 #define V8_PLATFORM_H_
23 23
24 #include <stdarg.h> 24 #include <stdarg.h>
25 25
26 #include "platform/mutex.h" 26 #include "src/platform/mutex.h"
27 #include "platform/semaphore.h" 27 #include "src/platform/semaphore.h"
28 #include "globals.h" 28 #include "src/globals.h"
29 #include "vector.h" 29 #include "src/vector.h"
30 30
31 #ifdef __sun 31 #ifdef __sun
32 # ifndef signbit 32 # ifndef signbit
33 namespace std { 33 namespace std {
34 int signbit(double x); 34 int signbit(double x);
35 } 35 }
36 # endif 36 # endif
37 #endif 37 #endif
38 38
39 #if V8_OS_QNX 39 #if V8_OS_QNX
40 #include "qnx-math.h" 40 #include "src/qnx-math.h"
41 #endif 41 #endif
42 42
43 // Microsoft Visual C++ specific stuff. 43 // Microsoft Visual C++ specific stuff.
44 #if V8_LIBC_MSVCRT 44 #if V8_LIBC_MSVCRT
45 45
46 #include "win32-headers.h" 46 #include "src/win32-headers.h"
47 #include "win32-math.h" 47 #include "src/win32-math.h"
48 48
49 int strncasecmp(const char* s1, const char* s2, int n); 49 int strncasecmp(const char* s1, const char* s2, int n);
50 50
51 // Visual C++ 2013 and higher implement this function. 51 // Visual C++ 2013 and higher implement this function.
52 #if (_MSC_VER < 1800) 52 #if (_MSC_VER < 1800)
53 inline int lrint(double flt) { 53 inline int lrint(double flt) {
54 int intgr; 54 int intgr;
55 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87 55 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X87
56 __asm { 56 __asm {
57 fld flt 57 fld flt
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 char name_[kMaxThreadNameLength]; 503 char name_[kMaxThreadNameLength];
504 int stack_size_; 504 int stack_size_;
505 Semaphore* start_semaphore_; 505 Semaphore* start_semaphore_;
506 506
507 DISALLOW_COPY_AND_ASSIGN(Thread); 507 DISALLOW_COPY_AND_ASSIGN(Thread);
508 }; 508 };
509 509
510 } } // namespace v8::internal 510 } } // namespace v8::internal
511 511
512 #endif // V8_PLATFORM_H_ 512 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698