| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 } | 1069 } |
| 1070 | 1070 |
| 1071 | 1071 |
| 1072 void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { | 1072 void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { |
| 1073 RestoreRegistersStateStub stub(isolate); | 1073 RestoreRegistersStateStub stub(isolate); |
| 1074 stub.GetCode(); | 1074 stub.GetCode(); |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 | 1077 |
| 1078 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 1078 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
| 1079 // Generate if not already in cache. |
| 1079 SaveFPRegsMode mode = kSaveFPRegs; | 1080 SaveFPRegsMode mode = kSaveFPRegs; |
| 1080 CEntryStub save_doubles(isolate, 1, mode); | 1081 CEntryStub(isolate, 1, mode).GetCode(); |
| 1081 StoreBufferOverflowStub stub(isolate, mode); | 1082 StoreBufferOverflowStub(isolate, mode).GetCode(); |
| 1082 // These stubs might already be in the snapshot, detect that and don't | |
| 1083 // regenerate, which would lead to code stub initialization state being messed | |
| 1084 // up. | |
| 1085 Code* save_doubles_code; | |
| 1086 if (!save_doubles.FindCodeInCache(&save_doubles_code)) { | |
| 1087 save_doubles_code = *save_doubles.GetCode(); | |
| 1088 } | |
| 1089 Code* store_buffer_overflow_code; | |
| 1090 if (!stub.FindCodeInCache(&store_buffer_overflow_code)) { | |
| 1091 store_buffer_overflow_code = *stub.GetCode(); | |
| 1092 } | |
| 1093 isolate->set_fp_stubs_generated(true); | 1083 isolate->set_fp_stubs_generated(true); |
| 1094 } | 1084 } |
| 1095 | 1085 |
| 1096 | 1086 |
| 1097 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { | 1087 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { |
| 1098 CEntryStub stub(isolate, 1, kDontSaveFPRegs); | 1088 CEntryStub stub(isolate, 1, kDontSaveFPRegs); |
| 1099 stub.GetCode(); | 1089 stub.GetCode(); |
| 1100 } | 1090 } |
| 1101 | 1091 |
| 1102 | 1092 |
| (...skipping 3808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4911 MemOperand(fp, 6 * kPointerSize), | 4901 MemOperand(fp, 6 * kPointerSize), |
| 4912 NULL); | 4902 NULL); |
| 4913 } | 4903 } |
| 4914 | 4904 |
| 4915 | 4905 |
| 4916 #undef __ | 4906 #undef __ |
| 4917 | 4907 |
| 4918 } } // namespace v8::internal | 4908 } } // namespace v8::internal |
| 4919 | 4909 |
| 4920 #endif // V8_TARGET_ARCH_MIPS64 | 4910 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |