OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 #include "platform-posix.h" | 69 #include "platform-posix.h" |
70 #include "platform.h" | 70 #include "platform.h" |
71 #include "v8threads.h" | 71 #include "v8threads.h" |
72 #include "vm-state-inl.h" | 72 #include "vm-state-inl.h" |
73 | 73 |
74 | 74 |
75 namespace v8 { | 75 namespace v8 { |
76 namespace internal { | 76 namespace internal { |
77 | 77 |
78 | 78 |
79 double ceiling(double x) { | |
80 return ceil(x); | |
81 } | |
82 | |
83 | |
84 static Mutex* limit_mutex = NULL; | 79 static Mutex* limit_mutex = NULL; |
85 | 80 |
86 | 81 |
87 uint64_t OS::CpuFeaturesImpliedByPlatform() { | 82 uint64_t OS::CpuFeaturesImpliedByPlatform() { |
88 return 0; // Linux runs on anything. | 83 return 0; // Linux runs on anything. |
89 } | 84 } |
90 | 85 |
91 | 86 |
92 #ifdef __arm__ | 87 #ifdef __arm__ |
93 static bool CPUInfoContainsString(const char * search_string) { | 88 static bool CPUInfoContainsString(const char * search_string) { |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 limit_mutex = CreateMutex(); | 779 limit_mutex = CreateMutex(); |
785 } | 780 } |
786 | 781 |
787 | 782 |
788 void OS::TearDown() { | 783 void OS::TearDown() { |
789 delete limit_mutex; | 784 delete limit_mutex; |
790 } | 785 } |
791 | 786 |
792 | 787 |
793 } } // namespace v8::internal | 788 } } // namespace v8::internal |
OLD | NEW |