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:
parent
fb1057ad5d
commit
5229b181e2
@ -356,7 +356,7 @@ void TypeFeedbackOracle::CompareTypes(TypeFeedbackId id,
|
|||||||
Map* raw_map = code->FindFirstMap();
|
Map* raw_map = code->FindFirstMap();
|
||||||
if (raw_map != NULL) {
|
if (raw_map != NULL) {
|
||||||
raw_map = raw_map->CurrentMapForDeprecated();
|
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_);
|
map = handle(raw_map, isolate_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user