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

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

Issue 101083002: Revert "Introduce MoveDouble to the X64 MacroAssembler" (r17383) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased with bleeding_edge Created 6 years, 10 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 | « no previous file | 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 times_8, 415 times_8,
416 FixedDoubleArray::kHeaderSize)); 416 FixedDoubleArray::kHeaderSize));
417 // r9 : current element's index 417 // r9 : current element's index
418 // r14: current element 418 // r14: current element
419 __ cmpq(r14, rsi); 419 __ cmpq(r14, rsi);
420 __ j(equal, &convert_hole); 420 __ j(equal, &convert_hole);
421 421
422 // Non-hole double, copy value into a heap number. 422 // Non-hole double, copy value into a heap number.
423 __ AllocateHeapNumber(rax, r15, &gc_required); 423 __ AllocateHeapNumber(rax, r15, &gc_required);
424 // rax: new heap number 424 // rax: new heap number
425 __ MoveDouble(FieldOperand(rax, HeapNumber::kValueOffset), r14); 425 __ movq(FieldOperand(rax, HeapNumber::kValueOffset), r14);
426 __ movp(FieldOperand(r11, 426 __ movp(FieldOperand(r11,
427 r9, 427 r9,
428 times_pointer_size, 428 times_pointer_size,
429 FixedArray::kHeaderSize), 429 FixedArray::kHeaderSize),
430 rax); 430 rax);
431 __ movp(r15, r9); 431 __ movp(r15, r9);
432 __ RecordWriteArray(r11, 432 __ RecordWriteArray(r11,
433 rax, 433 rax,
434 r15, 434 r15,
435 kDontSaveFPRegs, 435 kDontSaveFPRegs,
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. 710 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize.
711 return Operand(base_reg_, argument_count_reg_, times_pointer_size, 711 return Operand(base_reg_, argument_count_reg_, times_pointer_size,
712 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); 712 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize);
713 } 713 }
714 } 714 }
715 715
716 716
717 } } // namespace v8::internal 717 } } // namespace v8::internal
718 718
719 #endif // V8_TARGET_ARCH_X64 719 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698