| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 Immediate(kTypeAndReadOnlyMask)); | 261 Immediate(kTypeAndReadOnlyMask)); |
| 262 __ j(not_zero, miss_label, not_taken); | 262 __ j(not_zero, miss_label, not_taken); |
| 263 | 263 |
| 264 // Store the value at the masked, scaled index. | 264 // Store the value at the masked, scaled index. |
| 265 const int kValueOffset = kElementsStartOffset + kPointerSize; | 265 const int kValueOffset = kElementsStartOffset + kPointerSize; |
| 266 __ lea(r0, Operand(elements, r0, times_4, kValueOffset - kHeapObjectTag)); | 266 __ lea(r0, Operand(elements, r0, times_4, kValueOffset - kHeapObjectTag)); |
| 267 __ mov(Operand(r0, 0), value); | 267 __ mov(Operand(r0, 0), value); |
| 268 | 268 |
| 269 // Update write barrier. Make sure not to clobber the value. | 269 // Update write barrier. Make sure not to clobber the value. |
| 270 __ mov(r1, value); | 270 __ mov(r1, value); |
| 271 __ RecordWrite(elements, r0, r1, kDontSaveFPRegs); | 271 __ RecordWrite(elements, r0, r1, EMIT_REMEMBERED_SET, kDontSaveFPRegs); |
| 272 } | 272 } |
| 273 | 273 |
| 274 | 274 |
| 275 static void GenerateNumberDictionaryLoad(MacroAssembler* masm, | 275 static void GenerateNumberDictionaryLoad(MacroAssembler* masm, |
| 276 Label* miss, | 276 Label* miss, |
| 277 Register elements, | 277 Register elements, |
| 278 Register key, | 278 Register key, |
| 279 Register r0, | 279 Register r0, |
| 280 Register r1, | 280 Register r1, |
| 281 Register r2, | 281 Register r2, |
| (...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1752 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
| 1753 ? not_zero | 1753 ? not_zero |
| 1754 : zero; | 1754 : zero; |
| 1755 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1755 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1756 } | 1756 } |
| 1757 | 1757 |
| 1758 | 1758 |
| 1759 } } // namespace v8::internal | 1759 } } // namespace v8::internal |
| 1760 | 1760 |
| 1761 #endif // V8_TARGET_ARCH_IA32 | 1761 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |