Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index 88e7f38c487f5ee1bd99d108348a7cf44e724f0f..13e822da2b59249263fb886b94a9ef493b5cde21 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -494,13 +494,7 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
} else if (representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_label); |
} else if (representation.IsHeapObject()) { |
- HeapType* field_type = descriptors->GetFieldType(descriptor); |
- if (field_type->IsClass()) { |
- __ CheckMap(value_reg, field_type->AsClass(), miss_label, DO_SMI_CHECK); |
- } else { |
- ASSERT(HeapType::Any()->Is(field_type)); |
- __ JumpIfSmi(value_reg, miss_label); |
- } |
+ __ JumpIfSmi(value_reg, miss_label); |
} else if (representation.IsDouble()) { |
Label do_store, heap_number; |
__ AllocateHeapNumber(storage_reg, scratch1, slow); |
@@ -644,13 +638,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
if (representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_label); |
} else if (representation.IsHeapObject()) { |
- HeapType* field_type = lookup->GetFieldType(); |
- if (field_type->IsClass()) { |
- __ CheckMap(value_reg, field_type->AsClass(), miss_label, DO_SMI_CHECK); |
- } else { |
- ASSERT(HeapType::Any()->Is(field_type)); |
- __ JumpIfSmi(value_reg, miss_label); |
- } |
+ __ JumpIfSmi(value_reg, miss_label); |
} else if (representation.IsDouble()) { |
// Load the double storage. |
if (index < 0) { |