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 7498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7509 save_fp_regs_mode_ == kDontSaveFPRegs) { | 7509 save_fp_regs_mode_ == kDontSaveFPRegs) { |
7510 return true; | 7510 return true; |
7511 } | 7511 } |
7512 } | 7512 } |
7513 return false; | 7513 return false; |
7514 } | 7514 } |
7515 | 7515 |
7516 | 7516 |
7517 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( | 7517 void StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime( |
7518 Isolate* isolate) { | 7518 Isolate* isolate) { |
7519 StoreBufferOverflowStub stub1(kDontSaveFPRegs); | 7519 StoreBufferOverflowStub stub(kDontSaveFPRegs); |
7520 stub1.GetCode(isolate)->set_is_pregenerated(true); | 7520 stub.GetCode(isolate)->set_is_pregenerated(true); |
7521 | 7521 if (CpuFeatures::IsSafeForSnapshot(SSE2)) { |
7522 CpuFeatures::TryForceFeatureScope scope(SSE2); | |
7523 if (CpuFeatures::IsSupported(SSE2)) { | |
7524 StoreBufferOverflowStub stub2(kSaveFPRegs); | 7522 StoreBufferOverflowStub stub2(kSaveFPRegs); |
7525 stub2.GetCode(isolate)->set_is_pregenerated(true); | 7523 stub2.GetCode(isolate)->set_is_pregenerated(true); |
7526 } | 7524 } |
7527 } | 7525 } |
7528 | 7526 |
7529 | 7527 |
7530 void RecordWriteStub::GenerateFixedRegStubsAheadOfTime(Isolate* isolate) { | 7528 void RecordWriteStub::GenerateFixedRegStubsAheadOfTime(Isolate* isolate) { |
7531 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; | 7529 for (const AheadOfTimeWriteBarrierStubList* entry = kAheadOfTime; |
7532 !entry->object.is(no_reg); | 7530 !entry->object.is(no_reg); |
7533 entry++) { | 7531 entry++) { |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7873 // Restore ecx. | 7871 // Restore ecx. |
7874 __ pop(ecx); | 7872 __ pop(ecx); |
7875 __ ret(0); | 7873 __ ret(0); |
7876 } | 7874 } |
7877 | 7875 |
7878 #undef __ | 7876 #undef __ |
7879 | 7877 |
7880 } } // namespace v8::internal | 7878 } } // namespace v8::internal |
7881 | 7879 |
7882 #endif // V8_TARGET_ARCH_IA32 | 7880 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |