Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/perf-jit.h

Issue 2783203005: [perf-prof] Adjust source position addresses according to ELF header size (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/perf-jit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698