Adding instruction address identifier when not tracing.

This can be removed later.
This commit is contained in:
Ben Vanik 2013-10-14 21:53:34 -07:00
parent 900252a590
commit 6cda645911
1 changed files with 18 additions and 0 deletions

View File

@ -764,6 +764,15 @@ void X64Emitter::TraceUserCall() {
X86Compiler& c = compiler_;
if (!FLAGS_trace_user_calls) {
for (int n = 0; n < 5; n++) {
c.nop();
}
SpillRegisters();
GpVar aa(c.newGpVar());
c.mov(aa, imm((uint64_t)symbol_->start_address));
for (int n = 0; n < 2; n++) {
c.nop();
}
return;
}
@ -799,6 +808,15 @@ void X64Emitter::TraceInstruction(InstrData& i) {
X86Compiler& c = compiler_;
if (!FLAGS_trace_instructions) {
for (int n = 0; n < 2; n++) {
c.nop();
}
SpillRegisters();
GpVar aa(c.newGpVar());
c.mov(aa, imm((uint64_t)i.address));
for (int n = 0; n < 2; n++) {
c.nop();
}
return;
}