Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 24259c8b7bb4b1251851a6e336f16877c6df81fc..10f4bf3f57cf89d46b6d8d051505821d5c21063e 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3207,18 +3207,13 @@ Range* HLoadNamedField::InferRange(Zone* zone) { |
Range* HLoadKeyed::InferRange(Zone* zone) { |
switch (elements_kind()) { |
- case EXTERNAL_INT8_ELEMENTS: |
case INT8_ELEMENTS: |
return new(zone) Range(kMinInt8, kMaxInt8); |
- case EXTERNAL_UINT8_ELEMENTS: |
- case EXTERNAL_UINT8_CLAMPED_ELEMENTS: |
case UINT8_ELEMENTS: |
case UINT8_CLAMPED_ELEMENTS: |
return new(zone) Range(kMinUInt8, kMaxUInt8); |
- case EXTERNAL_INT16_ELEMENTS: |
case INT16_ELEMENTS: |
return new(zone) Range(kMinInt16, kMaxInt16); |
- case EXTERNAL_UINT16_ELEMENTS: |
case UINT16_ELEMENTS: |
return new(zone) Range(kMinUInt16, kMaxUInt16); |
default: |
@@ -3461,11 +3456,11 @@ std::ostream& HLoadNamedGeneric::PrintDataTo( |
std::ostream& HLoadKeyed::PrintDataTo(std::ostream& os) const { // NOLINT |
- if (!is_external()) { |
+ if (!is_fixed_typed_array()) { |
os << NameOf(elements()); |
} else { |
- DCHECK(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && |
- elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND); |
+ DCHECK(elements_kind() >= FIRST_FIXED_TYPED_ARRAY_ELEMENTS_KIND && |
+ elements_kind() <= LAST_FIXED_TYPED_ARRAY_ELEMENTS_KIND); |
os << NameOf(elements()) << "." << ElementsKindToString(elements_kind()); |
} |
@@ -3500,7 +3495,7 @@ bool HLoadKeyed::UsesMustHandleHole() const { |
return false; |
} |
- if (IsExternalArrayElementsKind(elements_kind())) { |
+ if (IsFixedTypedArrayElementsKind(elements_kind())) { |
return false; |
} |
@@ -3540,7 +3535,7 @@ bool HLoadKeyed::RequiresHoleCheck() const { |
return false; |
} |
- if (IsExternalArrayElementsKind(elements_kind())) { |
+ if (IsFixedTypedArrayElementsKind(elements_kind())) { |
return false; |
} |
@@ -3615,11 +3610,11 @@ std::ostream& HStoreNamedField::PrintDataTo(std::ostream& os) const { // NOLINT |
std::ostream& HStoreKeyed::PrintDataTo(std::ostream& os) const { // NOLINT |
- if (!is_external()) { |
+ if (!is_fixed_typed_array()) { |
os << NameOf(elements()); |
} else { |
- DCHECK(elements_kind() >= FIRST_EXTERNAL_ARRAY_ELEMENTS_KIND && |
- elements_kind() <= LAST_EXTERNAL_ARRAY_ELEMENTS_KIND); |
+ DCHECK(elements_kind() >= FIRST_FIXED_TYPED_ARRAY_ELEMENTS_KIND && |
+ elements_kind() <= LAST_FIXED_TYPED_ARRAY_ELEMENTS_KIND); |
os << NameOf(elements()) << "." << ElementsKindToString(elements_kind()); |
} |
@@ -3983,8 +3978,7 @@ bool HStoreKeyed::NeedsCanonicalization() { |
switch (value()->opcode()) { |
case kLoadKeyed: { |
ElementsKind load_kind = HLoadKeyed::cast(value())->elements_kind(); |
- return IsExternalFloatOrDoubleElementsKind(load_kind) || |
- IsFixedFloatElementsKind(load_kind); |
+ return IsFixedFloatElementsKind(load_kind); |
} |
case kChange: { |
Representation from = HChange::cast(value())->from(); |