v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
platform-embedded-file-writer-mac.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_MAC_H_
6#define V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_MAC_H_
7
8#include "src/base/macros.h"
10
11namespace v8 {
12namespace internal {
13
15 public:
23
24 void SectionText() override;
25 void SectionRoData() override;
26
27 void AlignToCodeAlignment() override;
28 void AlignToPageSizeIfNeeded() override;
29 void AlignToDataAlignment() override;
30
31 void DeclareUint32(const char* name, uint32_t value) override;
32
33 void DeclareSymbolGlobal(const char* name) override;
34 void DeclareLabel(const char* name) override;
35
36 void SourceInfo(int fileid, const char* filename, int line) override;
37 void DeclareFunctionBegin(const char* name, uint32_t size) override;
38 void DeclareFunctionEnd(const char* name) override;
39
40 void Comment(const char* string) override;
41
42 void FilePrologue() override;
43 void DeclareExternalFilename(int fileid, const char* filename) override;
44 void FileEpilogue() override;
45
46 int IndentedDataDirective(DataDirective directive) override;
47
48 private:
51};
52
53} // namespace internal
54} // namespace v8
55
56#endif // V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_MAC_H_
void DeclareFunctionBegin(const char *name, uint32_t size) override
PlatformEmbeddedFileWriterMac(EmbeddedTargetArch target_arch, EmbeddedTargetOs target_os)
void DeclareExternalFilename(int fileid, const char *filename) override
void SourceInfo(int fileid, const char *filename, int line) override
void DeclareUint32(const char *name, uint32_t value) override
std::string filename
#define DCHECK_EQ(v1, v2)
Definition logging.h:485
#define USE(...)
Definition macros.h:293