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 1587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 }; | 1598 }; |
1599 | 1599 |
1600 | 1600 |
1601 inline static bool ExternalArrayOpRequiresTemp( | 1601 inline static bool ExternalArrayOpRequiresTemp( |
1602 Representation key_representation, | 1602 Representation key_representation, |
1603 ElementsKind elements_kind) { | 1603 ElementsKind elements_kind) { |
1604 // Operations that require the key to be divided by two to be converted into | 1604 // Operations that require the key to be divided by two to be converted into |
1605 // an index cannot fold the scale operation into a load and need an extra | 1605 // an index cannot fold the scale operation into a load and need an extra |
1606 // temp register to do the work. | 1606 // temp register to do the work. |
1607 return key_representation.IsSmi() && | 1607 return key_representation.IsSmi() && |
1608 (elements_kind == EXTERNAL_BYTE_ELEMENTS || | 1608 (elements_kind == EXTERNAL_INT8_ELEMENTS || |
1609 elements_kind == EXTERNAL_UNSIGNED_BYTE_ELEMENTS || | 1609 elements_kind == EXTERNAL_UINT8_ELEMENTS || |
1610 elements_kind == EXTERNAL_PIXEL_ELEMENTS || | 1610 elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS || |
1611 elements_kind == UINT8_ELEMENTS || | 1611 elements_kind == UINT8_ELEMENTS || |
1612 elements_kind == INT8_ELEMENTS || | 1612 elements_kind == INT8_ELEMENTS || |
1613 elements_kind == UINT8_CLAMPED_ELEMENTS); | 1613 elements_kind == UINT8_CLAMPED_ELEMENTS); |
1614 } | 1614 } |
1615 | 1615 |
1616 | 1616 |
1617 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1617 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1618 public: | 1618 public: |
1619 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { | 1619 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { |
1620 inputs_[0] = context; | 1620 inputs_[0] = context; |
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2841 | 2841 |
2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2842 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2843 }; | 2843 }; |
2844 | 2844 |
2845 #undef DECLARE_HYDROGEN_ACCESSOR | 2845 #undef DECLARE_HYDROGEN_ACCESSOR |
2846 #undef DECLARE_CONCRETE_INSTRUCTION | 2846 #undef DECLARE_CONCRETE_INSTRUCTION |
2847 | 2847 |
2848 } } // namespace v8::internal | 2848 } } // namespace v8::internal |
2849 | 2849 |
2850 #endif // V8_IA32_LITHIUM_IA32_H_ | 2850 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |