| 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 5410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5421 SetOperandAt(1, key); | 5421 SetOperandAt(1, key); |
| 5422 SetOperandAt(2, dependency != NULL ? dependency : obj); | 5422 SetOperandAt(2, dependency != NULL ? dependency : obj); |
| 5423 | 5423 |
| 5424 if (!is_external()) { | 5424 if (!is_external()) { |
| 5425 // I can detect the case between storing double (holey and fast) and | 5425 // I can detect the case between storing double (holey and fast) and |
| 5426 // smi/object by looking at elements_kind_. | 5426 // smi/object by looking at elements_kind_. |
| 5427 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || | 5427 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || |
| 5428 IsFastDoubleElementsKind(elements_kind)); | 5428 IsFastDoubleElementsKind(elements_kind)); |
| 5429 | 5429 |
| 5430 if (IsFastSmiOrObjectElementsKind(elements_kind)) { | 5430 if (IsFastSmiOrObjectElementsKind(elements_kind)) { |
| 5431 if (IsFastSmiElementsKind(elements_kind)) { | 5431 if (elements_kind == FAST_SMI_ELEMENTS) { |
| 5432 set_type(HType::Smi()); | 5432 set_type(HType::Smi()); |
| 5433 } | 5433 } |
| 5434 | 5434 |
| 5435 set_representation(Representation::Tagged()); | 5435 set_representation(Representation::Tagged()); |
| 5436 SetGVNFlag(kDependsOnArrayElements); | 5436 SetGVNFlag(kDependsOnArrayElements); |
| 5437 } else { | 5437 } else { |
| 5438 set_representation(Representation::Double()); | 5438 set_representation(Representation::Double()); |
| 5439 SetGVNFlag(kDependsOnDoubleArrayElements); | 5439 SetGVNFlag(kDependsOnDoubleArrayElements); |
| 5440 } | 5440 } |
| 5441 } else { | 5441 } else { |
| (...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6557 virtual bool IsDeletable() const { return true; } | 6557 virtual bool IsDeletable() const { return true; } |
| 6558 }; | 6558 }; |
| 6559 | 6559 |
| 6560 | 6560 |
| 6561 #undef DECLARE_INSTRUCTION | 6561 #undef DECLARE_INSTRUCTION |
| 6562 #undef DECLARE_CONCRETE_INSTRUCTION | 6562 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6563 | 6563 |
| 6564 } } // namespace v8::internal | 6564 } } // namespace v8::internal |
| 6565 | 6565 |
| 6566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6566 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |