Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 549403004: MIPS: Do not use CodeStub::FindInCache if not necessary. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 } 1074 }
1075 1075
1076 1076
1077 void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) { 1077 void RestoreRegistersStateStub::GenerateAheadOfTime(Isolate* isolate) {
1078 RestoreRegistersStateStub stub(isolate); 1078 RestoreRegistersStateStub stub(isolate);
1079 stub.GetCode(); 1079 stub.GetCode();
1080 } 1080 }
1081 1081
1082 1082
1083 void CodeStub::GenerateFPStubs(Isolate* isolate) { 1083 void CodeStub::GenerateFPStubs(Isolate* isolate) {
1084 // Generate if not already in cache.
1084 SaveFPRegsMode mode = kSaveFPRegs; 1085 SaveFPRegsMode mode = kSaveFPRegs;
1085 CEntryStub save_doubles(isolate, 1, mode); 1086 CEntryStub(isolate, 1, mode).GetCode();
1086 StoreBufferOverflowStub stub(isolate, mode); 1087 StoreBufferOverflowStub(isolate, mode).GetCode();
1087 // These stubs might already be in the snapshot, detect that and don't
1088 // regenerate, which would lead to code stub initialization state being messed
1089 // up.
1090 Code* save_doubles_code;
1091 if (!save_doubles.FindCodeInCache(&save_doubles_code)) {
1092 save_doubles_code = *save_doubles.GetCode();
1093 }
1094 Code* store_buffer_overflow_code;
1095 if (!stub.FindCodeInCache(&store_buffer_overflow_code)) {
1096 store_buffer_overflow_code = *stub.GetCode();
1097 }
1098 isolate->set_fp_stubs_generated(true); 1088 isolate->set_fp_stubs_generated(true);
1099 } 1089 }
1100 1090
1101 1091
1102 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) { 1092 void CEntryStub::GenerateAheadOfTime(Isolate* isolate) {
1103 CEntryStub stub(isolate, 1, kDontSaveFPRegs); 1093 CEntryStub stub(isolate, 1, kDontSaveFPRegs);
1104 stub.GetCode(); 1094 stub.GetCode();
1105 } 1095 }
1106 1096
1107 1097
(...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after
4873 MemOperand(fp, 6 * kPointerSize), 4863 MemOperand(fp, 6 * kPointerSize),
4874 NULL); 4864 NULL);
4875 } 4865 }
4876 4866
4877 4867
4878 #undef __ 4868 #undef __
4879 4869
4880 } } // namespace v8::internal 4870 } } // namespace v8::internal
4881 4871
4882 #endif // V8_TARGET_ARCH_MIPS 4872 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698