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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 static const int kLogBufferSize = 2 * MB; | 64 static const int kLogBufferSize = 2 * MB; |
65 | 65 |
66 void LogWriteBytes(const char* bytes, int size); | 66 void LogWriteBytes(const char* bytes, int size); |
67 void LogWriteHeader(); | 67 void LogWriteHeader(); |
68 void LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared); | 68 void LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared); |
69 | 69 |
70 static const uint32_t kElfMachIA32 = 3; | 70 static const uint32_t kElfMachIA32 = 3; |
71 static const uint32_t kElfMachX64 = 62; | 71 static const uint32_t kElfMachX64 = 62; |
72 static const uint32_t kElfMachARM = 40; | 72 static const uint32_t kElfMachARM = 40; |
73 static const uint32_t kElfMachMIPS = 10; | 73 static const uint32_t kElfMachMIPS = 10; |
| 74 static const uint32_t kElfMachARM64 = 183; |
74 | 75 |
75 uint32_t GetElfMach() { | 76 uint32_t GetElfMach() { |
76 #if V8_TARGET_ARCH_IA32 | 77 #if V8_TARGET_ARCH_IA32 |
77 return kElfMachIA32; | 78 return kElfMachIA32; |
78 #elif V8_TARGET_ARCH_X64 | 79 #elif V8_TARGET_ARCH_X64 |
79 return kElfMachX64; | 80 return kElfMachX64; |
80 #elif V8_TARGET_ARCH_ARM | 81 #elif V8_TARGET_ARCH_ARM |
81 return kElfMachARM; | 82 return kElfMachARM; |
82 #elif V8_TARGET_ARCH_MIPS | 83 #elif V8_TARGET_ARCH_MIPS |
83 return kElfMachMIPS; | 84 return kElfMachMIPS; |
| 85 #elif V8_TARGET_ARCH_ARM64 |
| 86 return kElfMachARM64; |
84 #else | 87 #else |
85 UNIMPLEMENTED(); | 88 UNIMPLEMENTED(); |
86 return 0; | 89 return 0; |
87 #endif | 90 #endif |
88 } | 91 } |
89 | 92 |
90 // Per-process singleton file. We assume that there is one main isolate; | 93 // Per-process singleton file. We assume that there is one main isolate; |
91 // to determine when it goes away, we keep reference count. | 94 // to determine when it goes away, we keep reference count. |
92 static base::LazyRecursiveMutex file_mutex_; | 95 static base::LazyRecursiveMutex file_mutex_; |
93 static FILE* perf_output_handle_; | 96 static FILE* perf_output_handle_; |
(...skipping 19 matching lines...) Expand all Loading... |
113 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, | 116 void LogRecordedBuffer(AbstractCode* code, SharedFunctionInfo* shared, |
114 const char* name, int length) override { | 117 const char* name, int length) override { |
115 UNIMPLEMENTED(); | 118 UNIMPLEMENTED(); |
116 } | 119 } |
117 }; | 120 }; |
118 | 121 |
119 #endif // V8_OS_LINUX | 122 #endif // V8_OS_LINUX |
120 } // namespace internal | 123 } // namespace internal |
121 } // namespace v8 | 124 } // namespace v8 |
122 #endif | 125 #endif |
OLD | NEW |