From 5229b181e22548f2993204755afd1c40b5629c12 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Fri, 14 Jun 2013 16:50:50 +0000 Subject: [PATCH] Add missing NULL check to TypeFeedbackOracle::CompareTypes() R=verwaest@chromium.org Review URL: https://codereview.chromium.org/17096003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15167 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/type-info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/type-info.cc b/src/type-info.cc index 32aef1cc5e..769354781d 100644 --- a/src/type-info.cc +++ b/src/type-info.cc @@ -356,7 +356,7 @@ void TypeFeedbackOracle::CompareTypes(TypeFeedbackId id, Map* raw_map = code->FindFirstMap(); if (raw_map != NULL) { raw_map = raw_map->CurrentMapForDeprecated(); - if (!CanRetainOtherContext(raw_map, *native_context_)) { + if (raw_map != NULL && !CanRetainOtherContext(raw_map, *native_context_)) { map = handle(raw_map, isolate_); } }