#include <cstring>
#include <iomanip>
#include "src/codegen/assembler-inl.h"
#include "src/codegen/code-comments.h"
namespace v8 {
namespace internal {
namespace {
static constexpr uint8_t kOffsetToFirstCommentEntry = …;
static constexpr uint8_t kOffsetToPCOffset = …;
static constexpr uint8_t kOffsetToCommentSize = …;
static constexpr uint8_t kOffsetToCommentString = …;
}
uint32_t CodeCommentEntry::comment_length() const { … }
uint32_t CodeCommentEntry::size() const { … }
CodeCommentsIterator::CodeCommentsIterator(Address code_comments_start,
uint32_t code_comments_size)
: … { … }
uint32_t CodeCommentsIterator::size() const { … }
const char* CodeCommentsIterator::GetComment() const { … }
uint32_t CodeCommentsIterator::GetCommentSize() const { … }
uint32_t CodeCommentsIterator::GetPCOffset() const { … }
void CodeCommentsIterator::Next() { … }
bool CodeCommentsIterator::HasCurrent() const { … }
void CodeCommentsWriter::Emit(Assembler* assm) { … }
void CodeCommentsWriter::Add(uint32_t pc_offset, std::string comment) { … }
size_t CodeCommentsWriter::entry_count() const { … }
uint32_t CodeCommentsWriter::section_size() const { … }
}
}