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 4177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4188 Handle<Map> original_map, | 4188 Handle<Map> original_map, |
4189 Handle<Map> transitioned_map) | 4189 Handle<Map> transitioned_map) |
4190 : original_map_(original_map), | 4190 : original_map_(original_map), |
4191 transitioned_map_(transitioned_map) { | 4191 transitioned_map_(transitioned_map) { |
4192 SetOperandAt(0, object); | 4192 SetOperandAt(0, object); |
4193 SetFlag(kUseGVN); | 4193 SetFlag(kUseGVN); |
4194 SetGVNFlag(kDependsOnMaps); | 4194 SetGVNFlag(kDependsOnMaps); |
4195 SetGVNFlag(kChangesElementsKind); | 4195 SetGVNFlag(kChangesElementsKind); |
4196 if (original_map->has_fast_double_elements()) { | 4196 if (original_map->has_fast_double_elements()) { |
4197 SetGVNFlag(kChangesElementsPointer); | 4197 SetGVNFlag(kChangesElementsPointer); |
4198 SetGVNFlag(kDependsOnElementsPointer); | |
4199 SetGVNFlag(kDependsOnDoubleArrayElements); | 4198 SetGVNFlag(kDependsOnDoubleArrayElements); |
4200 } else if (transitioned_map->has_fast_double_elements()) { | 4199 } else if (transitioned_map->has_fast_double_elements()) { |
4201 SetGVNFlag(kChangesElementsPointer); | 4200 SetGVNFlag(kChangesElementsPointer); |
4202 SetGVNFlag(kDependsOnElementsPointer); | |
4203 SetGVNFlag(kDependsOnArrayElements); | 4201 SetGVNFlag(kDependsOnArrayElements); |
4204 } | 4202 } |
4205 set_representation(Representation::Tagged()); | 4203 set_representation(Representation::Tagged()); |
4206 } | 4204 } |
4207 | 4205 |
4208 virtual Representation RequiredInputRepresentation(int index) { | 4206 virtual Representation RequiredInputRepresentation(int index) { |
4209 return Representation::Tagged(); | 4207 return Representation::Tagged(); |
4210 } | 4208 } |
4211 | 4209 |
4212 HValue* object() { return OperandAt(0); } | 4210 HValue* object() { return OperandAt(0); } |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4625 | 4623 |
4626 DECLARE_CONCRETE_INSTRUCTION(In) | 4624 DECLARE_CONCRETE_INSTRUCTION(In) |
4627 }; | 4625 }; |
4628 | 4626 |
4629 #undef DECLARE_INSTRUCTION | 4627 #undef DECLARE_INSTRUCTION |
4630 #undef DECLARE_CONCRETE_INSTRUCTION | 4628 #undef DECLARE_CONCRETE_INSTRUCTION |
4631 | 4629 |
4632 } } // namespace v8::internal | 4630 } } // namespace v8::internal |
4633 | 4631 |
4634 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 4632 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |