| 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 3159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3170 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS || | 3170 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS || |
| 3171 elements_kind == EXTERNAL_DOUBLE_ELEMENTS) { | 3171 elements_kind == EXTERNAL_DOUBLE_ELEMENTS) { |
| 3172 DwVfpRegister result = ToDoubleRegister(instr->result()); | 3172 DwVfpRegister result = ToDoubleRegister(instr->result()); |
| 3173 Operand operand = key_is_constant | 3173 Operand operand = key_is_constant |
| 3174 ? Operand(constant_key << element_size_shift) | 3174 ? Operand(constant_key << element_size_shift) |
| 3175 : Operand(key, LSL, shift_size); | 3175 : Operand(key, LSL, shift_size); |
| 3176 __ add(scratch0(), external_pointer, operand); | 3176 __ add(scratch0(), external_pointer, operand); |
| 3177 if (CpuFeatures::IsSupported(VFP2)) { | 3177 if (CpuFeatures::IsSupported(VFP2)) { |
| 3178 CpuFeatures::Scope scope(VFP2); | 3178 CpuFeatures::Scope scope(VFP2); |
| 3179 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS) { | 3179 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS) { |
| 3180 __ vldr(result.low(), scratch0(), additional_offset); | 3180 __ vldr(kScratchDoubleReg.low(), scratch0(), additional_offset); |
| 3181 __ vcvt_f64_f32(result, result.low()); | 3181 __ vcvt_f64_f32(result, kScratchDoubleReg.low()); |
| 3182 } else { // i.e. elements_kind == EXTERNAL_DOUBLE_ELEMENTS | 3182 } else { // i.e. elements_kind == EXTERNAL_DOUBLE_ELEMENTS |
| 3183 __ vldr(result, scratch0(), additional_offset); | 3183 __ vldr(result, scratch0(), additional_offset); |
| 3184 } | 3184 } |
| 3185 } else { | 3185 } else { |
| 3186 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS) { | 3186 if (elements_kind == EXTERNAL_FLOAT_ELEMENTS) { |
| 3187 Register value = external_pointer; | 3187 Register value = external_pointer; |
| 3188 __ ldr(value, MemOperand(scratch0(), additional_offset)); | 3188 __ ldr(value, MemOperand(scratch0(), additional_offset)); |
| 3189 __ and_(sfpd_lo, value, Operand(kBinary32MantissaMask)); | 3189 __ and_(sfpd_lo, value, Operand(kBinary32MantissaMask)); |
| 3190 | 3190 |
| 3191 __ mov(scratch0(), Operand(value, LSR, kBinary32MantissaBits)); | 3191 __ mov(scratch0(), Operand(value, LSR, kBinary32MantissaBits)); |
| (...skipping 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6104 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6104 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6105 __ ldr(result, FieldMemOperand(scratch, | 6105 __ ldr(result, FieldMemOperand(scratch, |
| 6106 FixedArray::kHeaderSize - kPointerSize)); | 6106 FixedArray::kHeaderSize - kPointerSize)); |
| 6107 __ bind(&done); | 6107 __ bind(&done); |
| 6108 } | 6108 } |
| 6109 | 6109 |
| 6110 | 6110 |
| 6111 #undef __ | 6111 #undef __ |
| 6112 | 6112 |
| 6113 } } // namespace v8::internal | 6113 } } // namespace v8::internal |
| OLD | NEW |