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

Side by Side Diff: src/mips/ic-mips.cc

Issue 7238020: MIPS: port Add missing write barrier for arguments store ICs. (Closed)
Patch Set: Created 9 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 // ---------- S t a t e -------------- 999 // ---------- S t a t e --------------
1000 // -- a0 : value 1000 // -- a0 : value
1001 // -- a1 : key 1001 // -- a1 : key
1002 // -- a2 : receiver 1002 // -- a2 : receiver
1003 // -- lr : return address 1003 // -- lr : return address
1004 // ----------------------------------- 1004 // -----------------------------------
1005 Label slow, notin; 1005 Label slow, notin;
1006 MemOperand mapped_location = 1006 MemOperand mapped_location =
1007 GenerateMappedArgumentsLookup(masm, a2, a1, a3, t0, t1, &notin, &slow); 1007 GenerateMappedArgumentsLookup(masm, a2, a1, a3, t0, t1, &notin, &slow);
1008 __ sw(a0, mapped_location); 1008 __ sw(a0, mapped_location);
1009 __ Addu(t2, a3, t1);
fschneider 2011/06/24 09:13:38 Since the store address is already computed by Gen
1010 __ RecordWrite(a3, t2, t5);
1009 __ Ret(USE_DELAY_SLOT); 1011 __ Ret(USE_DELAY_SLOT);
1010 __ mov(v0, a0); // (In delay slot) return the value stored in v0. 1012 __ mov(v0, a0); // (In delay slot) return the value stored in v0.
1011 __ bind(&notin); 1013 __ bind(&notin);
1012 // The unmapped lookup expects that the parameter map is in a3. 1014 // The unmapped lookup expects that the parameter map is in a3.
1013 MemOperand unmapped_location = 1015 MemOperand unmapped_location =
1014 GenerateUnmappedArgumentsLookup(masm, a1, a3, t0, &slow); 1016 GenerateUnmappedArgumentsLookup(masm, a1, a3, t0, &slow);
1015 __ sw(a0, unmapped_location); 1017 __ sw(a0, unmapped_location);
1018 __ Addu(t2, a3, t0);
fschneider 2011/06/24 09:13:38 Same here. The store address is already computed i
1019 __ RecordWrite(a3, t2, t5);
1016 __ Ret(USE_DELAY_SLOT); 1020 __ Ret(USE_DELAY_SLOT);
1017 __ mov(v0, a0); // (In delay slot) return the value stored in v0. 1021 __ mov(v0, a0); // (In delay slot) return the value stored in v0.
1018 __ bind(&slow); 1022 __ bind(&slow);
1019 GenerateMiss(masm, false); 1023 GenerateMiss(masm, false);
1020 } 1024 }
1021 1025
1022 1026
1023 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm, 1027 void KeyedCallIC::GenerateNonStrictArguments(MacroAssembler* masm,
1024 int argc) { 1028 int argc) {
1025 // ----------- S t a t e ------------- 1029 // ----------- S t a t e -------------
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch)); 1731 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch));
1728 patcher.masm()->andi(at, reg, kSmiTagMask); 1732 patcher.masm()->andi(at, reg, kSmiTagMask);
1729 patcher.ChangeBranchCondition(eq); 1733 patcher.ChangeBranchCondition(eq);
1730 } 1734 }
1731 } 1735 }
1732 1736
1733 1737
1734 } } // namespace v8::internal 1738 } } // namespace v8::internal
1735 1739
1736 #endif // V8_TARGET_ARCH_MIPS 1740 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698