OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 | 332 |
333 { | 333 { |
334 Label loop, convert_hole; | 334 Label loop, convert_hole; |
335 __ Bind(&loop); | 335 __ Bind(&loop); |
336 __ Ldr(x13, MemOperand(src_elements, kPointerSize, PostIndex)); | 336 __ Ldr(x13, MemOperand(src_elements, kPointerSize, PostIndex)); |
337 __ Cmp(x13, kHoleNanInt64); | 337 __ Cmp(x13, kHoleNanInt64); |
338 __ B(eq, &convert_hole); | 338 __ B(eq, &convert_hole); |
339 | 339 |
340 // Non-hole double, copy value into a heap number. | 340 // Non-hole double, copy value into a heap number. |
341 Register heap_num = x5; | 341 Register heap_num = x5; |
342 __ AllocateHeapNumber(heap_num, &gc_required, x6, x4, heap_num_map); | 342 __ AllocateHeapNumber(heap_num, &gc_required, x6, x4, |
343 __ Str(x13, FieldMemOperand(heap_num, HeapNumber::kValueOffset)); | 343 x13, heap_num_map); |
344 __ Mov(x13, dst_elements); | 344 __ Mov(x13, dst_elements); |
345 __ Str(heap_num, MemOperand(dst_elements, kPointerSize, PostIndex)); | 345 __ Str(heap_num, MemOperand(dst_elements, kPointerSize, PostIndex)); |
346 __ RecordWrite(array, x13, heap_num, kLRHasBeenSaved, kDontSaveFPRegs, | 346 __ RecordWrite(array, x13, heap_num, kLRHasBeenSaved, kDontSaveFPRegs, |
347 EMIT_REMEMBERED_SET, OMIT_SMI_CHECK); | 347 EMIT_REMEMBERED_SET, OMIT_SMI_CHECK); |
348 | 348 |
349 __ B(&entry); | 349 __ B(&entry); |
350 | 350 |
351 // Replace the-hole NaN with the-hole pointer. | 351 // Replace the-hole NaN with the-hole pointer. |
352 __ Bind(&convert_hole); | 352 __ Bind(&convert_hole); |
353 __ Str(the_hole, MemOperand(dst_elements, kPointerSize, PostIndex)); | 353 __ Str(the_hole, MemOperand(dst_elements, kPointerSize, PostIndex)); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 __ Fmul(result, double_temp3, double_temp1); | 606 __ Fmul(result, double_temp3, double_temp1); |
607 | 607 |
608 __ Bind(&done); | 608 __ Bind(&done); |
609 } | 609 } |
610 | 610 |
611 #undef __ | 611 #undef __ |
612 | 612 |
613 } } // namespace v8::internal | 613 } } // namespace v8::internal |
614 | 614 |
615 #endif // V8_TARGET_ARCH_ARM64 | 615 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |