Commit 1d327898 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Fix DCHECK in Map::TryUpdateSlow

R=jarin@chromium.org

Bug: chromium:940423
Change-Id: I9e357d8fe424b291bc25a1d389696df88deda6a3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1514735Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60160}
parent 421c5aaf
...@@ -1029,8 +1029,10 @@ Map Map::TryUpdateSlow(Isolate* isolate, Map old_map) { ...@@ -1029,8 +1029,10 @@ Map Map::TryUpdateSlow(Isolate* isolate, Map old_map) {
.SearchSpecial(info.integrity_level_symbol); .SearchSpecial(info.integrity_level_symbol);
} }
DCHECK_EQ(old_map->elements_kind(), result->elements_kind()); DCHECK_IMPLIES(!result.is_null(),
DCHECK_EQ(old_map->instance_type(), result->instance_type()); old_map->elements_kind() == result->elements_kind());
DCHECK_IMPLIES(!result.is_null(),
old_map->instance_type() == result->instance_type());
return result; return result;
} }
......
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