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

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

Issue 7740019: MIPS: Fix for function argument access in non-strict mode. (Closed)
Patch Set: Created 9 years, 3 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 Label slow, notin; 878 Label slow, notin;
879 MemOperand mapped_location = 879 MemOperand mapped_location =
880 GenerateMappedArgumentsLookup(masm, a1, a0, a2, a3, t0, &notin, &slow); 880 GenerateMappedArgumentsLookup(masm, a1, a0, a2, a3, t0, &notin, &slow);
881 __ lw(v0, mapped_location); 881 __ lw(v0, mapped_location);
882 __ Ret(); 882 __ Ret();
883 __ bind(&notin); 883 __ bind(&notin);
884 // The unmapped lookup expects that the parameter map is in a2. 884 // The unmapped lookup expects that the parameter map is in a2.
885 MemOperand unmapped_location = 885 MemOperand unmapped_location =
886 GenerateUnmappedArgumentsLookup(masm, a0, a2, a3, &slow); 886 GenerateUnmappedArgumentsLookup(masm, a0, a2, a3, &slow);
887 __ lw(a2, unmapped_location); 887 __ lw(a2, unmapped_location);
888 __ LoadRoot(a3, Heap::kTheHoleValueRootIndex);
888 __ Branch(&slow, eq, a2, Operand(a3)); 889 __ Branch(&slow, eq, a2, Operand(a3));
889 __ LoadRoot(a3, Heap::kTheHoleValueRootIndex);
890 __ mov(v0, a2); 890 __ mov(v0, a2);
891 __ Ret(); 891 __ Ret();
892 __ bind(&slow); 892 __ bind(&slow);
893 GenerateMiss(masm, false); 893 GenerateMiss(masm, false);
894 } 894 }
895 895
896 896
897 void KeyedStoreIC::GenerateNonStrictArguments(MacroAssembler* masm) { 897 void KeyedStoreIC::GenerateNonStrictArguments(MacroAssembler* masm) {
898 // ---------- S t a t e -------------- 898 // ---------- S t a t e --------------
899 // -- a0 : value 899 // -- a0 : value
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch)); 1631 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch));
1632 patcher.masm()->andi(at, reg, kSmiTagMask); 1632 patcher.masm()->andi(at, reg, kSmiTagMask);
1633 patcher.ChangeBranchCondition(eq); 1633 patcher.ChangeBranchCondition(eq);
1634 } 1634 }
1635 } 1635 }
1636 1636
1637 1637
1638 } } // namespace v8::internal 1638 } } // namespace v8::internal
1639 1639
1640 #endif // V8_TARGET_ARCH_MIPS 1640 #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