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

Unified Diff: src/a64/macro-assembler-a64.cc

Issue 139503006: A64: Implement pre-aging support for A64. (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 | « src/a64/macro-assembler-a64.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/macro-assembler-a64.cc
diff --git a/src/a64/macro-assembler-a64.cc b/src/a64/macro-assembler-a64.cc
index 5087de05316f4c70bc1e9e4e388d3d3e9329e0e2..921e051b9e77deb31d8484b793c7f125a02e17db 100644
--- a/src/a64/macro-assembler-a64.cc
+++ b/src/a64/macro-assembler-a64.cc
@@ -2594,8 +2594,12 @@ void MacroAssembler::Prologue(PrologueFrameMode frame_mode) {
__ Push(lr, fp, cp, Tmp0());
__ Add(fp, jssp, StandardFrameConstants::kFixedFrameSizeFromFp);
} else {
- TODO_UNIMPLEMENTED("Prologue: Support IsCodePreAgingActive().");
- __ EmitFrameSetupForCodeAgePatching();
+ if (isolate()->IsCodePreAgingActive()) {
+ Code* stub = Code::GetPreAgedCodeAgeStub(isolate());
+ EmitCodeAgeSequence(this, stub);
jochen (gone - plz use gerrit) 2014/02/10 09:27:43 should this be EmitCodeAgeSequence(stub)?
rmcilroy 2014/02/10 10:16:01 Done.
+ } else {
+ __ EmitFrameSetupForCodeAgePatching();
+ }
}
}
@@ -4657,6 +4661,14 @@ void MacroAssembler::EmitFrameSetupForCodeAgePatching() {
}
+
+void MacroAssembler::EmitCodeAgeSequence(Code* stub) {
+ InstructionAccurateScope scope(this, kCodeAgeSequenceSize / kInstructionSize);
+ ASSERT(jssp.Is(StackPointer()));
+ EmitCodeAgeSequence(this, stub);
+}
+
+
#undef __
#define __ assm->
@@ -4679,7 +4691,7 @@ void MacroAssembler::EmitFrameSetupForCodeAgePatching(Assembler * assm) {
}
-void MacroAssembler::EmitCodeAgeSequence(PatchingAssembler * assm,
+void MacroAssembler::EmitCodeAgeSequence(Assembler * assm,
Code * stub) {
Label start;
__ bind(&start);
« no previous file with comments | « src/a64/macro-assembler-a64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698