Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index ea1b4644f2a3fa4bb4c57304601347cfc0509318..628e7e07b69b1ae2ec4560e6c41058d2abdd58c5 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -832,11 +832,10 @@ Reduction JSTypedLowering::ReduceJSLoadProperty(Node* node) { |
size_t const k = ElementSizeLog2Of(access.machine_type()); |
double const byte_length = array->byte_length()->Number(); |
CHECK_LT(k, arraysize(shifted_int32_ranges_)); |
- if (IsExternalArrayElementsKind(array->map()->elements_kind()) && |
- key_type->Is(shifted_int32_ranges_[k]) && byte_length <= kMaxInt) { |
+ if (key_type->Is(shifted_int32_ranges_[k]) && byte_length <= kMaxInt) { |
// JSLoadProperty(typed-array, int32) |
- Handle<ExternalArray> elements = |
- Handle<ExternalArray>::cast(handle(array->elements())); |
+ Handle<FixedTypedArrayBase> elements = |
+ Handle<FixedTypedArrayBase>::cast(handle(array->elements())); |
Node* buffer = jsgraph()->PointerConstant(elements->external_pointer()); |
Node* length = jsgraph()->Constant(byte_length); |
Node* effect = NodeProperties::GetEffectInput(node); |
@@ -879,12 +878,11 @@ Reduction JSTypedLowering::ReduceJSStoreProperty(Node* node) { |
size_t const k = ElementSizeLog2Of(access.machine_type()); |
double const byte_length = array->byte_length()->Number(); |
CHECK_LT(k, arraysize(shifted_int32_ranges_)); |
- if (IsExternalArrayElementsKind(array->map()->elements_kind()) && |
- access.external_array_type() != kExternalUint8ClampedArray && |
+ if (access.external_array_type() != kExternalUint8ClampedArray && |
key_type->Is(shifted_int32_ranges_[k]) && byte_length <= kMaxInt) { |
// JSLoadProperty(typed-array, int32) |
- Handle<ExternalArray> elements = |
- Handle<ExternalArray>::cast(handle(array->elements())); |
+ Handle<FixedTypedArrayBase> elements = |
+ Handle<FixedTypedArrayBase>::cast(handle(array->elements())); |
Node* buffer = jsgraph()->PointerConstant(elements->external_pointer()); |
Node* length = jsgraph()->Constant(byte_length); |
Node* context = NodeProperties::GetContextInput(node); |