Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 23c0ae664cdf88ef38f4ea1ebc4296552610e38f..42dfba2a87902ad59efa125ea8a51a0a567f55b1 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -104,8 +104,7 @@ class LChunkBuilder; |
V(Div) \ |
V(ElementsKind) \ |
V(EnterInlined) \ |
- V(ExternalArrayLength) \ |
- V(FixedArrayLength) \ |
+ V(FixedArrayBaseLength) \ |
V(ForceRepresentation) \ |
V(FunctionLiteral) \ |
V(GetCachedArrayIndex) \ |
@@ -1702,9 +1701,9 @@ class HJSArrayLength: public HTemplateInstruction<2> { |
}; |
-class HFixedArrayLength: public HUnaryOperation { |
+class HFixedArrayBaseLength: public HUnaryOperation { |
public: |
- explicit HFixedArrayLength(HValue* value) : HUnaryOperation(value) { |
+ explicit HFixedArrayBaseLength(HValue* value) : HUnaryOperation(value) { |
set_representation(Representation::Tagged()); |
SetFlag(kUseGVN); |
SetFlag(kDependsOnArrayLengths); |
@@ -1714,28 +1713,7 @@ class HFixedArrayLength: public HUnaryOperation { |
return Representation::Tagged(); |
} |
- DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength) |
- |
- protected: |
- virtual bool DataEquals(HValue* other) { return true; } |
-}; |
- |
- |
-class HExternalArrayLength: public HUnaryOperation { |
- public: |
- explicit HExternalArrayLength(HValue* value) : HUnaryOperation(value) { |
- set_representation(Representation::Integer32()); |
- // The result of this instruction is idempotent as long as its inputs don't |
- // change. The length of a pixel array cannot change once set, so it's not |
- // necessary to introduce a kDependsOnArrayLengths or any other dependency. |
- SetFlag(kUseGVN); |
- } |
- |
- virtual Representation RequiredInputRepresentation(int index) const { |
- return Representation::Tagged(); |
- } |
- |
- DECLARE_CONCRETE_INSTRUCTION(ExternalArrayLength) |
+ DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength) |
protected: |
virtual bool DataEquals(HValue* other) { return true; } |