OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 #elif V8_TARGET_ARCH_MIPS | 84 #elif V8_TARGET_ARCH_MIPS |
85 return kElfMachMIPS; | 85 return kElfMachMIPS; |
86 #elif V8_TARGET_ARCH_ARM64 | 86 #elif V8_TARGET_ARCH_ARM64 |
87 return kElfMachARM64; | 87 return kElfMachARM64; |
88 #else | 88 #else |
89 UNIMPLEMENTED(); | 89 UNIMPLEMENTED(); |
90 return 0; | 90 return 0; |
91 #endif | 91 #endif |
92 } | 92 } |
93 | 93 |
| 94 #if V8_TARGET_ARCH_32_BIT |
| 95 static const int kElfHeaderSize = 0x34; |
| 96 #elif V8_TARGET_ARCH_64_BIT |
| 97 static const int kElfHeaderSize = 0x40; |
| 98 #else |
| 99 #error Unknown target architecture pointer size |
| 100 #endif |
| 101 |
94 // Per-process singleton file. We assume that there is one main isolate; | 102 // Per-process singleton file. We assume that there is one main isolate; |
95 // to determine when it goes away, we keep reference count. | 103 // to determine when it goes away, we keep reference count. |
96 static base::LazyRecursiveMutex file_mutex_; | 104 static base::LazyRecursiveMutex file_mutex_; |
97 static FILE* perf_output_handle_; | 105 static FILE* perf_output_handle_; |
98 static uint64_t reference_count_; | 106 static uint64_t reference_count_; |
99 static void* marker_address_; | 107 static void* marker_address_; |
100 static uint64_t code_index_; | 108 static uint64_t code_index_; |
101 }; | 109 }; |
102 | 110 |
103 #else | 111 #else |
(...skipping 13 matching lines...) Expand all Loading... |
117 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, | 125 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, |
118 const char* name, int length) override { | 126 const char* name, int length) override { |
119 UNIMPLEMENTED(); | 127 UNIMPLEMENTED(); |
120 } | 128 } |
121 }; | 129 }; |
122 | 130 |
123 #endif // V8_OS_LINUX | 131 #endif // V8_OS_LINUX |
124 } // namespace internal | 132 } // namespace internal |
125 } // namespace v8 | 133 } // namespace v8 |
126 #endif | 134 #endif |
OLD | NEW |