[runtime] Fix builds with v8_enable_trace_ignition

Fix instance of PrintRegisters only seen by compiler if
V8_TRACE_IGNITION is set.

Bug: v8:7786
Change-Id: I512e0ac111d61ff586c6cfa4a41878792a834602
Reviewed-on: https://chromium-review.googlesource.com/1087458
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53540}
This commit is contained in:
Dan Elphick 2018-06-05 21:21:17 +01:00 committed by Commit Bot
parent 8789d804ec
commit c71690d5a5

View File

@ -172,7 +172,7 @@ RUNTIME_FUNCTION(Runtime_InterpreterTraceBytecodeExit) {
offset > bytecode_iterator.current_offset()) { offset > bytecode_iterator.current_offset()) {
OFStream os(stdout); OFStream os(stdout);
// Print all output registers and accumulator. // Print all output registers and accumulator.
PrintRegisters(os, false, bytecode_iterator, accumulator); PrintRegisters(isolate, os, false, bytecode_iterator, accumulator);
os << std::flush; os << std::flush;
} }
return isolate->heap()->undefined_value(); return isolate->heap()->undefined_value();