From 52c14c8dc8803c1591bda0ab9778a1e96b7f5e9b Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 11 Dec 2014 03:24:44 -0800 Subject: [PATCH] Disable invalid DCHECK_EQ in serializer.cc BUG=none R=mvstanton@chromium.org,yangguo@chromium.org LOG=n Review URL: https://codereview.chromium.org/791363002 Cr-Commit-Position: refs/heads/master@{#25769} --- src/serialize.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/serialize.cc b/src/serialize.cc index bcc168f..97cbd3b 100644 --- a/src/serialize.cc +++ b/src/serialize.cc @@ -491,7 +491,9 @@ RootIndexMap::RootIndexMap(Isolate* isolate) { if (LookupEntry(map_, heap_object, false) != NULL) { // Some root values are initialized to the empty FixedArray(); // Do not add them to the map. - DCHECK_EQ(isolate->heap()->empty_fixed_array(), heap_object); + // TODO(yangguo): This assert is not true. Some roots like + // instanceof_cache_answer can be e.g. null. + // DCHECK_EQ(isolate->heap()->empty_fixed_array(), heap_object); } else { SetValue(LookupEntry(map_, heap_object, true), i); } -- 2.7.4