OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4022 virtual int RedefinedOperandIndex() V8_OVERRIDE { return 0; } | 4022 virtual int RedefinedOperandIndex() V8_OVERRIDE { return 0; } |
4023 virtual bool IsPurelyInformativeDefinition() V8_OVERRIDE { | 4023 virtual bool IsPurelyInformativeDefinition() V8_OVERRIDE { |
4024 return skip_check(); | 4024 return skip_check(); |
4025 } | 4025 } |
4026 | 4026 |
4027 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck) | 4027 DECLARE_CONCRETE_INSTRUCTION(BoundsCheck) |
4028 | 4028 |
4029 protected: | 4029 protected: |
4030 friend class HBoundsCheckBaseIndexInformation; | 4030 friend class HBoundsCheckBaseIndexInformation; |
4031 | 4031 |
| 4032 virtual Range* InferRange(Zone* zone) V8_OVERRIDE; |
| 4033 |
4032 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } | 4034 virtual bool DataEquals(HValue* other) V8_OVERRIDE { return true; } |
4033 bool skip_check_; | 4035 bool skip_check_; |
4034 HValue* base_; | 4036 HValue* base_; |
4035 int offset_; | 4037 int offset_; |
4036 int scale_; | 4038 int scale_; |
4037 bool allow_equality_; | 4039 bool allow_equality_; |
4038 | 4040 |
4039 private: | 4041 private: |
4040 // Normally HBoundsCheck should be created using the | 4042 // Normally HBoundsCheck should be created using the |
4041 // HGraphBuilder::AddBoundsCheck() helper. | 4043 // HGraphBuilder::AddBoundsCheck() helper. |
(...skipping 3385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7427 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7429 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7428 }; | 7430 }; |
7429 | 7431 |
7430 | 7432 |
7431 #undef DECLARE_INSTRUCTION | 7433 #undef DECLARE_INSTRUCTION |
7432 #undef DECLARE_CONCRETE_INSTRUCTION | 7434 #undef DECLARE_CONCRETE_INSTRUCTION |
7433 | 7435 |
7434 } } // namespace v8::internal | 7436 } } // namespace v8::internal |
7435 | 7437 |
7436 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7438 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |