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

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

Issue 26216008: Introduce MoveDouble to the X64 MacroAssembler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 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/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.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 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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 times_8, 459 times_8,
460 FixedDoubleArray::kHeaderSize)); 460 FixedDoubleArray::kHeaderSize));
461 // r9 : current element's index 461 // r9 : current element's index
462 // r14: current element 462 // r14: current element
463 __ cmpq(r14, rsi); 463 __ cmpq(r14, rsi);
464 __ j(equal, &convert_hole); 464 __ j(equal, &convert_hole);
465 465
466 // Non-hole double, copy value into a heap number. 466 // Non-hole double, copy value into a heap number.
467 __ AllocateHeapNumber(rax, r15, &gc_required); 467 __ AllocateHeapNumber(rax, r15, &gc_required);
468 // rax: new heap number 468 // rax: new heap number
469 __ movq(FieldOperand(rax, HeapNumber::kValueOffset), r14); 469 __ MoveDouble(FieldOperand(rax, HeapNumber::kValueOffset), r14);
470 __ movq(FieldOperand(r11, 470 __ movq(FieldOperand(r11,
471 r9, 471 r9,
472 times_pointer_size, 472 times_pointer_size,
473 FixedArray::kHeaderSize), 473 FixedArray::kHeaderSize),
474 rax); 474 rax);
475 __ movq(r15, r9); 475 __ movq(r15, r9);
476 __ RecordWriteArray(r11, 476 __ RecordWriteArray(r11,
477 rax, 477 rax,
478 r15, 478 r15,
479 kDontSaveFPRegs, 479 kDontSaveFPRegs,
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. 759 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize.
760 return Operand(base_reg_, argument_count_reg_, times_pointer_size, 760 return Operand(base_reg_, argument_count_reg_, times_pointer_size,
761 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); 761 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize);
762 } 762 }
763 } 763 }
764 764
765 765
766 } } // namespace v8::internal 766 } } // namespace v8::internal
767 767
768 #endif // V8_TARGET_ARCH_X64 768 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698