Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 3d3fd06d91ce967914af1e47a05e26a6bcae5db3..5748ca2bd53952f37482c824a00361eed80840ff 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -108,8 +108,8 @@ static void EmitStackCheck(MacroAssembler* masm_, |
Label ok; |
ASSERT(scratch.is(rsp) == (pointers == 0)); |
if (pointers != 0) { |
- __ movq(scratch, rsp); |
- __ subq(scratch, Immediate(pointers * kPointerSize)); |
+ __ movp(scratch, rsp); |
+ __ subp(scratch, Immediate(pointers * kPointerSize)); |
} |
__ CompareRoot(scratch, Heap::kStackLimitRootIndex); |
__ j(above_equal, &ok, Label::kNear); |
@@ -195,7 +195,7 @@ void FullCodeGenerator::Generate() { |
const int kMaxPushes = 32; |
if (locals_count >= kMaxPushes) { |
int loop_iterations = locals_count / kMaxPushes; |
- __ movq(rcx, Immediate(loop_iterations)); |
+ __ movp(rcx, Immediate(loop_iterations)); |
Label loop_header; |
__ bind(&loop_header); |
// Do pushes. |
@@ -203,7 +203,7 @@ void FullCodeGenerator::Generate() { |
__ Push(rdx); |
} |
// Continue loop if not done. |
- __ decq(rcx); |
+ __ decp(rcx); |
__ j(not_zero, &loop_header, Label::kNear); |
} |
int remaining = locals_count % kMaxPushes; |