Index: src/ic/x64/ic-compiler-x64.cc |
diff --git a/src/ic/x64/ic-compiler-x64.cc b/src/ic/x64/ic-compiler-x64.cc |
index eeae4d51e7976a82b20bf92933bc70dc62e0137d..89e7aee7ff41d5317b7d84991be1e47bcc9c1fc5 100644 |
--- a/src/ic/x64/ic-compiler-x64.cc |
+++ b/src/ic/x64/ic-compiler-x64.cc |
@@ -72,7 +72,7 @@ Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic( |
} |
-Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
+Handle<Code> PropertyICCompiler::CompilePolymorphic(MapHandleList* maps, |
CodeHandleList* handlers, |
Handle<Name> name, |
Code::StubType type, |
@@ -99,7 +99,7 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
} |
Label number_case; |
- Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; |
+ Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; |
__ JumpIfSmi(receiver(), smi_target); |
// Polymorphic keyed stores may use the map register |
@@ -107,17 +107,16 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
DCHECK(kind() != Code::KEYED_STORE_IC || |
map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister())); |
__ movp(map_reg, FieldOperand(receiver(), HeapObject::kMapOffset)); |
- int receiver_count = types->length(); |
+ int receiver_count = maps->length(); |
int number_of_handled_maps = 0; |
for (int current = 0; current < receiver_count; ++current) { |
- Handle<HeapType> type = types->at(current); |
- Handle<Map> map = IC::TypeToMap(*type, isolate()); |
+ Handle<Map> map = maps->at(current); |
if (!map->is_deprecated()) { |
number_of_handled_maps++; |
Handle<WeakCell> cell = Map::WeakCellForMap(map); |
// Check map and tail call if there's a match |
__ CmpWeakValue(map_reg, cell, scratch2()); |
- if (type->Is(HeapType::Number())) { |
+ if (map->instance_type() == HEAP_NUMBER_TYPE) { |
DCHECK(!number_case.is_unused()); |
__ bind(&number_case); |
} |