| 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 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2412 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt) | 2412 DECLARE_CONCRETE_INSTRUCTION(AccessArgumentsAt) |
| 2413 | 2413 |
| 2414 virtual bool DataEquals(HValue* other) { return true; } | 2414 virtual bool DataEquals(HValue* other) { return true; } |
| 2415 }; | 2415 }; |
| 2416 | 2416 |
| 2417 | 2417 |
| 2418 class HBoundsCheck: public HBinaryOperation { | 2418 class HBoundsCheck: public HBinaryOperation { |
| 2419 public: | 2419 public: |
| 2420 HBoundsCheck(HValue* index, HValue* length) | 2420 HBoundsCheck(HValue* index, HValue* length) |
| 2421 : HBinaryOperation(index, length) { | 2421 : HBinaryOperation(index, length) { |
| 2422 set_representation(Representation::Integer32()); |
| 2422 SetFlag(kUseGVN); | 2423 SetFlag(kUseGVN); |
| 2423 } | 2424 } |
| 2424 | 2425 |
| 2425 virtual bool IsCheckInstruction() const { return true; } | 2426 virtual bool IsCheckInstruction() const { return true; } |
| 2426 | 2427 |
| 2427 virtual Representation RequiredInputRepresentation(int index) const { | 2428 virtual Representation RequiredInputRepresentation(int index) const { |
| 2428 return Representation::Integer32(); | 2429 return Representation::Integer32(); |
| 2429 } | 2430 } |
| 2430 | 2431 |
| 2431 #ifdef DEBUG | 2432 #ifdef DEBUG |
| (...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4047 | 4048 |
| 4048 DECLARE_CONCRETE_INSTRUCTION(In) | 4049 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4049 }; | 4050 }; |
| 4050 | 4051 |
| 4051 #undef DECLARE_INSTRUCTION | 4052 #undef DECLARE_INSTRUCTION |
| 4052 #undef DECLARE_CONCRETE_INSTRUCTION | 4053 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4053 | 4054 |
| 4054 } } // namespace v8::internal | 4055 } } // namespace v8::internal |
| 4055 | 4056 |
| 4056 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4057 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |