Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2222)

Unified Diff: src/simulator-arm.cc

Issue 88025: * Add code to check coverage of generated code on IA32 port.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/simulator-arm.cc
===================================================================
--- src/simulator-arm.cc (revision 1748)
+++ src/simulator-arm.cc (working copy)
@@ -91,7 +91,7 @@
-#ifdef ARM_GENERATED_CODE_COVERAGE
+#ifdef GENERATED_CODE_COVERAGE
static FILE* coverage_log = NULL;
@@ -107,7 +107,7 @@
char* str = reinterpret_cast<char*>(instr->InstructionBits() & 0x0fffffff);
if (strlen(str) > 0) {
if (coverage_log != NULL) {
- fprintf(coverage_log, "Simulator hit %s\n", str);
+ fprintf(coverage_log, "%s\n", str);
fflush(coverage_log);
}
instr->SetInstructionBits(0xe1a00000); // Overwrite with nop.
@@ -115,7 +115,7 @@
sim_->set_pc(sim_->get_pc() + Instr::kInstrSize);
}
-#else // ndef ARM_GENERATED_CODE_COVERAGE
+#else // ndef GENERATED_CODE_COVERAGE
static void InitializeCoverage() {
}

Powered by Google App Engine
This is Rietveld 408576698