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

Unified Diff: src/eh-frame.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: Enable with --perf-prof-unwinding-info. 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
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/eh-frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/eh-frame.h
diff --git a/src/eh-frame.h b/src/eh-frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..75781acb502ee8f420e93b240e7515e6e9f7348d
--- /dev/null
+++ b/src/eh-frame.h
@@ -0,0 +1,41 @@
+// 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_EH_FRAME_H_
+#define V8_EH_FRAME_H_
+
+#include <cstdint>
+
+namespace v8 {
+namespace internal {
+
+class Code;
+
+class EhFrameHdr final {
+ public:
+ static const int kRecordSize = 20;
+ static const int kCIESize;
+
+ explicit EhFrameHdr(Code* code);
+
+ int32_t offset_to_eh_frame() const { return offset_to_eh_frame_; }
+ uint32_t lut_entries_number() const { return lut_entries_number_; }
+ int32_t offset_to_procedure() const { return offset_to_procedure_; }
+ int32_t offset_to_fde() const { return offset_to_fde_; }
+
+ 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_;
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/eh-frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698