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/ic-x64.cc

Issue 160453: X64: Reenabled RSet. (Closed)
Patch Set: Created 11 years, 4 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 // address to store into and fall through to fast case. 495 // address to store into and fall through to fast case.
496 __ cmpl(rbx, FieldOperand(rdx, JSArray::kLengthOffset)); 496 __ cmpl(rbx, FieldOperand(rdx, JSArray::kLengthOffset));
497 __ j(above_equal, &extra); 497 __ j(above_equal, &extra);
498 498
499 499
500 // Fast case: Do the store. 500 // Fast case: Do the store.
501 __ bind(&fast); 501 __ bind(&fast);
502 // rax: value 502 // rax: value
503 // rcx: FixedArray 503 // rcx: FixedArray
504 // rbx: index (as a smi) 504 // rbx: index (as a smi)
505 __ movq(Operand(rcx, rbx, times_4, FixedArray::kHeaderSize - kHeapObjectTag), 505 __ movq(Operand(rcx, rbx, times_half_pointer_size,
506 FixedArray::kHeaderSize - kHeapObjectTag),
506 rax); 507 rax);
507 // Update write barrier for the elements array address. 508 // Update write barrier for the elements array address.
508 __ movq(rdx, rax); 509 __ movq(rdx, rax);
509 __ RecordWrite(rcx, 0, rdx, rbx); 510 __ RecordWrite(rcx, 0, rdx, rbx);
510 __ ret(0); 511 __ ret(0);
511 } 512 }
512 513
513 514
514 void CallIC::Generate(MacroAssembler* masm, 515 void CallIC::Generate(MacroAssembler* masm,
515 int argc, 516 int argc,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 716
716 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 717 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
717 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); 718 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss)));
718 } 719 }
719 720
720 721
721 #undef __ 722 #undef __
722 723
723 724
724 } } // namespace v8::internal 725 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698