Index: test/cctest/test-reloc-info.cc |
diff --git a/test/cctest/test-reloc-info.cc b/test/cctest/test-reloc-info.cc |
index 94ed287c4405c5eefb61deaab3e3d315f9a0fa10..a238c3a7d83ee5521bed3ce3f58005f34c594475 100644 |
--- a/test/cctest/test-reloc-info.cc |
+++ b/test/cctest/test-reloc-info.cc |
@@ -55,10 +55,16 @@ TEST(Positions) { |
for (int i = 0, pos = 0; i < 100; i++, pc += i, pos += i) { |
RelocInfo::Mode mode = (i % 2 == 0) ? |
RelocInfo::STATEMENT_POSITION : RelocInfo::POSITION; |
+ if (mode == RelocInfo::STATEMENT_POSITION) { |
+ printf("TEST WRITING STATEMENT %p %d\n", pc, pos); |
+ } else { |
+ printf("TEST WRITING POSITION %p %d\n", pc, pos); |
+ } |
WriteRinfo(&writer, pc, mode, pos); |
CHECK(writer.pos() - RelocInfoWriter::kMaxSize >= relocation_info_end); |
} |
+ writer.Finish(); |
relocation_info_size = static_cast<int>(buffer_end - writer.pos()); |
CodeDesc desc = { buffer.get(), buffer_size, code_size, |
relocation_info_size, NULL }; |
@@ -68,6 +74,7 @@ TEST(Positions) { |
RelocIterator it(desc, RelocInfo::ModeMask(RelocInfo::POSITION)); |
pc = buffer.get(); |
for (int i = 0, pos = 0; i < 100; i++, pc += i, pos += i) { |
+ printf("TESTING 1: %d\n", i); |
RelocInfo::Mode mode = (i % 2 == 0) ? |
RelocInfo::STATEMENT_POSITION : RelocInfo::POSITION; |
if (mode == RelocInfo::POSITION) { |