Revision: 8441
Author: [email protected]
Date: Tue Jun 28 01:49:01 2011
Log: Fix a bug in %_GetCachedArrayIndex.
This inline runtime function had the wrong super class.
It did not cause any problems since it is only used in
our natives and never in a test context.
Review URL: http://codereview.chromium.org/7253004
http://code.google.com/p/v8/source/detail?r=8441
Modified:
/branches/bleeding_edge/src/hydrogen-instructions.h
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Mon Jun 27 05:12:27
2011
+++ /branches/bleeding_edge/src/hydrogen-instructions.h Tue Jun 28 01:49:01
2011
@@ -2762,9 +2762,16 @@
};
-class HGetCachedArrayIndex: public HUnaryPredicate {
+class HGetCachedArrayIndex: public HUnaryOperation {
public:
- explicit HGetCachedArrayIndex(HValue* value) : HUnaryPredicate(value) { }
+ explicit HGetCachedArrayIndex(HValue* value) : HUnaryOperation(value) {
+ set_representation(Representation::Tagged());
+ SetFlag(kUseGVN);
+ }
+
+ virtual Representation RequiredInputRepresentation(int index) const {
+ return Representation::Tagged();
+ }
DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex)
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev