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
This commit is contained in:
jkummerow@chromium.org 2013-06-14 16:50:50 +00:00
parent fb1057ad5d
commit 5229b181e2

View File

@ -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_);
}
}