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

Unified Diff: src/unwinding-info.h

Issue 1993653003: Initial support for emitting unwinding information in perf jitdump. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/unwinding-info.h
diff --git a/src/unwinding-info.h b/src/unwinding-info.h
new file mode 100644
index 0000000000000000000000000000000000000000..56e3877c4cfe850b093e4c942c2e8c1e58bba345
--- /dev/null
+++ b/src/unwinding-info.h
@@ -0,0 +1,36 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_UNWINDING_INFO_H_
+#define V8_UNWINDING_INFO_H_
+
+#include <cstdint>
+
+namespace v8 {
+namespace internal {
+
+class Code;
+
+class EhFrameHdr final {
rmcilroy 2016/06/21 13:47:44 This file should be eh_frame_header (and the the c
Stefano Sanfilippo 2016/06/23 15:23:44 .eh_frame_hdr is the name of the section and how i
+ public:
+ explicit EhFrameHdr(Code* code);
+ static const int kRecordSize = 20;
+
+ private:
+ uint8_t version_;
+ uint8_t eh_frame_ptr_encoding_;
+ uint8_t lut_size_encoding_;
+ uint8_t lut_entries_encoding_;
+ int32_t offset_to_eh_frame_;
+ uint32_t lut_entries_number_;
+ int32_t offset_to_procedure_;
+ int32_t offset_to_fde_;
+};
+
+void PatchProcedureBoundariesInEhFrame(Code* code);
+
+} // namespace internal
+} // namespace v8
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698