| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3369 } | 3369 } |
| 3370 | 3370 |
| 3371 | 3371 |
| 3372 bool CEntryStub::IsPregenerated() { | 3372 bool CEntryStub::IsPregenerated() { |
| 3373 return result_size_ == 1; | 3373 return result_size_ == 1; |
| 3374 } | 3374 } |
| 3375 | 3375 |
| 3376 | 3376 |
| 3377 void CodeStub::GenerateStubsAheadOfTime() { | 3377 void CodeStub::GenerateStubsAheadOfTime() { |
| 3378 CEntryStub save_doubles(1, kSaveFPRegs); | 3378 CEntryStub save_doubles(1, kSaveFPRegs); |
| 3379 save_doubles.GetCode(); | 3379 save_doubles.GetCode()->set_is_pregenerated(true); |
| 3380 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); | 3380 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); |
| 3381 // It is important that the store buffer overflow stubs are generated first. | 3381 // It is important that the store buffer overflow stubs are generated first. |
| 3382 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); | 3382 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); |
| 3383 } | 3383 } |
| 3384 | 3384 |
| 3385 | 3385 |
| 3386 void CodeStub::GenerateFPStubs() { | 3386 void CodeStub::GenerateFPStubs() { |
| 3387 } | 3387 } |
| 3388 | 3388 |
| 3389 | 3389 |
| (...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5609 save_fp_regs_mode_ == kDontSaveFPRegs) { | 5609 save_fp_regs_mode_ == kDontSaveFPRegs) { |
| 5610 return true; | 5610 return true; |
| 5611 } | 5611 } |
| 5612 } | 5612 } |
| 5613 return false; | 5613 return false; |
| 5614 } | 5614 } |
| 5615 | 5615 |
| 5616 | 5616 |
| 5617 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime() { | 5617 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime() { |
| 5618 StoreBufferOverflowStub stub1(kDontSaveFPRegs); | 5618 StoreBufferOverflowStub stub1(kDontSaveFPRegs); |
| 5619 stub1.GetCode(); | 5619 stub1.GetCode()->set_is_pregenerated(true); |
| 5620 StoreBufferOverflowStub stub2(kSaveFPRegs); | 5620 StoreBufferOverflowStub stub2(kSaveFPRegs); |
| 5621 stub2.GetCode(); | 5621 stub2.GetCode()->set_is_pregenerated(true); |
| 5622 } | 5622 } |
| 5623 | 5623 |
| 5624 | 5624 |
| 5625 void RecordWriteStub::GenerateFixedRegStubsAheadOfTime() { | 5625 void RecordWriteStub::GenerateFixedRegStubsAheadOfTime() { |
| 5626 for (AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; | 5626 for (AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
| 5627 !entry->object.is(no_reg); | 5627 !entry->object.is(no_reg); |
| 5628 entry++) { | 5628 entry++) { |
| 5629 RecordWriteStub stub(entry->object, | 5629 RecordWriteStub stub(entry->object, |
| 5630 entry->value, | 5630 entry->value, |
| 5631 entry->address, | 5631 entry->address, |
| 5632 entry->action, | 5632 entry->action, |
| 5633 kDontSaveFPRegs); | 5633 kDontSaveFPRegs); |
| 5634 stub.GetCode(); | 5634 stub.GetCode()->set_is_pregenerated(true); |
| 5635 } | 5635 } |
| 5636 } | 5636 } |
| 5637 | 5637 |
| 5638 | 5638 |
| 5639 // Takes the input in 3 registers: address_ value_ and object_. A pointer to | 5639 // Takes the input in 3 registers: address_ value_ and object_. A pointer to |
| 5640 // the value has just been written into the object, now this stub makes sure | 5640 // the value has just been written into the object, now this stub makes sure |
| 5641 // we keep the GC informed. The word in the object where the value has been | 5641 // we keep the GC informed. The word in the object where the value has been |
| 5642 // written is in the address register. | 5642 // written is in the address register. |
| 5643 void RecordWriteStub::Generate(MacroAssembler* masm) { | 5643 void RecordWriteStub::Generate(MacroAssembler* masm) { |
| 5644 Label skip_to_incremental_noncompacting; | 5644 Label skip_to_incremental_noncompacting; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5839 | 5839 |
| 5840 // Fall through when we need to inform the incremental marker. | 5840 // Fall through when we need to inform the incremental marker. |
| 5841 } | 5841 } |
| 5842 | 5842 |
| 5843 | 5843 |
| 5844 #undef __ | 5844 #undef __ |
| 5845 | 5845 |
| 5846 } } // namespace v8::internal | 5846 } } // namespace v8::internal |
| 5847 | 5847 |
| 5848 #endif // V8_TARGET_ARCH_X64 | 5848 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |