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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 #endif // __MINGW32__ | 126 #endif // __MINGW32__ |
127 | 127 |
128 namespace v8 { | 128 namespace v8 { |
129 namespace internal { | 129 namespace internal { |
130 | 130 |
131 intptr_t OS::MaxVirtualMemory() { | 131 intptr_t OS::MaxVirtualMemory() { |
132 return 0; | 132 return 0; |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 double ceiling(double x) { | |
137 return ceil(x); | |
138 } | |
139 | |
140 | |
141 #if V8_TARGET_ARCH_IA32 | 136 #if V8_TARGET_ARCH_IA32 |
142 static void MemMoveWrapper(void* dest, const void* src, size_t size) { | 137 static void MemMoveWrapper(void* dest, const void* src, size_t size) { |
143 memmove(dest, src, size); | 138 memmove(dest, src, size); |
144 } | 139 } |
145 | 140 |
146 | 141 |
147 // Initialize to library version so we can call this at any time during startup. | 142 // Initialize to library version so we can call this at any time during startup. |
148 static OS::MemMoveFunction memmove_function = &MemMoveWrapper; | 143 static OS::MemMoveFunction memmove_function = &MemMoveWrapper; |
149 | 144 |
150 // Defined in codegen-ia32.cc. | 145 // Defined in codegen-ia32.cc. |
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 ASSERT(result); | 1513 ASSERT(result); |
1519 } | 1514 } |
1520 | 1515 |
1521 | 1516 |
1522 | 1517 |
1523 void Thread::YieldCPU() { | 1518 void Thread::YieldCPU() { |
1524 Sleep(0); | 1519 Sleep(0); |
1525 } | 1520 } |
1526 | 1521 |
1527 } } // namespace v8::internal | 1522 } } // namespace v8::internal |
OLD | NEW |