Commit c4f28bf2 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Temporarily add more test output to help locate test failure

R=ricow@chromium.org

BUG=none
TEST=none

Review URL: http://codereview.chromium.org//7250002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8469 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6cd99953
......@@ -992,6 +992,7 @@ void Decoder::DecodeType3(Instruction* instr) {
Format(instr, "bfi'cond 'rd, 'rm, 'f");
}
} else {
PrintF("%08x\n", instr->InstructionBits());
UNREACHABLE();
}
} else {
......
......@@ -367,6 +367,9 @@ static void CheckCodeForUnsafeLiteral(Handle<JSFunction> f) {
disasm::Disassembler d(name_converter);
if (f->code()->kind() == Code::FUNCTION) {
#ifdef DEBUG
f->code()->PrintLn();
#endif
Address pc = f->code()->instruction_start();
int decode_size =
Min(f->code()->instruction_size(),
......@@ -375,6 +378,7 @@ static void CheckCodeForUnsafeLiteral(Handle<JSFunction> f) {
v8::internal::EmbeddedVector<char, 128> decode_buffer;
while (pc < end) {
PrintF("%08x\n", reinterpret_cast<intptr_t>(pc));
pc += d.InstructionDecode(decode_buffer, pc);
CHECK(strstr(decode_buffer.start(), "mov eax,0x178c29c") == NULL);
CHECK(strstr(decode_buffer.start(), "push 0x178c29c") == NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment