Index: src/x87/lithium-x87.h |
diff --git a/src/x87/lithium-x87.h b/src/x87/lithium-x87.h |
index cf6c1e181535d238472137676321e264689fdf19..b8f881ddab66388ccc4824ec5da51f4aa879f823 100644 |
--- a/src/x87/lithium-x87.h |
+++ b/src/x87/lithium-x87.h |
@@ -1649,8 +1649,14 @@ |
ElementsKind elements_kind() const { |
return hydrogen()->elements_kind(); |
} |
+ bool is_external() const { |
+ return hydrogen()->is_external(); |
+ } |
bool is_fixed_typed_array() const { |
return hydrogen()->is_fixed_typed_array(); |
+ } |
+ bool is_typed_elements() const { |
+ return is_external() || is_fixed_typed_array(); |
} |
DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
@@ -1671,8 +1677,12 @@ |
// an index cannot fold the scale operation into a load and need an extra |
// temp register to do the work. |
return key_representation.IsSmi() && |
- (elements_kind == UINT8_ELEMENTS || elements_kind == INT8_ELEMENTS || |
- elements_kind == UINT8_CLAMPED_ELEMENTS); |
+ (elements_kind == EXTERNAL_INT8_ELEMENTS || |
+ elements_kind == EXTERNAL_UINT8_ELEMENTS || |
+ elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS || |
+ elements_kind == UINT8_ELEMENTS || |
+ elements_kind == INT8_ELEMENTS || |
+ elements_kind == UINT8_CLAMPED_ELEMENTS); |
} |
@@ -2253,8 +2263,12 @@ |
inputs_[2] = val; |
} |
+ bool is_external() const { return hydrogen()->is_external(); } |
bool is_fixed_typed_array() const { |
return hydrogen()->is_fixed_typed_array(); |
+ } |
+ bool is_typed_elements() const { |
+ return is_external() || is_fixed_typed_array(); |
} |
LOperand* elements() { return inputs_[0]; } |
LOperand* key() { return inputs_[1]; } |