Commit 6efd03c4 authored by danno's avatar danno Committed by Commit bot

Remove unused path in FieldIndex code

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

Cr-Commit-Position: refs/heads/master@{#26480}
parent 996fa7d3
......@@ -14,9 +14,10 @@ namespace internal {
inline FieldIndex FieldIndex::ForInObjectOffset(int offset, Map* map) {
DCHECK((offset % kPointerSize) == 0);
int index = offset / kPointerSize;
return (map == NULL || offset < map->GetInObjectPropertyOffset(0))
? FieldIndex(true, index, false, 0, 0, true)
: FieldIndex::ForPropertyIndex(map, index);
DCHECK(map == NULL ||
index < (map->GetInObjectPropertyOffset(0) / kPointerSize +
map->inobject_properties()));
return FieldIndex(true, index, false, 0, 0, true);
}
......
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