| 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::GenerateFunctionPrototype(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::GenerateLoadFunctionPrototype(masm, rax, rdx, rbx, &miss); | |
| 236 __ bind(&miss); | |
| 237 StubCompiler::GenerateLoadMiss(masm, Code::LOAD_IC); | |
| 238 } | |
| 239 | |
| 240 | |
| 241 // Checks the receiver for special cases (value type, slow case bits). | 227 // Checks the receiver for special cases (value type, slow case bits). |
| 242 // Falls through for regular JS object. | 228 // Falls through for regular JS object. |
| 243 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, | 229 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, |
| 244 Register receiver, | 230 Register receiver, |
| 245 Register map, | 231 Register map, |
| 246 int interceptor_bit, | 232 int interceptor_bit, |
| 247 Label* slow) { | 233 Label* slow) { |
| 248 // Register use: | 234 // Register use: |
| 249 // receiver - holds the receiver and is unchanged. | 235 // receiver - holds the receiver and is unchanged. |
| 250 // Scratch registers: | 236 // Scratch registers: |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1739 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1754 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1740 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1755 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1741 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1756 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1742 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1757 } | 1743 } |
| 1758 | 1744 |
| 1759 | 1745 |
| 1760 } } // namespace v8::internal | 1746 } } // namespace v8::internal |
| 1761 | 1747 |
| 1762 #endif // V8_TARGET_ARCH_X64 | 1748 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |