| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index b90f24dd8d59475ed0890b3c00eab4d4d33caddc..8d6a8cd0ea1e40a9dd03f14b2366b1054ab62e3a 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -2192,13 +2192,6 @@ class CodeStubGraphBuilder<KeyedLoadGenericStub>
|
| HValue* bit_field2,
|
| ElementsKind kind);
|
|
|
| - void BuildExternalElementLoad(HGraphBuilder::IfBuilder* if_builder,
|
| - HValue* receiver,
|
| - HValue* key,
|
| - HValue* instance_type,
|
| - HValue* bit_field2,
|
| - ElementsKind kind);
|
| -
|
| KeyedLoadGenericStub* casted_stub() {
|
| return static_cast<KeyedLoadGenericStub*>(stub());
|
| }
|
| @@ -2220,8 +2213,6 @@ void CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildElementsKindLimitCheck(
|
| void CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildFastElementLoad(
|
| HGraphBuilder::IfBuilder* if_builder, HValue* receiver, HValue* key,
|
| HValue* instance_type, HValue* bit_field2, ElementsKind kind) {
|
| - DCHECK(!IsExternalArrayElementsKind(kind));
|
| -
|
| BuildElementsKindLimitCheck(if_builder, bit_field2, kind);
|
|
|
| IfBuilder js_array_check(this);
|
| @@ -2241,20 +2232,6 @@ void CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildFastElementLoad(
|
| }
|
|
|
|
|
| -void CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildExternalElementLoad(
|
| - HGraphBuilder::IfBuilder* if_builder, HValue* receiver, HValue* key,
|
| - HValue* instance_type, HValue* bit_field2, ElementsKind kind) {
|
| - DCHECK(IsExternalArrayElementsKind(kind));
|
| -
|
| - BuildElementsKindLimitCheck(if_builder, bit_field2, kind);
|
| -
|
| - Push(BuildUncheckedMonomorphicElementAccess(receiver, key, NULL,
|
| - false, kind,
|
| - LOAD, NEVER_RETURN_HOLE,
|
| - STANDARD_STORE));
|
| -}
|
| -
|
| -
|
| HValue* CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildCodeStub() {
|
| HValue* receiver = GetParameter(LoadDescriptor::kReceiverIndex);
|
| HValue* key = GetParameter(LoadDescriptor::kNameIndex);
|
| @@ -2316,42 +2293,6 @@ HValue* CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildCodeStub() {
|
| Deoptimizer::EAGER);
|
| Push(graph()->GetConstant0());
|
|
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_INT8_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_UINT8_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_INT16_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_UINT16_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_INT32_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_UINT32_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_FLOAT32_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_FLOAT64_ELEMENTS);
|
| -
|
| - kind_if.Else();
|
| - BuildExternalElementLoad(&kind_if, receiver, key, instance_type, bit_field2,
|
| - EXTERNAL_UINT8_CLAMPED_ELEMENTS);
|
| -
|
| kind_if.ElseDeopt(
|
| Deoptimizer::kElementsKindUnhandledInKeyedLoadGenericStub);
|
|
|
| @@ -2439,7 +2380,7 @@ HValue* CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildCodeStub() {
|
| index->ClearFlag(HValue::kCanOverflow);
|
| HValue* property_index =
|
| Add<HLoadKeyed>(cache_field_offsets, index, nullptr,
|
| - EXTERNAL_INT32_ELEMENTS, NEVER_RETURN_HOLE, 0);
|
| + INT32_ELEMENTS, NEVER_RETURN_HOLE, 0);
|
| Push(property_index);
|
| }
|
| lookup_if->Else();
|
|
|