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

Unified Diff: src/a64/code-stubs-a64.cc

Issue 153723002: A64: Pregenerate the CEntryStub when saving FP registers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/code-stubs-a64.cc
diff --git a/src/a64/code-stubs-a64.cc b/src/a64/code-stubs-a64.cc
index 3d6c690713755cd511c1857169a5e8d82b5128f0..0608d3d899ec801c40a95bf861ba1cad160a2636 100644
--- a/src/a64/code-stubs-a64.cc
+++ b/src/a64/code-stubs-a64.cc
@@ -2166,16 +2166,15 @@ bool CEntryStub::NeedsImmovableCode() {
bool CEntryStub::IsPregenerated() {
- // TODO(jbramley): We should pregenerate kSaveFPRegs too, once we support it.
- return (save_doubles_ == kDontSaveFPRegs) && (result_size_ == 1);
+ return result_size_ == 1;
}
void CEntryStub::GenerateAheadOfTime(Isolate* isolate) {
CEntryStub stub(1, kDontSaveFPRegs);
stub.GetCode(isolate)->set_is_pregenerated(true);
- // TODO(jbramley): We should generate kSaveFPRegs here too, but it is not yet
- // implemented by CEntryStub because it is only used by Lithium.
+ CEntryStub stub_fp(1, kSaveFPRegs);
+ stub_fp.GetCode(isolate)->set_is_pregenerated(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698