| 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 5062 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5073     } | 5073     } | 
| 5074 | 5074 | 
| 5075     // Copy elements backing store content. | 5075     // Copy elements backing store content. | 
| 5076     int elements_length = has_elements ? elements->length() : 0; | 5076     int elements_length = has_elements ? elements->length() : 0; | 
| 5077     if (elements->IsFixedDoubleArray()) { | 5077     if (elements->IsFixedDoubleArray()) { | 
| 5078       Handle<FixedDoubleArray> double_array = | 5078       Handle<FixedDoubleArray> double_array = | 
| 5079           Handle<FixedDoubleArray>::cast(elements); | 5079           Handle<FixedDoubleArray>::cast(elements); | 
| 5080       for (int i = 0; i < elements_length; i++) { | 5080       for (int i = 0; i < elements_length; i++) { | 
| 5081         int64_t value = double_array->get_representation(i); | 5081         int64_t value = double_array->get_representation(i); | 
| 5082         // We only support little endian mode... | 5082         // We only support little endian mode... | 
| 5083         int32_t value_low = value & 0xFFFFFFFF; | 5083         int32_t value_low = static_cast<int32_t>(value & 0xFFFFFFFF); | 
| 5084         int32_t value_high = value >> 32; | 5084         int32_t value_high = static_cast<int32_t>(value >> 32); | 
| 5085         int total_offset = | 5085         int total_offset = | 
| 5086             elements_offset + FixedDoubleArray::OffsetOfElementAt(i); | 5086             elements_offset + FixedDoubleArray::OffsetOfElementAt(i); | 
| 5087         __ mov(r2, Operand(value_low)); | 5087         __ mov(r2, Operand(value_low)); | 
| 5088         __ str(r2, FieldMemOperand(result, total_offset)); | 5088         __ str(r2, FieldMemOperand(result, total_offset)); | 
| 5089         __ mov(r2, Operand(value_high)); | 5089         __ mov(r2, Operand(value_high)); | 
| 5090         __ str(r2, FieldMemOperand(result, total_offset + 4)); | 5090         __ str(r2, FieldMemOperand(result, total_offset + 4)); | 
| 5091       } | 5091       } | 
| 5092     } else if (elements->IsFixedArray()) { | 5092     } else if (elements->IsFixedArray()) { | 
| 5093       Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements); | 5093       Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements); | 
| 5094       for (int i = 0; i < elements_length; i++) { | 5094       for (int i = 0; i < elements_length; i++) { | 
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5616   __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5616   __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 
| 5617   __ ldr(result, FieldMemOperand(scratch, | 5617   __ ldr(result, FieldMemOperand(scratch, | 
| 5618                                  FixedArray::kHeaderSize - kPointerSize)); | 5618                                  FixedArray::kHeaderSize - kPointerSize)); | 
| 5619   __ bind(&done); | 5619   __ bind(&done); | 
| 5620 } | 5620 } | 
| 5621 | 5621 | 
| 5622 | 5622 | 
| 5623 #undef __ | 5623 #undef __ | 
| 5624 | 5624 | 
| 5625 } }  // namespace v8::internal | 5625 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|