Commit 561be7bb authored by alph's avatar alph Committed by Commit bot

Dump source position tabe under --print-code

BUG=v8:5117
R=yangguo

Review-Url: https://codereview.chromium.org/2106843006
Cr-Commit-Position: refs/heads/master@{#37411}
parent 75077703
......@@ -14333,6 +14333,17 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
}
os << "\n";
SourcePositionTableIterator it(source_position_table());
if (!it.done()) {
os << "Source positions:\n pc offset position\n";
for (; !it.done(); it.Advance()) {
os << std::setw(10) << it.code_offset() << std::setw(10)
<< it.source_position() << (it.is_statement() ? " statement" : "")
<< "\n";
}
os << "\n";
}
if (kind() == FUNCTION) {
DeoptimizationOutputData* data =
DeoptimizationOutputData::cast(this->deoptimization_data());
......
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