Removing xdb and old tracing code before rewrite.
This commit is contained in:
@@ -640,34 +640,12 @@ void HIRBuilder::Nop() {
|
||||
i->src1.value = i->src2.value = i->src3.value = NULL;
|
||||
}
|
||||
|
||||
void HIRBuilder::SourceOffset(uint64_t offset) {
|
||||
void HIRBuilder::SourceOffset(uint32_t offset) {
|
||||
Instr* i = AppendInstr(OPCODE_SOURCE_OFFSET_info, 0);
|
||||
i->src1.offset = offset;
|
||||
i->src2.value = i->src3.value = NULL;
|
||||
}
|
||||
|
||||
void HIRBuilder::TraceSource(uint64_t offset) {
|
||||
Instr* i = AppendInstr(OPCODE_TRACE_SOURCE_info, 100 | (100 << 8));
|
||||
i->src1.offset = offset;
|
||||
i->set_src2(LoadZero(INT64_TYPE));
|
||||
i->set_src3(LoadZero(INT64_TYPE));
|
||||
}
|
||||
|
||||
void HIRBuilder::TraceSource(uint64_t offset, uint8_t index, Value* value) {
|
||||
Instr* i = AppendInstr(OPCODE_TRACE_SOURCE_info, index | (100 << 8));
|
||||
i->src1.offset = offset;
|
||||
i->set_src2(value);
|
||||
i->set_src3(LoadZero(INT64_TYPE));
|
||||
}
|
||||
|
||||
void HIRBuilder::TraceSource(uint64_t offset, uint8_t index_0, Value* value_0,
|
||||
uint8_t index_1, Value* value_1) {
|
||||
Instr* i = AppendInstr(OPCODE_TRACE_SOURCE_info, index_0 | (index_1 << 8));
|
||||
i->src1.offset = offset;
|
||||
i->set_src2(value_0);
|
||||
i->set_src3(value_1);
|
||||
}
|
||||
|
||||
void HIRBuilder::DebugBreak() {
|
||||
Instr* i = AppendInstr(OPCODE_DEBUG_BREAK_info, 0);
|
||||
i->src1.value = i->src2.value = i->src3.value = NULL;
|
||||
|
||||
@@ -68,11 +68,7 @@ class HIRBuilder {
|
||||
|
||||
void Nop();
|
||||
|
||||
void SourceOffset(uint64_t offset);
|
||||
void TraceSource(uint64_t offset);
|
||||
void TraceSource(uint64_t offset, uint8_t index, Value* value);
|
||||
void TraceSource(uint64_t offset, uint8_t index_0, Value* value_0,
|
||||
uint8_t index_1, Value* value_1);
|
||||
void SourceOffset(uint32_t offset);
|
||||
|
||||
// trace info/etc
|
||||
void DebugBreak();
|
||||
|
||||
@@ -109,7 +109,6 @@ enum Opcode {
|
||||
OPCODE_COMMENT,
|
||||
OPCODE_NOP,
|
||||
OPCODE_SOURCE_OFFSET,
|
||||
OPCODE_TRACE_SOURCE,
|
||||
OPCODE_DEBUG_BREAK,
|
||||
OPCODE_DEBUG_BREAK_TRUE,
|
||||
OPCODE_TRAP,
|
||||
|
||||
@@ -26,12 +26,6 @@ DEFINE_OPCODE(
|
||||
OPCODE_SIG_X_O,
|
||||
OPCODE_FLAG_IGNORE | OPCODE_FLAG_HIDE)
|
||||
|
||||
DEFINE_OPCODE(
|
||||
OPCODE_TRACE_SOURCE,
|
||||
"trace_source",
|
||||
OPCODE_SIG_X_O_V_V,
|
||||
OPCODE_FLAG_IGNORE | OPCODE_FLAG_HIDE)
|
||||
|
||||
DEFINE_OPCODE(
|
||||
OPCODE_DEBUG_BREAK,
|
||||
"debug_break",
|
||||
|
||||
Reference in New Issue
Block a user