Chromium Code Reviews| 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 |