Commit 4eaccc7a authored by mlippautz's avatar mlippautz Committed by Commit bot

[heap] ObjectStats: Handle empty deoptimization input data

BUG=chromium:652955

Review-Url: https://codereview.chromium.org/2393153002
Cr-Commit-Position: refs/heads/master@{#39984}
parent 5295d7a4
...@@ -509,9 +509,11 @@ void ObjectStatsCollector::RecordCodeDetails(Code* code) { ...@@ -509,9 +509,11 @@ void ObjectStatsCollector::RecordCodeDetails(Code* code) {
if (code->kind() == Code::Kind::OPTIMIZED_FUNCTION) { if (code->kind() == Code::Kind::OPTIMIZED_FUNCTION) {
DeoptimizationInputData* input_data = DeoptimizationInputData* input_data =
DeoptimizationInputData::cast(code->deoptimization_data()); DeoptimizationInputData::cast(code->deoptimization_data());
RecordFixedArrayHelper(code->deoptimization_data(), if (input_data->length() > 0) {
input_data->LiteralArray(), RecordFixedArrayHelper(code->deoptimization_data(),
OPTIMIZED_CODE_LITERALS_SUB_TYPE, 0); input_data->LiteralArray(),
OPTIMIZED_CODE_LITERALS_SUB_TYPE, 0);
}
} }
RecordFixedArrayHelper(code, code->handler_table(), HANDLER_TABLE_SUB_TYPE, RecordFixedArrayHelper(code, code->handler_table(), HANDLER_TABLE_SUB_TYPE,
0); 0);
......
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