| 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 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2911 | 2911 |
| 2912 | 2912 |
| 2913 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { | 2913 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
| 2914 CEntryStub::GenerateAheadOfTime(isolate); | 2914 CEntryStub::GenerateAheadOfTime(isolate); |
| 2915 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); | 2915 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); |
| 2916 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); | 2916 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); |
| 2917 // It is important that the store buffer overflow stubs are generated first. | 2917 // It is important that the store buffer overflow stubs are generated first. |
| 2918 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); | 2918 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); |
| 2919 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 2919 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 2920 CreateAllocationSiteStub::GenerateAheadOfTime(isolate); | 2920 CreateAllocationSiteStub::GenerateAheadOfTime(isolate); |
| 2921 PlatformFeatureScope sse2(SSE2); | 2921 if (Serializer::enabled()) { |
| 2922 BinaryOpStub::GenerateAheadOfTime(isolate); | 2922 PlatformFeatureScope sse2(SSE2); |
| 2923 BinaryOpStub::GenerateAheadOfTime(isolate); |
| 2924 } else { |
| 2925 BinaryOpStub::GenerateAheadOfTime(isolate); |
| 2926 } |
| 2923 } | 2927 } |
| 2924 | 2928 |
| 2925 | 2929 |
| 2926 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 2930 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
| 2927 if (CpuFeatures::IsSupported(SSE2)) { | 2931 if (CpuFeatures::IsSupported(SSE2)) { |
| 2928 CEntryStub save_doubles(1, kSaveFPRegs); | 2932 CEntryStub save_doubles(1, kSaveFPRegs); |
| 2929 // Stubs might already be in the snapshot, detect that and don't regenerate, | 2933 // Stubs might already be in the snapshot, detect that and don't regenerate, |
| 2930 // which would lead to code stub initialization state being messed up. | 2934 // which would lead to code stub initialization state being messed up. |
| 2931 Code* save_doubles_code; | 2935 Code* save_doubles_code; |
| 2932 if (!save_doubles.FindCodeInCache(&save_doubles_code, isolate)) { | 2936 if (!save_doubles.FindCodeInCache(&save_doubles_code, isolate)) { |
| (...skipping 3085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6018 __ bind(&fast_elements_case); | 6022 __ bind(&fast_elements_case); |
| 6019 GenerateCase(masm, FAST_ELEMENTS); | 6023 GenerateCase(masm, FAST_ELEMENTS); |
| 6020 } | 6024 } |
| 6021 | 6025 |
| 6022 | 6026 |
| 6023 #undef __ | 6027 #undef __ |
| 6024 | 6028 |
| 6025 } } // namespace v8::internal | 6029 } } // namespace v8::internal |
| 6026 | 6030 |
| 6027 #endif // V8_TARGET_ARCH_IA32 | 6031 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |