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

Unified Diff: test/cctest/test-assembler-x64.cc

Issue 144313017: Make LeakSanitizer happy, part 2. Fixed register usage on the way. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | test/cctest/test-global-handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-x64.cc
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc
index 7d17a3373eca686fd1c3f1e88196f563a52a0c0b..23c7465b21d5b75914df468a5f18817532dfc197 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -179,10 +179,10 @@ TEST(AssemblerX64XchglOperations) {
Assembler assm(CcTest::i_isolate(), buffer, static_cast<int>(actual_size));
__ movq(rax, Operand(arg1, 0));
- __ movq(rbx, Operand(arg2, 0));
- __ xchgl(rax, rbx);
+ __ movq(rdx, Operand(arg2, 0));
+ __ xchgl(rax, rdx);
__ movq(Operand(arg1, 0), rax);
- __ movq(Operand(arg2, 0), rbx);
+ __ movq(Operand(arg2, 0), rdx);
__ ret(0);
CodeDesc desc;
@@ -279,8 +279,8 @@ TEST(AssemblerX64TestlOperations) {
// Set rax with the ZF flag of the testl instruction.
Label done;
__ movq(rax, Immediate(1));
- __ movq(rbx, Operand(arg2, 0));
- __ testl(Operand(arg1, 0), rbx);
+ __ movq(rdx, Operand(arg2, 0));
+ __ testl(Operand(arg1, 0), rdx);
__ j(zero, &done, Label::kNear);
__ movq(rax, Immediate(0));
__ bind(&done);
« no previous file with comments | « no previous file | test/cctest/test-global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698