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

Unified Diff: test/cctest/test-utils-a64.cc

Issue 164793003: A64: Use a scope utility to allocate scratch registers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase. Created 6 years, 9 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 | « test/cctest/test-assembler-a64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-utils-a64.cc
diff --git a/test/cctest/test-utils-a64.cc b/test/cctest/test-utils-a64.cc
index e637a6e52b7d1138b300ab3b890c7b04cb126df1..4a6078635cfecea3b94fc4e7de5b5098fd68cb8a 100644
--- a/test/cctest/test-utils-a64.cc
+++ b/test/cctest/test-utils-a64.cc
@@ -323,11 +323,10 @@ void RegisterDump::Dump(MacroAssembler* masm) {
ASSERT(__ StackPointer().Is(csp));
// Ensure that we don't unintentionally clobber any registers.
- Register old_tmp0 = __ Tmp0();
- Register old_tmp1 = __ Tmp1();
- FPRegister old_fptmp0 = __ FPTmp0();
- __ SetScratchRegisters(NoReg, NoReg);
- __ SetFPScratchRegister(NoFPReg);
+ RegList old_tmp_list = masm->TmpList()->list();
+ RegList old_fptmp_list = masm->FPTmpList()->list();
+ masm->TmpList()->set_list(0);
+ masm->FPTmpList()->set_list(0);
// Preserve some temporary registers.
Register dump_base = x0;
@@ -419,8 +418,8 @@ void RegisterDump::Dump(MacroAssembler* masm) {
__ Ldr(dump2, MemOperand(dump2, dump2.code() * kXRegSizeInBytes));
// Restore the MacroAssembler's scratch registers.
- __ SetScratchRegisters(old_tmp0, old_tmp1);
- __ SetFPScratchRegister(old_fptmp0);
+ masm->TmpList()->set_list(old_tmp_list);
+ masm->FPTmpList()->set_list(old_fptmp_list);
completed_ = true;
}
« no previous file with comments | « test/cctest/test-assembler-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698