| 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 6398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6409 // I can detect the case between storing double (holey and fast) and | 6409 // I can detect the case between storing double (holey and fast) and |
| 6410 // smi/object by looking at elements_kind_. | 6410 // smi/object by looking at elements_kind_. |
| 6411 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || | 6411 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || |
| 6412 IsFastDoubleElementsKind(elements_kind)); | 6412 IsFastDoubleElementsKind(elements_kind)); |
| 6413 | 6413 |
| 6414 if (IsFastSmiOrObjectElementsKind(elements_kind)) { | 6414 if (IsFastSmiOrObjectElementsKind(elements_kind)) { |
| 6415 if (IsFastSmiElementsKind(elements_kind) && | 6415 if (IsFastSmiElementsKind(elements_kind) && |
| 6416 (!IsHoleyElementsKind(elements_kind) || | 6416 (!IsHoleyElementsKind(elements_kind) || |
| 6417 mode == NEVER_RETURN_HOLE)) { | 6417 mode == NEVER_RETURN_HOLE)) { |
| 6418 set_type(HType::Smi()); | 6418 set_type(HType::Smi()); |
| 6419 set_representation(Representation::Smi()); | 6419 if (SmiValuesAre32Bits() && !RequiresHoleCheck()) { |
| 6420 set_representation(Representation::Integer32()); |
| 6421 } else { |
| 6422 set_representation(Representation::Smi()); |
| 6423 } |
| 6420 } else { | 6424 } else { |
| 6421 set_representation(Representation::Tagged()); | 6425 set_representation(Representation::Tagged()); |
| 6422 } | 6426 } |
| 6423 | 6427 |
| 6424 SetGVNFlag(kDependsOnArrayElements); | 6428 SetGVNFlag(kDependsOnArrayElements); |
| 6425 } else { | 6429 } else { |
| 6426 set_representation(Representation::Double()); | 6430 set_representation(Representation::Double()); |
| 6427 SetGVNFlag(kDependsOnDoubleArrayElements); | 6431 SetGVNFlag(kDependsOnDoubleArrayElements); |
| 6428 } | 6432 } |
| 6429 } else { | 6433 } else { |
| (...skipping 1059 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 |