v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unwinding-info-writer.h
Go to the documentation of this file.
1// Copyright 2014 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_UNWINDING_INFO_WRITER_H_
6#define V8_COMPILER_BACKEND_UNWINDING_INFO_WRITER_H_
7
8#include "src/flags/flags.h"
9
10#if V8_TARGET_ARCH_ARM
12#elif V8_TARGET_ARCH_ARM64
14#elif V8_TARGET_ARCH_X64
16#elif V8_TARGET_ARCH_S390X
18#elif V8_TARGET_ARCH_PPC64
20#else
21
22// Placeholder for unsupported architectures.
23
24#include "src/base/logging.h"
25
26namespace v8 {
27namespace internal {
28
29class EhFrameWriter;
30class Zone;
31
32namespace compiler {
33
34class InstructionBlock;
35
36static_assert(!v8_flags.perf_prof_unwinding_info.value(),
37 "--perf-prof-unwinding-info should be statically disabled if not "
38 "supported");
39
40class UnwindingInfoWriter {
41 public:
43
44 void SetNumberOfInstructionBlocks(int number) {}
45
47
49
50 void Finish(int code_size) {}
51
52 EhFrameWriter* eh_frame_writer() { return nullptr; }
53};
54
55} // namespace compiler
56} // namespace internal
57} // namespace v8
58
59#endif
60
61#endif // V8_COMPILER_BACKEND_UNWINDING_INFO_WRITER_H_
friend Zone
Definition asm-types.cc:195
void BeginInstructionBlock(int pc_offset, const InstructionBlock *)
void EndInstructionBlock(const InstructionBlock *)
int pc_offset
V8_EXPORT_PRIVATE FlagValues v8_flags