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 3917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3928 bool CEntryStub::IsPregenerated() { | 3928 bool CEntryStub::IsPregenerated() { |
3929 return (!save_doubles_ || ISOLATE->fp_stubs_generated()) && | 3929 return (!save_doubles_ || ISOLATE->fp_stubs_generated()) && |
3930 result_size_ == 1; | 3930 result_size_ == 1; |
3931 } | 3931 } |
3932 | 3932 |
3933 | 3933 |
3934 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { | 3934 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
3935 CEntryStub::GenerateAheadOfTime(isolate); | 3935 CEntryStub::GenerateAheadOfTime(isolate); |
3936 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); | 3936 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); |
3937 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); | 3937 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); |
3938 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(); | 3938 RecordWriteStub::GenerateFixedRegStubsAheadOfTime(isolate); |
3939 } | 3939 } |
3940 | 3940 |
3941 | 3941 |
3942 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 3942 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
3943 SaveFPRegsMode mode = CpuFeatures::IsSupported(FPU) | 3943 SaveFPRegsMode mode = CpuFeatures::IsSupported(FPU) |
3944 ? kSaveFPRegs | 3944 ? kSaveFPRegs |
3945 : kDontSaveFPRegs; | 3945 : kDontSaveFPRegs; |
3946 CEntryStub save_doubles(1, mode); | 3946 CEntryStub save_doubles(1, mode); |
3947 StoreBufferOverflowStub stub(mode); | 3947 StoreBufferOverflowStub stub(mode); |
3948 // These stubs might already be in the snapshot, detect that and don't | 3948 // These stubs might already be in the snapshot, detect that and don't |
(...skipping 4112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8061 __ Pop(ra, t1, a1); | 8061 __ Pop(ra, t1, a1); |
8062 __ Ret(); | 8062 __ Ret(); |
8063 } | 8063 } |
8064 | 8064 |
8065 | 8065 |
8066 #undef __ | 8066 #undef __ |
8067 | 8067 |
8068 } } // namespace v8::internal | 8068 } } // namespace v8::internal |
8069 | 8069 |
8070 #endif // V8_TARGET_ARCH_MIPS | 8070 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |