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

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 7 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/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 // Fast case: Do the store. 832 // Fast case: Do the store.
833 __ bind(&fast); 833 __ bind(&fast);
834 // eax: value 834 // eax: value
835 // ecx: key (a smi) 835 // ecx: key (a smi)
836 // edx: receiver 836 // edx: receiver
837 // edi: FixedArray receiver->elements 837 // edi: FixedArray receiver->elements
838 __ mov(CodeGenerator::FixedArrayElementOperand(edi, ecx), eax); 838 __ mov(CodeGenerator::FixedArrayElementOperand(edi, ecx), eax);
839 839
840 // Update write barrier for the elements array address. 840 // Update write barrier for the elements array address.
841 __ mov(edx, Operand(eax)); 841 __ mov(edx, Operand(eax));
842 __ RecordWrite(edi, 0, edx, ecx, kDontSaveFPRegs); 842 __ RecordWriteArray(edi, edx, ecx, kDontSaveFPRegs);
843 __ ret(0); 843 __ ret(0);
844 } 844 }
845 845
846 846
847 // The generated code does not accept smi keys. 847 // The generated code does not accept smi keys.
848 // The generated code falls through if both probes miss. 848 // The generated code falls through if both probes miss.
849 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, 849 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm,
850 int argc, 850 int argc,
851 Code::Kind kind) { 851 Code::Kind kind) {
852 // ----------- S t a t e ------------- 852 // ----------- S t a t e -------------
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1756 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1757 ? not_zero 1757 ? not_zero
1758 : zero; 1758 : zero;
1759 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1759 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1760 } 1760 }
1761 1761
1762 1762
1763 } } // namespace v8::internal 1763 } } // namespace v8::internal
1764 1764
1765 #endif // V8_TARGET_ARCH_IA32 1765 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698