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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 __ add(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); | 206 __ add(scratch2, scratch2, Operand(kValueOffset - kHeapObjectTag)); |
207 __ str(value, MemOperand(scratch2)); | 207 __ str(value, MemOperand(scratch2)); |
208 | 208 |
209 // Update the write barrier. Make sure not to clobber the value. | 209 // Update the write barrier. Make sure not to clobber the value. |
210 __ mov(scratch1, value); | 210 __ mov(scratch1, value); |
211 __ RecordWrite( | 211 __ RecordWrite( |
212 elements, scratch2, scratch1, kLRHasNotBeenSaved, kDontSaveFPRegs); | 212 elements, scratch2, scratch1, kLRHasNotBeenSaved, kDontSaveFPRegs); |
213 } | 213 } |
214 | 214 |
215 | 215 |
216 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | |
217 // ----------- S t a t e ------------- | |
218 // -- r2 : name | |
219 // -- lr : return address | |
220 // -- r0 : receiver | |
221 // -- sp[0] : receiver | |
222 // ----------------------------------- | |
223 Label miss; | |
224 | |
225 StubCompiler::GenerateLoadFunctionPrototype(masm, r0, r1, r3, &miss); | |
226 __ bind(&miss); | |
227 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
228 } | |
229 | |
230 | |
231 // Checks the receiver for special cases (value type, slow case bits). | 216 // Checks the receiver for special cases (value type, slow case bits). |
232 // Falls through for regular JS object. | 217 // Falls through for regular JS object. |
233 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, | 218 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, |
234 Register receiver, | 219 Register receiver, |
235 Register map, | 220 Register map, |
236 Register scratch, | 221 Register scratch, |
237 int interceptor_bit, | 222 int interceptor_bit, |
238 Label* slow) { | 223 Label* slow) { |
239 // Check that the object isn't a smi. | 224 // Check that the object isn't a smi. |
240 __ JumpIfSmi(receiver, slow); | 225 __ JumpIfSmi(receiver, slow); |
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 } else { | 1732 } else { |
1748 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1733 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1749 patcher.EmitCondition(eq); | 1734 patcher.EmitCondition(eq); |
1750 } | 1735 } |
1751 } | 1736 } |
1752 | 1737 |
1753 | 1738 |
1754 } } // namespace v8::internal | 1739 } } // namespace v8::internal |
1755 | 1740 |
1756 #endif // V8_TARGET_ARCH_ARM | 1741 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |