| Index: src/hydrogen-instructions.h
|
| ===================================================================
|
| --- src/hydrogen-instructions.h (revision 11854)
|
| +++ src/hydrogen-instructions.h (working copy)
|
| @@ -2700,7 +2700,9 @@
|
|
|
| class HBoundsCheck: public HTemplateInstruction<2> {
|
| public:
|
| - HBoundsCheck(HValue* index, HValue* length) {
|
| + HBoundsCheck(HValue* index, HValue* length)
|
| + : lower_offset_(0),
|
| + upper_offset_(0) {
|
| SetOperandAt(0, index);
|
| SetOperandAt(1, length);
|
| set_representation(Representation::Integer32());
|
| @@ -2718,8 +2720,18 @@
|
|
|
| DECLARE_CONCRETE_INSTRUCTION(BoundsCheck)
|
|
|
| + void set_offset(int32_t lower_offset, int32_t upper_offset) {
|
| + lower_offset_ = lower_offset;
|
| + upper_offset_ = upper_offset;
|
| + }
|
| +
|
| + int32_t lower_offset() { return lower_offset_; }
|
| + int32_t upper_offset() { return upper_offset_; }
|
| +
|
| protected:
|
| virtual bool DataEquals(HValue* other) { return true; }
|
| + int32_t lower_offset_;
|
| + int32_t upper_offset_;
|
| };
|
|
|
|
|
|
|