| 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 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4120 | 4120 |
| 4121 class HTransitionElementsKind: public HTemplateInstruction<1> { | 4121 class HTransitionElementsKind: public HTemplateInstruction<1> { |
| 4122 public: | 4122 public: |
| 4123 HTransitionElementsKind(HValue* object, | 4123 HTransitionElementsKind(HValue* object, |
| 4124 Handle<Map> original_map, | 4124 Handle<Map> original_map, |
| 4125 Handle<Map> transitioned_map) | 4125 Handle<Map> transitioned_map) |
| 4126 : original_map_(original_map), | 4126 : original_map_(original_map), |
| 4127 transitioned_map_(transitioned_map) { | 4127 transitioned_map_(transitioned_map) { |
| 4128 SetOperandAt(0, object); | 4128 SetOperandAt(0, object); |
| 4129 SetFlag(kUseGVN); | 4129 SetFlag(kUseGVN); |
| 4130 SetGVNFlag(kChangesMaps); | |
| 4131 SetGVNFlag(kChangesElementsKind); | 4130 SetGVNFlag(kChangesElementsKind); |
| 4132 set_representation(Representation::Tagged()); | 4131 set_representation(Representation::Tagged()); |
| 4133 } | 4132 } |
| 4134 | 4133 |
| 4135 virtual Representation RequiredInputRepresentation(int index) { | 4134 virtual Representation RequiredInputRepresentation(int index) { |
| 4136 return Representation::Tagged(); | 4135 return Representation::Tagged(); |
| 4137 } | 4136 } |
| 4138 | 4137 |
| 4139 HValue* object() { return OperandAt(0); } | 4138 HValue* object() { return OperandAt(0); } |
| 4140 Handle<Map> original_map() { return original_map_; } | 4139 Handle<Map> original_map() { return original_map_; } |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4552 | 4551 |
| 4553 DECLARE_CONCRETE_INSTRUCTION(In) | 4552 DECLARE_CONCRETE_INSTRUCTION(In) |
| 4554 }; | 4553 }; |
| 4555 | 4554 |
| 4556 #undef DECLARE_INSTRUCTION | 4555 #undef DECLARE_INSTRUCTION |
| 4557 #undef DECLARE_CONCRETE_INSTRUCTION | 4556 #undef DECLARE_CONCRETE_INSTRUCTION |
| 4558 | 4557 |
| 4559 } } // namespace v8::internal | 4558 } } // namespace v8::internal |
| 4560 | 4559 |
| 4561 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4560 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |