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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 #endif | 244 #endif |
245 | 245 |
246 #undef __ | 246 #undef __ |
247 | 247 |
248 // ------------------------------------------------------------------------- | 248 // ------------------------------------------------------------------------- |
249 // Code generators | 249 // Code generators |
250 | 250 |
251 #define __ ACCESS_MASM(masm) | 251 #define __ ACCESS_MASM(masm) |
252 | 252 |
253 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( | 253 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
254 MacroAssembler* masm) { | 254 MacroAssembler* masm, Label* fail) { |
255 // ----------- S t a t e ------------- | 255 // ----------- S t a t e ------------- |
256 // -- rax : value | 256 // -- rax : value |
257 // -- rbx : target map | 257 // -- rbx : target map |
258 // -- rcx : key | 258 // -- rcx : key |
259 // -- rdx : receiver | 259 // -- rdx : receiver |
260 // -- rsp[0] : return address | 260 // -- rsp[0] : return address |
261 // ----------------------------------- | 261 // ----------------------------------- |
| 262 if (FLAG_track_allocation_sites && fail != NULL) { |
| 263 masm->TestJSArrayForAllocationSiteInfo(rdx, rdi, fail); |
| 264 } |
| 265 |
262 // Set transitioned map. | 266 // Set transitioned map. |
263 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx); | 267 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx); |
264 __ RecordWriteField(rdx, | 268 __ RecordWriteField(rdx, |
265 HeapObject::kMapOffset, | 269 HeapObject::kMapOffset, |
266 rbx, | 270 rbx, |
267 rdi, | 271 rdi, |
268 kDontSaveFPRegs, | 272 kDontSaveFPRegs, |
269 EMIT_REMEMBERED_SET, | 273 EMIT_REMEMBERED_SET, |
270 OMIT_SMI_CHECK); | 274 OMIT_SMI_CHECK); |
271 } | 275 } |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 CodePatcher patcher(sequence, young_length); | 766 CodePatcher patcher(sequence, young_length); |
763 patcher.masm()->call(stub->instruction_start()); | 767 patcher.masm()->call(stub->instruction_start()); |
764 patcher.masm()->nop(); | 768 patcher.masm()->nop(); |
765 } | 769 } |
766 } | 770 } |
767 | 771 |
768 | 772 |
769 } } // namespace v8::internal | 773 } } // namespace v8::internal |
770 | 774 |
771 #endif // V8_TARGET_ARCH_X64 | 775 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |