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

Side by Side Diff: src/platform.h

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Same as the previous CL, but with an addition to cctest/test-log.cc Created 6 years, 11 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 | « src/mips/simulator-mips.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 26 matching lines...) Expand all
37 // the platform dependent classes could have been implemented using abstract 37 // the platform dependent classes could have been implemented using abstract
38 // superclasses with virtual methods and having specializations for each 38 // superclasses with virtual methods and having specializations for each
39 // platform. This design was rejected because it was more complicated and 39 // platform. This design was rejected because it was more complicated and
40 // slower. It would require factory methods for selecting the right 40 // slower. It would require factory methods for selecting the right
41 // implementation and the overhead of virtual methods for performance 41 // implementation and the overhead of virtual methods for performance
42 // sensitive like mutex locking/unlocking. 42 // sensitive like mutex locking/unlocking.
43 43
44 #ifndef V8_PLATFORM_H_ 44 #ifndef V8_PLATFORM_H_
45 #define V8_PLATFORM_H_ 45 #define V8_PLATFORM_H_
46 46
47 #include <cstdarg> 47 #include <stdarg.h>
48 48
49 #include "platform/mutex.h" 49 #include "platform/mutex.h"
50 #include "platform/semaphore.h" 50 #include "platform/semaphore.h"
51 #include "utils.h" 51 #include "utils.h"
52 #include "v8globals.h" 52 #include "v8globals.h"
53 53
54 #ifdef __sun 54 #ifdef __sun
55 # ifndef signbit 55 # ifndef signbit
56 namespace std { 56 namespace std {
57 int signbit(double x); 57 int signbit(double x);
(...skipping 24 matching lines...) Expand all
82 }; 82 };
83 #else 83 #else
84 intgr = static_cast<int>(flt + 0.5); 84 intgr = static_cast<int>(flt + 0.5);
85 if ((intgr & 1) != 0 && intgr - flt == 0.5) { 85 if ((intgr & 1) != 0 && intgr - flt == 0.5) {
86 // If the number is halfway between two integers, round to the even one. 86 // If the number is halfway between two integers, round to the even one.
87 intgr--; 87 intgr--;
88 } 88 }
89 #endif 89 #endif
90 return intgr; 90 return intgr;
91 } 91 }
92
93 #endif // _MSC_VER < 1800 92 #endif // _MSC_VER < 1800
94 93
95 #endif // V8_CC_MSVC 94 #endif // V8_CC_MSVC
96 95
97 namespace v8 { 96 namespace v8 {
98 namespace internal { 97 namespace internal {
99 98
100 double modulo(double x, double y); 99 double modulo(double x, double y);
101 100
102 // Custom implementation of math functions. 101 // Custom implementation of math functions.
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 char name_[kMaxThreadNameLength]; 610 char name_[kMaxThreadNameLength];
612 int stack_size_; 611 int stack_size_;
613 Semaphore* start_semaphore_; 612 Semaphore* start_semaphore_;
614 613
615 DISALLOW_COPY_AND_ASSIGN(Thread); 614 DISALLOW_COPY_AND_ASSIGN(Thread);
616 }; 615 };
617 616
618 } } // namespace v8::internal 617 } } // namespace v8::internal
619 618
620 #endif // V8_PLATFORM_H_ 619 #endif // V8_PLATFORM_H_
OLDNEW
« no previous file with comments | « src/mips/simulator-mips.cc ('k') | src/platform-cygwin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698