| Index: src/x64/macro-assembler-x64.cc
|
| diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc
|
| index 2c4f02c9023adefcf6d26730015f0b58daf670a9..1fdf22d3f2030c10c10e91d743b534e9b8b31232 100644
|
| --- a/src/x64/macro-assembler-x64.cc
|
| +++ b/src/x64/macro-assembler-x64.cc
|
| @@ -489,7 +489,7 @@ void MacroAssembler::RecordWriteCodeEntryField(Register js_function,
|
| // easier.
|
| DCHECK(js_function.is(rdi));
|
| DCHECK(code_entry.is(rcx));
|
| - DCHECK(scratch.is(rax));
|
| + DCHECK(scratch.is(r15));
|
|
|
| // Since a code entry (value) is always in old space, we don't need to update
|
| // remembered set. If incremental marking is off, there is nothing for us to
|
| @@ -537,13 +537,13 @@ void MacroAssembler::RecordWriteCodeEntryField(Register js_function,
|
| DCHECK(arg_reg_2.is(rdx) && arg_reg_3.is(r8));
|
|
|
| movp(arg_reg_1, js_function); // rcx gets rdi.
|
| - movp(arg_reg_2, dst); // rdx gets rax.
|
| + movp(arg_reg_2, dst); // rdx gets r15.
|
| } else {
|
| // AMD64 calling convention.
|
| DCHECK(arg_reg_1.is(rdi) && arg_reg_2.is(rsi) && arg_reg_3.is(rdx));
|
|
|
| // rdi is already loaded with js_function.
|
| - movp(arg_reg_2, dst); // rsi gets rax.
|
| + movp(arg_reg_2, dst); // rsi gets r15.
|
| }
|
| Move(arg_reg_3, ExternalReference::isolate_address(isolate()));
|
|
|
|
|