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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 288 } |
289 fclose(f); | 289 fclose(f); |
290 | 290 |
291 // Did not find string in the proc file. | 291 // Did not find string in the proc file. |
292 return false; | 292 return false; |
293 } | 293 } |
294 #endif // def __mips__ | 294 #endif // def __mips__ |
295 | 295 |
296 | 296 |
297 int OS::ActivationFrameAlignment() { | 297 int OS::ActivationFrameAlignment() { |
298 #ifdef V8_TARGET_ARCH_ARM | 298 #if V8_TARGET_ARCH_ARM |
299 // On EABI ARM targets this is required for fp correctness in the | 299 // On EABI ARM targets this is required for fp correctness in the |
300 // runtime system. | 300 // runtime system. |
301 return 8; | 301 return 8; |
302 #elif V8_TARGET_ARCH_MIPS | 302 #elif V8_TARGET_ARCH_MIPS |
303 return 8; | 303 return 8; |
304 #endif | 304 #endif |
305 // With gcc 4.4 the tree vectorization optimizer can generate code | 305 // With gcc 4.4 the tree vectorization optimizer can generate code |
306 // that requires 16 byte alignment such as movdqa on x86. | 306 // that requires 16 byte alignment such as movdqa on x86. |
307 return 16; | 307 return 16; |
308 } | 308 } |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
987 limit_mutex = CreateMutex(); | 987 limit_mutex = CreateMutex(); |
988 } | 988 } |
989 | 989 |
990 | 990 |
991 void OS::TearDown() { | 991 void OS::TearDown() { |
992 delete limit_mutex; | 992 delete limit_mutex; |
993 } | 993 } |
994 | 994 |
995 | 995 |
996 } } // namespace v8::internal | 996 } } // namespace v8::internal |
OLD | NEW |