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 5386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5397 SetOperandAt(1, key); | 5397 SetOperandAt(1, key); |
5398 SetOperandAt(2, dependency != NULL ? dependency : obj); | 5398 SetOperandAt(2, dependency != NULL ? dependency : obj); |
5399 | 5399 |
5400 if (!is_external()) { | 5400 if (!is_external()) { |
5401 // I can detect the case between storing double (holey and fast) and | 5401 // I can detect the case between storing double (holey and fast) and |
5402 // smi/object by looking at elements_kind_. | 5402 // smi/object by looking at elements_kind_. |
5403 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || | 5403 ASSERT(IsFastSmiOrObjectElementsKind(elements_kind) || |
5404 IsFastDoubleElementsKind(elements_kind)); | 5404 IsFastDoubleElementsKind(elements_kind)); |
5405 | 5405 |
5406 if (IsFastSmiOrObjectElementsKind(elements_kind)) { | 5406 if (IsFastSmiOrObjectElementsKind(elements_kind)) { |
5407 if (IsFastSmiElementsKind(elements_kind)) { | 5407 if (elements_kind == FAST_SMI_ELEMENTS) { |
5408 set_type(HType::Smi()); | 5408 set_type(HType::Smi()); |
5409 } | 5409 } |
5410 | 5410 |
5411 set_representation(Representation::Tagged()); | 5411 set_representation(Representation::Tagged()); |
5412 SetGVNFlag(kDependsOnArrayElements); | 5412 SetGVNFlag(kDependsOnArrayElements); |
5413 } else { | 5413 } else { |
5414 set_representation(Representation::Double()); | 5414 set_representation(Representation::Double()); |
5415 SetGVNFlag(kDependsOnDoubleArrayElements); | 5415 SetGVNFlag(kDependsOnDoubleArrayElements); |
5416 } | 5416 } |
5417 } else { | 5417 } else { |
(...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6548 virtual bool IsDeletable() const { return true; } | 6548 virtual bool IsDeletable() const { return true; } |
6549 }; | 6549 }; |
6550 | 6550 |
6551 | 6551 |
6552 #undef DECLARE_INSTRUCTION | 6552 #undef DECLARE_INSTRUCTION |
6553 #undef DECLARE_CONCRETE_INSTRUCTION | 6553 #undef DECLARE_CONCRETE_INSTRUCTION |
6554 | 6554 |
6555 } } // namespace v8::internal | 6555 } } // namespace v8::internal |
6556 | 6556 |
6557 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6557 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |