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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 times_pointer_size, | 217 times_pointer_size, |
218 kValueOffset - kHeapObjectTag)); | 218 kValueOffset - kHeapObjectTag)); |
219 __ movq(Operand(scratch1, 0), value); | 219 __ movq(Operand(scratch1, 0), value); |
220 | 220 |
221 // Update write barrier. Make sure not to clobber the value. | 221 // Update write barrier. Make sure not to clobber the value. |
222 __ movq(scratch0, value); | 222 __ movq(scratch0, value); |
223 __ RecordWrite(elements, scratch1, scratch0, kDontSaveFPRegs); | 223 __ RecordWrite(elements, scratch1, scratch0, kDontSaveFPRegs); |
224 } | 224 } |
225 | 225 |
226 | 226 |
227 void LoadIC::GenerateArrayLength(MacroAssembler* masm) { | |
228 // ----------- S t a t e ------------- | |
229 // -- rax : receiver | |
230 // -- rcx : name | |
231 // -- rsp[0] : return address | |
232 // ----------------------------------- | |
233 Label miss; | |
234 | |
235 StubCompiler::GenerateLoadArrayLength(masm, rax, rdx, &miss); | |
236 __ bind(&miss); | |
237 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
238 } | |
239 | |
240 | |
241 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | 227 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { |
242 // ----------- S t a t e ------------- | 228 // ----------- S t a t e ------------- |
243 // -- rax : receiver | 229 // -- rax : receiver |
244 // -- rcx : name | 230 // -- rcx : name |
245 // -- rsp[0] : return address | 231 // -- rsp[0] : return address |
246 // ----------------------------------- | 232 // ----------------------------------- |
247 Label miss; | 233 Label miss; |
248 | 234 |
249 StubCompiler::GenerateLoadFunctionPrototype(masm, rax, rdx, rbx, &miss); | 235 StubCompiler::GenerateLoadFunctionPrototype(masm, rax, rdx, rbx, &miss); |
250 __ bind(&miss); | 236 __ bind(&miss); |
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1753 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1768 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1754 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1769 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1755 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1770 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1756 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1771 } | 1757 } |
1772 | 1758 |
1773 | 1759 |
1774 } } // namespace v8::internal | 1760 } } // namespace v8::internal |
1775 | 1761 |
1776 #endif // V8_TARGET_ARCH_X64 | 1762 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |