Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: src/arm64/codegen-arm64.cc

Issue 216933003: ARM64: Optimize AllocateHeapNumber to use STP. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698