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 3352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3363 __ Jump(adaptor, RelocInfo::CODE_TARGET); | 3363 __ Jump(adaptor, RelocInfo::CODE_TARGET); |
3364 } | 3364 } |
3365 | 3365 |
3366 | 3366 |
3367 bool CEntryStub::NeedsImmovableCode() { | 3367 bool CEntryStub::NeedsImmovableCode() { |
3368 return false; | 3368 return false; |
3369 } | 3369 } |
3370 | 3370 |
3371 | 3371 |
3372 bool CEntryStub::IsPregenerated() { | 3372 bool CEntryStub::IsPregenerated() { |
| 3373 #ifdef _WIN64 |
3373 return result_size_ == 1; | 3374 return result_size_ == 1; |
| 3375 #else |
| 3376 return true; |
| 3377 #endif |
3374 } | 3378 } |
3375 | 3379 |
3376 | 3380 |
3377 void CodeStub::GenerateStubsAheadOfTime() { | 3381 void CodeStub::GenerateStubsAheadOfTime() { |
3378 CEntryStub save_doubles(1, kSaveFPRegs); | 3382 CEntryStub::GenerateFixedRegStubsAheadOfTime(); |
3379 save_doubles.GetCode()->set_is_pregenerated(true); | |
3380 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); | 3383 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(); |
3381 // It is important that the store buffer overflow stubs are generated first. | 3384 // It is important that the store buffer overflow stubs are generated first. |
3382 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); | 3385 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); |
3383 } | 3386 } |
3384 | 3387 |
3385 | 3388 |
3386 void CodeStub::GenerateFPStubs() { | 3389 void CodeStub::GenerateFPStubs() { |
3387 } | 3390 } |
3388 | 3391 |
3389 | 3392 |
| 3393 void CEntryStub::GenerateFixedRegStubsAheadOfTime() { |
| 3394 CEntryStub stub(1, kDontSaveFPRegs); |
| 3395 stub.GetCode()->set_is_pregenerated(true); |
| 3396 CEntryStub save_doubles(1, kSaveFPRegs); |
| 3397 save_doubles.GetCode()->set_is_pregenerated(true); |
| 3398 } |
| 3399 |
| 3400 |
3390 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { | 3401 void CEntryStub::GenerateThrowTOS(MacroAssembler* masm) { |
3391 // Throw exception in eax. | 3402 // Throw exception in eax. |
3392 __ Throw(rax); | 3403 __ Throw(rax); |
3393 } | 3404 } |
3394 | 3405 |
3395 | 3406 |
3396 void CEntryStub::GenerateCore(MacroAssembler* masm, | 3407 void CEntryStub::GenerateCore(MacroAssembler* masm, |
3397 Label* throw_normal_exception, | 3408 Label* throw_normal_exception, |
3398 Label* throw_termination_exception, | 3409 Label* throw_termination_exception, |
3399 Label* throw_out_of_memory_exception, | 3410 Label* throw_out_of_memory_exception, |
(...skipping 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5839 | 5850 |
5840 // Fall through when we need to inform the incremental marker. | 5851 // Fall through when we need to inform the incremental marker. |
5841 } | 5852 } |
5842 | 5853 |
5843 | 5854 |
5844 #undef __ | 5855 #undef __ |
5845 | 5856 |
5846 } } // namespace v8::internal | 5857 } } // namespace v8::internal |
5847 | 5858 |
5848 #endif // V8_TARGET_ARCH_X64 | 5859 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |