Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index b77cb5dde776143fa6476fc1e5fe166e5a617e76..e5332a2f5d1a961c6a9eb69da3b29d6390bd22d0 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -1645,48 +1645,6 @@ HValue* HGraphBuilder::BuildCopyElementsOnWrite(HValue* object, |
} |
-void HGraphBuilder::BuildTransitionElementsKind(HValue* object, |
- HValue* map, |
- ElementsKind from_kind, |
- ElementsKind to_kind, |
- bool is_jsarray) { |
- DCHECK(!IsFastHoleyElementsKind(from_kind) || |
- IsFastHoleyElementsKind(to_kind)); |
- |
- if (AllocationSite::GetMode(from_kind, to_kind) == TRACK_ALLOCATION_SITE) { |
- Add<HTrapAllocationMemento>(object); |
- } |
- |
- if (!IsSimpleMapChangeTransition(from_kind, to_kind)) { |
- HInstruction* elements = AddLoadElements(object); |
- |
- HInstruction* empty_fixed_array = Add<HConstant>( |
- isolate()->factory()->empty_fixed_array()); |
- |
- IfBuilder if_builder(this); |
- |
- if_builder.IfNot<HCompareObjectEqAndBranch>(elements, empty_fixed_array); |
- |
- if_builder.Then(); |
- |
- HInstruction* elements_length = AddLoadFixedArrayLength(elements); |
- |
- HInstruction* array_length = |
- is_jsarray |
- ? Add<HLoadNamedField>(object, nullptr, |
- HObjectAccess::ForArrayLength(from_kind)) |
- : elements_length; |
- |
- BuildGrowElementsCapacity(object, elements, from_kind, to_kind, |
- array_length, elements_length); |
- |
- if_builder.End(); |
- } |
- |
- Add<HStoreNamedField>(object, HObjectAccess::ForMap(), map); |
-} |
- |
- |
void HGraphBuilder::BuildJSObjectCheck(HValue* receiver, |
int bit_field_mask) { |
// Check that the object isn't a smi. |