Commit 015e7865 authored by ulan's avatar ulan Committed by Commit bot

Fix Code::VerifyEmbeddedObjects.

BUG=

Review URL: https://codereview.chromium.org/905473003

Cr-Commit-Position: refs/heads/master@{#26465}
parent 0e8d97c1
......@@ -1270,7 +1270,10 @@ void Code::VerifyEmbeddedObjects(VerifyMode mode) {
RelocInfo::ModeMask(RelocInfo::CELL);
bool skip_weak_cell = (mode == kNoContextSpecificPointers) ? false : true;
for (RelocIterator it(this, mask); !it.done(); it.next()) {
CHECK(!CanLeak(it.rinfo()->target_object(), heap, skip_weak_cell));
Object* target = it.rinfo()->rmode() == RelocInfo::CELL
? it.rinfo()->target_cell()
: it.rinfo()->target_object();
CHECK(!CanLeak(target, heap, skip_weak_cell));
}
}
......
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