| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 const int kValueOffset = kElementsStartOffset + kPointerSize; | 209 const int kValueOffset = kElementsStartOffset + kPointerSize; |
| 210 __ lea(r0, Operand(elements, r0, times_4, kValueOffset - kHeapObjectTag)); | 210 __ lea(r0, Operand(elements, r0, times_4, kValueOffset - kHeapObjectTag)); |
| 211 __ mov(Operand(r0, 0), value); | 211 __ mov(Operand(r0, 0), value); |
| 212 | 212 |
| 213 // Update write barrier. Make sure not to clobber the value. | 213 // Update write barrier. Make sure not to clobber the value. |
| 214 __ mov(r1, value); | 214 __ mov(r1, value); |
| 215 __ RecordWrite(elements, r0, r1, kDontSaveFPRegs); | 215 __ RecordWrite(elements, r0, r1, kDontSaveFPRegs); |
| 216 } | 216 } |
| 217 | 217 |
| 218 | 218 |
| 219 void LoadIC::GenerateFunctionPrototype(MacroAssembler* masm) { | |
| 220 // ----------- S t a t e ------------- | |
| 221 // -- ecx : name | |
| 222 // -- edx : receiver | |
| 223 // -- esp[0] : return address | |
| 224 // ----------------------------------- | |
| 225 Label miss; | |
| 226 | |
| 227 StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &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). | 219 // Checks the receiver for special cases (value type, slow case bits). |
| 234 // Falls through for regular JS object. | 220 // Falls through for regular JS object. |
| 235 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, | 221 static void GenerateKeyedLoadReceiverCheck(MacroAssembler* masm, |
| 236 Register receiver, | 222 Register receiver, |
| 237 Register map, | 223 Register map, |
| 238 int interceptor_bit, | 224 int interceptor_bit, |
| 239 Label* slow) { | 225 Label* slow) { |
| 240 // Register use: | 226 // Register use: |
| 241 // receiver - holds the receiver and is unchanged. | 227 // receiver - holds the receiver and is unchanged. |
| 242 // Scratch registers: | 228 // Scratch registers: |
| (...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1738 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1724 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1739 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1725 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1740 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1726 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1741 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1727 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1742 } | 1728 } |
| 1743 | 1729 |
| 1744 | 1730 |
| 1745 } } // namespace v8::internal | 1731 } } // namespace v8::internal |
| 1746 | 1732 |
| 1747 #endif // V8_TARGET_ARCH_IA32 | 1733 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |