| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 static Mutex* limit_mutex = NULL; | 79 static Mutex* limit_mutex = NULL; |
| 80 | 80 |
| 81 | 81 |
| 82 uint64_t OS::CpuFeaturesImpliedByPlatform() { | |
| 83 return 0; // Linux runs on anything. | |
| 84 } | |
| 85 | |
| 86 | |
| 87 #ifdef __arm__ | 82 #ifdef __arm__ |
| 88 static bool CPUInfoContainsString(const char * search_string) { | 83 static bool CPUInfoContainsString(const char * search_string) { |
| 89 const char* file_name = "/proc/cpuinfo"; | 84 const char* file_name = "/proc/cpuinfo"; |
| 90 // This is written as a straight shot one pass parser | 85 // This is written as a straight shot one pass parser |
| 91 // and not using STL string and ifstream because, | 86 // and not using STL string and ifstream because, |
| 92 // on Linux, it's reading from a (non-mmap-able) | 87 // on Linux, it's reading from a (non-mmap-able) |
| 93 // character special device. | 88 // character special device. |
| 94 FILE* f = NULL; | 89 FILE* f = NULL; |
| 95 const char* what = search_string; | 90 const char* what = search_string; |
| 96 | 91 |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 limit_mutex = CreateMutex(); | 774 limit_mutex = CreateMutex(); |
| 780 } | 775 } |
| 781 | 776 |
| 782 | 777 |
| 783 void OS::TearDown() { | 778 void OS::TearDown() { |
| 784 delete limit_mutex; | 779 delete limit_mutex; |
| 785 } | 780 } |
| 786 | 781 |
| 787 | 782 |
| 788 } } // namespace v8::internal | 783 } } // namespace v8::internal |
| OLD | NEW |