v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unwinding-info-writer-x64.h
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_COMPILER_BACKEND_X64_UNWINDING_INFO_WRITER_X64_H_
6#define V8_COMPILER_BACKEND_X64_UNWINDING_INFO_WRITER_X64_H_
7
9#include "src/flags/flags.h"
10
11namespace v8 {
12namespace internal {
13namespace compiler {
14
15class InstructionBlock;
16
18 public:
19 explicit UnwindingInfoWriter(Zone* zone)
20 : zone_(zone),
21 eh_frame_writer_(zone),
22 tracking_fp_(false),
23 block_will_exit_(false),
26 }
27
34
36 if (enabled()) block_initial_states_.resize(number);
37 }
38
41
42 void MarkFrameConstructed(int pc_base);
43 void MarkFrameDeconstructed(int pc_base);
44
46
47 void Finish(int code_size) {
48 if (enabled()) eh_frame_writer_.Finish(code_size);
49 }
50
52 return enabled() ? &eh_frame_writer_ : nullptr;
53 }
54
55 private:
56 bool enabled() const { return v8_flags.perf_prof_unwinding_info; }
57
59 public:
60 BlockInitialState(Register reg, int offset, bool tracking_fp)
61 : register_(reg), offset_(offset), tracking_fp_(tracking_fp) {}
62
66 };
67
68 Zone* zone_;
72
74};
75
76} // namespace compiler
77} // namespace internal
78} // namespace v8
79
80#endif // V8_COMPILER_BACKEND_X64_UNWINDING_INFO_WRITER_X64_H_
void IncreaseBaseAddressOffset(int base_delta)
Definition eh-frame.h:97
void Finish(int code_size)
Definition eh-frame.cc:349
void AdvanceLocation(int pc_offset)
Definition eh-frame.cc:251
ZoneVector< const BlockInitialState * > block_initial_states_
void BeginInstructionBlock(int pc_offset, const InstructionBlock *block)
void MaybeIncreaseBaseOffsetAt(int pc_offset, int base_delta)
void EndInstructionBlock(const InstructionBlock *block)
int32_t offset
LiftoffRegister reg
int pc_offset
V8_EXPORT_PRIVATE FlagValues v8_flags