| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 ASSERT(masm->has_frame()); | 136 ASSERT(masm->has_frame()); |
| 137 masm->set_has_frame(false); | 137 masm->set_has_frame(false); |
| 138 } | 138 } |
| 139 | 139 |
| 140 // ------------------------------------------------------------------------- | 140 // ------------------------------------------------------------------------- |
| 141 // Code generators | 141 // Code generators |
| 142 | 142 |
| 143 #define __ ACCESS_MASM(masm) | 143 #define __ ACCESS_MASM(masm) |
| 144 | 144 |
| 145 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( | 145 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
| 146 MacroAssembler* masm) { | 146 MacroAssembler* masm, Label* fail) { |
| 147 // ----------- S t a t e ------------- | 147 // ----------- S t a t e ------------- |
| 148 // -- a0 : value | 148 // -- a0 : value |
| 149 // -- a1 : key | 149 // -- a1 : key |
| 150 // -- a2 : receiver | 150 // -- a2 : receiver |
| 151 // -- ra : return address | 151 // -- ra : return address |
| 152 // -- a3 : target map, scratch for subsequent call | 152 // -- a3 : target map, scratch for subsequent call |
| 153 // -- t0 : scratch (elements) | 153 // -- t0 : scratch (elements) |
| 154 // ----------------------------------- | 154 // ----------------------------------- |
| 155 if (FLAG_track_allocation_sites && fail != NULL) { |
| 156 masm->TestJSArrayForAllocationSiteInfo(a2, t0, fail); |
| 157 } |
| 158 |
| 155 // Set transitioned map. | 159 // Set transitioned map. |
| 156 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); | 160 __ sw(a3, FieldMemOperand(a2, HeapObject::kMapOffset)); |
| 157 __ RecordWriteField(a2, | 161 __ RecordWriteField(a2, |
| 158 HeapObject::kMapOffset, | 162 HeapObject::kMapOffset, |
| 159 a3, | 163 a3, |
| 160 t5, | 164 t5, |
| 161 kRAHasNotBeenSaved, | 165 kRAHasNotBeenSaved, |
| 162 kDontSaveFPRegs, | 166 kDontSaveFPRegs, |
| 163 EMIT_REMEMBERED_SET, | 167 EMIT_REMEMBERED_SET, |
| 164 OMIT_SMI_CHECK); | 168 OMIT_SMI_CHECK); |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 712 patcher.masm()->dd(reinterpret_cast<uint32_t>(stub->instruction_start())); |
| 709 } | 713 } |
| 710 } | 714 } |
| 711 | 715 |
| 712 | 716 |
| 713 #undef __ | 717 #undef __ |
| 714 | 718 |
| 715 } } // namespace v8::internal | 719 } } // namespace v8::internal |
| 716 | 720 |
| 717 #endif // V8_TARGET_ARCH_MIPS | 721 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |