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 6867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6878 | 6878 |
6879 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind) | 6879 DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind) |
6880 | 6880 |
6881 protected: | 6881 protected: |
6882 virtual bool DataEquals(HValue* other) V8_OVERRIDE { | 6882 virtual bool DataEquals(HValue* other) V8_OVERRIDE { |
6883 HTransitionElementsKind* instr = HTransitionElementsKind::cast(other); | 6883 HTransitionElementsKind* instr = HTransitionElementsKind::cast(other); |
6884 return original_map_ == instr->original_map_ && | 6884 return original_map_ == instr->original_map_ && |
6885 transitioned_map_ == instr->transitioned_map_; | 6885 transitioned_map_ == instr->transitioned_map_; |
6886 } | 6886 } |
6887 | 6887 |
| 6888 virtual int RedefinedOperandIndex() { return 0; } |
| 6889 |
6888 private: | 6890 private: |
6889 HTransitionElementsKind(HValue* context, | 6891 HTransitionElementsKind(HValue* context, |
6890 HValue* object, | 6892 HValue* object, |
6891 Handle<Map> original_map, | 6893 Handle<Map> original_map, |
6892 Handle<Map> transitioned_map) | 6894 Handle<Map> transitioned_map) |
6893 : original_map_(Unique<Map>(original_map)), | 6895 : original_map_(Unique<Map>(original_map)), |
6894 transitioned_map_(Unique<Map>(transitioned_map)), | 6896 transitioned_map_(Unique<Map>(transitioned_map)), |
6895 from_kind_(original_map->elements_kind()), | 6897 from_kind_(original_map->elements_kind()), |
6896 to_kind_(transitioned_map->elements_kind()) { | 6898 to_kind_(transitioned_map->elements_kind()) { |
6897 SetOperandAt(0, object); | 6899 SetOperandAt(0, object); |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7483 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7485 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7484 }; | 7486 }; |
7485 | 7487 |
7486 | 7488 |
7487 #undef DECLARE_INSTRUCTION | 7489 #undef DECLARE_INSTRUCTION |
7488 #undef DECLARE_CONCRETE_INSTRUCTION | 7490 #undef DECLARE_CONCRETE_INSTRUCTION |
7489 | 7491 |
7490 } } // namespace v8::internal | 7492 } } // namespace v8::internal |
7491 | 7493 |
7492 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7494 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |