Index: src/x64/stub-cache-x64.cc |
=================================================================== |
--- src/x64/stub-cache-x64.cc (revision 10185) |
+++ src/x64/stub-cache-x64.cc (working copy) |
@@ -2370,23 +2370,9 @@ |
// Store the value in the cell. |
__ movq(cell_operand, rax); |
- Label done; |
- __ JumpIfSmi(rax, &done); |
+ // Cells are always rescanned, so no write barrier here. |
- __ movq(rcx, rax); |
- __ lea(rdx, cell_operand); |
- // Cells are always in the remembered set. |
- __ RecordWrite(rbx, // Object. |
- rdx, // Address. |
- rcx, // Value. |
- kDontSaveFPRegs, |
- OMIT_REMEMBERED_SET, |
- OMIT_SMI_CHECK); |
- |
- |
// Return the value (register rax). |
- __ bind(&done); |
- |
Counters* counters = isolate()->counters(); |
__ IncrementCounter(counters->named_store_global_inline(), 1); |
__ ret(0); |