Index: test/cctest/test-macro-assembler-x64.cc |
diff --git a/test/cctest/test-macro-assembler-x64.cc b/test/cctest/test-macro-assembler-x64.cc |
index 15dc6db2d5ab04dc000142381a9718aee3ed95e0..c7c67b05888fc4533f412946bb85987320c3f7a1 100755 |
--- a/test/cctest/test-macro-assembler-x64.cc |
+++ b/test/cctest/test-macro-assembler-x64.cc |
@@ -95,6 +95,7 @@ typedef int (*F0)(); |
static void EntryCode(MacroAssembler* masm) { |
// Smi constant register is callee save. |
__ push(v8::internal::kSmiConstantRegister); |
+ __ push(v8::internal::kRootRegister); |
__ InitializeSmiConstantRegister(); |
__ InitializeRootRegister(); |
} |
@@ -106,6 +107,7 @@ static void ExitCode(MacroAssembler* masm) { |
__ cmpq(rdx, v8::internal::kSmiConstantRegister); |
__ movq(rdx, Immediate(-1)); |
__ cmovq(not_equal, rax, rdx); |
+ __ pop(v8::internal::kRootRegister); |
__ pop(v8::internal::kSmiConstantRegister); |
} |