| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // Fast case: Do the store. | 832 // Fast case: Do the store. |
| 833 __ bind(&fast); | 833 __ bind(&fast); |
| 834 // eax: value | 834 // eax: value |
| 835 // ecx: key (a smi) | 835 // ecx: key (a smi) |
| 836 // edx: receiver | 836 // edx: receiver |
| 837 // edi: FixedArray receiver->elements | 837 // edi: FixedArray receiver->elements |
| 838 __ mov(CodeGenerator::FixedArrayElementOperand(edi, ecx), eax); | 838 __ mov(CodeGenerator::FixedArrayElementOperand(edi, ecx), eax); |
| 839 | 839 |
| 840 // Update write barrier for the elements array address. | 840 // Update write barrier for the elements array address. |
| 841 __ mov(edx, Operand(eax)); | 841 __ mov(edx, Operand(eax)); |
| 842 __ RecordWrite(edi, 0, edx, ecx, kDontSaveFPRegs); | 842 __ RecordWriteArray(edi, edx, ecx, kDontSaveFPRegs); |
| 843 __ ret(0); | 843 __ ret(0); |
| 844 } | 844 } |
| 845 | 845 |
| 846 | 846 |
| 847 // The generated code does not accept smi keys. | 847 // The generated code does not accept smi keys. |
| 848 // The generated code falls through if both probes miss. | 848 // The generated code falls through if both probes miss. |
| 849 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, | 849 static void GenerateMonomorphicCacheProbe(MacroAssembler* masm, |
| 850 int argc, | 850 int argc, |
| 851 Code::Kind kind) { | 851 Code::Kind kind) { |
| 852 // ----------- S t a t e ------------- | 852 // ----------- S t a t e ------------- |
| (...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1756 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
| 1757 ? not_zero | 1757 ? not_zero |
| 1758 : zero; | 1758 : zero; |
| 1759 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1759 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 | 1762 |
| 1763 } } // namespace v8::internal | 1763 } } // namespace v8::internal |
| 1764 | 1764 |
| 1765 #endif // V8_TARGET_ARCH_IA32 | 1765 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |