#include <disassembler.h>
|
| DisassembleToMemory (char *buffer, uintptr_t length) |
|
| ~DisassembleToMemory () |
|
virtual void | ConsumeInstruction (char *hex_buffer, intptr_t hex_size, char *human_buffer, intptr_t human_size, Object *object, uword pc) |
|
virtual void | Print (const char *format,...) PRINTF_ATTRIBUTE(2 |
|
| DisassemblyFormatter () |
|
virtual | ~DisassemblyFormatter () |
|
virtual void | ConsumeInstruction (char *hex_buffer, intptr_t hex_size, char *human_buffer, intptr_t human_size, Object *object, uword pc)=0 |
|
virtual void | Print (const char *format,...) PRINTF_ATTRIBUTE(2 |
|
Definition at line 91 of file disassembler.h.
◆ DisassembleToMemory()
dart::DisassembleToMemory::DisassembleToMemory |
( |
char * |
buffer, |
|
|
uintptr_t |
length |
|
) |
| |
|
inline |
Definition at line 93 of file disassembler.h.
97 overflowed_(false) {}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ ~DisassembleToMemory()
dart::DisassembleToMemory::~DisassembleToMemory |
( |
| ) |
|
|
inline |
◆ ConsumeInstruction()
void dart::DisassembleToMemory::ConsumeInstruction |
( |
char * |
hex_buffer, |
|
|
intptr_t |
hex_size, |
|
|
char * |
human_buffer, |
|
|
intptr_t |
human_size, |
|
|
Object * |
object, |
|
|
uword |
pc |
|
) |
| |
|
virtual |
Implements dart::DisassemblyFormatter.
Definition at line 65 of file disassembler.cc.
70 {
71 if (overflowed_) {
72 return;
73 }
75
76
77
78#if defined(TARGET_ARCH_RISCV32) || defined(TARGET_ARCH_RISCV64) || \
79 defined(TARGET_ARCH_ARM)
80 len = strlen(hex_buffer);
81 if (remaining_ <
len + 100) {
82 *buffer_++ = '.';
83 *buffer_++ = '.';
84 *buffer_++ = '.';
85 *buffer_++ = '\n';
86 *buffer_++ = '\0';
87 overflowed_ = true;
88 return;
89 }
90 memmove(buffer_, hex_buffer,
len);
93 *buffer_++ = ' ';
94 remaining_--;
95 *buffer_ = '\0';
96#endif
97
98 len = strlen(human_buffer);
99 if (remaining_ <
len + 100) {
100 *buffer_++ = '.';
101 *buffer_++ = '.';
102 *buffer_++ = '.';
103 *buffer_++ = '\n';
104 *buffer_++ = '\0';
105 overflowed_ = true;
106 return;
107 }
108 memmove(buffer_, human_buffer,
len);
111 *buffer_++ = '\n';
112 remaining_--;
113 *buffer_ = '\0';
114}
◆ Print()
void dart::DisassembleToMemory::Print |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
|
virtual |
Reimplemented from dart::DisassemblyFormatter.
Definition at line 116 of file disassembler.cc.
116 {
117 if (overflowed_) {
118 return;
119 }
120 va_list measure_args;
124 if (remaining_ <
len + 100) {
125 *buffer_++ = '.';
126 *buffer_++ = '.';
127 *buffer_++ = '.';
128 *buffer_++ = '\n';
129 *buffer_++ = '\0';
130 overflowed_ = true;
131 return;
132 }
133 va_list print_args;
140 *buffer_++ = '\n';
141 remaining_--;
142 *buffer_ = '\0';
143}
static int static int VSNPrint(char *str, size_t size, const char *format, va_list args)
uint32_t uint32_t * format
The documentation for this class was generated from the following files: