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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 // Skip updating write barrier if storing a smi. | 614 // Skip updating write barrier if storing a smi. |
615 __ JumpIfSmi(value_reg, &exit); | 615 __ JumpIfSmi(value_reg, &exit); |
616 | 616 |
617 // Update the write barrier for the array address. | 617 // Update the write barrier for the array address. |
618 // Ok to clobber receiver_reg and name_reg, since we return. | 618 // Ok to clobber receiver_reg and name_reg, since we return. |
619 if (!FLAG_track_double_fields || !representation.IsDouble()) { | 619 if (!FLAG_track_double_fields || !representation.IsDouble()) { |
620 __ mov(name_reg, value_reg); | 620 __ mov(name_reg, value_reg); |
621 } else { | 621 } else { |
622 ASSERT(storage_reg.is(name_reg)); | 622 ASSERT(storage_reg.is(name_reg)); |
623 } | 623 } |
624 __ mov(name_reg, value_reg); | |
625 __ RecordWriteField(scratch1, | 624 __ RecordWriteField(scratch1, |
626 offset, | 625 offset, |
627 name_reg, | 626 name_reg, |
628 receiver_reg, | 627 receiver_reg, |
629 kRAHasNotBeenSaved, | 628 kRAHasNotBeenSaved, |
630 kDontSaveFPRegs); | 629 kDontSaveFPRegs); |
631 } | 630 } |
632 } | 631 } |
633 | 632 |
634 // Return the value (register v0). | 633 // Return the value (register v0). |
(...skipping 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3864 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3863 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3865 } | 3864 } |
3866 } | 3865 } |
3867 | 3866 |
3868 | 3867 |
3869 #undef __ | 3868 #undef __ |
3870 | 3869 |
3871 } } // namespace v8::internal | 3870 } } // namespace v8::internal |
3872 | 3871 |
3873 #endif // V8_TARGET_ARCH_MIPS | 3872 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |