| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2126 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access_arguments_at") | 2126 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt, "access_arguments_at") |
| 2127 | 2127 |
| 2128 virtual bool DataEquals(HValue* other) { return true; } | 2128 virtual bool DataEquals(HValue* other) { return true; } |
| 2129 }; | 2129 }; |
| 2130 | 2130 |
| 2131 | 2131 |
| 2132 class HBoundsCheck: public HBinaryOperation { | 2132 class HBoundsCheck: public HBinaryOperation { |
| 2133 public: | 2133 public: |
| 2134 HBoundsCheck(HValue* index, HValue* length) | 2134 HBoundsCheck(HValue* index, HValue* length) |
| 2135 : HBinaryOperation(index, length) { | 2135 : HBinaryOperation(index, length) { |
| 2136 set_representation(Representation::Integer32()); |
| 2136 SetFlag(kUseGVN); | 2137 SetFlag(kUseGVN); |
| 2137 } | 2138 } |
| 2138 | 2139 |
| 2139 virtual bool IsCheckInstruction() const { return true; } | 2140 virtual bool IsCheckInstruction() const { return true; } |
| 2140 | 2141 |
| 2141 virtual Representation RequiredInputRepresentation(int index) const { | 2142 virtual Representation RequiredInputRepresentation(int index) const { |
| 2142 return Representation::Integer32(); | 2143 return Representation::Integer32(); |
| 2143 } | 2144 } |
| 2144 | 2145 |
| 2145 #ifdef DEBUG | 2146 #ifdef DEBUG |
| (...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3670 HValue* object() { return left(); } | 3671 HValue* object() { return left(); } |
| 3671 HValue* key() { return right(); } | 3672 HValue* key() { return right(); } |
| 3672 }; | 3673 }; |
| 3673 | 3674 |
| 3674 #undef DECLARE_INSTRUCTION | 3675 #undef DECLARE_INSTRUCTION |
| 3675 #undef DECLARE_CONCRETE_INSTRUCTION | 3676 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3676 | 3677 |
| 3677 } } // namespace v8::internal | 3678 } } // namespace v8::internal |
| 3678 | 3679 |
| 3679 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3680 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |