Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index b46575794486e9dbc29b75a2eb2d25964b1dba8b..fd86f1e460b661562f48a38cd136bf7d46cc14b3 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -1208,9 +1208,9 @@ Handle<Code> LoadIC::CompileHandler(LookupResult* lookup, |
// Use simple field loads for some well-known callback properties. |
if (object->IsJSObject()) { |
Handle<JSObject> receiver = Handle<JSObject>::cast(object); |
- Handle<Map> map(receiver->map()); |
+ Handle<HeapType> type = IC::MapToType(handle(receiver->map())); |
int object_offset; |
- if (Accessors::IsJSObjectFieldAccessor(map, name, &object_offset)) { |
+ if (Accessors::IsJSObjectFieldAccessor(type, name, &object_offset)) { |
return SimpleFieldLoad(object_offset / kPointerSize); |
} |
} |