| 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 6198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6209 SetOperandAt(0, object); | 6209 SetOperandAt(0, object); |
| 6210 | 6210 |
| 6211 Representation representation = access.representation(); | 6211 Representation representation = access.representation(); |
| 6212 if (representation.IsInteger8() || | 6212 if (representation.IsInteger8() || |
| 6213 representation.IsUInteger8() || | 6213 representation.IsUInteger8() || |
| 6214 representation.IsInteger16() || | 6214 representation.IsInteger16() || |
| 6215 representation.IsUInteger16()) { | 6215 representation.IsUInteger16()) { |
| 6216 set_representation(Representation::Integer32()); | 6216 set_representation(Representation::Integer32()); |
| 6217 } else if (representation.IsSmi()) { | 6217 } else if (representation.IsSmi()) { |
| 6218 set_type(HType::Smi()); | 6218 set_type(HType::Smi()); |
| 6219 set_representation(representation); | 6219 if (SmiValuesAre32Bits()) { |
| 6220 set_representation(Representation::Integer32()); |
| 6221 } else { |
| 6222 set_representation(representation); |
| 6223 } |
| 6220 } else if (representation.IsDouble() || | 6224 } else if (representation.IsDouble() || |
| 6221 representation.IsExternal() || | 6225 representation.IsExternal() || |
| 6222 representation.IsInteger32()) { | 6226 representation.IsInteger32()) { |
| 6223 set_representation(representation); | 6227 set_representation(representation); |
| 6224 } else if (FLAG_track_heap_object_fields && | 6228 } else if (FLAG_track_heap_object_fields && |
| 6225 representation.IsHeapObject()) { | 6229 representation.IsHeapObject()) { |
| 6226 set_type(HType::NonPrimitive()); | 6230 set_type(HType::NonPrimitive()); |
| 6227 set_representation(Representation::Tagged()); | 6231 set_representation(Representation::Tagged()); |
| 6228 } else { | 6232 } else { |
| 6229 set_representation(Representation::Tagged()); | 6233 set_representation(Representation::Tagged()); |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7489 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7493 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7490 }; | 7494 }; |
| 7491 | 7495 |
| 7492 | 7496 |
| 7493 #undef DECLARE_INSTRUCTION | 7497 #undef DECLARE_INSTRUCTION |
| 7494 #undef DECLARE_CONCRETE_INSTRUCTION | 7498 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7495 | 7499 |
| 7496 } } // namespace v8::internal | 7500 } } // namespace v8::internal |
| 7497 | 7501 |
| 7498 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7502 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |