#ifndef V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_BASE_H_
#define V8_SNAPSHOT_EMBEDDED_PLATFORM_EMBEDDED_FILE_WRITER_BASE_H_
#include <cinttypes>
#include <cstdio>
#include <memory>
#if V8_ENABLE_DRUMBRAKE
#include <string>
#endif
namespace v8 {
namespace internal {
class EmbeddedData;
enum DataDirective { … };
DataDirective PointerSizeDirective();
int DataDirectiveSize(DataDirective directive);
enum class EmbeddedTargetOs { … };
enum class EmbeddedTargetArch { … };
class PlatformEmbeddedFileWriterBase { … };
std::unique_ptr<PlatformEmbeddedFileWriterBase> NewPlatformEmbeddedFileWriter(
const char* target_arch, const char* target_os);
#if V8_ENABLE_DRUMBRAKE
inline bool IsDrumBrakeInstructionHandler(const char* name) {
std::string builtin_name(name);
return builtin_name.find("Builtins_r2r_") == 0 ||
builtin_name.find("Builtins_r2s_") == 0 ||
builtin_name.find("Builtins_s2r_") == 0 ||
builtin_name.find("Builtins_s2s_") == 0;
}
#endif
}
}
#endif