OLD | NEW |
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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 __ Addu(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); | 208 __ Addu(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); |
209 __ sw(value, MemOperand(scratch2)); | 209 __ sw(value, MemOperand(scratch2)); |
210 | 210 |
211 // Update the write barrier. Make sure not to clobber the value. | 211 // Update the write barrier. Make sure not to clobber the value. |
212 __ mov(scratch1, value); | 212 __ mov(scratch1, value); |
213 __ RecordWrite( | 213 __ RecordWrite( |
214 elements, scratch2, scratch1, kRAHasNotBeenSaved, kDontSaveFPRegs); | 214 elements, scratch2, scratch1, kRAHasNotBeenSaved, kDontSaveFPRegs); |
215 } | 215 } |
216 | 216 |
217 | 217 |
218 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | |
219 // ----------- S t a t e ------------- | |
220 // -- a2 : name | |
221 // -- lr : return address | |
222 // -- a0 : receiver | |
223 // -- sp[0] : receiver | |
224 // ----------------------------------- | |
225 Label miss; | |
226 | |
227 StubCompiler::GenerateLoadFunctionPrototype(masm, a0, a1, a3, &miss); | |
228 __ bind(&miss); | |
229 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
230 } | |
231 | |
232 | |
233 // Checks the receiver for special cases (value type, slow case bits). | 218 // Checks the receiver for special cases (value type, slow case bits). |
234 // Falls through for regular JS object. | 219 // Falls through for regular JS object. |
235 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, | 220 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, |
236 Register receiver, | 221 Register receiver, |
237 Register map, | 222 Register map, |
238 Register scratch, | 223 Register scratch, |
239 int interceptor_bit, | 224 int interceptor_bit, |
240 Label* slow) { | 225 Label* slow) { |
241 // Check that the object isn't a smi. | 226 // Check that the object isn't a smi. |
242 __ JumpIfSmi(receiver, slow); | 227 __ JumpIfSmi(receiver, slow); |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 } else { | 1728 } else { |
1744 ASSERT(Assembler::IsBne(branch_instr)); | 1729 ASSERT(Assembler::IsBne(branch_instr)); |
1745 patcher.ChangeBranchCondition(eq); | 1730 patcher.ChangeBranchCondition(eq); |
1746 } | 1731 } |
1747 } | 1732 } |
1748 | 1733 |
1749 | 1734 |
1750 } } // namespace v8::internal | 1735 } } // namespace v8::internal |
1751 | 1736 |
1752 #endif // V8_TARGET_ARCH_MIPS | 1737 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |