Index: src/ic/mips64/ic-compiler-mips64.cc |
diff --git a/src/ic/mips64/ic-compiler-mips64.cc b/src/ic/mips64/ic-compiler-mips64.cc |
index 0b7f893a48ebc15b0b373458c80a2e7d312009fa..a3dcdf7207c28f91d2041fdd47889fda46af3d6d 100644 |
--- a/src/ic/mips64/ic-compiler-mips64.cc |
+++ b/src/ic/mips64/ic-compiler-mips64.cc |
@@ -15,7 +15,7 @@ namespace internal { |
#define __ ACCESS_MASM(masm()) |
-Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
+Handle<Code> PropertyICCompiler::CompilePolymorphic(MapHandleList* maps, |
CodeHandleList* handlers, |
Handle<Name> name, |
Code::StubType type, |
@@ -42,7 +42,7 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
Label number_case; |
Register match = scratch2(); |
- Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; |
+ Label* smi_target = IncludesNumberMap(maps) ? &number_case : &miss; |
__ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. |
// Polymorphic keyed stores may use the map register |
@@ -50,12 +50,11 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
DCHECK(kind() != Code::KEYED_STORE_IC || |
map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister())); |
- int receiver_count = types->length(); |
+ int receiver_count = maps->length(); |
int number_of_handled_maps = 0; |
__ ld(map_reg, FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
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++; |
// Check map and tail call if there's a match. |
@@ -63,7 +62,7 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
Handle<WeakCell> cell = Map::WeakCellForMap(map); |
__ GetWeakValue(match, cell); |
__ Dsubu(match, match, Operand(map_reg)); |
- if (type->Is(HeapType::Number())) { |
+ if (map->instance_type() == HEAP_NUMBER_TYPE) { |
DCHECK(!number_case.is_unused()); |
__ bind(&number_case); |
} |