v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
platform-embedded-file-writer-generic.h
Go to the documentation of this file.
1// Copyright 2019 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_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_GENERIC_H_
6#define V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_GENERIC_H_
7
8#include "src/common/globals.h" // For V8_OS_WIN_X64
10
11namespace v8 {
12namespace internal {
13
16 public:
24
25 void SectionText() override;
26 void SectionRoData() override;
27
28 void AlignToCodeAlignment() override;
29 void AlignToPageSizeIfNeeded() override;
30 void AlignToDataAlignment() override;
31
32 void DeclareUint32(const char* name, uint32_t value) override;
33
34 void DeclareSymbolGlobal(const char* name) override;
35 void DeclareLabel(const char* name) override;
36
37 void SourceInfo(int fileid, const char* filename, int line) override;
38 void DeclareFunctionBegin(const char* name, uint32_t size) override;
39 void DeclareFunctionEnd(const char* name) override;
40
41 void Comment(const char* string) override;
42
43 void FilePrologue() override;
44 void DeclareExternalFilename(int fileid, const char* filename) override;
45 void FileEpilogue() override;
46
47 int IndentedDataDirective(DataDirective directive) override;
48
50
51 private:
54};
55
56} // namespace internal
57} // namespace v8
58
59#endif // V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_GENERIC_H_
PlatformEmbeddedFileWriterGeneric(EmbeddedTargetArch target_arch, EmbeddedTargetOs target_os)
void DeclareFunctionBegin(const char *name, uint32_t size) override
void DeclareExternalFilename(int fileid, const char *filename) override
void DeclareUint32(const char *name, uint32_t value) override
void SourceInfo(int fileid, const char *filename, int line) override
std::string filename
#define DCHECK(condition)
Definition logging.h:482